Near
/getbalance
Get the balance or number of the given token in the requested public address.
GET
https://api.expand.network/chain/getbalance
Query Parameters
rpc
String
Remote procedural call URL
address*
String
The public address to get the balance of.
tokenAddress
String
The address of token to get the balance of.
networkId*
String
Contains the network Id (testnet or mainnet).
https://api.expand.network/chain/getbalance/?address=app.nearcrowd.near&chainId=1200
/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=1200
/gettransaction
Get details of a transaction.
GET
https://api.expand.network/chain/gettransaction
Query Parameters
https://api.expand.network/chain/gettransaction?chainId=1200&transactionHash=28CYUY3Jcmjjy19rx5x4GUp7kWKSuxgTuzsnm6WbjqgR
/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.
https://api.expand.network/chain/portfolio?chainId=1200&address=spin.sweat&availableOnly=true
/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=5d405172e96927a7a6de6ec95c3879345a47b3c0cf6d97653d76c61f5c1262b9&chainId=1200&validatorAddress=astro-stakers.poolv1.near
/sendtransaction
Send transaction on the chain.
POST
https://api.expand.network/chain/sendtransaction
Request Body
{
"chainId": "1200",
"rawTransaction": "FAAAAG1hZGh1dXV1dXV1ci50ZXN0bmV0AEkY3+wQ0vYMKdwUWiNMqpXqdeiHfeC+xzYEoSqBUbe8TokHDDheAAAUAAAAbXl0ZXN0bWFkaHVyLnRlc3RuZXQgoucUF/0pEF1+QF3rfhesMNR8DoSo9kOwUtA8jxglZgEAAAADAABAvYtbk2tsAAAAAAAAAADmi3KGo3Rw3x4pIwf/oub5d1VdfIcrgeEOgOBRs9qnXm3zZ4UQzheNJZ3om271QiMXw0hK/lFQMEWtKGOK8Z0A"
}
/decodetransaction
Get the decoded transaction for the provided raw transaction.
POST
https://api.expand.network/chain/decodetransaction
Request Body
{
"chainId": "1200",
"rawTransaction": "EQAAAGhrMTY0NjQ1NS50ZXN0bmV0AI5NZ/HOf9Z3lhnFXWzGKLlpQquoZ0koM9NwA6pyady3wVPUJFiBAAARAAAAaGsxNjQ2NDU1LnRlc3RuZXRRcSU8anY2BbU3Hdp6nFc800OP06VcXt9Y6zi7bNKS6wEAAAADAADoiQQjx4oAAAAAAAAAAACFkU6wouNgPzyGby4Ab7qs8YLUuTmgLVoihNVoUp/pNTyZT/5TC6ozr2tAIfbMxmrAEzqpxqZFEgd/p0U+zfoC"
}
Last updated