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 of a 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=AAAABgAAAAH3xNSi+8RNeGCQ9G+xxqeBQYdAPM67qt+vUv/54U9NeAAAABQAAAAB

/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