> For the complete documentation index, see [llms.txt](https://docs.expand.network/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.expand.network/integrations/blockchains/evm-based-blockchains/mantle.md).

# Mantle

## /getbalance

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

<mark style="color:blue;">`GET`</mark> `https://api.expand.network/chain/getbalance`

#### Query Parameters

<table><thead><tr><th width="190">Name</th><th width="95">Type</th><th>Description</th></tr></thead><tbody><tr><td>rpc</td><td>String</td><td>Remote procedural call URL</td></tr><tr><td>chainId<mark style="color:red;">*</mark></td><td>String</td><td>Refer to the <a href="/pages/5o1xMsQPqXw9GBfGTpdB">Chain ID </a>page for details. </td></tr><tr><td>chainSymbol<mark style="color:red;">*</mark></td><td>String</td><td>Refer to the <a href="/pages/5o1xMsQPqXw9GBfGTpdB">Chain ID </a>page for details.</td></tr><tr><td>blockNumber</td><td>String</td><td><p>Block number for which the balance needs to be retrieved.</p><p>By default it will pick the latest block number when not specified.</p></td></tr><tr><td>address<mark style="color:red;">*</mark></td><td>String</td><td>The public address to get the balance of.</td></tr><tr><td>tokenAddress</td><td>String</td><td>The address of token to get the balance of.</td></tr><tr><td>timestamp</td><td>String</td><td>The timestamp of the block number.<br><strong>Note</strong>- When both a timestamp and a block number are provided, the timestamp will take precedence.</td></tr></tbody></table>

{% tabs %}
{% tab title="Sample Request" %}

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

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "balance": "43000001943480581820000000"
    }
}
```

{% endtab %}
{% endtabs %}

## /getblock

Get details of a block.

<mark style="color:blue;">`GET`</mark> `https://historicallp.api.expand.network/chain/getblock`

#### Query Parameters

<table><thead><tr><th width="165">Name</th><th width="92">Type</th><th>Description</th></tr></thead><tbody><tr><td>rpc</td><td>String</td><td>Remote procedural call URL.</td></tr><tr><td>chainId<mark style="color:red;">*</mark></td><td>String</td><td>Refer to the <a href="/pages/5o1xMsQPqXw9GBfGTpdB">Chain ID </a>page for details.</td></tr><tr><td>chainSymbol<mark style="color:red;">*</mark></td><td>String</td><td>Refer to the <a href="/pages/5o1xMsQPqXw9GBfGTpdB">Chain ID </a>page for details.</td></tr><tr><td>blockNumber<mark style="color:red;">*</mark></td><td>String</td><td>The block number or block hash.</td></tr></tbody></table>

{% tabs %}
{% tab title="Sample Request" %}

```url
https://historicallp.api.expand.network/chain/getblock?blockNumber=74145559&chainId=5000
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "baseFeePerGas": 20000000,
        "difficulty": "0",
        "extraData": "0x",
        "gasLimit": 200000000000,
        "gasUsed": 9001798130,
        "hash": "0x35da7159f42026147e4f6a51c313166e4edee7b2b9797e34fc186e4194b3d35a",
        "logsBloom": "0x2420060000000200000000008200402000004000000101880000840000000040000400000000000000000600000200040000100000202202020000000020000054c00020204400888000200800400020000844c0000420000006000000000800800080000210000008000001000008800000801008048000008090120048004200000110100082028000840040000401003080000840001a29202048460000400220000000000600000000400002000800000000010000080443011200000000c0000022000000010000000000000800202d00000600009010000010000020000030080000441008000200182004000100020000090010004020000002000001",
        "miner": "0x4200000000000000000000000000000000000011",
        "mixHash": "0x9545d74a61df2fd11e54f095fa2c2daf993e8d3739ee0113e7f94c3491ed5c8f",
        "nonce": "0x0000000000000000",
        "number": 74145559,
        "parentHash": "0x2d072b6220a05e838ff8c5f6ebd153f3938b99768ffb027fa3ab5a2aab05cfb2",
        "receiptsRoot": "0x98d6490cfd1e52d283df99f55c89f8fb93a3b85cbf33229567c959d23d53b17f",
        "size": 4908,
        "timestamp": 1736421430,
        "totalDifficulty": "0",
        "transactions": [
            {
                "chainId": "5000",
                "hash": "0x02d3555ad31257fdb667052abc2fde5907344ea1b63523c31076427bafd2e96a",
                "transactionStatus": true,
                "blockNumber": "74145559",
                "timestamp": null,
                "from": "0xDeaDDEaDDeAdDeAdDEAdDEaddeAddEAdDEAd0001",
                "to": "0x4200000000000000000000000000000000000015",
                "value": "0",
                "transactionFees": "0",
                "gas": "1000000",
                "gasPrice": "0",
                "input": "0x015d8eb9000000000000000000000000000000000000000000000000000000000149628400000000000000000000000000000000000000000000000000000000677fb007000000000000000000000000000000000000000000000000000000012a01c179bd730357e1780c828d7ab033f33920da82df915e2ae0faf0e6d70a85d5dbb7fc00000000000000000000000000000000000000000000000000000000000000020000000000000000000000002f40d796917ffb642bd2e2bdd2c762a5e40fd74900000000000000000000000000000000000000000000000000000000000000bc0000000000000000000000000000000000000000000000000000000000002710",
                "nonce": 12973612,
                "type": 126,
                "network": null,
                "v": "0x0",
                "r": "0x0",
                "s": "0x0",
                "yParity": null,
                "transactionIndex": null,
                "accessList": null,
                "maxFeePerGas": null,
                "maxPriorityFeePerGas": null,
                "logs": []
            },
            {
                "chainId": "5000",
                "hash": "0xfc88ca33a34779d17231b42106a637b22353ba3c4a861428a4d1ac9bcb22c88c",
                "transactionStatus": true,
                "blockNumber": "74145559",
                "timestamp": null,
                "from": "0x08AeCC0422eA5106AF0F830659654178b31B1D7d",
                "to": "0x0837F6De02e7452F38159aad0105bD46ecfcae89",
                "value": "0",
                "transactionFees": "101864509599838180",
                "gas": "3445033365",
                "gasPrice": "73111235",
                "input": "0x7299095e000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000043fd3f0d85031f3a0400000000000000000000000000000000000000000000000000000015f11505c00000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000030000000000000000000000001607b88cd4dcc7fe7e31abb7196f13f14dece09200000000000000000000000078c1b0c915c4faa5fffa6cabf0219da63d7f4cb8000000000000000000000000deaddeaddeaddeaddeaddeaddeaddeaddead11110000000000000000000000000000000000000000000600000000000000001201000000000000000000000000f6a2636f23d7885e6f5e558bc6de8374dd2575d3000000000000000000000000deaddeaddeaddeaddeaddeaddeaddeaddead1111000000000000000000000000e6829d9a7ee3040e1276fa75293bde931859e8fa0000000000000000000000000000000000000000000200010f42400000641212000000000000000000000000ccf8145a93ddf3e2094f1146453b7aa3c5735aa8000000000000000000000000e6829d9a7ee3040e1276fa75293bde931859e8fa00000000000000000000000078c1b0c915c4faa5fffa6cabf0219da63d7f4cb80000000000000000000000000000000000000000000600000000000000001200",
                "nonce": 25150,
                "type": null,
                "network": null,
                "v": "0x2734",
                "r": "0x1ba13acbcd5ecce0ca946c69e84b9fe27ebd433b4acc3f12e63cdf7c00642820",
                "s": "0x3d9bce4a3919c146fddaa6ebd0f45f98694b358fd65ad2371f9b221748d11e2e",
                "yParity": null,
                "transactionIndex": 1,
                "accessList": null,
                "maxFeePerGas": null,
                "maxPriorityFeePerGas": null,
                "logs": [
                    {
                        "address": "0xE6829d9a7eE3040e1276Fa75293Bde931859e8fA",
                        "blockHash": "0x35da7159f42026147e4f6a51c313166e4edee7b2b9797e34fc186e4194b3d35a",
                        "blockNumber": 74145559,
                        "data": "0x00000000000000000000000000000000000000000000000005dd8b4c8590382c",
                        "logIndex": 0,
                        "removed": false,
                        "topics": [
                            "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
                            "0x000000000000000000000000f6a1727e32e6976d7e6d649ad5ed9283ec3484e3",
                            "0x000000000000000000000000ccf72369a2ed02f1185e2055544a89b2d48269b8"
                        ],
                        "transactionHash": "0xfc88ca33a34779d17231b42106a637b22353ba3c4a861428a4d1ac9bcb22c88c",
                        "transactionIndex": 1,
                        "id": "log_e31fe039"
                    },
                    {
                        "address": "0xccf72369a2eD02f1185e2055544a89B2D48269b8",
                        "blockHash": "0x35da7159f42026147e4f6a51c313166e4edee7b2b9797e34fc186e4194b3d35a",
                        "blockNumber": 74145559,
                        "data": "0x00000000000000000000000000000000000000000000000000000000007ff05d000000000000000005dcf18a717085280000000000000000000000000000000000000000000000000000000000000000000000000000004406c76d8935bc2ea200000000000000000000000000000000000000000000000000000000000000000000000000000000000300ca649e7f17000000000000000000000000000000000000000000000000000099c2141fb30400000000000000000000000000000000",
                        "logIndex": 1,
                        "removed": false,
                        "topics": [
                            "0xad7d6f97abf51ce18e17a38f4d70e975be9c0708474987bb3e26ad21bd93ca70",
                            "0x0000000000000000000000000837f6de02e7452f38159aad0105bd46ecfcae89",
                            "0x0000000000000000000000000837f6de02e7452f38159aad0105bd46ecfcae89"
                        ],
                        "transactionHash": "0xfc88ca33a34779d17231b42106a637b22353ba3c4a861428a4d1ac9bcb22c88c",
                        "transactionIndex": 1,
                        "id": "log_140f6a2b"
                    },
                    {
                        "address": "0x78c1b0C915c4FAA5FffA6CAbf0219DA63d7f4cb8",
                        "blockHash": "0x35da7159f42026147e4f6a51c313166e4edee7b2b9797e34fc186e4194b3d35a",
                        "blockNumber": 74145559,
                        "data": "0x00000000000000000000000000000000000000000000004406c76d8935bc2ea2",
                        "logIndex": 2,
                        "removed": false,
                        "topics": [
                            "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
                            "0x000000000000000000000000ccf72369a2ed02f1185e2055544a89b2d48269b8",
                            "0x0000000000000000000000000837f6de02e7452f38159aad0105bd46ecfcae89"
                        ],
                        "transactionHash": "0xfc88ca33a34779d17231b42106a637b22353ba3c4a861428a4d1ac9bcb22c88c",
                        "transactionIndex": 1,
                        "id": "log_c9c2f836"
                    },
                    {
                        "address": "0x78c1b0C915c4FAA5FffA6CAbf0219DA63d7f4cb8",
                        "blockHash": "0x35da7159f42026147e4f6a51c313166e4edee7b2b9797e34fc186e4194b3d35a",
                        "blockNumber": 74145559,
                        "data": "0x000000000000000000000000000000000000000000000043fd3f0d85031f3a0e",
                        "logIndex": 3,
                        "removed": false,
                        "topics": [
                            "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
                            "0x0000000000000000000000000837f6de02e7452f38159aad0105bd46ecfcae89",
                            "0x0000000000000000000000001606c79be3ebd70d8d40bac6287e23005cfbefa2"
                        ],
                        "transactionHash": "0xfc88ca33a34779d17231b42106a637b22353ba3c4a861428a4d1ac9bcb22c88c",
                        "transactionIndex": 1,
                        "id": "log_e026c0c7"
                    },
                    {
                        "address": "0x4515A45337F461A11Ff0FE8aBF3c606AE5dC00c9",
                        "blockHash": "0x35da7159f42026147e4f6a51c313166e4edee7b2b9797e34fc186e4194b3d35a",
                        "blockNumber": 74145559,
                        "data": "0x000000000000000000000000000000000000000000000000043a6fa50ffdc055",
                        "logIndex": 4,
                        "removed": false,
                        "topics": [
                            "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
                            "0x0000000000000000000000000000000000000000000000000000000000000000",
                            "0x00000000000000000000000069722b1f681f321c9078136e9223148234eb3be0"
                        ],
                        "transactionHash": "0xfc88ca33a34779d17231b42106a637b22353ba3c4a861428a4d1ac9bcb22c88c",
                        "transactionIndex": 1,
                        "id": "log_d0ee2707"
                    },
                    {
                        "address": "0x4515A45337F461A11Ff0FE8aBF3c606AE5dC00c9",
                        "blockHash": "0x35da7159f42026147e4f6a51c313166e4edee7b2b9797e34fc186e4194b3d35a",
                        "blockNumber": 74145559,
                        "data": "0x000000000000000000000000000000000000000000000000073f9ad1d24549b8",
                        "logIndex": 5,
                        "removed": false,
                        "topics": [
                            "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
                            "0x0000000000000000000000000000000000000000000000000000000000000000",
                            "0x000000000000000000000000a756f7d419e1a5cbd656a438443011a7de1955b5"
                        ],
                        "transactionHash": "0xfc88ca33a34779d17231b42106a637b22353ba3c4a861428a4d1ac9bcb22c88c",
                        "transactionIndex": 1,
                        "id": "log_ca6287c5"
                    },
                    {
                        "address": "0x4515A45337F461A11Ff0FE8aBF3c606AE5dC00c9",
                        "blockHash": "0x35da7159f42026147e4f6a51c313166e4edee7b2b9797e34fc186e4194b3d35a",
                        "blockNumber": 74145559,
                        "data": "0x000000000000000000000000000000000000000000000000073f9ad1d24549b8",
                        "logIndex": 6,
                        "removed": false,
                        "topics": [
                            "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
                            "0x000000000000000000000000a756f7d419e1a5cbd656a438443011a7de1955b5",
                            "0x000000000000000000000000187c41cc09020bf9d8d0aec22b5bd063b74c4c85"
                        ],
                        "transactionHash": "0xfc88ca33a34779d17231b42106a637b22353ba3c4a861428a4d1ac9bcb22c88c",
                        "transactionIndex": 1,
                        "id": "log_09bd4ffa"
                    },
                    {
                        "address": "0xA756f7D419e1A5cbd656A438443011a7dE1955b5",
                        "blockHash": "0x35da7159f42026147e4f6a51c313166e4edee7b2b9797e34fc186e4194b3d35a",
                        "blockNumber": 74145559,
                        "data": "0x0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000073f9ad1d24549b8",
                        "logIndex": 7,
                        "removed": false,
                        "topics": [
                            "0x0e006e790dc8db480892a6d5c0bf539c411db278e5185b07d46bdcc110ba6af5",
                            "0x000000000000000000000000000000000000000000000000000000000000002e",
                            "0x000000000000000000000000187c41cc09020bf9d8d0aec22b5bd063b74c4c85"
                        ],
                        "transactionHash": "0xfc88ca33a34779d17231b42106a637b22353ba3c4a861428a4d1ac9bcb22c88c",
                        "transactionIndex": 1,
                        "id": "log_a20af50c"
                    },
                    {
                        "address": "0x1606C79bE3EBD70D8d40bAc6287e23005CfBefA2",
                        "blockHash": "0x35da7159f42026147e4f6a51c313166e4edee7b2b9797e34fc186e4194b3d35a",
                        "blockNumber": 74145559,
                        "data": "0x00000000000000000000000000000000000000000000000000000000007fe0f6000000000000000000000000000000000000000000000043f03752302b8c48b50000000000000000062d4f63ffec3b7a00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000533d00000000000000000000000000000000000000000000000011b5bcdc12fb850c00000000000000000000000000000000000000000000000001c55faf9b7f8d4e",
                        "logIndex": 8,
                        "removed": false,
                        "topics": [
                            "0xad7d6f97abf51ce18e17a38f4d70e975be9c0708474987bb3e26ad21bd93ca70",
                            "0x0000000000000000000000000837f6de02e7452f38159aad0105bd46ecfcae89",
                            "0x000000000000000000000000f6a1727e32e6976d7e6d649ad5ed9283ec3484e3"
                        ],
                        "transactionHash": "0xfc88ca33a34779d17231b42106a637b22353ba3c4a861428a4d1ac9bcb22c88c",
                        "transactionIndex": 1,
                        "id": "log_3df3fbe1"
                    },
                    {
                        "address": "0x1606C79bE3EBD70D8d40bAc6287e23005CfBefA2",
                        "blockHash": "0x35da7159f42026147e4f6a51c313166e4edee7b2b9797e34fc186e4194b3d35a",
                        "blockNumber": 74145559,
                        "data": "0x00000000000000000000000000000000000000000000000000000000007fe0f50000000000000000000000000000000000000000000000000b42117ac7278cbf0000000000000000000105c7d3e6d755000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002c2d0000000000000000000000000000000000000000000000000002e5a8913668f900000000000000000000000000000000000000000000000000004a2a74ebd74c",
                        "logIndex": 9,
                        "removed": false,
                        "topics": [
                            "0xad7d6f97abf51ce18e17a38f4d70e975be9c0708474987bb3e26ad21bd93ca70",
                            "0x0000000000000000000000000837f6de02e7452f38159aad0105bd46ecfcae89",
                            "0x000000000000000000000000f6a1727e32e6976d7e6d649ad5ed9283ec3484e3"
                        ],
                        "transactionHash": "0xfc88ca33a34779d17231b42106a637b22353ba3c4a861428a4d1ac9bcb22c88c",
                        "transactionIndex": 1,
                        "id": "log_81f44ae6"
                    },
                    {
                        "address": "0xdEAddEaDdeadDEadDEADDEAddEADDEAddead1111",
                        "blockHash": "0x35da7159f42026147e4f6a51c313166e4edee7b2b9797e34fc186e4194b3d35a",
                        "blockNumber": 74145559,
                        "data": "0x000000000000000000000000000000000000000000000000062e552bd3d312cf",
                        "logIndex": 10,
                        "removed": false,
                        "topics": [
                            "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
                            "0x0000000000000000000000001606c79be3ebd70d8d40bac6287e23005cfbefa2",
                            "0x000000000000000000000000f6a1727e32e6976d7e6d649ad5ed9283ec3484e3"
                        ],
                        "transactionHash": "0xfc88ca33a34779d17231b42106a637b22353ba3c4a861428a4d1ac9bcb22c88c",
                        "transactionIndex": 1,
                        "id": "log_121cfdef"
                    },
                    {
                        "address": "0xf6a1727e32e6976d7E6d649aD5eD9283Ec3484E3",
                        "blockHash": "0x35da7159f42026147e4f6a51c313166e4edee7b2b9797e34fc186e4194b3d35a",
                        "blockNumber": 74145559,
                        "data": "0x000000000000000000000000000000000000000000000000062e552bd3d312cffffffffffffffffffffffffffffffffffffffffffffffffffa2274b37a6fc7d40000000000000000000000000000000000000000f96408cb31524dc766591225000000000000000000000000000000000000000000000d8a11e4e39db737ca25fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffdf4",
                        "logIndex": 11,
                        "removed": false,
                        "topics": [
                            "0xc42079f94a6350d7e6235f29174924f928cc2ac818eb64fed8004e115fbcca67",
                            "0x0000000000000000000000000837f6de02e7452f38159aad0105bd46ecfcae89",
                            "0x000000000000000000000000ccf72369a2ed02f1185e2055544a89b2d48269b8"
                        ],
                        "transactionHash": "0xfc88ca33a34779d17231b42106a637b22353ba3c4a861428a4d1ac9bcb22c88c",
                        "transactionIndex": 1,
                        "id": "log_076e7962"
                    }
                ]
            }
            }
        ],
        "transactionsRoot": "0x69ff45b9b61c0a4360b230225490f1892f9792ec81aae66e966ed80e66ce0b79",
        "uncles": []
    }
}
```

{% endtab %}
{% endtabs %}

## /gettransaction

Get details of a transaction.

<mark style="color:blue;">`GET`</mark> `https://api.expand.network/chain/gettransaction`

#### Query Parameters

<table><thead><tr><th width="180">Name</th><th width="84">Type</th><th>Description</th></tr></thead><tbody><tr><td>rpc</td><td>String</td><td>Remote procedural call URL.</td></tr><tr><td>chainId<mark style="color:red;">*</mark></td><td>String</td><td>Refer to the <a href="/pages/5o1xMsQPqXw9GBfGTpdB">Chain ID </a>page for details.</td></tr><tr><td>chainSymbol<mark style="color:red;">*</mark></td><td>String</td><td>Refer to the <a href="/pages/5o1xMsQPqXw9GBfGTpdB">Chain ID </a>page for details.</td></tr><tr><td>transactionHash<mark style="color:red;">*</mark></td><td>String</td><td>The transaction hash.</td></tr></tbody></table>

{% tabs %}
{% tab title="Sample Request" %}

```uri
https://api.expand.network/chain/gettransaction?transactionHash=0xeebf66908b89a2460226302e4807dd44b7f74cf13089692fda5d71e18a6263e3&chainId=5000
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "5000",
        "hash": "0xeebf66908b89a2460226302e4807dd44b7f74cf13089692fda5d71e18a6263e3",
        "transactionStatus": true,
        "blockNumber": "74145630",
        "timestamp": null,
        "from": "0xC5783981c8E4c47Dc91b099e1897B8bCdc00eb75",
        "to": "0x4990D27658070dD1f1a0CDD7411C3567676352A6",
        "value": "0",
        "transactionFees": "1443200640000000",
        "gas": "86496132",
        "gasPrice": "20000000",
        "input": "0xf0acd7d5",
        "nonce": 11,
        "type": null,
        "network": null,
        "v": "0x2733",
        "r": "0x61e447ffddc2f2550cc9d9cbbcc0d2775447622ff1da97415dd0d5a2f23afd0a",
        "s": "0x2d77563397a29468e854b0917449206f6bac55a481886f8bd5222e5432cc064f",
        "yParity": null,
        "transactionIndex": 13,
        "accessList": null,
        "maxFeePerGas": null,
        "maxPriorityFeePerGas": null,
        "logs": []
    }
}
```

{% endtab %}
{% endtabs %}

## /getgasprice

Get the current gas price from the network.

<mark style="color:blue;">`GET`</mark> `https://api.expand.network/chain/getgasprice`

#### Query Parameters

<table><thead><tr><th width="154">Name</th><th width="111">Type</th><th>Description</th></tr></thead><tbody><tr><td>rpc</td><td>String</td><td>Remote procedural call URL.</td></tr><tr><td>chainId<mark style="color:red;">*</mark></td><td>String</td><td>Refer to the <a href="/pages/5o1xMsQPqXw9GBfGTpdB">Chain ID </a>page for details.</td></tr><tr><td>chainSymbol<mark style="color:red;">*</mark></td><td>String</td><td>Refer to the <a href="/pages/5o1xMsQPqXw9GBfGTpdB">Chain ID </a>page for details.</td></tr></tbody></table>

{% tabs %}
{% tab title="Sample Request" %}

```url
https://api.expand.network/chain/getgasprice?chainId=5000
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "gasPrice": "20000000"
    }
}
```

{% endtab %}
{% endtabs %}

## /getstorage

Get data stored in the given slot.

<mark style="color:blue;">`GET`</mark> `https://api.expand.network/chain/getstorage`

#### Query Parameters

<table><thead><tr><th width="154">Name</th><th width="108">Type</th><th>Description</th></tr></thead><tbody><tr><td>rpc</td><td>String</td><td>Remote procedural call URL.</td></tr><tr><td>chainId<mark style="color:red;">*</mark></td><td>String</td><td>Refer to the <a href="/pages/5o1xMsQPqXw9GBfGTpdB">Chain ID </a>page for details.</td></tr><tr><td>chainSymbol<mark style="color:red;">*</mark></td><td>String</td><td>Refer to the <a href="/pages/5o1xMsQPqXw9GBfGTpdB">Chain ID </a>page for details.</td></tr><tr><td>address<mark style="color:red;">*</mark></td><td>String</td><td>Contract address whose storage is needed.</td></tr><tr><td>index</td><td>String</td><td>Slot index on the smart contract. By default,  it is taken as 0.</td></tr></tbody></table>

{% tabs %}
{% tab title="Sample Request" %}

```url
https://api.expand.network/chain/getstorage?address=0x6839f0eB2a4f323aC616b99BA01547dE592BC965
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "data": "0x0000000000000000000000000000000000000000000000000000000000000001"
    }
}
```

{% endtab %}
{% endtabs %}

## /decodetransaction

Get the decoded transaction for the provided raw transaction.&#x20;

<mark style="color:green;">`POST`</mark> `https://api.expand.network/chain/decodetransaction`

#### Request Body

<table><thead><tr><th width="172">Name</th><th width="89">Type</th><th>Description</th></tr></thead><tbody><tr><td>chainId<mark style="color:red;">*</mark></td><td>String</td><td>Refer to the <a href="/pages/5o1xMsQPqXw9GBfGTpdB">Chain ID </a>page for details. By default, Ethereum.</td></tr><tr><td>chainSymbol</td><td>String</td><td>Refer to the <a href="/pages/5o1xMsQPqXw9GBfGTpdB">Chain ID </a>page for details. </td></tr><tr><td>rawTransaction<mark style="color:red;">*</mark></td><td>String</td><td>The raw transaction to be given for decoding.</td></tr></tbody></table>

{% tabs %}
{% tab title="Sample Request" %}

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

```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "parsedTx": {
            "nonce": 0,
            "gasPrice": {
                "type": "BigNumber",
                "hex": "0x01312d00"
            },
            "gasLimit": {
                "type": "BigNumber",
                "hex": "0x0392fa"
            },
            "to": "0x747b11E5AaCeF79cd78C78a8436946b00dE30b97",
            "value": {
                "type": "BigNumber",
                "hex": "0x3b9aca00"
            },
            "data": "0x",
            "chainId": 5000,
            "v": 10035,
            "r": "0x2af535667ba70c4d56dc5b508af37120eb46543de879e184746cb713f7ad254f",
            "s": "0x0c9d4f0e8b736d8abb4c2038009539bf72643d35a84e8e6b55e354f253d11bec",
            "from": "0xE705427389E780dD1f6E56DEAa184f2E05446b4E",
            "hash": "0x0e411cb929eb709806e7313d28a01af012f2bb516a425b39a1c36e6c34661b9f",
            "type": null
        },
        "assetChanges": {
            "from": "0xE705427389E780dD1f6E56DEAa184f2E05446b4E",
            "to": "0x747b11E5AaCeF79cd78C78a8436946b00dE30b97",
            "value": {
                "type": "BigNumber",
                "hex": "0x3b9aca00"
            }
        }
    }
}

```

{% endtab %}
{% endtabs %}

## **/**&#x73;endtransaction

Send transaction on the chain.

<mark style="color:green;">`POST`</mark> `https://api.expand.network/chain/sendtransaction`

#### Request Body

<table><thead><tr><th width="180">Name</th><th width="110">Type</th><th>Description</th></tr></thead><tbody><tr><td>rpc</td><td>String</td><td>Remote procedural call URL.</td></tr><tr><td>chainId<mark style="color:red;">*</mark></td><td>String</td><td>Refer to the <a href="/pages/5o1xMsQPqXw9GBfGTpdB">Chain ID </a>page for details.</td></tr><tr><td>chainSymbol<mark style="color:red;">*</mark></td><td>String</td><td>Refer to the <a href="/pages/5o1xMsQPqXw9GBfGTpdB">Chain ID </a>page for details. </td></tr><tr><td>rawTransaction<mark style="color:red;">*</mark></td><td>String</td><td>The encoded transaction, obtained from the signed transaction.</td></tr></tbody></table>

{% tabs %}
{% tab title="Sample Request" %}

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

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "5000",
        "transactionHash": "0x7f4ab666bae1dea8e9a81e561208ea02beb139acd6b9528a61a004f258d43519"
    }
}

```

{% endtab %}
{% endtabs %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.expand.network/integrations/blockchains/evm-based-blockchains/mantle.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
