Mantle
/getbalance
Get the balance of the given token in the requested public address.
GET
https://api.expand.network/chain/getbalance
Query Parameters
rpc
String
Remote procedural call URL
blockNumber
String
Block number for which the balance needs to be retrieved.
By default it will pick the latest block number when not specified.
address*
String
The public address to get the balance of.
tokenAddress
String
The address of token to get the balance of.
timestamp
String
The timestamp of the block number. Note- When both a timestamp and a block number are provided, the timestamp will take precedence.
https://api.expand.network/chain/getbalance?address=0x88a1493366D48225fc3cEFbdae9eBb23E323Ade3&chainId=5000
/getblock
Get details of a block.
GET
https://historicallp.api.expand.network/chain/getblock
Query Parameters
https://historicallp.api.expand.network/chain/getblock?blockNumber=74145559&chainId=5000
/gettransaction
Get details of a transaction.
GET
https://api.expand.network/chain/gettransaction
Query Parameters
https://api.expand.network/chain/gettransaction?transactionHash=0xeebf66908b89a2460226302e4807dd44b7f74cf13089692fda5d71e18a6263e3&chainId=5000
/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=5000
/getstorage
Get data stored in the given slot.
GET
https://api.expand.network/chain/getstorage
Query Parameters
https://api.expand.network/chain/getstorage?address=0x6839f0eB2a4f323aC616b99BA01547dE592BC965
/decodetransaction
Get the decoded transaction for the provided raw transaction.
POST
https://api.expand.network/chain/decodetransaction
Request Body
{
"chainId": "5000",
"rawTransaction": "0xf86a808401312d00830392fa94747b11e5aacef79cd78c78a8436946b00de30b97843b9aca0080822733a02af535667ba70c4d56dc5b508af37120eb46543de879e184746cb713f7ad254fa00c9d4f0e8b736d8abb4c2038009539bf72643d35a84e8e6b55e354f253d11bec"
}
/sendtransaction
Send transaction on the chain.
POST
https://api.expand.network/chain/sendtransaction
Request Body
{
"chainId": "5000",
"rawTransaction": "0xf86c018401312d008501dcd6500094747b11e5aacef79cd78c78a8436946b00de30b97843b9aca0080822739a09f0a6bbf16151a05296e7aea4b16451eeb046fe42c8839f65ed158213e4de30ba0052520a536cf7a9293bfa691414b1bfc21bfc59d6190c6f4ca98e3ba91132072"
}
Last updated