Cronos
/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=0xc9219731ADFA70645Be14cD5d30507266f2092c5&chainId=25
{
"status": 200,
"msg": "success",
"data": {
"balance": "13801454182161805889091571"
}
}
/getblock
Get details of a block.
GET
https://api.expand.network/chain/getblock
Query Parameters
https://api.expand.network/chain/getblock?blockNumber=2525553&chainId=25
{
"status": 200,
"msg": "success",
"data": {
"difficulty": "0",
"gasLimit": 10000000,
"gasUsed": 2823984,
"hash": "0xfdd51808f0b55519c1ba374b100ab795f249b60d3a67d5ab68a33f7fd1ebc4c8",
"miner": "0x0780aDEF7832a7F7682B757a5ec5Bd9fe7C38B4B",
"nonce": "0x0000000000000000",
"number": 2525553,
"parentHash": "0xa3d13004390de130e542c464c29b30ee856d4855bd347105bd6001dcab9d2f5f",
"size": 11545,
"timestamp": 1651114167,
"totalDifficulty": "0",
"transactions": [
"0x4c7b15d42b15820dc918b65c030f19fd0b199149ab20dda0bd0abf797bb77728",
"0x35d936dbaf371448e9cb2aee69c6c0352f456dde1cc827c6dfd8512dfa31fac7",
"0x96c896e335fa9bcd12d16d27382b79b7c753d6adb65f992359a54bcc264c5f4b",
"0xa6db56a022883064fcbce511518a4401c1c2874800d3e441704f33404ff1f931",
"0x291f0747cbbb45222315a7331cedffce35ea240665099c7dbbc366de353b59ff",
"0xa6dc794286fedd68ddb3fc45496716056cf42a188d600d7bae8b0fe25b5b4a44",
"0xb27722770809666076127d15ae30867104bd31872456c47ba137610703a3761d",
"0xb369bcb4b8f591beb4860730ed140fbc7e54b41176b1e6357e8742627e03fb21",
"0x997c1c3b3ddded4af58c88111c0a36472bd5544b88deb75ae8ed3fd882a84934",
"0xdc439a07935e6b7aed6d08002a6bd8c4d0d7668acd8e960ab4f1f184af0f91a5",
"0x137059d3dabbbbdbbb4ea1ef400784409475e7f0f9a974f267986906137196e9",
"0x0c00c101fa360aeeae37a76a31ffc90ba1306c4380362327e802f05919110170",
"0x352d20a87b81423ce535013a62e7f1d7f20e40221a5cd65bb573778b7db9ce23",
"0x272eb7030f529fe346ac3265707d9bff23f03163a870ac9651129db7db07888a",
"0x3b7af780b386e9bf734e9a8d08fe560ab43b936709eed07b4ac90f7c36a57686",
"0x6fc75fc922e13597977b544dac4746a9c77d35935bb61919f074eae718a3e210"
],
"transactionsRoot": "0x250001957a7bc26b572ef8f3c1e5af9abfa709e97866f6ca5d18579bbfa483e1",
"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=25
{
"status": 200,
"msg": "success",
"data": {
"gasPrice": "4821774518679"
}
}
/getstorage
Get data stored in the given slot.
GET
https://api.expand.network/chain/getstorage
Query Parameters
https://api.expand.network/chain/getstorage?chainId=25&address=0x90BCF206f9a5D5D2F96f9906e612985BFB43Cf79
{
"status": 200,
"msg": "success",
"data": {
"data": "0x5649502050696e6b2050616e7468657200000000000000000000000000000020"
}
}
/gettransaction
Get details of a transaction.
GET
https://api.expand.network/chain/gettransaction
Query Parameters
https://api.expand.network/chain/gettransaction?chainId=25&transactionHash=0xba7628bfd2adb2c7d9bb49df7bb045497f52d3036059dd1c38e0535ce8f3827c
{
"status": 200,
"msg": "success",
"data": {
"hash": "0xba7628bfd2adb2c7d9bb49df7bb045497f52d3036059dd1c38e0535ce8f3827c",
"transactionStatus": null,
"blockNumber": 6744761,
"timestamp": null,
"from": "0x4684FAc17483022d5c328F330dedeaC1c7Ba4657",
"to": "0x90BCF206f9a5D5D2F96f9906e612985BFB43Cf79",
"value": "0",
"transactionFees": "219620697366316060",
"gas": 45524,
"gasPrice": "4824283836357",
"input": "0x0c1c972a",
"nonce": 95,
"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=25&address=0xA14d3599F898B070d62dd717839a042A22C9cb9E&availableOnly=true
{
"status": 200,
"msg": "success",
"data": {
"native": "27391964755979697675",
"evmTokens": [
{
"name": "SHIBA INU",
"symbol": "SHIB",
"decimals": "18",
"address": "0xbed48612bc69fa1cab67052b42a95fb30c1bcfee",
"balance": "20026405034480539898252732",
"assetType": "ERC20",
"USDPrice": "0.000030714136548755"
},
{
"name": "Tether USD",
"symbol": "USDT",
"decimals": "6",
"address": "0x66e428c3f67a68878562e79a0234c1f83c208770",
"balance": "430424546",
"assetType": "ERC20",
"USDPrice": "0.99574956910171"
},
{
"name": "Dogelon",
"symbol": "ELON",
"decimals": "18",
"address": "0x02dccaf514c98451320a9365c5b46c61d3246ff3",
"balance": "396568549975763947625755127",
"assetType": "ERC20",
"USDPrice": "3.49822794119e-7"
},
{
"name": "USD Coin",
"symbol": "USDC",
"decimals": "6",
"address": "0xc21223249ca28397b4b6541dffaecc539bff0c59",
"balance": "138012765",
"assetType": "ERC20",
"USDPrice": "1"
}
]
}
}
/sendtransaction
Send transaction on the chain.
POST
https://api.expand.network/chain/sendtransaction
Request Body
{
"chainId" : "25",
"rawTransaction": "0xf86f048433918fbe830493e0949b79d6dfe4650d70f35dbb80f7d1ec0cf7f823fd87038d7ea4c6800084022794382da0c9bd6b5c7e18a258b04039d524a3e1382ec0f522d160dc027428933f520b6868a07332736f1df297842299230820626f1fc5b8d4cdd602ade55e3ba02c63e756ce"
}
{
"status": 200,
"msg": "success",
"data": {
"chainId" : "25",
"transactionHash": "0x8375c5eedd17609292cecc051c18e180fa970b32a77011c48d3725e45e46e7b3"
}
}
/decodetransaction
Get the decoded transaction for the provided raw transaction.
POST
https://api.expand.network/chain/decodetransaction
Request Body
{
"chainId": "25",
"rawTransaction": "0xf86a8086043842816f20830a3d8794f73ee0e06a1b8ec3a7ff860d766e75f3eea7b985843b9aca008056a0ebe8cc67db282ad618a9f5800fbaf03198674c9ad99bae574eabf13a3b2ce214a079551f134b3e5b04910c8328f64253596a25bc4db4a2c632e46cc5c9cb847ec0"
}
{
"status": 200,
"msg": "success",
"data": {
"parsedTx": {
"nonce": 0,
"gasPrice": {
"type": "BigNumber",
"hex": "0x043842816f20"
},
"gasLimit": {
"type": "BigNumber",
"hex": "0x0a3d87"
},
"to": "0xF73eE0e06a1B8Ec3A7Ff860D766E75f3EEA7b985",
"value": {
"type": "BigNumber",
"hex": "0x3b9aca00"
},
"data": "0x",
"chainId": 25,
"v": 86,
"r": "0xebe8cc67db282ad618a9f5800fbaf03198674c9ad99bae574eabf13a3b2ce214",
"s": "0x79551f134b3e5b04910c8328f64253596a25bc4db4a2c632e46cc5c9cb847ec0",
"from": "0x6Fb447Ae94F5180254D436A693907a1f57696900",
"hash": "0x6026a99a963024d9aad9e1ba7d52a30c2ad93c824e68f3213e852d507e669fff",
"type": null
},
"assetChanges": {
"from": "0x6Fb447Ae94F5180254D436A693907a1f57696900",
"to": "0xF73eE0e06a1B8Ec3A7Ff860D766E75f3EEA7b985",
"value": {
"type": "BigNumber",
"hex": "0x3b9aca00"
}
}
}
}