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
https://api.expand.network/chain/getbalance?address=7STPYcDtmhgsg2XbyB7PwnNXwWkWKxc8gzycHmT32PXr&chainId=900
/getblock
Get details of a block.
GET
https://historicallp.api.expand.network/chain/getblock
Query Parameters
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
https://api.expand.network/chain/gettransaction?chainId=900&transactionHash=Kth19WQW3AwhL4xz4Dko68eiNCwBQ65pXV6Wbm2Fwjx37pTD8DFNfk6Ga6FCQ9MthrwWybLyPDdwUEjEexaoLup
/getusertransactions
Get the historical transaction details for a specific user address.
GET
https://historicallp.api.expand.network/chain/getusertransactions
Query Parameters
rpc
String
Remote procedural call URL.
address*
String
The public address of the user.
pageToken
String
The page cursor present at the top to fetch the next page.
pageSize
String
The page size. By Default 30 and Max 100
https://historicallp.api.expand.network/chain/getusertransactions?chainId=900&address=5Q544fKrFoe6tsEbD7S8EmxGTJYAKtTVhAW5Q5pge4j1&pageSize=1
/portfolio
Get the comprehensive information about the assets/ tokens owned by a user.
GET
https://api.expand.network/chain/portfolio
Query Parameters
rpc
String
Remote procedural call URL.
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
/getstakepositions
This endpoint retrieves information about staked native asset positions for a specified address, including the total staked amount across all validators as well as the individual positions staked with each validator.
GET
https://api.expand.network/chain/getstakepositions
Query Parameters
https://api.expand.network/chain/getstakepositions?address=FbXAffyRzZFSM8zRY7yWmCk99pGCUWGS5eoSnywYLhhJ&chainId=900
/sendtransaction
Send transaction on the chain.
POST
https://api.expand.network/chain/sendtransaction
Request Body
{
"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
{
"chainId": "900",
"rawTransaction": "AZANUOpAHOdEZSKG5HuXe1QZ90kX2VULfpMIc7xpp/GoUYFWJ4CsaNokyrNa0u5qcfEdJI244WL5SZqZt1meEQoBAAECP0Qyw9NtTa7gVBomcZX4zRuYuCee7NvzTKGbbvggCLAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAJ/CPjp2H4E3Y6Q3Sa1S+36peOFuNhP226cr6lgpMpGWAQECAAAMAgAAAID2SuHHAi0V"
}
Last updated