Base
/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=0xf8fdd0c01e286e1f692f1581e155bafe4896ef17&chainId=8453
{
"status": 200,
"msg": "success",
"data": {
"balance": "7710580086784116"
}
}
/getblock
Get details of a block.
GET
https://api.expand.network/chain/getblock
Query Parameters
https://api.expand.network/chain/getblock?chainId=8453&blockNumber=6283173
{
"status": 200,
"msg": "success",
"data": {
"difficulty": "0",
"gasLimit": 30000000,
"gasUsed": 918397,
"hash": "0x97250c54e310eb29a30b7ab4184b1cce9e466e7063b5590d52b73709e0bb230e",
"miner": "0x4200000000000000000000000000000000000011",
"nonce": "0x0000000000000000",
"number": 6283173,
"parentHash": "0xed86a845409a882270d4512487b7dafdfe91157da6d1e6c50d738de5a4a3ae92",
"size": 4031,
"timestamp": 1699355693,
"totalDifficulty": "0",
"transactions": [
"0xefd80cb6f1e2b08a00ae403b9c07db6722c9dd7e98498c7e8e658a20c28f9b44",
"0x56bda2ad97b7dc3609c97a5bfff3837d3b5394104d28d16c9e7a58b6d87dfb89",
"0x88b6a08eea996e17dc67d917fde9cb4286163ee40a1a93a72458f88d0dde6535",
"0xf9e572807b753ee98330eb84b7db4b6c5a14bcbb9966dd11e08b0af73a52b280",
"0x43996c7f898e15d08d2157a0d4ed856a92c073c3c4752c95ae0f1cd8f3698a8f",
"0x73d955224527330ef12cac53196ae3708a0d8feef0184474266c3a6078205e35"
],
"transactionsRoot": "0xb5bde09f63711b915471936e273ed18b8dc7d6038ce053fe629ae82a66133bff",
"uncles": []
}
}
/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=8453
{
"status": 200,
"msg": "success",
"data": {
"gasPrice": "100000061"
}
}
/getstorage
Get data stored in the given slot.
GET
https://api.expand.network/chain/getstorage
Query Parameters
https://api.expand.network/chain/getstorage?chainId=8453&address=0xCA6f5B49967B492FEE81cA9C92a63a98903DD965
{
"status": 200,
"msg": "success",
"data": {
"data": "0x0000000000000000000000007dbc67df4d4ea21420b1baa077028d2c1cca7399"
}
}
/gettransaction
Get details of a transaction.
GET
https://api.expand.network/chain/gettransaction
Query Parameters
https://api.expand.network/chain/gettransaction?chainId=8453&transactionHash=0xcf15634c154cb70b8e02268eedd58d4949312414f796ca3296eebe07dc94ffb4
{
"status": 200,
"msg": "success",
"data": {
"hash": "0xcf15634c154cb70b8e02268eedd58d4949312414f796ca3296eebe07dc94ffb4",
"transactionStatus": true,
"blockNumber": "6283395",
"timestamp": null,
"from": "0x2c40a57BC2E05eBcd00C2c007097f838c7b3a115",
"to": "0x10d16248bED1E0D0c7cF94fFD99A50c336c7Bcdc",
"value": "264853642455711",
"transactionFees": "27221958120",
"gas": "545832",
"gasPrice": "58632",
"input": "0x2d62fc1a000000000000000000000000000000000000000000000000000000000000006a000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000034ac8b7d0000000000000000000000000000000000000000000000000000000034691f45000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000001e00002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000068c7abb8b1c3d1ce467e28265770f3a7ecf3265400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000142c40a57bc2e05ebcd00c2c007097f838c7b3a11500000000000000000000000000000000000000000000000000000000000000000000000000000000000000142c40a57bc2e05ebcd00c2c007097f838c7b3a115000000000000000000000000",
"nonce": 7,
"network": null
}
}
/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
https://api.expand.network/chain/portfolio?chainId=8453&address=0xA5af143fd6f6093FDcF6D51d3641F08eaa07d53f&availableOnly=true
{
"status": 200,
"msg": "success",
"data": {
"native": "3975672043073686",
"evmTokens": [
{
"name": "The Doge NFT",
"symbol": "DOG",
"decimals": "18",
"address": "0xafb89a09d82fbde58f18ac6437b3fc81724e4df6",
"balance": "10000000000000000000",
"assetType": "ERC20",
"USDPrice": "0.013040102445834898"
}
]
}
}
/sendtransaction
Send transaction on the chain.
POST
https://api.expand.network/chain/sendtransaction
Request Body
{
"chainId": "8453",
"rawTransaction": "0xf86a80830f4272830a3d8794a67e9b68c41b0f26184d64c26e0b2b81466e5994843b9aca00808302948ca0e073bcaa02ab49f019278be707e3e50433ac7ae6107649a8b1cbdbc368e9482ea05ba36d559c5b70ffa289f90a572adc0863c46fdd067c40c2f37b9ea666fcc8e7"
}
{
"status": 200,
"msg": "success",
"data": {
"chainId": "8453",
"transactionHash": "0x2e5309f53a8c11841afc88c12c099e5c5c59271379fa3cc65df863fa18a64a60"
}
}