Fantom

/getbalance

Get the balance or number of the given token in the requested public address.

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

Query Parameters

NameTypeDescription

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

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=0xCAa24193AAc383647D4a9a54F57a96d287Cf9A03&chainId=250

/getblock

Get details of a block.

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

Query Parameters

NameTypeDescription

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.

startBlock

String

Starting block of the range.

endBlock

String

Last block of the range.

https://historicallp.api.expand.network/chain/getblock?chainId=250&startBlock=1900010&endBlock=1900011

/getgasprice

Get the current gas price from the network.

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

Query Parameters

NameTypeDescription

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=250

/getstorage

Get data stored in the given slot.

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

Query Parameters

NameTypeDescription

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?chainId=250&address=0xBfc82f3526874B9c3c1b1E7afE5EB293aC77011C

/gettransaction

Get details of a transaction.

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

Query Parameters

NameTypeDescription

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=250&transactionHash=0x3d30e4e6dea4306b87c642f882617d5d4ef7dec10f9cea7aaf43f549dcfd817e

/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

NameTypeDescription

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.

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.

https://api.expand.network/chain/portfolio?chainId=250&address=0xE07A19BD62Ec121778e2d3bbb604536dcF4b62F2&availableOnly=true

/getusertransactions

Get the historical transaction details for a specific user address.

GET https://historicallp.api.expand.network/chain/getusertransactions

Query Parameters

NameTypeDescription

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

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.

https://historicallp.api.expand.network/chain/getusertransactions?address=0xbbCc5501cFBA3c8dc2225558664B5c1084DE42Fa&page=19&sortOrder=asc&chainId=250

/sendtransaction

Send transaction on the chain.

POST https://api.expand.network/chain/sendtransaction

Request Body

NameTypeDescription

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.

{
    "chainId" : "250",
    "rawTransaction": "0xf86f048433918fbe830493e0949b79d6dfe4650d70f35dbb80f7d1ec0cf7f823fd87038d7ea4c6800084022794382da0c9bd6b5c7e18a258b04039d524a3e1382ec0f522d160dc027428933f520b6868a07332736f1df297842299230820626f1fc5b8d4cdd602ade55e3ba02c63e756ce"
}

/decodetransaction

Get the decoded transaction for the provided raw transaction.

POST https://api.expand.network/chain/decodetransaction

Request Body

NameTypeDescription

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.

{
    "chainId": "250",
    "rawTransaction": "0xf86b80850814ba728a830a3d8794f73ee0e06a1b8ec3a7ff860d766e75f3eea7b985843b9aca0080820217a09822cc76301462e630aa10db91f4035c343cf236ccc9c341196a12f590dbc610a0676fa7aba1fe0a7905a2ab0ccfdd4fed61f25df2f7cb662dd07e01222b62f56d"
}

Last updated