Stellar

/getbalance

Get the balance or number of the given token in the requested public address.

GET https://api.expand.network/chain/getbalance

Query Parameters

Name
Type
Description

rpc

String

Remote procedural call URL

chainId*

String

chainSymbol

String

address*

String

The public address to get the balance of.

issuer

String

The public address of the issuer.

assetCode

String

The code of asset to get the balance of. *Required, if issuer address is provided.

https://api.expand.network/chain/getbalance/?chainId=1500&address=GC4KAS6W2YCGJGLP633A6F6AKTCV4WSLMTMIQRSEQE5QRRVKSX7THV6S&issuer=GDM4RQUQQUVSKQA7S6EM7XBZP3FCGH4Q7CL6TABQ7B2BEJ5ERARM2M5M&assetCode=VELO

/getblock

Get details of a block(ledger).

GET https://historicallp.api.expand.network/chain/getblock

Query Parameters

Name
Type
Description

rpc

String

Remote procedural call URL.

chainId*

String

chainSymbol

String

blockNumber*

String

Sequence number of the ledger.

https://historicallp.api.expand.network/chain/getblock?chainId=1500&blockNumber=50755373

/getgasprice

Get the current gas price from the Stellar network.

GET https://api.expand.network/chain/getgasprice

Query Parameters

Name
Type
Description

rpc

String

Remote procedural call URL.

chainId*

String

chainSymbol

String

https://api.expand.network/chain/getgasprice/?chainSymbol=xlm

/getstorage

Get details of storage in the contract, including the current state of contract, contract code or any other ledger entry.

GET https://api.expand.network/chain/getstorage

Query Parameters

Name
Type
Description

rpc

String

Remote procedural call URL.

chainId*

String

chainSymbol

String

keys*

String

The key of the ledger entry (serialized in a base64 string).

https://api.expand.network/chain/getstorage?chainId=1500&keys=AAAABgAAAAH3xNSi+8RNeGCQ9G+xxqeBQYdAPM67qt+vUv/54U9NeAAAABQAAAAB

/gettransaction

Get details of a specified transaction.

GET https://api.expand.network/chain/gettransaction

Query Parameters

Name
Type
Description

rpc

String

Remote procedural call URL.

chainId*

String

chainSymbol

String

transactionHash*

String

The transaction hash.

https://api.expand.network/chain/gettransaction/?chainId=1500&transactionHash=3ee7edbe77d9ca096adf05feab86cc3b2f0a355088240f3eeb06cbfc24a491a7

/portfolio

Get the comprehensive information about the assets/ tokens owned by a user, including their name, balance, symbol, address, and their equivalent USD price.

GET https://api.expand.network/chain/portfolio

Query Parameters

Name
Type
Description

rpc

String

Remote procedural call URL.

chainId*

String

chainSymbol

String

address*

String

Public addess of the user.

availableOnly

Boolean

By default, false. If true, tokens with balance > 0 will be listed.

https://api.expand.network/chain/portfolio/?address=GAJ4BSGJE6UQHZAZ5U5IUOABPDCYPKPS3RFS2NVNGFGFXGVQDLBQJW2P&chainId=1500&availableOnly=true

/getusertransactions

Get the historical transaction details for a specific user address.

GET https://historicallp.api.expand.network/chain/getusertransactions

Query Parameters

Name
Type
Description

rpc

String

Remote procedural call URL.

chainId*

String

chainSymbol

String

address*

String

The public address of the user.

pageToken

String

A string ID that points to a specific location in a collection of responses, present at the end of the response.

sortOrder

String

The transaction sorting order. asc or desc. By default, desc.

https://historicallp.api.expand.network/chain/getusertransactions?chainId=1500&address=GCU7LJ5S6U3YCTSLLZNMRHJBSXVI6O5WPQIJ2ESLYTYIUJ7WMSXNYERD

/getevents

Get a filtered list of events emitted by a given ledger range, within a maximum 24 hours of recent ledgers.

GET https://api.expand.network/chain/getevents

Query Parameters

Name
Type
Description

rpc

String

Remote procedural call URL.

chainId*

String

chainSymbol

String

startBlock

String

Sequence number of the ledger. By default, the latest ledger.

pageToken

String

A string ID that points to a specific location in a collection of responses, present at the end of the response.

contracts

String

Comma separated values of contract IDs to query for events.

topics1

String

Topic this event was emitted with.

topics2

String

Topic this event was emitted with.

topics3

String

Topic this event was emitted with.

topics4

String

Topic this event was emitted with.

topics5

String

Topic this event was emitted with.

type

String

A comma separated list of event types (system, contract, or diagnostic) used to filter events. If omitted, all event types are included.

https://api.expand.network/chain/getevents/?chainId=1500&startBlock=51101417

/getlatestledger

Get details for the current latest known ledger of the node.

GET https://api.expand.network/chain/getlatestledger

Query Parameters

Name
Type
Description

rpc

String

Remote procedural call URL.

chainId

String

chainSymbol

String

https://api.expand.network/chain/getlatestledger?chainId=1500

/createaccount

Create and fund a new account using the public key as the account ID.

POST https://api.expand.network/chain/createaccount

Request Body

Name
Type
Description

rpc

String

Remote procedural call URL.

chainId*

String

chainSymbol

String

from*

String

The source account, from where the XLM will be withdrawn.

initialBalance*

String

Amount of XLM to send to the newly created account.

{
  "chainId": "1500",
  "from": "GDUY7J7A33TQWOSOQGDO776GGLM3UQERL4J3SPT56F6YS4ID7MLDERI4",
  "initialBalance": "5"
}

/sendtransaction

Submit a signed transaction to Stellar for processing.

POST https://api.expand.network/chain/sendtransaction

Request Body

Name
Type
Description

rpc

String

Remote procedural call URL.

chainId

String

chainSymbol

String

rawTransaction*

String

The signed transaction to broadcast for inclusion in a ledger, serialized as a base64 string.

{
    "rawTransaction": "AAAAAgAAAADK19wCgQBrHYbni7IEXqbuH39ZZ6+CyjQd0pgMYs1LFQAAAGQADYdgAAAABgAAAAEAAAAAAAAAAAAAAABmDUAMAAAAAAAAAAEAAAAAAAAABgAAAAJFeHBhbmRUZXN0AAAAAAAAlYebzd+2+XWQwUfqzG15Geiys7ZyG3jfrYEVwKQYQxIAAAAAHc1lAAAAAAAAAAABYs1LFQAAAEDT1KH8ZqJvA0M0Ncg6RsekzR5BceG41DUDgR/f8xgZk16vEOVY2BZ2Eq+FmWTXdXRP2LX/uLSKh5xxCb4v3g8O",
    "chainId": "1500"
}

/simulatetransaction

Submit a trial contract invocation to simulate how it would be executed by the network.

POST https://api.expand.network/chain/simulatetransaction

Request Body

Name
Type
Description

rpc

String

Remote procedural call URL.

chainId*

String

chainSymbol

String

rawTransaction*

String

A signed Stellar transaction, serialized as a base64 string.

{
    "chainId": "1500",
    "rawTransaction": "AAAAAgAAAAAi09z78imScL1jm9uGF9/capTCc9z2/E+C9zf+t9XRvgAK6+UDC8UiAAAAAwAAAAEAAAAAAAAAAAAAAABmD/WzAAAAAAAAAAEAAAAAAAAAGAAAAAAAAAABVd3dGtlYQWfueP4OrUTH4Lflmo1Hr3R6NwPMLQ7lkvkAAAAJaW5jcmVtZW50AAAAAAAAAAAAAAAAAAABAAAAAAAAAAEAAAAHCxRSx/lCsIebq3ncX/0VB3zL1ZCf+AY3FmCgx7Q9iO0AAAABAAAABgAAAAFV3d0a2VhBZ+54/g6tRMfgt+WajUevdHo3A8wtDuWS+QAAABQAAAABADpZfQAAAuQAAACEAAAAAAAK64EAAAABt9XRvgAAAEA/PHP5Z5ZmpQTYf6UnbQPTBaIbhWlCznTGbt9G7yYQQSSzOLclrxNiv/+Oj+UaVO4T3mhFC5+VC/uSotgIJykA"
}

/decodetransaction

Get the decoded transaction(sender, recipient, gas limit, method signature, and more) for the provided raw transaction.

POST https://api.expand.network/chain/decodetransaction

Request Body

Name
Type
Description

chainId*

String

chainSymbol

String

rawTransaction*

String

A signed Stellar transaction, serialized as a base64 string.

{
    "chainId": "1500",
    "rawTransaction": "AAAAAgAAAABMmM4wvUEdIHJlj742UZIjX7WP6OqgK3x/pPnbTCXxcgAAAGQAAaHuAAAACwAAAAEAAAAAAAAAAAAAAABl+DZxAAAAAAAAAAEAAAAAAAAABgAAAAJFeHBhbmREb2xsYXIAAAAAm/7hgKNd+xNhcPZfUG8loszSbri9XAJezYDtga5pPN8AAAAAIC+/AAAAAAAAAAAA"
}

Last updated

#553: ENC-2526-LIDO

Change request updated