Solana

/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.

tokenAddress

String

The address of token to get the balance of.

https://api.expand.network/chain/getbalance/?address=GX6kCVtpvFTGsedV72nK5K6VzY1bTCvqFmrtHkuZHGsX&chainId=900

/getblock

Get details of a block.

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

The block number or block hash.

https://historicallp.api.expand.network/chain/getblock?blockNumber=48208733&chainId=900

/gettransaction

Get details of a 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=900&transactionHash=Kth19WQW3AwhL4xz4Dko68eiNCwBQ65pXV6Wbm2Fwjx37pTD8DFNfk6Ga6FCQ9MthrwWybLyPDdwUEjEexaoLup

/portfolio

Get the comprehensive information about the assets/ tokens owned by a user.

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.

tokens

String

Comma-separated value of tokens to get value of. Maximum 10 at a time.

availableOnly

Boolean

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

pageToken

String

The page number that the user wants to fetch.

Available at the end of the response.

assetType

String

Type of the asset. Either "fungible" or "nonFungible". By default, "all".

https://api.expand.network/chain/portfolio?chainId=900&address=CGUA416Urx9YrRZKgadyGrsuUi3JwzVo4RbfQK1JpW9S&availableOnly=true&assetType=fungible&pageToken=1

/sendtransaction

Send transaction on the chain.

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

Request Body

NameTypeDescription

chainId*

Integer

Refer to the Chain ID page for details.

chainSymbol

String

Refer to the Chain ID page for details.

rawTransaction*

String

The encoded transaction, obtained from signed transaction.

rpc

String

Remote procedural call URL.

{
    "chainId": "900",
    "rawTransaction": "AZ+tnha8KkJHUhonuRhExKKi/iUVxLPzSWUFg0I9jA8qnzI+VeF/srAbjCC1yRXZkSFIAiL674Ym3nQXknMYCwABAAEDjRyE59XRrMagBCI1SF13/RwKCo1S07RveObs+BVA09415JpoPP9KKUdrIVusGR4UYoAZhh30KfDMN9gGEun3ygAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAZ0TH7GcLvfxR7z5m2gBeRh/PWkqISy7hwhr2FsIs19oBAgIAAQwCAAAAAOH1BQAAAAA="
}

/decodetransaction

Get the decoded transaction 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

The raw transaction to be given for decoding.

{
    "chainId": "900",
    "rawTransaction": "AZANUOpAHOdEZSKG5HuXe1QZ90kX2VULfpMIc7xpp/GoUYFWJ4CsaNokyrNa0u5qcfEdJI244WL5SZqZt1meEQoBAAECP0Qyw9NtTa7gVBomcZX4zRuYuCee7NvzTKGbbvggCLAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAJ/CPjp2H4E3Y6Q3Sa1S+36peOFuNhP226cr6lgpMpGWAQECAAAMAgAAAID2SuHHAi0V"
}

Last updated