Polygon
/getbalance
Get the balance or number of the given token in the requested public address.
GET
https://api.expand.network/chain/getbalance
Query Parameters
Name | Type | Description |
---|---|---|
rpc | String | Remote procedural call URL |
chainId* | String | Refer to the Chain ID page for details. |
chainSymbol | String | Refer to the Chain ID page for details. |
address* | String | The public address to get the balance of. |
tokenAddress | String | The address of token to get the balance of. |
https://api.expand.network/chain/getbalance/?address=0x15a1E58d588006b8c332548D028AA9e254271452&chainId=137
{
"status": 200,
"msg": "success",
"data": {
"balance": "3175235802530563857"
}
}
/getblock
Get details of a block.
GET
https://api.expand.network/chain/getblock
Query Parameters
Name | Type | Description |
---|---|---|
rpc | String | Remote procedural call URL. |
chainId* | String | Refer to the Chain ID page for details. |
chainSymbol | String | Refer to the Chain ID page for details. |
blockNumber* | String | The block number or block hash. |
https://api.expand.network/chain/getblock?blockNumber=25255532&chainId=137
{
"status": 200,
"msg": "success",
"data": {
"difficulty": "18",
"gasLimit": 30000000,
"gasUsed": 18206199,
"hash": "0xfed3e75b1ce71022a8739426049dd2e868f3768ab3984afa1b1ffc48672591ed",
"miner": "0x7c7379531b2aEE82e4Ca06D4175D13b9CBEafd49",
"nonce": "0x0000000000000000",
"number": 25255532,
"parentHash": "0x048a292942dba198d4a5694b6d1a4122d62be62610282c9e96002aa4a0d8f495",
"size": 113646,
"timestamp": 1645608812,
"totalDifficulty": "325600960",
"transactions": [
"0x6463e483b18b16b06e72d9578c679689f663baf834e47e9ce4e66602008470a4",
"0x128dd231a594ab2353e527c3cba11a6541b53067efc6a11756906e6eaaa5c706",
"0xf3021a97d63fbe64b3ef19ddc3aa10f4fd45adb03eb3905b4d5a249f1ef4a31f"
],
"transactionsRoot": "0xdfcf43bbadde53b8ecb565056d780078ce2579f6260594dfa6254ae64a58eb4b",
"uncles": []
}
}
/getgasprice
Get the current gas price from the network.
GET
https://api.expand.network/chain/getgasprice
Query Parameters
Name | Type | Description |
---|---|---|
rpc | String | Remote procedural call URL. |
chainId* | String | Refer to the Chain ID page for details. |
chainSymbol | String | Refer to the Chain ID page for details. |
https://api.expand.network/chain/getgasprice?chainId=137
{
"status": 200,
"msg": "success",
"data": {
"gasPrice": "112297540244"
}
}
/getstorage
Get data stored in the given slot.
GET
https://api.expand.network/chain/getstorage
Query Parameters
Name | Type | Description |
---|---|---|
rpc | String | Remote procedural call URL. |
chainId* | String | Refer to the Chain ID page for details. |
chainSymbol | String | Refer to the Chain ID page for details. |
address* | String | Contract address whose storage is needed. |
index | String | Slot index on the smart contract. By default, it is taken as 0. |
https://api.expand.network/chain/getstorage?chainId=137&address=0xb33EaAd8d922B1083446DC23f610c2567fB5180f
{
"status": 200,
"msg": "success",
"data": {
"data": "0x0000000000000000000000000000000000000000000000000000000000000000"
}
}
/gettransaction
Get details of a transaction.
GET
https://api.expand.network/chain/gettransaction
Query Parameters
Name | Type | Description |
---|---|---|
rpc | String | Remote procedural call URL. |
chainId* | String | Refer to the Chain ID page for details. |
chainSymbol | String | Refer to the Chain ID page for details. |
transactionHash* | String | The transaction hash. |
https://api.expand.network/chain/gettransaction?chainId=137&transactionHash=0xee44d837079754929b0ef0e9752de8c78f0da4a601d3c61a7ac6660cb78f06e4
{
"status": 200,
"msg": "success",
"data": {
"hash": "0xee44d837079754929b0ef0e9752de8c78f0da4a601d3c61a7ac6660cb78f06e4",
"transactionStatus": null,
"blockNumber": 38721087,
"timestamp": null,
"from": "0xF91AfA7840F692F4c6f7830fB48e97561a72c884",
"to": null,
"value": "0",
"transactionFees": "7200000000000000000",
"gas": 24000000,
"gasPrice": "300000000000",
"input": "0x608060405234801561001057600080fd5b50614bd3806100206000396000f3fe608060405234801561001057600080fd5b50600436106102695760003560e01c80636352211e11610151578063a7042855116100c3578063dcec329411610087578063dcec3294146105be578063e985e9c5146105de578063f03109fa1461061a578063f2fde38b1461062d578063f4bbcb2914610640578063f6aacfb11461065357600080fd5b8063a704285514610551578063b88d4fde14610572578063c87b56dd14610585578063cd4bf15114610598578063ce65aff8146105ab57600080fd5b80638da5cb5b116101155780638da5cb5b146104c257806391c79cd7146104d3578063956236411461050f57806395d89b411461052357806399b7c4011461052b578063a22cb4651461053e57600080fd5b80636352211e1461044657806367b73c7d1461045957806370a0823114610494578063715018a6146104a75780637cc53570146104af57600080fd5b8063278d0fd9116101ea5780634ce17b86116101ae5780634ce17b86146103bd5780634def0453146103d05780634e1e4880146103e357806350c0bc58146103f6578063510b5158146104095780635493f09a1461043357600080fd5b8063278d0fd91461035d578063352f988214610371578063393febfa1461038457806342842e0e1461039757806342966c68146103aa57600080fd5b8063121cba1911610231578063121cba19146102fe578063179a9c0f146103115780632016a0d21461032457806323b872dd14610337578063262473941461034a57600080fd5b806301ffc9a71461026e57806305b42c271461029657806306fdde03146102a9578063081812fc146102be578063095ea7b3146102e9575b600080fd5b61028161027c366004613d1d565b610675565b60405190151581526020015b60405180910390f35b6102816102a4366004613d3a565b6106f1565b6102b161087f565b60405161028d9190613da3565b6102d16102cc366004613d3a565b610911565b6040516001600160a01b03909116815260200161028d565b6102fc6102f7366004613ddb565b610938565b005b6102d161030c366004613d3a565b610a52565b6102fc61031f366004613ddb565b610b49565b6102fc610332366004613e4f565b610cb9565b6102fc610345366004613ee3565b610ec7565b6102fc610358366004613ddb565b610ef9565b61022d546102d1906001600160a01b031681565b6102b161037f366004613d3a565b611034565b6102fc610392366004613f24565b6110d9565b6102fc6103a5366004613ee3565b611123565b6102fc6103b8366004613d3a565b61113e565b6102d16103cb366004613d3a565b61116c565b6102fc6103de366004614069565b6111de565b6102fc6103f13660046140d3565b6113f9565b6102fc6104043660046140ff565b6115e2565b6102d1610417366004613d3a565b600090815261016260205260409020546001600160a01b031690565b6102fc61044136600461415d565b61181b565b6102d1610454366004613d3a565b611962565b6104866104673660046140d3565b1515600090815261016460209081526040808320938352929052205490565b60405190815260200161028d565b6104866104a2366004614192565b6119c2565b6102fc611a48565b6102b16104bd366004613d3a565b611a5c565b6033546001600160a01b03166102d1565b6102816104e13660046141af565b6001600160a01b03918216600090815260cb6020908152604080832093909416825291909152205460ff1690565b61022c546102d1906001600160a01b031681565b6102b1611beb565b6102fc6105393660046141e8565b611bfa565b6102fc61054c366004614233565b611c1a565b61056461055f36600461425f565b611c25565b60405161028d929190614294565b6102fc610580366004614318565b611e2d565b6102b1610593366004613d3a565b611e5f565b6102fc6105a63660046143a8565b611e6a565b6102fc6105b936600461445a565b61232d565b6104866105cc366004613d3a565b60c96020526000908152604090205481565b6102816105ec3660046141af565b6001600160a01b039182166000908152609c6020908152604080832093909416825291909152205460ff1690565b6102fc610628366004614551565b61258b565b6102fc61063b366004614192565b612671565b6102fc61064e366004614233565b6126e7565b610281610661366004613d3a565b600090815260c96020526040902054421090565b60006001600160e01b031982166390478cd760e01b14806106a657506001600160e01b0319821663cf9a665f60e01b145b806106c157506001600160e01b0319821663c8f12ba760e01b145b806106dc57506001600160e01b03198216632b59e54960e21b145b806106eb57506106eb826126f2565b92915050565b600081815261013060209081526040808320815160c0810183528154815260018201546001600160a01b03811694820194909452600160a01b90930460ff169183019190915260028101805484939291606084019161074f906145ae565b80601f016020809104026020016040519081016040528092919081815260200182805461077b906145ae565b80156107c85780601f1061079d576101008083540402835291602001916107c8565b820191906000526020600020905b8154815290600101906020018083116107ab57829003601f168201915b505050505081526020016003820180546107e1906145ae565b80601f016020809104026020016040519081016040528092919081815260200182805461080d906145ae565b801561085a5780601f1061082f5761010080835404028352916020019161085a565b820191906000526020600020905b81548152906001019060200180831161083d57829003601f168201915b50505091835250506004919091015460ff16151560209091015260a001519392505050565b60606097805461088e906145ae565b80601f01602080910402602001604051908101604052809291908181526020018280546108ba906145ae565b80156109075780601f106108dc57610100808354040283529160200191610907565b820191906000526020600020905b8154815290600101906020018083116108ea57829003601f168201915b5050505050905090565b600061091c82612717565b506000908152609b60205260409020546001600160a01b031690565b600061094382611962565b9050806001600160a01b0316836001600160a01b0316036109b55760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084015b60405180910390fd5b336001600160a01b03821614806109d157506109d181336105ec565b610a435760405162461bcd60e51b815260206004820152603d60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c00000060648201526084016109ac565b610a4d8383612767565b505050565b6000610a5d826127d5565b610abd5760405162461bcd60e51b815260206004820152602b60248201527f4552433732314c3a206c6f636b657220717565727920666f72206e6f6e65786960448201526a39ba32b73a103a37b5b2b760a91b60648201526084016109ac565b600082815260c960205260409020544210610b2d5760405162461bcd60e51b815260206004820152602a60248201527f4552433732314c3a206c6f636b657220717565727920666f72206e6f6e2d6c6f60448201526931b5b2b2103a37b5b2b760b11b60648201526084016109ac565b50600090815260ca60205260409020546001600160a01b031690565b600081815260c96020526040902054421015610ba25760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c530e881d1bdad95b881a5cc81b1bd8dad95960421b60448201526064016109ac565b6000610bad82611962565b9050806001600160a01b0316836001600160a01b031603610c205760405162461bcd60e51b815260206004820152602760248201527f4552433732314c3a206c6f636b20617070726f76616c20746f2063757272656e6044820152663a1037bbb732b960c91b60648201526084016109ac565b336001600160a01b0382161480610c3c5750610c3c81336104e1565b610cae5760405162461bcd60e51b815260206004820152603e60248201527f4552433732314c3a206c6f636b20617070726f76652063616c6c65722069732060448201527f6e6f74206f776e6572206e6f7220617070726f76656420666f7220616c6c000060648201526084016109ac565b610a4d8184846127f2565b600054610100900460ff1615808015610cd95750600054600160ff909116105b80610cf35750303b158015610cf3575060005460ff166001145b610d565760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084016109ac565b6000805460ff191660011790558015610d79576000805461ff0019166101001790555b610dec85858080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525050604080516020601f8901819004810282018101909252878152925087915086908190840183828082843760009201919091525061284e92505050565b610df461287f565b610dfc6128ae565b6001600160a01b0387161580610e1957506001600160a01b038616155b15610e37576040516317d69aff60e11b815260040160405180910390fd5b61022c80546001600160a01b03808a166001600160a01b03199283161790925561022d805492891692909116919091179055610e7861022a80546001019055565b8015610ebe576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b50505050505050565b610ed2335b826128dd565b610eee5760405162461bcd60e51b81526004016109ac906145e2565b610a4d83838361295c565b33610f0382610a52565b6001600160a01b031614610f6d5760405162461bcd60e51b815260206004820152602b60248201527f4552433732314c3a20756e6c6f636b2063616c6c6572206973206e6f74206c6f60448201526a31b59037b832b930ba37b960a91b60648201526084016109ac565b816001600160a01b0316610f8082611962565b6001600160a01b031614610fe25760405162461bcd60e51b8152602060048201526024808201527f4552433732314c3a20756e6c6f636b2066726f6d20696e636f7272656374206f6044820152633bb732b960e11b60648201526084016109ac565b610fea565b50565b600081815260c960205260408082208290555182916001600160a01b0385169133917fe6e0ef9cd056ca98561ca60e347ada61e1ede2f1142a078951b7a52e1e508e6091a45b5050565b60008181526101c66020526040812080546060929190611053906145ae565b80601f016020809104026020016040519081016040528092919081815260200182805461107f906145ae565b80156110cc5780601f106110a1576101008083540402835291602001916110cc565b820191906000526020600020905b8154815290600101906020018083116110af57829003601f168201915b5093979650505050505050565b6111198886868080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250612acd92505050565b5050505050505050565b610a4d83838360405180602001604052806000815250611e2d565b61114733610ecc565b6111635760405162461bcd60e51b81526004016109ac906145e2565b610fe781612b51565b6000611177826127d5565b610b2d5760405162461bcd60e51b815260206004820152603260248201527f4552433732314c3a206c6f636b20617070726f76656420717565727920666f72604482015271103737b732bc34b9ba32b73a103a37b5b2b760711b60648201526084016109ac565b600082815261013060209081526040808320815160c0810183528154815260018201546001600160a01b03811694820194909452600160a01b90930460ff1691830191909152600281018054606084019190611239906145ae565b80601f0160208091040260200160405190810160405280929190818152602001828054611265906145ae565b80156112b25780601f10611287576101008083540402835291602001916112b2565b820191906000526020600020905b81548152906001019060200180831161129557829003601f168201915b505050505081526020016003820180546112cb906145ae565b80601f01602080910402602001604051908101604052809291908181526020018280546112f7906145ae565b80156113445780601f1061131957610100808354040283529160200191611344565b820191906000526020600020905b81548152906001019060200180831161132757829003601f168201915b50505091835250506004919091015460ff90811615156020928301526060830185815260008781526101308452604090819020855181559385015160018501805492870151909416600160a01b026001600160a81b03199092166001600160a01b03909116171790915551919250829160028201906113c3908261467d565b50608082015160038201906113d8908261467d565b5060a091909101516004909101805460ff1916911515919091179055505050565b600082815261013060209081526040808320815160c0810183528154815260018201546001600160a01b03811694820194909452600160a01b90930460ff1691830191909152600281018054606084019190611454906145ae565b80601f0160208091040260200160405190810160405280929190818152602001828054611480906145ae565b80156114cd5780601f106114a2576101008083540402835291602001916114cd565b820191906000526020600020905b8154815290600101906020018083116114b057829003601f168201915b505050505081526020016003820180546114e6906145ae565b80601f0160208091040260200160405190810160405280929190818152602001828054611512906145ae565b801561155f5780601f106115345761010080835404028352916020019161155f565b820191906000526020600020905b81548152906001019060200180831161154257829003601f168201915b50505091835250506004919091015460ff908116151560209283015284151560a084015260008681526101308352604090819020845181559284015160018401805492860151909316600160a01b026001600160a81b03199092166001600160a01b03909116171790556060820151919250829160028201906113c3908261467d565b6115ea612b5a565b600084815261013060209081526040808320815160c0810183528154815260018201546001600160a01b03811694820194909452600160a01b90930460ff1691830191909152600281018054606084019190611645906145ae565b80601f0160208091040260200160405190810160405280929190818152602001828054611671906145ae565b80156116be5780601f10611693576101008083540402835291602001916116be565b820191906000526020600020905b8154815290600101906020018083116116a157829003601f168201915b505050505081526020016003820180546116d7906145ae565b80601f0160208091040260200160405190810160405280929190818152602001828054611703906145ae565b80156117505780601f1061172557610100808354040283529160200191611750565b820191906000526020600020905b81548152906001019060200180831161173357829003601f168201915b50505091835250506004919091015460ff1615156020918201528101519091506001600160a01b031633146117c75760405162461bcd60e51b815260206004820152601860248201527f416d6265726669436f6e74656e743a20546f6f2068696768000000000000000060448201526064016109ac565b6000858152610130602052604090206002016117e484868361473c565b50506000938452610130602052604090932060010180546001600160a01b0319166001600160a01b03909416939093179092555050565b6118253383612bb4565b6118885760405162461bcd60e51b815260206004820152602e60248201527f4552433732314c3a206c6f636b2063616c6c6572206973206e6f74206f776e6560448201526d1c881b9bdc88185c1c1c9bdd995960921b60648201526084016109ac565b4281116118fd5760405162461bcd60e51b815260206004820152603f60248201527f4552433732314c3a20657870697265642074696d65206d75737420626520677260448201527f6561746572207468616e2063757272656e7420626c6f636b206e756d6265720060648201526084016109ac565b600082815260c960205260409020544210156119565760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c530e881d1bdad95b881a5cc81b1bd8dad95960421b60448201526064016109ac565b610a4d33848484612c91565b6000818152609960205260408120546001600160a01b0316806106eb5760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b60448201526064016109ac565b60006001600160a01b038216611a2c5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b60648201526084016109ac565b506001600160a01b03166000908152609a602052604090205490565b611a50612b5a565b611a5a6000612d79565b565b600081815261013060209081526040808320815160c0810183528154815260018201546001600160a01b03811694820194909452600160a01b90930460ff169183019190915260028101805460609493929185840191611abb906145ae565b80601f0160208091040260200160405190810160405280929190818152602001828054611ae7906145ae565b8015611b345780601f10611b0957610100808354040283529160200191611b34565b820191906000526020600020905b815481529060010190602001808311611b1757829003601f168201915b50505050508152602001600382018054611b4d906145ae565b80601f0160208091040260200160405190810160405280929190818152602001828054611b79906145ae565b8015611bc65780601f10611b9b57610100808354040283529160200191611bc6565b820191906000526020600020905b815481529060010190602001808311611ba957829003601f168201915b50505091835250506004919091015460ff161515602090910152606001519392505050565b60606098805461088e906145ae565b60008381526101c660205260409020611c1482848361473c565b50505050565b611030338383612dcb565b6060806000611c4e86851515600090815261016460209081526040808320938352929052205490565b905080600003611c985760405162461bcd60e51b815260206004820152601560248201527413919514185e5bdd5d1cce881b9bc81c185e5bdd5d605a1b60448201526064016109ac565b806001600160401b03811115611cb057611cb0613fde565b604051908082528060200260200182016040528015611cd9578160200160208202803683370190505b509250806001600160401b03811115611cf457611cf4613fde565b604051908082528060200260200182016040528015611d1d578160200160208202803683370190505b50915060005b81811015611e23578415156000908152610163602090815260408083208a84529091529020805482908110611d5a57611d5a6147fb565b60009182526020909120015484516001600160a01b0390911690859083908110611d8657611d866147fb565b6001600160a01b03929092166020928302919091018201528515156000908152610163825260408082208a8352909252208054612710919083908110611dce57611dce6147fb565b600091825260209091200154611df490600160a01b90046001600160601b031688614827565b611dfe919061483e565b838281518110611e1057611e106147fb565b6020908102919091010152600101611d23565b5050935093915050565b611e3733836128dd565b611e535760405162461bcd60e51b81526004016109ac906145e2565b611c1484848484612e9a565b60606106eb82612ecd565b600087815261013060209081526040808320815160c0810183528154815260018201546001600160a01b03811694820194909452600160a01b90930460ff1691830191909152600281018054606084019190611ec5906145ae565b80601f0160208091040260200160405190810160405280929190818152602001828054611ef1906145ae565b8015611f3e5780601f10611f1357610100808354040283529160200191611f3e565b820191906000526020600020905b815481529060010190602001808311611f2157829003601f168201915b50505050508152602001600382018054611f57906145ae565b80601f0160208091040260200160405190810160405280929190818152602001828054611f83906145ae565b8015611fd05780601f10611fa557610100808354040283529160200191611fd0565b820191906000526020600020905b815481529060010190602001808311611fb357829003601f168201915b50505091835250506004919091015460ff1615156020918201528101519091506001600160a01b03161580612011575060208101516001600160a01b031633145b61205d5760405162461bcd60e51b815260206004820152601b60248201527f416d6265726669456e6372797074696f6e3a20546f6f2068696768000000000060448201526064016109ac565b600083838080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050606084015182519293509115801591506120ad57508051155b806120c35750600081511180156120c357508151155b806120d95750600081511180156120d957508151155b61214b5760405162461bcd60e51b815260206004820152603860248201527f416d6265726669456e6372797074696f6e3a20436f6e74656e742073746f726160448201527f67652063616e2774206265206f7665727772697474656e20000000000000000060648201526084016109ac565b87151560a084015260ff891660408085019190915280516020601f8701819004810282018101909252858152908690869081908401838280828437600092018290525060608801949094525050506080840151604080516020601f8b01819004810282018101909252898152919291908a908a90819084018382808284376000920191909152509293508c925050811590506121e75750845115155b80156121f4575060008151115b1561226e5781511561226e5760405162461bcd60e51b815260206004820152603a60248201527f416d6265726669456e6372797074696f6e3a2043616e2774206368616e67652060448201527f686173682076616c7565206f66206d696e74656420746f6b656e00000000000060648201526084016109ac565b60208501516001600160a01b0316612287573360208601525b60008c8152610130602090815260409182902087518155908701516001820180549389015160ff16600160a01b026001600160a81b03199094166001600160a01b039092169190911792909217909155606086015186919060028201906122ee908261467d565b5060808201516003820190612303908261467d565b5060a091909101516004909101805460ff1916911515919091179055505050505050505050505050565b612335612fd5565b896000819003612365575061022a545b61234e816127d5565b15612365575061022a805460018101909155612345565b612370818686611bfa565b6123b08188888080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506111de92505050565b61022c546123c8906001600160a01b03166001611c1a565b6123f86001600160a01b038d16156123e0578c6123e2565b335b8260405180602001604052806000815250613030565b61240560008d8385612c91565b871561244b5761244b818a8a8080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250612acd92505050565b600061245a60208c018c614860565b915050801561247f5761247f826001838e806020019061247a9190614860565b613063565b600061248e60408d018d614860565b91505080156124ae576124ae836000838f806040019061247a9190614860565b6124c4836124bf60208f018f614192565b61327d565b61022d54604051630ef14b2960e01b81526001600160a01b0390911690630ef14b29906124fb9086908f908f908b906004016148d2565b600060405180830381600087803b15801561251557600080fd5b505af1158015612529573d6000803e3d6000fd5b505050508d6001600160a01b03167f4cc0a9c4a99ddc700de1af2c9f916a7cbfdb71f14801ccff94061ad1ef8a80408460405161256891815260200190565b60405180910390a250505061257e60016101f855565b5050505050505050505050565b61022d546001600160a01b03168063f0a3e7e8866125a881611e5f565b8787876040518663ffffffff1660e01b81526004016125cb959493929190614900565b600060405180830381600087803b1580156125e557600080fd5b505af11580156125f9573d6000803e3d6000fd5b50505050806001600160a01b031663e17f62c0338761261789611e5f565b60006040518563ffffffff1660e01b81526004016126389493929190614942565b600060405180830381600087803b15801561265257600080fd5b505af1158015612666573d6000803e3d6000fd5b505050505050505050565b612679612b5a565b6001600160a01b0381166126de5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016109ac565b610fe781612d79565b611030338383613302565b60006001600160e01b03198216632b59e54960e21b14806106eb57506106eb826133c8565b612720816127d5565b610fe75760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b60448201526064016109ac565b6000818152609b6020526040902080546001600160a01b0319166001600160a01b038416908117909155819061279c82611962565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000908152609960205260409020546001600160a01b0316151590565b600081815260ca602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fbd5378dc6d0395c338ca88b324966808490d6a9983bbc7a0f7a8429a44a3176291a4505050565b600054610100900460ff166128755760405162461bcd60e51b81526004016109ac90614998565b61103082826133ed565b600054610100900460ff166128a65760405162461bcd60e51b81526004016109ac90614998565b611a5a61342d565b600054610100900460ff166128d55760405162461bcd60e51b81526004016109ac90614998565b611a5a61345c565b6000806128e983611962565b9050806001600160a01b0316846001600160a01b0316148061293057506001600160a01b038082166000908152609c602090815260408083209388168352929052205460ff165b806129545750836001600160a01b031661294984610911565b6001600160a01b0316145b949350505050565b826001600160a01b031661296f82611962565b6001600160a01b0316146129955760405162461bcd60e51b81526004016109ac906149e3565b6001600160a01b0382166129f75760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016109ac565b612a048383836001613483565b826001600160a01b0316612a1782611962565b6001600160a01b031614612a3d5760405162461bcd60e51b81526004016109ac906149e3565b6000818152609b6020908152604080832080546001600160a01b03199081169091556001600160a01b03878116808652609a8552838620805460001901905590871680865283862080546001019055868652609990945282852080549092168417909155905184937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b612ad6826127d5565b612b395760405162461bcd60e51b815260206004820152602e60248201527f45524337323155524953746f726167653a2055524920736574206f66206e6f6e60448201526d32bc34b9ba32b73a103a37b5b2b760911b60648201526084016109ac565b600082815260fe60205260409020610a4d828261467d565b610fe78161348f565b6033546001600160a01b03163314611a5a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016109ac565b6000612bbf826127d5565b612c265760405162461bcd60e51b815260206004820152603260248201527f4552433732314c3a206c6f636b206f70657261746f7220717565727920666f72604482015271103737b732bc34b9ba32b73a103a37b5b2b760711b60648201526084016109ac565b6000612c3183611962565b9050806001600160a01b0316846001600160a01b03161480612c7857506001600160a01b03808216600090815260cb602090815260408083209388168352929052205460ff165b806129545750836001600160a01b03166129498461116c565b826001600160a01b0316612ca483611962565b6001600160a01b031614612d055760405162461bcd60e51b815260206004820152602260248201527f4552433732314c3a206c6f636b2066726f6d20696e636f7272656374206f776e60448201526132b960f11b60648201526084016109ac565b600082815260c96020908152604080832084905560ca82529182902080546001600160a01b031916331790558151838152915184926001600160a01b0387811693908916927f967ad762aa9070ada8db64577288e214771e89667066ae38e8750cb8a86c54299281900390910190a4611c14565b603380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b031603612e2c5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016109ac565b6001600160a01b038381166000818152609c6020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3191015b60405180910390a3505050565b612ea584848461295c565b612eb1848484846134cf565b611c145760405162461bcd60e51b81526004016109ac90614a28565b6060612ed882612717565b600082815260fe602052604081208054612ef1906145ae565b80601f0160208091040260200160405190810160405280929190818152602001828054612f1d906145ae565b8015612f6a5780601f10612f3f57610100808354040283529160200191612f6a565b820191906000526020600020905b815481529060010190602001808311612f4d57829003601f168201915b505050505090506000612f8860408051602081019091526000815290565b90508051600003612f9a575092915050565b815115612fcc578082604051602001612fb4929190614a7a565b60405160208183030381529060405292505050919050565b612954846135d0565b60026101f854036130285760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016109ac565b60026101f855565b61303a8383613644565b61304760008484846134cf565b610a4d5760405162461bcd60e51b81526004016109ac90614a28565b61306d85856137bf565b8315156000908152610164602090815260408083208884529091528120849055805b8481101561315e5760008484838181106130ab576130ab6147fb565b6130c19260206040909202019081019150614192565b6001600160a01b0316036131175760405162461bcd60e51b815260206004820152601c60248201527f4e46545061796f7574733a20696e76616c69642072656365697665720000000060448201526064016109ac565b838382818110613129576131296147fb565b90506040020160200160208101906131419190614abe565b613154906001600160601b031683614adb565b915060010161308f565b5084156131bb5761271081146131b65760405162461bcd60e51b815260206004820152601e60248201527f455243323938315061796f75743a20696e76616c6964207061796f757473000060448201526064016109ac565b61320d565b61271081111561320d5760405162461bcd60e51b815260206004820181905260248201527f455243323938315061796f75743a20696e76616c696420726f79616c7469657360448201526064016109ac565b60005b84811015610ebe578515156000908152610163602090815260408083208a84529091529020848483818110613247576132476147fb565b835460018101855560009485526020909420604090910292909201929190910190506132738282614aee565b5050600101613210565b6001600160a01b0381166132d35760405162461bcd60e51b815260206004820181905260248201527f4e46545061796f7574733a207a65726f2063726561746f72206164647265737360448201526064016109ac565b6000918252610162602052604090912080546001600160a01b0319166001600160a01b03909216919091179055565b816001600160a01b0316836001600160a01b0316036133635760405162461bcd60e51b815260206004820152601f60248201527f4552433732314c3a206c6f636b20617070726f766520746f2063616c6c65720060448201526064016109ac565b6001600160a01b03838116600081815260cb6020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527fbb3b2937fc41058c97e1ad0d0bbac3c664894dd823924eb7717d814fe700f0349101612e8d565b60006001600160e01b0319821663c8f12ba760e01b14806106eb57506106eb8261381b565b600054610100900460ff166134145760405162461bcd60e51b81526004016109ac90614998565b6097613420838261467d565b506098610a4d828261467d565b600054610100900460ff166134545760405162461bcd60e51b81526004016109ac90614998565b611a5a613840565b600054610100900460ff16611a5a5760405162461bcd60e51b81526004016109ac90614998565b611c148484848461386f565b613498816138fe565b600081815260fe6020526040902080546134b1906145ae565b159050610fe757600081815260fe60205260408120610fe791613c9a565b60006001600160a01b0384163b156135c557604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290613513903390899088908890600401614b30565b6020604051808303816000875af192505050801561354e575060408051601f3d908101601f1916820190925261354b91810190614b6d565b60015b6135ab573d80801561357c576040519150601f19603f3d011682016040523d82523d6000602084013e613581565b606091505b5080516000036135a35760405162461bcd60e51b81526004016109ac90614a28565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612954565b506001949350505050565b60606135db82612717565b60006135f260408051602081019091526000815290565b90506000815111613612576040518060200160405280600081525061363d565b8061361c84613940565b60405160200161362d929190614a7a565b6040516020818303038152906040525b9392505050565b6001600160a01b03821661369a5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016109ac565b6136a3816127d5565b156136f05760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016109ac565b6136fe600083836001613483565b613707816127d5565b156137545760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016109ac565b6001600160a01b0382166000818152609a6020908152604080832080546001019055848352609990915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b8015156000818152610164602090815260408083208684528252808320839055928252610163815282822085835290529081206137fb91613cd4565b5060009081526101626020526040902080546001600160a01b0319169055565b60006001600160e01b0319821663091b845760e41b14806106eb57506106eb826139d2565b600054610100900460ff166138675760405162461bcd60e51b81526004016109ac90614998565b611a5a6139f7565b61387b84848484613a27565b815b818110156138f757600081815260c960205260409020544210156138ef5760405162461bcd60e51b8152602060048201526024808201527f4552433732314c3a20746f6b656e207472616e73666572207768696c65206c6f60448201526318dad95960e21b60648201526084016109ac565b60010161387d565b5050505050565b600061390982611962565b905061391482613aaf565b50600090815260c96020908152604080832083905560ca909152902080546001600160a01b0319169055565b6060600061394d83613b52565b60010190506000816001600160401b0381111561396c5761396c613fde565b6040519080825280601f01601f191660200182016040528015613996576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a85049450846139a057509392505050565b60006001600160e01b031982166301ffc9a760e01b14806106eb57506106eb82613c2a565b600054610100900460ff16613a1e5760405162461bcd60e51b81526004016109ac90614998565b611a5a33612d79565b6001811115611c14576001600160a01b03841615613a6d576001600160a01b0384166000908152609a602052604081208054839290613a67908490614b8a565b90915550505b6001600160a01b03831615611c14576001600160a01b0383166000908152609a602052604081208054839290613aa4908490614adb565b909155505050505050565b6000613aba82611962565b9050613aca816000846001613483565b613ad382611962565b6000838152609b6020908152604080832080546001600160a01b03199081169091556001600160a01b038516808552609a845282852080546000190190558785526099909352818420805490911690555192935084927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b8310613b915772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310613bbd576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc100008310613bdb57662386f26fc10000830492506010015b6305f5e1008310613bf3576305f5e100830492506008015b6127108310613c0757612710830492506004015b60648310613c19576064830492506002015b600a83106106eb5760010192915050565b60006001600160e01b0319821663a80646d160e01b14806106eb57506106eb8260006001600160e01b031982166380ac58cd60e01b1480613c7b57506001600160e01b03198216635b5e139f60e01b145b806106eb57506301ffc9a760e01b6001600160e01b03198316146106eb565b508054613ca6906145ae565b6000825580601f10613cb6575050565b601f016020900490600052602060002090810190610fe79190613cee565b5080546000825590600052602060002090810190610fe791905b5b80821115613d035760008155600101613cef565b5090565b6001600160e01b031981168114610fe757600080fd5b600060208284031215613d2f57600080fd5b813561363d81613d07565b600060208284031215613d4c57600080fd5b5035919050565b60005b83811015613d6e578181015183820152602001613d56565b50506000910152565b60008151808452613d8f816020860160208601613d53565b601f01601f19169290920160200192915050565b60208152600061363d6020830184613d77565b6001600160a01b0381168114610fe757600080fd5b8035613dd681613db6565b919050565b60008060408385031215613dee57600080fd5b8235613df981613db6565b946020939093013593505050565b60008083601f840112613e1957600080fd5b5081356001600160401b03811115613e3057600080fd5b602083019150836020828501011115613e4857600080fd5b9250929050565b60008060008060008060808789031215613e6857600080fd5b8635613e7381613db6565b95506020870135613e8381613db6565b945060408701356001600160401b0380821115613e9f57600080fd5b613eab8a838b01613e07565b90965094506060890135915080821115613ec457600080fd5b50613ed189828a01613e07565b979a9699509497509295939492505050565b600080600060608486031215613ef857600080fd5b8335613f0381613db6565b92506020840135613f1381613db6565b929592945050506040919091013590565b60008060008060008060008060a0898b031215613f4057600080fd5b8835975060208901356001600160401b0380821115613f5e57600080fd5b613f6a8c838d01613e07565b909950975060408b0135915080821115613f8357600080fd5b613f8f8c838d01613e07565b909750955060608b0135915080821115613fa857600080fd5b50613fb58b828c01613e07565b909450925050608089013560058110613fcd57600080fd5b809150509295985092959890939650565b634e487b7160e01b600052604160045260246000fd5b60006001600160401b038084111561400e5761400e613fde565b604051601f8501601f19908116603f0116810190828211818310171561403657614036613fde565b8160405280935085815286868601111561404f57600080fd5b858560208301376000602087830101525050509392505050565b6000806040838503121561407c57600080fd5b8235915060208301356001600160401b0381111561409957600080fd5b8301601f810185136140aa57600080fd5b6140b985823560208401613ff4565b9150509250929050565b80358015158114613dd657600080fd5b600080604083850312156140e657600080fd5b823591506140f6602084016140c3565b90509250929050565b6000806000806060858703121561411557600080fd5b8435935060208501356001600160401b0381111561413257600080fd5b61413e87828801613e07565b909450925050604085013561415281613db6565b939692955090935050565b60008060006060848603121561417257600080fd5b833561417d81613db6565b95602085013595506040909401359392505050565b6000602082840312156141a457600080fd5b813561363d81613db6565b600080604083850312156141c257600080fd5b82356141cd81613db6565b915060208301356141dd81613db6565b809150509250929050565b6000806000604084860312156141fd57600080fd5b8335925060208401356001600160401b0381111561421a57600080fd5b61422686828701613e07565b9497909650939450505050565b6000806040838503121561424657600080fd5b823561425181613db6565b91506140f6602084016140c3565b60008060006060848603121561427457600080fd5b833592506020840135915061428b604085016140c3565b90509250925092565b604080825283519082018190526000906020906060840190828701845b828110156142d65781516001600160a01b0316845292840192908401906001016142b1565b5050508381038285015284518082528583019183019060005b8181101561430b578351835292840192918401916001016142ef565b5090979650505050505050565b6000806000806080858703121561432e57600080fd5b843561433981613db6565b9350602085013561434981613db6565b92506040850135915060608501356001600160401b0381111561436b57600080fd5b8501601f8101871361437c57600080fd5b61438b87823560208401613ff4565b91505092959194509250565b803560ff81168114613dd657600080fd5b600080600080600080600060a0888a0312156143c357600080fd5b873596506143d360208901614397565b95506143e1604089016140c3565b945060608801356001600160401b03808211156143fd57600080fd5b6144098b838c01613e07565b909650945060808a013591508082111561442257600080fd5b5061442f8a828b01613e07565b989b979a50959850939692959293505050565b60006060828403121561445457600080fd5b50919050565b60008060008060008060008060008060006101008c8e03121561447c57600080fd5b6144858c613dcb565b9a5060208c013599506001600160401b038060408e013511156144a757600080fd5b6144b78e60408f01358f01614442565b99508060608e013511156144ca57600080fd5b6144da8e60608f01358f01613e07565b909950975060808d01358110156144f057600080fd5b6145008e60808f01358f01613e07565b909750955060a08d013581101561451657600080fd5b506145278d60a08e01358e01613e07565b909450925061453860c08d01614397565b915060e08c013590509295989b509295989b9093969950565b6000806000806060858703121561456757600080fd5b8435935060208501356001600160401b0381111561458457600080fd5b61459087828801613e07565b90945092506145a3905060408601614397565b905092959194509250565b600181811c908216806145c257607f821691505b60208210810361445457634e487b7160e01b600052602260045260246000fd5b6020808252602d908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526c1c881bdc88185c1c1c9bdd9959609a1b606082015260800190565b601f821115610a4d57600081815260208120601f850160051c810160208610156146565750805b601f850160051c820191505b8181101561467557828155600101614662565b505050505050565b81516001600160401b0381111561469657614696613fde565b6146aa816146a484546145ae565b8461462f565b602080601f8311600181146146df57600084156146c75750858301515b600019600386901b1c1916600185901b178555614675565b600085815260208120601f198616915b8281101561470e578886015182559484019460019091019084016146ef565b508582101561472c5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6001600160401b0383111561475357614753613fde565b6147678361476183546145ae565b8361462f565b6000601f84116001811461479b57600085156147835750838201355b600019600387901b1c1916600186901b1783556138f7565b600083815260209020601f19861690835b828110156147cc57868501358255602094850194600190920191016147ac565b50868210156147e95760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b80820281158282048414176106eb576106eb614811565b60008261485b57634e487b7160e01b600052601260045260246000fd5b500490565b6000808335601e1984360301811261487757600080fd5b8301803591506001600160401b0382111561489157600080fd5b6020019150600681901b3603821315613e4857600080fd5b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b8481526060602082015260006148ec6060830185876148a9565b905060ff8316604083015295945050505050565b8581526080602082015260006149196080830187613d77565b828103604084015261492c8186886148a9565b91505060ff831660608301529695505050505050565b60018060a01b03851681528360208201526080604082015260006149696080830185613d77565b90506005831061498957634e487b7160e01b600052602160045260246000fd5b82606083015295945050505050565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b60208082526025908201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060408201526437bbb732b960d91b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60008351614a8c818460208801613d53565b835190830190614aa0818360208801613d53565b01949350505050565b6001600160601b0381168114610fe757600080fd5b600060208284031215614ad057600080fd5b813561363d81614aa9565b808201808211156106eb576106eb614811565b8135614af981613db6565b81546001600160a01b03199081166001600160a01b039290921691821783556020840135614b2681614aa9565b60a01b1617905550565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090614b6390830184613d77565b9695505050505050565b600060208284031215614b7f57600080fd5b815161363d81613d07565b818103818111156106eb576106eb61481156fea26469706673582212202e65ca342703b2175cdc4203f547b2814e97c891d740dd2e0c1b20d0b040043d64736f6c63430008110033",
"nonce": 38,
"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
Name | Type | Description |
---|---|---|
rpc | String | Remote procedural call URL. |
chainId | String | Refer to the Chain ID page for details. |
chainSymbol | String | Refer to the Chain ID page for details. |
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 |
|
https://api.expand.network/chain/portfolio?chainId=137&address=0x28aAc2D0B8e4292F499675014be4C323c60563c1&availableOnly=true
{
"status": 200,
"msg": "success",
"data": {
"native": "129881639152222868",
"evmTokens": [
{
"name": "$ get-usdc.com",
"symbol": "Visit https://get-usdc.com to claim rewards",
"decimals": "18",
"address": "0x011de7ae82cabe65824114110773096181bb0215",
"balance": "1049000000000000000000",
"assetType": "ERC20",
"USDPrice": null
},
{
"name": "Guild Pin",
"symbol": "GUILD",
"decimals": "0",
"address": "0xff04820c36759c9f5203021fe051239ad2dcca8a",
"balance": "1",
"assetType": "ERC721",
"tokenId": "286405"
},
{
"name": "Gateway Protocol",
"symbol": "PASS",
"decimals": "0",
"address": "0xf65b6396df6b7e2d8a6270e3ab6c7bb08baef22e",
"balance": "1",
"assetType": "ERC721",
"tokenId": "240776"
},
{
"name": "1000$ Drop: drop-usd.me",
"symbol": "drop-usd.me",
"decimals": "0",
"address": "0xf4241ec87b3f84a1183e701f1f6aa35ebc366922",
"balance": "1",
"assetType": "ERC1155",
"tokenId": "0"
},
{
"name": "Fallen Star",
"symbol": "STAR",
"decimals": "0",
"address": "0xe5325804d68033edf65a86403b2592a99e1f06de",
"balance": "1",
"assetType": "ERC721",
"tokenId": "105243"
},
{
"name": "Fallen Star",
"symbol": "STAR",
"decimals": "0",
"address": "0xe5325804d68033edf65a86403b2592a99e1f06de",
"balance": "1",
"assetType": "ERC721",
"tokenId": "105170"
},
{
"name": "Voucher USDC Coin",
"symbol": "Voucher",
"decimals": "0",
"address": "0xcf2576238640a3a232fa6046d549dfb753a805f4",
"balance": "1",
"assetType": "ERC1155",
"tokenId": "0"
},
{
"name": "Polyhedra 2024",
"symbol": "Polyhedra 2024",
"decimals": "0",
"address": "0xcd4b2e538c9d2c1ca117c8f5f2e8fa56f6ba1069",
"balance": "1",
"assetType": "ERC721",
"tokenId": "250471"
},
{
"name": "$2000 USDC",
"symbol": "Voucher",
"decimals": "0",
"address": "0xc3377442b2435ba373336d1a2ac9a3ef99a7b4f8",
"balance": "1",
"assetType": "ERC1155",
"tokenId": "0"
},
{
"name": "$2000 USDC Voucher🎁",
"symbol": "2000usdc.org",
"decimals": "0",
"address": "0xbd6b51ebaa019d7c7ec7b4474737f94e95c8067d",
"balance": "1",
"assetType": "ERC1155",
"tokenId": "1"
},
{
"name": "$1000 Rewards",
"symbol": "1000-usdt.com",
"decimals": "0",
"address": "0xbc48a74b77827c8cad46b7f9cc495585c74d3b82",
"balance": "1",
"assetType": "ERC1155",
"tokenId": "0"
}
]
}
}
/getusertransactions
Get the historical transaction details for a specific user address.
GET
https://api.expand.network/chain/getusertransactions
Query Parameters
Name | Type | Description |
---|---|---|
rpc | String | Remote procedural call URL. |
chainId* | String | Refer to the Chain ID page for details. |
chainSymbol | String | Refer to the Chain ID page for details. |
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=0x006Dda54A6a3FAC2742F6db38029ADCd2dFE0A52&page=1&sortOrder=asc&chainId=137
{
"status": 200,
"msg": "success",
"data": {
"totalPages": "1",
"currentPage": "1",
"transactions": [
{
"block_signed_at": "2023-11-02T06:35:19Z",
"block_height": 49443643,
"block_hash": "0xb09ecd73ac6dd439a56ff8d60f1a5e8185cfb7c6f2522640b5274e84016d76e9",
"tx_hash": "0x7f148609b727ae09ac08890ed0d06ed6aedcb3dcd85398a048b34e324a32c6ba",
"tx_offset": 105,
"successful": true,
"miner_address": "0x0000000000000000000000000000000000000000",
"from_address": "0x44d4e245f1f82a2c788b8858ca7dffd07d28c1d9",
"from_address_label": null,
"to_address": "0xe06bd4f5aac8d0aa337d13ec88db6defc6eaeefe",
"to_address_label": null,
"value": "0",
"value_quote": 0,
"pretty_value_quote": "$0.00",
"gas_metadata": {
"contract_decimals": 18,
"contract_name": "Matic Token",
"contract_ticker_symbol": "MATIC",
"contract_address": "0x7d1afa7b718fb893db30a3abc0cfc608aacfebb0",
"supports_erc": [
"erc20"
],
"logo_url": "https://www.datocms-assets.com/86369/1677870347-property-1-polygon-zkevm-icon-white.svg"
},
"gas_offered": 77293,
"gas_spent": 51529,
"gas_price": 68783029951,
"fees_paid": "3544320750345079",
"gas_quote": 0.0023425350948726663,
"pretty_gas_quote": "$0.00",
"gas_quote_rate": 0.6609263833259432,
"explorers": [
{
"label": null,
"url": "https://polygonscan.com/tx/0x7f148609b727ae09ac08890ed0d06ed6aedcb3dcd85398a048b34e324a32c6ba"
}
]
}
]
}
}
/sendtransaction
Send transaction on the chain.
POST
https://api.expand.network/chain/sendtransaction
Request Body
Name | Type | Description |
---|---|---|
rpc | String | Remote procedural call URL. |
chainId* | String | Refer to the Chain ID page for details. |
chainSymbol | String | Refer to the Chain ID page for details. |
rawTransaction* | String | The encoded transaction, obtained from the signed transaction. |
{
"chainId" : "137",
"rawTransaction": "0xf86f048433918fbe830493e0949b79d6dfe4650d70f35dbb80f7d1ec0cf7f823fd87038d7ea4c6800084022794382da0c9bd6b5c7e18a258b04039d524a3e1382ec0f522d160dc027428933f520b6868a07332736f1df297842299230820626f1fc5b8d4cdd602ade55e3ba02c63e756ce"
}
{
"status": 200,
"msg": "success",
"data": {
"chainId" : "137",
"transactionHash": "0x8375c5eedd17609292cecc051c18e180fa970b32a77011c48d3725e45e46e7b3"
}
}
/decodetransaction
Get the decoded transaction for the provided raw transaction.
POST
https://api.expand.network/chain/decodetransaction
Request Body
Name | Type | Description |
---|---|---|
chainId | String | Refer to the Chain ID page for details. By default, Ethereum. |
chainSymbol | String | Refer to the Chain ID page for details. |
rawTransaction* | String | The raw transaction to be given for decoding. |
{
"chainId": "137",
"rawTransaction": "0xf86c808511cf7b7e2f830a3b4f94a67e9b68c41b0f26184d64c26e0b2b81466e599485e8d4a5100080820135a0a6212e566b2e319cd45625034eed1579feb6b8663f470cebf0a676efec134a88a04830a7db11731943ebb2f2b78d054ddcf3153abe5571efb235efec00f555a870"
}
{
"status": 200,
"msg": "success",
"data": {
"parsedTx": {
"nonce": 0,
"gasPrice": {
"type": "BigNumber",
"hex": "0x11cf7b7e2f"
},
"gasLimit": {
"type": "BigNumber",
"hex": "0x0a3b4f"
},
"to": "0xa67E9B68c41b0f26184D64C26e0b2B81466E5994",
"value": {
"type": "BigNumber",
"hex": "0xe8d4a51000"
},
"data": "0x",
"chainId": 137,
"v": 309,
"r": "0xa6212e566b2e319cd45625034eed1579feb6b8663f470cebf0a676efec134a88",
"s": "0x4830a7db11731943ebb2f2b78d054ddcf3153abe5571efb235efec00f555a870",
"from": "0xa67E9B68c41b0f26184D64C26e0b2B81466E5994",
"hash": "0xf8804fa797eabdeea7974497ec5d284da838043c84ee46f4211eec21f5fb3b86",
"type": null
},
"assetChanges": {
"from": "0xa67E9B68c41b0f26184D64C26e0b2B81466E5994",
"to": "0xa67E9B68c41b0f26184D64C26e0b2B81466E5994",
"value": {
"type": "BigNumber",
"hex": "0xe8d4a51000"
}
}
}
}
Last updated