Arbitrum
/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?chainId=42161&blockNumber=218277470&address=0xCaf67E620a5a5306C31B620D6b1f51c2883131b2&tokenAddress=0xE2035f04040A135c4dA2f96AcA742143c57c79F9
{
"status": 200,
"msg": "success",
"data": {
"balance": "4000000000000000000"
}
}
/getblock
Get details of a block.
GET
https://historicallp.api.expand.network/chain/getblock
Query Parameters
https://historicallp.api.expand.network/chain/getblock?chainId=42161
{
"status": 200,
"msg": "success",
"data": {
"blocks": [
{
"baseFeePerGas": 24675000,
"difficulty": "1",
"extraData": "0xbeb80ea936eff318a9f6419979346e8840c403953a03c47c0c716cd3d4a386cd",
"gasLimit": 1125899906842624,
"gasUsed": 630424,
"hash": "0x9a427ab93ffda8158a8ee33edc80f51f8f7023a277b698a7c24838e477a1c2de",
"l1BlockNumber": "0xc1b210",
"logsBloom": "0x00000000000004000000000000000000000000000000400000400000004000440400000400000000008000008000000000004000040000000020000000200010000000010000000400000008400010000000000000000000000000000000800000000000020000000001000400000800000000080000000000080010000060000000000020000000010000000000000008000000000000000000000001000000020000000000000200000000000000000000000102000100800000000000400000000002220000000000200020000000000200040000000000004000000020000010000000020008000090000400000010000000040000008000008002400800",
"miner": "0xA4b000000000000000000073657175656e636572",
"mixHash": "0x000000000001d00b00000000012f7ed000000000000000140000000000000000",
"nonce": "0x0000000000172a4d",
"number": 212196228,
"parentHash": "0x52ecf9eef1cb336736b2d8a9eff63ca01f9346772593d62f7e695913b4418592",
"receiptsRoot": "0x6207f418b4659320b47e7119e3dd00fad94b8faaa236d276efb12e97ab338e8e",
"sendCount": "0x1d00b",
"sendRoot": "0xbeb80ea936eff318a9f6419979346e8840c403953a03c47c0c716cd3d4a386cd",
"size": 2460,
"timestamp": 1715951104,
"totalDifficulty": "189988412",
"transactions": [
{
"chainId": "42161",
"hash": "0x54705762724d33219341874649d2284f2c134dbf42bc4c1efd02c242c9f09997",
"transactionStatus": true,
"blockNumber": "212196228",
"timestamp": null,
"from": "0x00000000000000000000000000000000000A4B05",
"to": "0x00000000000000000000000000000000000A4B05",
"value": "0",
"transactionFees": "0",
"gas": "0",
"gasPrice": "0",
"input": "0x6bf6a42d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000012f7ed0000000000000000000000000000000000000000000000000000000000ca5db840000000000000000000000000000000000000000000000000000000000000001",
"nonce": 0,
"type": 106,
"network": null,
"v": "0x0",
"r": "0x0",
"s": "0x0",
"yParity": null,
"transactionIndex": null,
"accessList": null,
"maxFeePerGas": null,
"maxPriorityFeePerGas": null,
"logs": []
}
],
"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=42161
{
"status": 200,
"msg": "success",
"data": {
"gasPrice": "100000000"
}
}
/getstorage
Get data stored in the given slot.
GET
https://api.expand.network/chain/getstorage
Query Parameters
https://api.expand.network/chain/getstorage?chainId=42161&address=0x825d6bc6e67C255c2a053bbd7c6100eEc4025656
{
"status": 200,
"msg": "success",
"data": {
"data": "0x0000000000000000000000000547f5965b015d8f6c92e6bcda6ca040567fd238"
}
}
/gettransaction
Get details of a transaction.
GET
https://api.expand.network/chain/gettransaction
Query Parameters
https://api.expand.network/chain/gettransaction?chainId=42161&transactionHash=0x28c980e3d75a98d29269bdf88d6e375d1657e96c3a1412e5347aa84f03542896
{
"status": 200,
"msg": "success",
"data": {
"chainId": "42161",
"hash": "0x28c980e3d75a98d29269bdf88d6e375d1657e96c3a1412e5347aa84f03542896",
"transactionStatus": true,
"blockNumber": "56842886",
"timestamp": null,
"from": "0x0547F5965B015D8F6C92E6BCDA6Ca040567Fd238",
"to": "0x825d6bc6e67C255c2a053bbd7c6100eEc4025656",
"value": "0",
"transactionFees": "30549500000000",
"gas": "577321",
"gasPrice": "100000000",
"input": "0x52f7c98800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"nonce": 5,
"type": 2,
"network": null,
"v": "0x1",
"r": "0x55e760ace11a7e71f292313fe02122b2dd5ab46213f4bf27c50296007566466f",
"s": "0x55c8490098c17e523011ced8605dd5f387bf8db5d47cff67e229022007d0d3e5",
"yParity": "0x1",
"transactionIndex": 1,
"accessList": [],
"maxFeePerGas": "100000000",
"maxPriorityFeePerGas": "100000000",
"logs": []
}
}
/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=42161&address=0x299d68A01B4c9C550c0CCDCa8EE3C616d319214E&availableOnly=true
{
"status": 200,
"msg": "success",
"data": {
"native": "728003934801000",
"evmTokens": [
{
"name": "Global Token",
"symbol": "GBL",
"decimals": "18",
"address": "0xc14a7747cfec02cfea62e72bb93538de6b2078e6",
"balance": "39515873923087022849",
"assetType": "ERC20",
"USDPrice": "7.912071535453639"
},
{
"name": "Tether USD",
"symbol": "USDT",
"decimals": "6",
"address": "0xfd086bc7cd5c481dcc9c85ebe478a1c0b69fcbb9",
"balance": "23432910",
"assetType": "ERC20",
"USDPrice": "1.0000000000000002"
}
]
}
}
/sendtransaction
Send transaction on the chain.
POST
https://api.expand.network/chain/sendtransaction
Request Body
{
"chainId" : "42161",
"rawTransaction": "0xf86f048433918fbe830493e0949b79d6dfe4650d70f35dbb80f7d1ec0cf7f823fd87038d7ea4c6800084022794382da0c9bd6b5c7e18a258b04039d524a3e1382ec0f522d160dc027428933f520b6868a07332736f1df297842299230820626f1fc5b8d4cdd602ade55e3ba02c63e756ce"
}
{
"status": 200,
"msg": "success",
"data": {
"chainId" : "42161",
"transactionHash": "0x8375c5eedd17609292cecc051c18e180fa970b32a77011c48d3725e45e46e7b3"
}
}
/decodetransaction
Get the decoded transaction for the provided raw transaction.
POST
https://api.expand.network/chain/decodetransaction
Request Body
{
"chainId": "42161",
"rawTransaction": "0xf86a808405f5e100830c885d946fb447ae94f5180254d436a693907a1f57696900839896808083014986a0ef42c905354ab2e801e5d82dde6ac0524cc508d52efcf09e142f10d353cbebd9a04e74de901d830125391974592395e1c605b1526585c5d69154e4b83b81d8cc50"
}
{
"status": 200,
"msg": "success",
"data": {
"parsedTx": {
"nonce": 0,
"gasPrice": {
"type": "BigNumber",
"hex": "0x05f5e100"
},
"gasLimit": {
"type": "BigNumber",
"hex": "0x0c885d"
},
"to": "0x6Fb447Ae94F5180254D436A693907a1f57696900",
"value": {
"type": "BigNumber",
"hex": "0x989680"
},
"data": "0x",
"chainId": 42161,
"v": 84358,
"r": "0xef42c905354ab2e801e5d82dde6ac0524cc508d52efcf09e142f10d353cbebd9",
"s": "0x4e74de901d830125391974592395e1c605b1526585c5d69154e4b83b81d8cc50",
"from": "0xa2e73C17F437688946993F683930E3Fd42Dd4F8C",
"hash": "0x1f625c983d622282e4493a943da892bdddd8c164026e67a5f5ac9f175ded0139",
"type": null
},
"assetChanges": {
"from": "0xa2e73C17F437688946993F683930E3Fd42Dd4F8C",
"to": "0x6Fb447Ae94F5180254D436A693907a1f57696900",
"value": {
"type": "BigNumber",
"hex": "0x989680"
}
}
}
}
Last updated