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

NameTypeDescription

rpc

String

Remote procedural call URL

chainId*

String

Refer to the Chain ID page for details.

chainSymbol

String

Refer to the Chain ID page for details.

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 for a specified block (ledger).

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

Query Parameters

NameTypeDescription

rpc

String

Remote procedural call URL.

chainId*

String

Refer to the Chain ID page for details.

chainSymbol

String

Refer to the Chain ID page for details.

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

NameTypeDescription

rpc

String

Remote procedural call URL.

chainId*

String

Refer to the Chain ID page for details.

chainSymbol

String

Refer to the Chain ID page for details.

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

NameTypeDescription

rpc

String

Remote procedural call URL.

chainId*

String

Refer to the Chain ID page for details.

chainSymbol

String

Refer to the Chain ID page for details.

keys*

String

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

https://api.expand.network/chain/getstorage?chainId=1500&keys=AAAABgAAAAFV3d0a2VhBZ%2B54%2Fg6tRMfgt%2BWajUevdHo3A8wtDuWS%2BQAAABQAAAAB

/gettransaction

Get details of a specified transaction.

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

Query Parameters

NameTypeDescription

rpc

String

Remote procedural call URL.

chainId*

String

Refer to the Chain ID page for details.

chainSymbol

String

Refer to the Chain ID page for details.

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

NameTypeDescription

rpc

String

Remote procedural call URL.

chainId*

String

Refer to the Chain ID page for details.

chainSymbol

String

Refer to the Chain ID page for details.

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

NameTypeDescription

rpc

String

Remote procedural call URL.

chainId*

String

Refer to the Chain ID page for details.

chainSymbol

String

Refer to the Chain ID page for details.

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 the list of events emitted by a given ledger range, within a maximum 10 hours from latest ledgers.

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

Query Parameters

NameTypeDescription

rpc

String

Remote procedural call URL.

chainId*

String

Refer to the Chain ID page for details.

chainSymbol

String

Refer to the Chain ID page for details.

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 latest block (ledger).

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

Query Parameters

NameTypeDescription

rpc

String

Remote procedural call URL.

chainId

String

Refer to the Chain ID page for details.

chainSymbol

String

Refer to the Chain ID page for details.

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

/sendtransaction

Submit a signed transaction to Stellar for processing.

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

Request Body

NameTypeDescription

rpc

String

Remote procedural call URL.

chainId

String

Refer to the Chain ID page for details.

chainSymbol

String

Refer to the Chain ID page for details.

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"
}

/createaccount

Initiates a transaction to fund a newly created account using the public key as the account ID.

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

Request body

NameTypeDescription

rpc

String

Remote procedural call URL.

chainId*

String

Refer to the Chain ID page for details.

chainSymbol

String

Refer to the Chain ID page for details.

from*

String

Public address of the sender who funds the account.

to*

String

Public address of the recipient who will get funded.

amount*

String

Amount of asset to fund.

{
    "chainId": "1500",
    "from": "GARNHXH36IUZE4F5MON5XBQX37OGVFGCOPOPN7CPQL3TP7VX2XI35QUJ",
    "to": "GDILQD3VDOBECITMR5LVVFLNYQIDXFSLUADNIUUYCYGTX524VKPM2CMC",
    "amount": "5000000"
}

/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

NameTypeDescription

rpc

String

Remote procedural call URL.

chainId*

String

Refer to the Chain ID page for details.

chainSymbol

String

Refer to the Chain ID page for details.

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

NameTypeDescription

chainId*

String

Refer to the Chain ID page for details. By default, Ethereum.

chainSymbol

String

Refer to the Chain ID page for details.

rawTransaction*

String

A signed Stellar transaction, serialized as a base64 string.

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

Last updated