Mantle

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

https://api.expand.network/chain/getbalance?address=0x88a1493366D48225fc3cEFbdae9eBb23E323Ade3&chainId=5000

/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=74145559&chainId=5000

/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?transactionHash=0xeebf66908b89a2460226302e4807dd44b7f74cf13089692fda5d71e18a6263e3&chainId=5000

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

/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=0x6839f0eB2a4f323aC616b99BA01547dE592BC965

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

{
    "chainId": "5000",
    "rawTransaction": "0xf86a808401312d00830392fa94747b11e5aacef79cd78c78a8436946b00de30b97843b9aca0080822733a02af535667ba70c4d56dc5b508af37120eb46543de879e184746cb713f7ad254fa00c9d4f0e8b736d8abb4c2038009539bf72643d35a84e8e6b55e354f253d11bec"
}

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

{
    "chainId": "5000",
    "rawTransaction": "0xf86c018401312d008501dcd6500094747b11e5aacef79cd78c78a8436946b00de30b97843b9aca0080822739a09f0a6bbf16151a05296e7aea4b16451eeb046fe42c8839f65ed158213e4de30ba0052520a536cf7a9293bfa691414b1bfc21bfc59d6190c6f4ca98e3ba91132072"
}

Last updated