Ethereum
/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=0x731FDBd6871aD5cD905eE560A84615229eD8197a{
"status": 200,
"msg": "success",
"data": {
"balance": "102907902410719396674"
}
}/getblock
Get details of a block.
GET https://api.expand.network/chain/getblock
Query Parameters
/getgasprice
Get the current gas price from the network.
GET https://api.expand.network/chain/getgasprice
Query Parameters
/getstorage
Get data stored in the given slot.
GET https://api.expand.network/chain/getstorage
Query Parameters
/gettransaction
Get details of a transaction.
GET https://api.expand.network/chain/gettransaction
Query Parameters
/getgasfees
Retrieves the total fee spent, current price, adjusted price (in cents), and the transaction list associated with a specified address within a given block range.
GET https://api.expand.network/chain/getgasfees
Query Parameters
rpc
String
Remote procedural call URL.
address*
String
Addess of the user
startBlock
String
Starting block of the range by default it is latestblock-100
endBlock
String
Last block of the range
by default it is latest block
/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.
/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.
/getflashbotblocks
Get details of the flashbot blocks.
GET https://api.expand.network/chain/getflashbotblocks
Query Parameters
/getflashbottransactions
Get details of the flashbot transactions.
GET https://api.expand.network/chain/getflashbottransactions
Query Parameters
/getflashbotbundle
Get details of the specified flashbot bundle.
GET https://api.expand.network/chain/getflashbotbundle
Query Parameters
/sendtransaction
Send transaction on the chain.
POST https://api.expand.network/chain/sendtransaction
Request Body
rpc
String
Remote procedural call URL.
rawTransaction*
String
The encoded transaction, obtained from the signed transaction.
bdnTransaction
Boolean
If true, then txn goes through the bdn route, which speeds up the transaction process.
By default, false.
mevProtection
Boolean
If true, then txn goes through flashbots.
With bdnTransaction: true
With bdnTransaction: true
With mevProtection: true
With mevProtection: true
/genericsmartcontractmethod
Executes a read query on a verified smart contract on etherscan. In case of un-verified smart contracts, ABI needs to be provided to proceed accordingly.
POST https://api.expand.network/chain/genericsmartcontractmethod
Request Body
rpc
String
Remote procedural call URL.
contractAddress*
String
Address of the Contract to perform read operation on.
parameters
Array
Parameters to the read function
abi
String
Abi of the smart contract
methodName*
String
Name of the read function to be called
blockNumber
String
BlockNumber to perform read query on. by Default latestBlock
/decodetransaction
Get the decoded transaction for the provided raw transaction.
POST https://api.expand.network/chain/decodetransaction
Request Body
Last updated

