Optimism
/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=0x6af9fed62bb9011a12cb8aa69e771c1bd0ad988e&chainId=10
/getblock
Get details of a block.
GET
https://api.expand.network/chain/getblock
Query Parameters
https://api.expand.network/chain/getblock?blockNumber=2525553&chainId=10
/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=10
/getstorage
Get data stored in the given slot.
GET
https://api.expand.network/chain/getstorage
Query Parameters
https://api.expand.network/chain/getstorage?chainId=10&address=0x5470EA9f962D138229043F903b96E083484A6330
/gettransaction
Get details of a transaction.
GET
https://api.expand.network/chain/gettransaction
Query Parameters
https://api.expand.network/chain/gettransaction?chainId=10&transactionHash=0xda0dd3b42e45d85ddb470cab146bbc957ee0eb5a6c95ab9996b6c3a1868b0082
/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=10&address=0xDeaDDEaDDeAdDeAdDEAdDEaddeAddEAdDEAd0001&availableOnly=true
/sendtransaction
Send transaction on the chain.
POST
https://api.expand.network/chain/sendtransaction
Request Body
{
"chainId" : "10",
"rawTransaction": "0xf86f048433918fbe830493e0949b79d6dfe4650d70f35dbb80f7d1ec0cf7f823fd87038d7ea4c6800084022794382da0c9bd6b5c7e18a258b04039d524a3e1382ec0f522d160dc027428933f520b6868a07332736f1df297842299230820626f1fc5b8d4cdd602ade55e3ba02c63e756ce"
}
/decodetransaction
Get the decoded transaction for the provided raw transaction.
POST
https://api.expand.network/chain/decodetransaction
Request Body
{
"chainId": "10",
"rawTransaction": "0xf86c808401fedd93830d575194a67e9b68c41b0f26184d64c26e0b2b81466e5994888ac7230489e800008038a09055da16d4d23b1d1831ff8c150820a5e48dc931a0682c708b147ffb9db78f95a0037037cd03120d877daf33ae416fe4f14091624da042312a5c080a25752839f8"
}
Last updated