Binance Smart chain
/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=0x685B1ded8013785d6623CC18D214320b6Bb64759&chainId=56
/getblock
Get details of a block.
GET
https://api.expand.network/chain/getblock
Query Parameters
https://api.expand.network/chain/getblock?chainId=56&blockNumber=30265549
/getgasprice
Get the current gas price from the network.
GET
https://api.expand.network/chain/getgasprice
Query Parameters
https://api.expand.network/chain/getgasprice?chainId=56
/getstorage
Get data stored in the given slot.
GET
https://api.expand.network/chain/getstorage
Query Parameters
https://api.expand.network/chain/getstorage?chainId=56&address=0xb22069baEf86655460F56CD73d7EC999B5DA6B73
/gettransaction
Get details of a transaction.
GET
https://api.expand.network/chain/gettransaction
Query Parameters
https://api.expand.network/chain/gettransaction?chainId=56&transactionHash=0x5834a0ef28b7f58044d183e2ceb140365c5e5329d6364ca8f5ad8d29d7838715
/portfolio
Get detailed information about the verified assets or tokens currently associated with a user's wallet address.
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 ERC-20 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
Present at the end of a lengthy response to fetch the next page.
assetType
String
fungible
/nonFungible
standard choice.
By default, all
.
https://api.expand.network/chain/portfolio?chainId=56&address=0x9ef9f4360c606c7AB4db26b016007d3ad0aB86a0&availableOnly=true
/getusertransactions
Get the historical transaction details for a specific user address.
GET
https://api.expand.network/chain/getusertransactions
Query Parameters
rpc
String
Remote procedural call URL.
address*
String
The public address of the user.
page
String
The page number that the user wants to fetch.
sortOrder
String
The transaction sorting order. asc or desc. By default, desc.
https://api.expand.network/chain/getusertransactions?address=0xee226379dB83CfFC681495730c11fDDE79BA4c0C&page=1420&sortOrder=asc&chainId=56
/sendtransaction
Send transaction on the chain.
POST
https://api.expand.network/chain/sendtransaction
Request Body
{
"chainId" : "56",
"rawTransaction": "0xf86f048433918fbe830493e0949b79d6dfe4650d70f35dbb80f7d1ec0cf7f823fd87038d7ea4c6800084022794382da0c9bd6b5c7e18a258b04039d524a3e1382ec0f522d160dc027428933f520b6868a07332736f1df297842299230820626f1fc5b8d4cdd602ade55e3ba02c63e756ce"
}
/decodetransaction
Get the decoded transaction for the provided raw transaction.
POST
https://api.expand.network/chain/decodetransaction
Request Body
{
"chainId": "56",
"rawTransaction": "0xf86a80843b9aca00830a3d8794a67e9b68c41b0f26184d64c26e0b2b81466e599485e8d4a51000808193a0d10d1098d97c6ee39ef89aeccfce05e5c736da024f5a6d9973fb0cfffd585e95a006117e1c44a882403df404cd8509c5bc7f8bd0f9425d306c46c6642d0ebb3f82"
}
Last updated