Kaia

/getbalance

Get the balance 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.

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.

vsCurrencies

String

A comma-separated list of currency symbols to convert the amount into, such as 'USD,EUR'. This parameter is optional and allows retrieving values in multiple fiat currencies.

https://api.expand.network/chain/getbalance?address=0xb6ab494d9b20ede5e57b42b6d7f058a9c802b0e2&blockNumber=196533060&tokenAddress=0xd077a400968890eacc75cdc901f0356c943e4fdb&timestamp=1759314478&vsCurrencies=inr&chainId=8217

/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 number or block hash.

https://historicallp.api.expand.network/chain/getblock?blockNumber=196533060&chainId=8217

/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.

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

https://api.expand.network/chain/portfolio?address=0x56b4b18f6293252fc5eec4e5df1915f7218d04fc&chainId=8217&availableOnly=false

/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=8217&transactionHash=0x7a4259d9e5add14229e3d9607a740e7eb178f649ee8c9c8201fa05545ffd9141

/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=8217

/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?address=0xb6ab494d9b20ede5e57b42b6d7f058a9c802b0e2&index=0&chainId=8217

/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.

{
    "rawTransaction": "0xf8ab8085066720b30082c8c69455acee547df909cf844e32dd66ee55a6f81dc71b80b844a9059cbb0000000000000000000000007d18db7c02029f4cd817085dfbc78d9c22c442900000000000000000000000000000000000000000000000000000000000000001824056a055fcf5b72b7c84e37f17f975ba400db7d9f87da09912254472436df8a898be98a014e4a31af18cb8dca5e96f3fb0a12f32451feae3ad09af4ac28511cf770af01e",
    "chainId": "8217"
}

/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.

{
    "rawTransaction": "0xf8ab8085066720b30082c8c69455acee547df909cf844e32dd66ee55a6f81dc71b80b844a9059cbb0000000000000000000000007d18db7c02029f4cd817085dfbc78d9c22c442900000000000000000000000000000000000000000000000000000000000000001824056a055fcf5b72b7c84e37f17f975ba400db7d9f87da09912254472436df8a898be98a014e4a31af18cb8dca5e96f3fb0a12f32451feae3ad09af4ac28511cf770af01e",
    "chainId": "8217"
}

Last updated