Starknet

/getbalance

Get the balance or number 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

chainSymbol

String

address*

String

The public address to get the balance of.

tokenAddress

String

The address of token to get the balance of.

https://api.expand.network/chain/getbalance/?address=0x002eb24d4fda7c0e4473c091da3bc0b2dfd1622d3d8334d0f5e921587aaeb01f&chainId=400

/getblock

Get details of a block.

GET https://api.expand.network/chain/getblock

Query Parameters

Name
Type
Description

rpc

String

Remote procedural call URL.

chainId*

String

chainSymbol

String

blockNumber*

String

The block number or block hash.

https://api.expand.network/chain/getblock/?chainId=400&blockNumber=164639

/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

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.

https://api.expand.network/chain/getstorage?address=0x02d6150113d899d8c9de05990974c115dd532bc4dbc71bde85210410b9b30ae5&chainId=400

/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

chainSymbol

String

transactionHash*

String

The transaction hash.

https://api.expand.network/chain/gettransaction?transactionHash=0x03916ca8924008be74ccdaebf8214704ebec30b2ca433dd29a4a7ebe91ab9243&chainId=400

/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

chainSymbol

String

rawTransaction*

String

The encoded transaction, obtained from the signed transaction.

{
    "chainId": "400",
    "rawTransaction": "eyJpbnZva2VfdHJhbnNhY3Rpb24iOnsic2VuZGVyX2FkZHJlc3MiOiIweDAyNzM1ZTYwZjAzNDZhODgyNzYzNjI5MDIyMGU5OTUxMTdjYzE0MjgwNTQzZDVjZDVjOGQ1NDRkNzMzNGJlZjgiLCJjYWxsZGF0YSI6WyIweDEiLCIweDQ5ZDM2NTcwZDRlNDZmNDhlOTk2NzRiZDNmY2M4NDY0NGRkZDZiOTZmN2M3NDFiMTU2MmI4MmY5ZTAwNGRjNyIsIjB4ODNhZmQzZjRjYWVkYzZlZWJmNDQyNDZmZTU0ZTM4Yzk1ZTMxNzlhNWVjOWVhODE3NDBlY2E1YjQ4MmQxMmUiLCIweDAiLCIweDMiLCIweDMiLCIweDQ3ZGU0YTBhNjg1NTdmMzhiNzU0ZTZkODc1YWNkNDk3MmNiZDJiMjIyZGU5YmEzMmY0Y2UwOTAyYTMwODlmZiIsIjB4MjA4NTcxIiwiMHgwIl0sInR5cGUiOiJJTlZPS0UiLCJtYXhfZmVlIjoiMHg1MWViODViOWFiNSIsInZlcnNpb24iOiIweDEiLCJzaWduYXR1cmUiOlsiMHg0NTc4MjhmYzU5NTBiY2NkNWYwMjhjNjU5ZjI0ODZlZWU0ZDZkMmQ5NDcxMGI0NTZhNjYyYzBkZGJmZjkwOWIiLCIweDk1NjQxMDYzMWM3ZGVkOWZmNTIwNGE3ODVhNWY0NjhiMDNjYTQ5YjU1ZTgxMzZiMGNkNDFhNmRkYjExNzdmIl0sIm5vbmNlIjoiMHgyYSJ9fQ=="
}

Last updated

#553: ENC-2526-LIDO

Change request updated