Fantom
/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=0xCAa24193AAc383647D4a9a54F57a96d287Cf9A03&chainId=250
{
"status": 200,
"msg": "success",
"data": {
"balance": "285400277601313656"
}
}
/getblock
Get details of a block.
GET
https://api.expand.network/chain/getblock
Query Parameters
https://api.expand.network/chain/getblock?blockNumber=2525553&chainId=250
{
"status": 200,
"msg": "success",
"data": {
"difficulty": "0",
"gasLimit": 281474976710655,
"gasUsed": 0,
"hash": "0x00000dd20000126f9a70f35d0f96bdcdc0f039637bb62bfc984b41104a0f047e",
"miner": "0x0000000000000000000000000000000000000000",
"nonce": "0x0000000000000000",
"number": 2525553,
"parentHash": "0x00000dd200001261a6c479ed5a7ee9f1172b8610f16d31f2876bce31f20ee790",
"size": 546,
"timestamp": 1614631199,
"totalDifficulty": "0",
"transactions": [],
"transactionsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
"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=250
{
"status": 200,
"msg": "success",
"data": {
"gasPrice": "40210316554"
}
}
/getstorage
Get data stored in the given slot.
GET
https://api.expand.network/chain/getstorage
Query Parameters
https://api.expand.network/chain/getstorage?chainId=250&address=0xBfc82f3526874B9c3c1b1E7afE5EB293aC77011C
{
"status": 200,
"msg": "success",
"data": {
"data": "0x4c6f636b656420524156452d46544d204c500000000000000000000000000024"
}
}
/gettransaction
Get details of a transaction.
GET
https://api.expand.network/chain/gettransaction
Query Parameters
https://api.expand.network/chain/gettransaction?chainId=250&transactionHash=0x3d30e4e6dea4306b87c642f882617d5d4ef7dec10f9cea7aaf43f549dcfd817e
{
"status": 200,
"msg": "success",
"data": {
"hash": "0x3d30e4e6dea4306b87c642f882617d5d4ef7dec10f9cea7aaf43f549dcfd817e",
"transactionStatus": null,
"blockNumber": 54757499,
"timestamp": null,
"from": "0x3e522051A9B1958Aa1e828AC24Afba4a551DF37d",
"to": null,
"value": "0",
"transactionFees": "249279712000000000",
"gas": 5665448,
"gasPrice": "44000000000",
"input": "0x60c060405269152d02c7e14af6800000600c55600d805460ff191690553480156200002957600080fd5b506040516200458a3803806200458a8339810160408190526200004c9162000185565b6040518060400160405280601281526020017104c6f636b656420524156452d46544d204c560741b815250604051806040016040528060058152602001646c5241564560d81b8152508160009081620000a6919062000262565b506001620000b5828262000262565b5050506001600160a01b03828116608052811660a081905260405163095ea7b360e01b815260048101919091527107ebba4e29a7f867a9491f2325000000000060248201527388888a335b1f65a79ec56a610d865b8b25b6060b9063095ea7b3906044016020604051808303816000875af115801562000139573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200015f91906200032e565b50505062000359565b80516001600160a01b03811681146200018057600080fd5b919050565b600080604083850312156200019957600080fd5b620001a48362000168565b9150620001b46020840162000168565b90509250929050565b634e487b7160e01b600052604160045260246000fd5b600181811c90821680620001e857607f821691505b6020821081036200020957634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200025d57600081815260208120601f850160051c81016020861015620002385750805b601f850160051c820191505b81811015620002595782815560010162000244565b5050505b505050565b81516001600160401b038111156200027e576200027e620001bd565b62000296816200028f8454620001d3565b846200020f565b602080601f831160018114620002ce5760008415620002b55750858301515b600019600386901b1c1916600185901b17855562000259565b600085815260208120601f198616915b82811015620002ff57888601518255948401946001909101908401620002de565b50858210156200031e5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6000602082840312156200034157600080fd5b815180151581146200035257600080fd5b9392505050565b60805160a0516141be620003cc60003960008181610c130152818161132a0152818161148c0152818161189a0152611961015260008181610b6b0152818161145301528181611a9a01528181611b9701528181611c1901528181611c9b01528181612411015261249701526141be6000f3fe6080604052600436106101ac5760003560e01c80634fb50eea116100ec578063a22cb4651161008a578063c87b56dd11610064578063c87b56dd1461048b578063d2643d05146104ab578063d925f362146104cb578063e985e9c5146104eb57600080fd5b8063a22cb4651461042b578063b88d4fde1461044b578063b9e8ce2c1461046b57600080fd5b806370a08231116100c657806370a08231146103c35780637328896f146103e357806385245a06146103f657806395d89b411461041657600080fd5b80634fb50eea146103605780636198e339146103905780636352211e146103a357600080fd5b80631338736f1161015957806323b872dd1161013357806323b872dd146102e05780632f745c591461030057806342842e0e146103205780634f6ccce71461034057600080fd5b80631338736f146102a357806318160ddd146102b657806318264f33146102cb57600080fd5b8063095ea7b31161018a578063095ea7b3146102405780630962ef791461026257806310314ae51461027557600080fd5b806301ffc9a7146101b157806306fdde03146101e6578063081812fc14610208575b600080fd5b3480156101bd57600080fd5b506101d16101cc3660046135f8565b610534565b60405190151581526020015b60405180910390f35b3480156101f257600080fd5b506101fb610590565b6040516101dd919061366c565b34801561021457600080fd5b5061022861022336600461367f565b610622565b6040516001600160a01b0390911681526020016101dd565b34801561024c57600080fd5b5061026061025b3660046136ad565b610649565b005b61026061027036600461367f565b61077f565b34801561028157600080fd5b5061029561029036600461367f565b610977565b6040519081526020016101dd565b6102606102b13660046136d9565b610a27565b3480156102c257600080fd5b50600854610295565b3480156102d757600080fd5b50610260610d8c565b3480156102ec57600080fd5b506102606102fb3660046136fb565b610e9e565b34801561030c57600080fd5b5061029561031b3660046136ad565b610f25565b34801561032c57600080fd5b5061026061033b3660046136fb565b610fcd565b34801561034c57600080fd5b5061029561035b36600461367f565b610fe8565b34801561036c57600080fd5b5061038061037b36600461367f565b61108c565b6040516101dd949392919061373c565b61026061039e36600461367f565b611173565b3480156103af57600080fd5b506102286103be36600461367f565b6115c8565b3480156103cf57600080fd5b506102956103de3660046137b2565b61162d565b6102606103f136600461367f565b6116c7565b34801561040257600080fd5b5061029561041136600461367f565b611f47565b34801561042257600080fd5b506101fb612018565b34801561043757600080fd5b506102606104463660046137dd565b612027565b34801561045757600080fd5b50610260610466366004613845565b612036565b34801561047757600080fd5b506102606104863660046137b2565b6120c4565b34801561049757600080fd5b506101fb6104a636600461367f565b612216565b3480156104b757600080fd5b506102956104c63660046136d9565b6123b6565b3480156104d757600080fd5b506102956104e636600461367f565b61240c565b3480156104f757600080fd5b506101d1610506366004613925565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f780e9d6300000000000000000000000000000000000000000000000000000000148061058a575061058a82612545565b92915050565b60606000805461059f90613953565b80601f01602080910402602001604051908101604052809291908181526020018280546105cb90613953565b80156106185780601f106105ed57610100808354040283529160200191610618565b820191906000526020600020905b8154815290600101906020018083116105fb57829003601f168201915b5050505050905090565b600061062d82612628565b506000908152600460205260409020546001600160a01b031690565b6000610654826115c8565b9050806001600160a01b0316836001600160a01b0316036106e25760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f720000000000000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b336001600160a01b03821614806106fe57506106fe8133610506565b6107705760405162461bcd60e51b815260206004820152603d60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c00000060648201526084016106d9565b61077a838361268c565b505050565b6000818152600a6020908152604091829020825160e08101845281546001600160a01b0316815260018201549281019290925260028101549282019290925260038201546060820181905260048301546080830152600583015460ff16151560a083015260069092015460c082015290421061083d5760405162461bcd60e51b815260206004820152600e60248201527f546f6b656e20756e6c6f636b656400000000000000000000000000000000000060448201526064016106d9565b610846826115c8565b6001600160a01b0316336001600160a01b0316146108a65760405162461bcd60e51b815260206004820152601960248201527f4e6f7420746865206f776e6572206f6620746865206c6f636b0000000000000060448201526064016106d9565b6000828152600b602052604090205460ff16156109055760405162461bcd60e51b815260206004820181905260248201527f416c726561647920636c61696d656420666f72207468697320746f6b656e496460448201526064016106d9565b60008160c00151826040015161091b91906139d5565b905060006109294783613a10565b6000858152600b6020526040808220805460ff1916600117905551919250339183156108fc0291849190818181858888f19350505050158015610970573d6000803e3d6000fd5b5050505050565b6000818152600a60209081526040808320815160e08101835281546001600160a01b0316815260018201549381019390935260028101549183018290526003810154606084015260048101546080840152600581015460ff16151560a08401526006015460c0830181905283916109ee91906139d5565b905060006109fc4783613a10565b6000868152600b602052604090205490915060ff16610a1b5780610a1e565b60005b95945050505050565b6000610a3383836123b6565b9050600c548110610aac5760405162461bcd60e51b815260206004820152603c60248201527f5468652070726f6772616d2068617320656e6465642c206f7220796f7520617260448201527f65206c6f636b696e6720746f6f206d75636820524156452f46544d2e0000000060648201526084016106d9565b610abb600c6301dfe2006139d5565b821015610b305760405162461bcd60e51b815260206004820152602260248201527f596f75206d757374206c6f636b20666f72206174206c656173742031206d6f6e60448201527f746800000000000000000000000000000000000000000000000000000000000060648201526084016106d9565b6040517f23b872dd000000000000000000000000000000000000000000000000000000008152336004820152306024820152604481018490527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906323b872dd906064016020604051808303816000875af1158015610bbc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610be09190613a27565b506040517fb6b55f25000000000000000000000000000000000000000000000000000000008152600481018490526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063b6b55f25906024016020604051808303816000875af1158015610c64573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c889190613a44565b905081600c54610c989190613a5d565b600c556000610ca74233613a70565b90506040518060e00160405280336001600160a01b031681526020018381526020018481526020018542610cdb9190613a70565b8152602080820187905260016040808401829052600c546060948501526000868152600a8452819020855181547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b03909116178155928501519183019190915583015160028201559082015160038201556080820151600482015560a082015160058201805460ff191691151591909117905560c0909101516006909101556109703382612712565b733e522051a9b1958aa1e828ac24afba4a551df37d3314610def5760405162461bcd60e51b815260206004820152601360248201527f4c504c6f636b65723a204e6f74206f776e65720000000000000000000000000060448201526064016106d9565b600d805460ff19166001179055600c546040517f23b872dd00000000000000000000000000000000000000000000000000000000815230600482015233602482015260448101919091527388888a335b1f65a79ec56a610d865b8b25b6060b906323b872dd906064016020604051808303816000875af1158015610e77573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e9b9190613a27565b50565b610ea833826128c3565b610f1a5760405162461bcd60e51b815260206004820152602d60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201527f72206f7220617070726f7665640000000000000000000000000000000000000060648201526084016106d9565b61077a838383612941565b6000610f308361162d565b8210610fa45760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201527f74206f6620626f756e647300000000000000000000000000000000000000000060648201526084016106d9565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b61077a83838360405180602001604052806000815250612036565b6000610ff360085490565b82106110675760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201527f7574206f6620626f756e6473000000000000000000000000000000000000000060648201526084016106d9565b6008828154811061107a5761107a613a83565b90600052602060002001549050919050565b6110d76040518060e0016040528060006001600160a01b0316815260200160008152602001600081526020016000815260200160008152602001600015158152602001600081525090565b6000828152600a60209081526040808320600b9092528220548291829160ff1661110087611f47565b61110988610977565b6040805160e08101825285546001600160a01b03168152600186015460208201526002860154918101919091526003850154606082015260048501546080820152600585015460ff16151560a082015260069094015460c085015292989197509550909350915050565b6000818152600a6020908152604091829020825160e08101845281546001600160a01b0316815260018201549281019290925260028101549282019290925260038201546060820181905260048301546080830152600583015460ff16151560a083015260069092015460c0820152904210156112325760405162461bcd60e51b815260206004820152601260248201527f546f6b656e207374696c6c206c6f636b6564000000000000000000000000000060448201526064016106d9565b61123b826115c8565b6001600160a01b0316336001600160a01b03161461129b5760405162461bcd60e51b815260206004820152601960248201527f4e6f7420746865206f776e6572206f6620746865206c6f636b0000000000000060448201526064016106d9565b8060a001516112ec5760405162461bcd60e51b815260206004820152601460248201527f4c6f636b20686173206265656e20636c6f73656400000000000000000000000060448201526064016106d9565b6112f582612bad565b60208101516040517f2e1a7d4d00000000000000000000000000000000000000000000000000000000815260048101919091527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690632e1a7d4d90602401600060405180830381600087803b15801561137657600080fd5b505af115801561138a573d6000803e3d6000fd5b505050507388888a335b1f65a79ec56a610d865b8b25b6060b6001600160a01b03166323b872dd306113bb856115c8565b60408086015190517fffffffff0000000000000000000000000000000000000000000000000000000060e086901b1681526001600160a01b03938416600482015292909116602483015260448201526064016020604051808303816000875af115801561142c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114509190613a27565b507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166323b872dd3061148a856115c8565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166377c7b8fc6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156114e8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061150c9190613a44565b856020015161151b9190613a10565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e086901b1681526001600160a01b03938416600482015292909116602483015260448201526064016020604051808303816000875af1158015611587573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115ab9190613a27565b50506000908152600a60205260409020600501805460ff19169055565b6000818152600260205260408120546001600160a01b03168061058a5760405162461bcd60e51b815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e204944000000000000000060448201526064016106d9565b60006001600160a01b0382166116ab5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f74206120766160448201527f6c6964206f776e6572000000000000000000000000000000000000000000000060648201526084016106d9565b506001600160a01b031660009081526003602052604090205490565b6000818152600a6020908152604091829020825160e08101845281546001600160a01b0316815260018201549281019290925260028101549282019290925260038201546060820181905260048301546080830152600583015460ff16151560a083015260069092015460c08201529042106117855760405162461bcd60e51b815260206004820152600e60248201527f546f6b656e20756e6c6f636b656400000000000000000000000000000000000060448201526064016106d9565b61178e826115c8565b6001600160a01b0316336001600160a01b0316146117ee5760405162461bcd60e51b815260206004820152601960248201527f4e6f7420746865206f776e6572206f6620746865206c6f636b0000000000000060448201526064016106d9565b8060a0015161183f5760405162461bcd60e51b815260206004820152601460248201527f4c6f636b20686173206265656e20636c6f73656400000000000000000000000060448201526064016106d9565b6000816080015182606001516118559190613a5d565b905060006118638242613a5d565b600d5490915060009060ff166118915761188260026301dfe2006139d5565b61188c90836139d5565b611894565b60015b905060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166377c7b8fc6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156118f6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061191a9190613a44565b85602001516119299190613a10565b60208601516040517f2e1a7d4d0000000000000000000000000000000000000000000000000000000081529192506001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001691632e1a7d4d916119989160040190815260200190565b600060405180830381600087803b1580156119b257600080fd5b505af11580156119c6573d6000803e3d6000fd5b505050507388888a335b1f65a79ec56a610d865b8b25b6060b6001600160a01b03166323b872dd306119f7896115c8565b858960400151611a079190613a10565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e086901b1681526001600160a01b03938416600482015292909116602483015260448201526064016020604051808303816000875af1158015611a73573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a979190613a27565b507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166323b872dd30611ad1896115c8565b858960200151611ae19190613a10565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e086901b1681526001600160a01b03938416600482015292909116602483015260448201526064016020604051808303816000875af1158015611b4d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b719190613a27565b50731a05eb736873485655f29a37def8a0aa87f5a4476001600160a01b0316630dede6c47f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316630dfe16816040518163ffffffff1660e01b8152600401602060405180830381865afa158015611bf3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c179190613ab2565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663d21220a76040518163ffffffff1660e01b8152600401602060405180830381865afa158015611c75573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c999190613ab2565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166322be3de16040518163ffffffff1660e01b8152600401602060405180830381865afa158015611cf7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d1b9190613a27565b611d258787613a10565b611d2f9087613a5d565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e087901b1681526001600160a01b03948516600482015293909216602484015215156044830152606482015260006084820181905260a48201523060c48201524260e48201526101040160408051808303816000875af1158015611dbc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611de09190613acf565b50506000828660400151611df49190613a10565b8660400151611e039190613a5d565b6002611e1c611e128686613a10565b6104e69086613a5d565b611e2691906139d5565b611e309190613a70565b90507388888a335b1f65a79ec56a610d865b8b25b6060b6001600160a01b03166323b872dd307387f385d152944689f92ed523e9e5e9bd58ea62ef84878b60400151611e7c9190613a10565b8b60400151611e8b9190613a5d565b611e959190613a70565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e086901b1681526001600160a01b03938416600482015292909116602483015260448201526064016020604051808303816000875af1158015611f01573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f259190613a27565b50505060009485525050600a602052505060409020600501805460ff19169055565b6000818152600a60209081526040808320815160e08101835281546001600160a01b03168152600182015493810193909352600281015491830191909152600381015460608301819052600482015460808401819052600583015460ff16151560a085015260069092015460c08401528391611fc291613a5d565b90506000611fd08242613a5d565b600d5490915060009060ff16611ffe57611fef60026301dfe2006139d5565b611ff990836139d5565b612001565b60015b905061200e816001613a5d565b9695505050505050565b60606001805461059f90613953565b612032338383612c86565b5050565b61204033836128c3565b6120b25760405162461bcd60e51b815260206004820152602d60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201527f72206f7220617070726f7665640000000000000000000000000000000000000060648201526084016106d9565b6120be84848484612d54565b50505050565b7387f385d152944689f92ed523e9e5e9bd58ea62ef33146120e457600080fd5b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482018190526001600160a01b038316916323b872dd91907387f385d152944689f92ed523e9e5e9bd58ea62ef9084906370a0823190602401602060405180830381865afa158015612162573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121869190613a44565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e086901b1681526001600160a01b03938416600482015292909116602483015260448201526064016020604051808303816000875af11580156121f2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120329190613a27565b60606040518061014001604052806101068152602001614083610106913990508061224083612ddd565b604051602001612251929190613af3565b60408051601f198184030181529181526000848152600a6020522060010154909150819061227e90612ddd565b60405160200161228f929190613b9b565b60408051601f198184030181529181526000848152600a602052206003015490915081906122bc90612ddd565b6040516020016122cd929190613c43565b6040516020818303038152906040529050806122f06122eb84610977565b612ddd565b604051602001612301929190613ce7565b60408051601f198184030181529181526000848152600a6020522060020154909150819061232e90612ddd565b60405160200161233f929190613d8b565b6040516020818303038152906040529050600061238c61235e84612ddd565b61236784612e9b565b604051602001612378929190613e34565b604051602081830303815290604052612e9b565b90508060405160200161239f9190613f51565b604051602081830303815290604052915050919050565b6000806123c28461240c565b6123cc9085613a10565b905060006123dc6064600c6139d5565b6123e69083613a10565b90506301dfe2006123f8856002613a10565b61240291906139d5565b610a1e9082613a10565b6000807f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561246d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124919190613a44565b905060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316630902f1ac6040518163ffffffff1660e01b8152600401606060405180830381865afa1580156124f3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125179190613f96565b50915084905082612529836002613a10565b61253391906139d5565b61253d9190613a10565b949350505050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd0000000000000000000000000000000000000000000000000000000014806125d857507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b8061058a57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff0000000000000000000000000000000000000000000000000000000083161461058a565b6000818152600260205260409020546001600160a01b0316610e9b5760405162461bcd60e51b815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e204944000000000000000060448201526064016106d9565b600081815260046020526040902080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b03841690811790915581906126d9826115c8565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6001600160a01b0382166127685760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016106d9565b6000818152600260205260409020546001600160a01b0316156127cd5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016106d9565b6127db600083836001612fee565b6000818152600260205260409020546001600160a01b0316156128405760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016106d9565b6001600160a01b038216600081815260036020908152604080832080546001019055848352600290915280822080547fffffffffffffffffffffffff0000000000000000000000000000000000000000168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000806128cf836115c8565b9050806001600160a01b0316846001600160a01b0316148061291657506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b8061253d5750836001600160a01b031661292f84610622565b6001600160a01b031614949350505050565b826001600160a01b0316612954826115c8565b6001600160a01b0316146129d05760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e657200000000000000000000000000000000000000000000000000000060648201526084016106d9565b6001600160a01b038216612a4b5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f726573730000000000000000000000000000000000000000000000000000000060648201526084016106d9565b612a588383836001612fee565b826001600160a01b0316612a6b826115c8565b6001600160a01b031614612ae75760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e657200000000000000000000000000000000000000000000000000000060648201526084016106d9565b600081815260046020908152604080832080547fffffffffffffffffffffffff00000000000000000000000000000000000000009081169091556001600160a01b038781168086526003855283862080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff01905590871680865283862080546001019055868652600290945282852080549092168417909155905184937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000612bb8826115c8565b9050612bc8816000846001612fee565b612bd1826115c8565b600083815260046020908152604080832080547fffffffffffffffffffffffff00000000000000000000000000000000000000009081169091556001600160a01b0385168085526003845282852080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190558785526002909352818420805490911690555192935084927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b816001600160a01b0316836001600160a01b031603612ce75760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016106d9565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b612d5f848484612941565b612d6b8484848461312f565b6120be5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e746572000000000000000000000000000060648201526084016106d9565b60606000612dea836132d0565b600101905060008167ffffffffffffffff811115612e0a57612e0a613816565b6040519080825280601f01601f191660200182016040528015612e34576020820181803683370190505b5090508181016020015b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff017f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a8504945084612e3e57509392505050565b60608151600003612eba57505060408051602081019091526000815290565b60006040518060600160405280604081526020016140436040913990506000600384516002612ee99190613a70565b612ef391906139d5565b612efe906004613a10565b67ffffffffffffffff811115612f1657612f16613816565b6040519080825280601f01601f191660200182016040528015612f40576020820181803683370190505b509050600182016020820185865187015b80821015612fac576003820191508151603f8160121c168501518453600184019350603f81600c1c168501518453600184019350603f8160061c168501518453600184019350603f8116850151845350600183019250612f51565b5050600386510660018114612fc85760028114612fdb57612fe3565b603d6001830353603d6002830353612fe3565b603d60018303535b509195945050505050565b612ffa848484846133b2565b60018111156130715760405162461bcd60e51b815260206004820152603560248201527f455243373231456e756d657261626c653a20636f6e736563757469766520747260448201527f616e7366657273206e6f7420737570706f72746564000000000000000000000060648201526084016106d9565b816001600160a01b0385166130cd576130c881600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b6130f0565b836001600160a01b0316856001600160a01b0316146130f0576130f0858261343a565b6001600160a01b03841661310c57613107816134d7565b610970565b846001600160a01b0316846001600160a01b031614610970576109708482613586565b60006001600160a01b0384163b156132c5576040517f150b7a020000000000000000000000000000000000000000000000000000000081526001600160a01b0385169063150b7a029061318c903390899088908890600401613fc4565b6020604051808303816000875af19250505080156131c7575060408051601f3d908101601f191682019092526131c491810190613ff6565b60015b61327a573d8080156131f5576040519150601f19603f3d011682016040523d82523d6000602084013e6131fa565b606091505b5080516000036132725760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e746572000000000000000000000000000060648201526084016106d9565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a020000000000000000000000000000000000000000000000000000000014905061253d565b506001949350505050565b6000807a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310613319577a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000830492506040015b6d04ee2d6d415b85acef81000000008310613345576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061336357662386f26fc10000830492506010015b6305f5e100831061337b576305f5e100830492506008015b612710831061338f57612710830492506004015b606483106133a1576064830492506002015b600a831061058a5760010192915050565b60018111156120be576001600160a01b038416156133f8576001600160a01b038416600090815260036020526040812080548392906133f2908490613a5d565b90915550505b6001600160a01b038316156120be576001600160a01b0383166000908152600360205260408120805483929061342f908490613a70565b909155505050505050565b600060016134478461162d565b6134519190613a5d565b6000838152600760205260409020549091508082146134a4576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b6008546000906134e990600190613a5d565b6000838152600960205260408120546008805493945090928490811061351157613511613a83565b90600052602060002001549050806008838154811061353257613532613a83565b600091825260208083209091019290925582815260099091526040808220849055858252812055600880548061356a5761356a614013565b6001900381819060005260206000200160009055905550505050565b60006135918361162d565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b7fffffffff0000000000000000000000000000000000000000000000000000000081168114610e9b57600080fd5b60006020828403121561360a57600080fd5b8135613615816135ca565b9392505050565b60005b8381101561363757818101518382015260200161361f565b50506000910152565b6000815180845261365881602086016020860161361c565b601f01601f19169290920160200192915050565b6020815260006136156020830184613640565b60006020828403121561369157600080fd5b5035919050565b6001600160a01b0381168114610e9b57600080fd5b600080604083850312156136c057600080fd5b82356136cb81613698565b946020939093013593505050565b600080604083850312156136ec57600080fd5b50508035926020909101359150565b60008060006060848603121561371057600080fd5b833561371b81613698565b9250602084013561372b81613698565b929592945050506040919091013590565b6000610140820190506001600160a01b0386511682526020860151602083015260408601516040830152606086015160608301526080860151608083015260a0860151151560a083015260c086015160c083015261379e60e083018615159052565b610100820193909352610120015292915050565b6000602082840312156137c457600080fd5b813561361581613698565b8015158114610e9b57600080fd5b600080604083850312156137f057600080fd5b82356137fb81613698565b9150602083013561380b816137cf565b809150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000806000806080858703121561385b57600080fd5b843561386681613698565b9350602085013561387681613698565b925060408501359150606085013567ffffffffffffffff8082111561389a57600080fd5b818701915087601f8301126138ae57600080fd5b8135818111156138c0576138c0613816565b604051601f8201601f19908116603f011681019083821181831017156138e8576138e8613816565b816040528281528a602084870101111561390157600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b6000806040838503121561393857600080fd5b823561394381613698565b9150602083013561380b81613698565b600181811c9082168061396757607f821691505b6020821081036139a0577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600082613a0b577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b808202811582820484141761058a5761058a6139a6565b600060208284031215613a3957600080fd5b8151613615816137cf565b600060208284031215613a5657600080fd5b5051919050565b8181038181111561058a5761058a6139a6565b8082018082111561058a5761058a6139a6565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600060208284031215613ac457600080fd5b815161361581613698565b60008060408385031215613ae257600080fd5b505080516020909101519092909150565b60008351613b0581846020880161361c565b7f546f6b656e2049440000000000000000000000000000000000000000000000009083019081528351613b3f81600884016020880161361c565b7f3c2f746578743e3c7465787420783d2231302220793d2234302220636c617373600892909101918201527f3d2262617365223e0000000000000000000000000000000000000000000000006028820152603001949350505050565b60008351613bad81846020880161361c565b7f4c6f636b6564204c502028313820646563696d616c73290000000000000000009083019081528351613be781601784016020880161361c565b7f3c2f746578743e3c7465787420783d2231302220793d2236302220636c617373601792909101918201527f3d2262617365223e0000000000000000000000000000000000000000000000006037820152603f01949350505050565b60008351613c5581846020880161361c565b7f456e642054696d652000000000000000000000000000000000000000000000009083019081528351613c8f81600984016020880161361c565b61200e6009828401017f3c2f746578743e3c7465787420783d2231302220793d2238302220636c61737381527f3d2262617365223e000000000000000000000000000000000000000000000000602082015260280190565b60008351613cf981846020880161361c565b7f46544d20526577617264732028313820646563696d616c7329000000000000009083019081528351613d3381601984016020880161361c565b61200e6019828401017f3c2f746578743e3c7465787420783d2231302220793d2238302220636c61737381527f3d2262617365223e000000000000000000000000000000000000000000000000602082015260280190565b60008351613d9d81846020880161361c565b80830190507f5241564520746f2062652072657761726465642028313820646563696d616c7381527f290000000000000000000000000000000000000000000000000000000000000060208201528351613dfe81602184016020880161361c565b7f3c2f746578743e3c2f7376673e0000000000000000000000000000000000000060219290910191820152602e01949350505050565b7f7b226e616d65223a202252617665204c6f636b20230000000000000000000000815260008351613e6c81601585016020880161361c565b7f222c20226465736372697074696f6e223a2022524156452d46544d204c50206c6015918401918201527f6f636b73206561726e205241564520616e64206175746f636f6d706f756e642060358201527f457175616c697a6572206661726d20726577617264732e222c2022696d61676560558201527f223a2022646174613a696d6167652f7376672b786d6c3b6261736536342c000060758201528351613f1b81609384016020880161361c565b7f227d00000000000000000000000000000000000000000000000000000000000060939290910191820152609501949350505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000815260008251613f8981601d85016020870161361c565b91909101601d0192915050565b600080600060608486031215613fab57600080fd5b8351925060208401519150604084015190509250925092565b60006001600160a01b0380871683528086166020840152508360408301526080606083015261200e6080830184613640565b60006020828403121561400857600080fd5b8151613615816135ca565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fdfe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f3c73766720786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323030302f73766722207072657365727665417370656374526174696f3d22784d696e594d696e206d656574222076696577426f783d223020302033353020333530223e3c7374796c653e2e62617365207b2066696c6c3a2077686974653b20666f6e742d66616d696c793a20566572616e64612c2073657269663b20666f6e742d73697a653a20313470783b207d3c2f7374796c653e3c726563742077696474683d223130302522206865696768743d2231303025222066696c6c3d22626c61636b22202f3e3c7465787420783d2231302220793d2232302220636c6173733d2262617365223ea2646970667358221220907063c711c05c3797e5957c2d8f6e1eec47678c22a8984ce5fce2a699e0fd8a64736f6c63430008110033000000000000000000000000e117a5f40a5d28d3b2f103301c629617bfba5f610000000000000000000000004d4227eb0c2eff68a7436f5c3b7b39dafe41e2ce",
"nonce": 4792,
"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
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=250&address=0xE07A19BD62Ec121778e2d3bbb604536dcF4b62F2&availableOnly=true
{
"status": 200,
"msg": "success",
"data": {
"native": "1634333203483812448",
"evmTokens": [
{
"name": "WigoSwap Token",
"symbol": "WIGO",
"decimals": "18",
"address": "0xe992beab6659bff447893641a378fbbf031c5bd6",
"balance": "112505395483186352104116",
"assetType": "ERC20",
"USDPrice": "0.15263169717240072"
},
{
"name": "GOGO",
"symbol": "Claim on: gogo-ftm.com",
"decimals": "0",
"address": "0x589b815e45b7c0e7b481a260d2c668f0f90c071d",
"balance": "80000000",
"assetType": "ERC20",
"USDPrice": null
}
]
}
}
/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=0xbbCc5501cFBA3c8dc2225558664B5c1084DE42Fa&page=19&sortOrder=asc&chainId=250
{
"status": 200,
"msg": "success",
"data": {
"totalPages": "20",
"currentPage": "19",
"transactions": [
{
"block_signed_at": "2023-11-19T16:13:11Z",
"block_height": 70884357,
"block_hash": "0x0003cbef00000cc62d18bc21aaf8175ae9d98fbe7e4da58e6f46900a74975ef7",
"tx_hash": "0x75bab5f20b321d8ea0360b8ff3f42a3ad7234b036fca7d49502c314c10e783fa",
"tx_offset": 14,
"successful": true,
"miner_address": "0x0000000000000000000000000000000000000000",
"from_address": "0x9649c141aceac58451dd7d795da180356cb2ac8f",
"from_address_label": null,
"to_address": "0xbbcc5501cfba3c8dc2225558664b5c1084de42fa",
"to_address_label": null,
"value": "1000000000000000000",
"value_quote": 0.3359172219586432,
"pretty_value_quote": "$0.34",
"gas_metadata": {
"contract_decimals": 18,
"contract_name": "Fantom",
"contract_ticker_symbol": "FTM",
"contract_address": "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
"supports_erc": null,
"logo_url": "https://www.datocms-assets.com/86369/1669925386-fantom.svg"
},
"gas_offered": 21000,
"gas_spent": 21000,
"gas_price": 25970754068,
"fees_paid": "545385835428000",
"gas_quote": 0.00018320449473256754,
"pretty_gas_quote": "$0.00",
"gas_quote_rate": 0.3359172219586432,
"explorers": [
{
"label": null,
"url": "https://ftmscan.com/tx/0x75bab5f20b321d8ea0360b8ff3f42a3ad7234b036fca7d49502c314c10e783fa"
}
]
}
]
}
}
/sendtransaction
Send transaction on the chain.
POST
https://api.expand.network/chain/sendtransaction
Request Body
{
"chainId" : "250",
"rawTransaction": "0xf86f048433918fbe830493e0949b79d6dfe4650d70f35dbb80f7d1ec0cf7f823fd87038d7ea4c6800084022794382da0c9bd6b5c7e18a258b04039d524a3e1382ec0f522d160dc027428933f520b6868a07332736f1df297842299230820626f1fc5b8d4cdd602ade55e3ba02c63e756ce"
}
{
"status": 200,
"msg": "success",
"data": {
"chainId" : "250",
"transactionHash": "0x8375c5eedd17609292cecc051c18e180fa970b32a77011c48d3725e45e46e7b3"
}
}
/decodetransaction
Get the decoded transaction for the provided raw transaction.
POST
https://api.expand.network/chain/decodetransaction
Request Body
{
"chainId": "250",
"rawTransaction": "0xf86b80850814ba728a830a3d8794f73ee0e06a1b8ec3a7ff860d766e75f3eea7b985843b9aca0080820217a09822cc76301462e630aa10db91f4035c343cf236ccc9c341196a12f590dbc610a0676fa7aba1fe0a7905a2ab0ccfdd4fed61f25df2f7cb662dd07e01222b62f56d"
}
{
"status": 200,
"msg": "success",
"data": {
"parsedTx": {
"nonce": 0,
"gasPrice": {
"type": "BigNumber",
"hex": "0x0814ba728a"
},
"gasLimit": {
"type": "BigNumber",
"hex": "0x0a3d87"
},
"to": "0xF73eE0e06a1B8Ec3A7Ff860D766E75f3EEA7b985",
"value": {
"type": "BigNumber",
"hex": "0x3b9aca00"
},
"data": "0x",
"chainId": 250,
"v": 535,
"r": "0x9822cc76301462e630aa10db91f4035c343cf236ccc9c341196a12f590dbc610",
"s": "0x676fa7aba1fe0a7905a2ab0ccfdd4fed61f25df2f7cb662dd07e01222b62f56d",
"from": "0x6Fb447Ae94F5180254D436A693907a1f57696900",
"hash": "0xa876d032ef06d2b5aeda794e3a2178359a27c2839f425fbfe6305b09917a75ec",
"type": null
},
"assetChanges": {
"from": "0x6Fb447Ae94F5180254D436A693907a1f57696900",
"to": "0xF73eE0e06a1B8Ec3A7Ff860D766E75f3EEA7b985",
"value": {
"type": "BigNumber",
"hex": "0x3b9aca00"
}
}
}
}
Last updated