Sui
Note: Supported version - Node v18+
/getsuibalance
Get the balance or number of the given token in the requested public address.
GET
https://historicallp.api.expand.network/chain/getsuibalance
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 | 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. |
/getblock
Get details of a block.
GET
https://historicallp.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(Checkpoint) number or block hash. |
/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. |
/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 | Object Id whose storage is needed. |
/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(digest) hash. |
/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. |
signature* | String | Signature, received after signing the transaction. |
Last updated