Cronos
/getbalance
Get the balance or number of the given token in the requested public address.
GET
https://api.expand.network/chain/getbalance
Query Parameters
rpc
String
Remote procedural call URL
chainId*
String
chainSymbol
String
blockNumber
String
Block number for which the balance needs to be retrieved.
By default, it will pick the latest block number when not specified.
address*
String
The public address to get the balance of.
tokenAddress
String
The address of token to get the balance of.
timestamp
String
The timestamp of the block number. Note- When both a timestamp and a block number are provided, the timestamp will take precedence.
/getblock
Get details of a block.
GET
https://historicallp.api.expand.network/chain/getblock
Query Parameters
rpc
String
Remote procedural call URL.
chainId*
String
chainSymbol
String
blockNumber*
String
The block number or block hash.
/getgasprice
Get the current gas price from the network.
GET
https://api.expand.network/chain/getgasprice
Query Parameters
rpc
String
Remote procedural call URL.
chainId*
String
chainSymbol
String
/getstorage
Get data stored in the given slot.
GET
https://api.expand.network/chain/getstorage
Query Parameters
rpc
String
Remote procedural call URL.
chainId*
String
chainSymbol
String
address*
String
Contract address whose storage is needed.
index
String
Slot index on the smart contract. By default, it is taken as 0.
/gettransaction
Get details of a transaction.
GET
https://api.expand.network/chain/gettransaction
Query Parameters
rpc
String
Remote procedural call URL.
chainId*
String
chainSymbol
String
transactionHash*
String
The transaction hash.
/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.
chainId
String
chainSymbol
String
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.
pageToken
String
Present at the end of a lengthy response to fetch the next page.
assetType
String
fungible
/nonFungible
standard choice.
By default, all
.
timestamp
String
The Timestamp of the block number up to which the balances will be fetched.
Note-Only applicable for assetType fungible
blockNumber
String
The block number up to which the balances will be fetched.
Note-Only applicable for assetType fungible
/getusertransactions
Get the historical transaction details for a specific user address.
GET
https://historicallp.api.expand.network/chain/getusertransactions
Query Parameters
rpc
String
Remote procedural call URL.
chainId
String
chainSymbol
String
address*
String
The public address of the user.
pageToken
String
The page cursor present at the top to fetch the next page.
pageSize
String
The page size. By Default 30 and Max 100
sortOrder
String
The transaction sorting order. asc or desc. By default, desc.
startBlock
String
The starting block number from which to get the transactions. By default, the Genesis block
endBlock
String
The ending block number from which to get the transactions By default, the current block
fromTimestamp
String
The start date from which to get the transactions ( format in seconds or date string ) Note-If 'fromTimestamp' and 'startBlock' are provided, 'startBlock' will be used. By default, the Genesis block timestamp
toTimestamp
String
The end date from which to get the transactions ( format in seconds or date string ) Note- If 'toTimestamp' and 'endBlock' are provided, 'endBlock' will be used.
By default, the current block timestamp
/sendtransaction
Send transaction on the chain.
POST
https://api.expand.network/chain/sendtransaction
Request Body
rpc
String
Remote procedural call URL.
chainId*
String
chainSymbol
String
rawTransaction*
String
The encoded transaction, obtained from the signed transaction.
/decodetransaction
Get the decoded transaction for the provided raw transaction.
POST
https://api.expand.network/chain/decodetransaction
Request Body
chainId
String
chainSymbol
String
rawTransaction*
String
The raw transaction to be given for decoding.
Last updated