# Botanix

## /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=0x9BF9B373b5b212F5af5C6e0f2646168927C2b464&chainId=3637
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "balance": "23648758161088",
        "USDprice": "119481.2681017165"
    }
}
```

{% 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.uat.expand.network/chain/getblock?blockNumber=667592&chainId=3637
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "hash": "0xfc4add7f892b28ffbeca1092d92315a7b7a86d2337e229ddd0472947ec9eed30",
        "parentHash": "0x720ed0cd81ce3943306eea30f1a6febeee5edf477829ed08d335a5b4a42f2779",
        "miner": "0x0000000000000000000000000000000000000000",
        "transactionsRoot": "0xe2aec165a443f1fd5a4c238759863ffcd354d7919a7946b241b260fc4c449c17",
        "receiptsRoot": "0xe729e8a51c61c3912bb8efdf436a75ff8fb95f9c47141e6b025e146f1b722c95",
        "logsBloom": "0x00000001000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000014000000000000000000000000000008000000000000000000000000000000008000000000000000020000000000000000000800000000000000000000000010000000000000000000000000000800000000000000000000000081000000000000000000000000000000000000000000000000000000000000000000000000000000000020000002000000000000000000000000000800000004001000000000000020000000000000000000000001000000000200000000000000000000000000020000",
        "difficulty": "0",
        "number": 667592,
        "gasLimit": 30000000,
        "gasUsed": 1169234,
        "timestamp": 1751522132,
        "totalDifficulty": "0",
        "extraData": "0x000000000000000017d1c4b3a51a3c9b33ada774fdabb6043f0543e1b03f0100000000000000000003ae26f6152efa6e65619f436aae5076356cacab97bed10c294a38b777efa66e72c59369b9dbc3c66a2ca589d1e6468fc3ce57d795",
        "mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
        "nonce": "0x0000000000000000",
        "baseFeePerGas": 7,
        "blobGasUsed": "0x0",
        "excessBlobGas": "0x0",
        "parentBeaconBlockRoot": "0x0000000000000000000000000000000000000000000000000000000000000000",
        "uncles": [],
        "transactions": [
            {
                "chainId": "3637",
                "hash": "0x50827de434f0e7950c60c307db39a4d31e2e162d258c91654aa79d5dc70e6d43",
                "transactionStatus": true,
                "blockNumber": "667592",
                "timestamp": null,
                "from": "0xFB8e879Cb77AEB594850DA75F30C7d777ce54513",
                "to": "0x3eC18050294a51741FA7C325D5F587bb4d4543Ae",
                "value": "0",
                "transactionFees": "17197902264",
                "gas": "97413",
                "gasPrice": "214239",
                "input": "0x40d097c30000000000000000000000000f3796b136e67a3f558613f49a6433a674df1369",
                "nonce": 6004,
                "type": 2,
                "network": null,
                "v": "0x1",
                "r": "0x6415a658d893fa5fe91b6de62735e52f2c8af87bb828f1b4b4fe96befd267dbd",
                "s": "0x50ea7f7b655269ab0110f3851293393a25ea321e0f82a53c5c99540c0d64cd82",
                "yParity": "0x1",
                "transactionIndex": null,
                "accessList": [],
                "maxFeePerGas": "214246",
                "maxPriorityFeePerGas": "214225",
                "logs": [
                    {
                        "address": "0x3eC18050294a51741FA7C325D5F587bb4d4543Ae",
                        "topics": [
                            "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
                            "0x0000000000000000000000000000000000000000000000000000000000000000",
                            "0x0000000000000000000000000f3796b136e67a3f558613f49a6433a674df1369",
                            "0x00000000000000000000000000000000000000000000000000000000000015fc"
                        ],
                        "data": "0x",
                        "blockHash": "0xfc4add7f892b28ffbeca1092d92315a7b7a86d2337e229ddd0472947ec9eed30",
                        "blockNumber": 667592,
                        "blockTimestamp": "0x68661b54",
                        "transactionHash": "0x50827de434f0e7950c60c307db39a4d31e2e162d258c91654aa79d5dc70e6d43",
                        "transactionIndex": 0,
                        "logIndex": 0,
                        "removed": false,
                        "id": "log_84483cbf"
                    }
                ]
            },
            {
                "chainId": "3637",
                "hash": "0xe0b41b3275e59d815ef9ef0a7c2d96ec8833e638a484d24a2b359d934a1b1de2",
                "transactionStatus": true,
                "blockNumber": "667592",
                "timestamp": null,
                "from": "0x2F28d1201affb7880Eca0BfA90D6e1F9000EE52E",
                "to": "0xFB8e879Cb77AEB594850DA75F30C7d777ce54513",
                "value": "10000000000",
                "transactionFees": "4254400000",
                "gas": "30000",
                "gasPrice": "200000",
                "input": "0x6938643339534938616478626979345431",
                "nonce": 14,
                "type": null,
                "network": null,
                "v": "0x1c8e",
                "r": "0xc29247412e822fa0ccb30459a0b68b411a79f1b434f82a30ee39f09e3b3521b9",
                "s": "0x24ad0fb48ce9f27d6c04d26fadcb40391d980cdd9c22e6729217844cdd772f7f",
                "yParity": null,
                "transactionIndex": 1,
                "accessList": null,
                "maxFeePerGas": null,
                "maxPriorityFeePerGas": null,
                "logs": []
            },
            {
                "chainId": "3637",
                "hash": "0x212ca19430e9c1162f23e0b04d95adca3e25a7922fbe7ecf3661982545152a25",
                "transactionStatus": true,
                "blockNumber": "667592",
                "timestamp": null,
                "from": "0x97a1644f95CB95e2e2621edD38Aee8169Ca7030F",
                "to": null,
                "value": "0",
                "transactionFees": "170950251750",
                "gas": "1294377",
                "gasPrice": "199957",
                "input": "0x608060405234801561001057600080fd5b5061001961001e565b6100d0565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff161561006e5760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100cd5780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b610e06806100df6000396000f3fe608060405234801561001057600080fd5b50600436106100b45760003560e01c8063af9e6c5b11610071578063af9e6c5b14610139578063b4a0bdf31461014c578063bca9e1161461015d578063c4d66de8146101bb578063e30c3978146101ce578063f2fde38b146101d657600080fd5b80630e32cb86146100b9578063715018a6146100ce57806379ba5097146100d65780638da5cb5b146100de57806397c7033e146101035780639c35761514610126575b600080fd5b6100cc6100c7366004610ac9565b6101e9565b005b6100cc6101fd565b6100cc610211565b6100e661025b565b6040516001600160a01b0390911681526020015b60405180910390f35b610116610111366004610ae4565b610290565b60405190151581526020016100fa565b6100cc610134366004610bbf565b61035f565b6100cc610147366004610c6f565b6103ec565b6000546001600160a01b03166100e6565b61019661016b366004610ac9565b6032602052600090815260409020805460018201546002909201546001600160a01b03909116919083565b604080516001600160a01b0390941684526020840192909252908201526060016100fa565b6100cc6101c9366004610ac9565b6105a2565b6100e66106b2565b6100cc6101e4366004610ac9565b6106db565b6101f1610760565b6101fa81610792565b50565b610205610760565b61020f6000610857565b565b338061021b6106b2565b6001600160a01b0316146102525760405163118cdaa760e01b81526001600160a01b03821660048201526024015b60405180910390fd5b6101fa81610857565b6000807f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c1993005b546001600160a01b031692915050565b6001600160a01b03831660009081526032602052604081206001015481036102fa5760405162461bcd60e51b815260206004820152601b60248201527f76616c69646174696f6e20636f6e666967206e6f7420657869737400000000006044820152606401610249565b8160000361034a5760405162461bcd60e51b815260206004820152601960248201527f616e63686f72207072696365206973206e6f742076616c6964000000000000006044820152606401610249565b610355848484610893565b90505b9392505050565b805160008190036103b25760405162461bcd60e51b815260206004820152601e60248201527f696e76616c69642076616c696461746520636f6e666967206c656e67746800006044820152606401610249565b60005b818110156103e7576103df8382815181106103d2576103d2610c8b565b60200260200101516103ec565b6001016103b5565b505050565b61040d604051806060016040528060218152602001610db060219139610905565b80516001600160a01b03166104645760405162461bcd60e51b815260206004820152601b60248201527f61737365742063616e2774206265207a65726f206164647265737300000000006044820152606401610249565b6020810151158061047757506040810151155b156104bd5760405162461bcd60e51b8152602060048201526016602482015275626f756e64206d75737420626520706f73697469766560501b6044820152606401610249565b80604001518160200151116105295760405162461bcd60e51b815260206004820152602c60248201527f757070657220626f756e64206d75737420626520686967686572207468616e2060448201526b1b1bdddb995c88189bdd5b9960a21b6064820152608401610249565b80516001600160a01b039081166000908152603260209081526040808320855181546001600160a01b03191695169485178155918501516001830181905581860151600290930183905590519193909290917f28e2d96bdcf74fe6203e40d159d27ec2e15230239c0aee4a0a914196c550e6d19190a450565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a008054600160401b810460ff16159067ffffffffffffffff166000811580156105e85750825b905060008267ffffffffffffffff1660011480156106055750303b155b905081158015610613575080155b156106315760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff19166001178555831561065b57845460ff60401b1916600160401b1785555b6106648661099f565b83156106aa57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b6000807f237e158222e3e6968b72b9db0d8043aacf074ad9f650f0d1606b4d82ee432c00610280565b6106e3610760565b7f237e158222e3e6968b72b9db0d8043aacf074ad9f650f0d1606b4d82ee432c0080546001600160a01b0319166001600160a01b038316908117825561072761025b565b6001600160a01b03167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a35050565b3361076961025b565b6001600160a01b03161461020f5760405163118cdaa760e01b8152336004820152602401610249565b6001600160a01b0381166107f65760405162461bcd60e51b815260206004820152602560248201527f696e76616c696420616365737320636f6e74726f6c206d616e61676572206164604482015264647265737360d81b6064820152608401610249565b600080546001600160a01b038381166001600160a01b031983168117909355604080519190921680825260208201939093527f66fd58e82f7b31a2a5c30e0888f3093efe4e111b00cd2b0c31fe014601293aa0910160405180910390a15050565b7f237e158222e3e6968b72b9db0d8043aacf074ad9f650f0d1606b4d82ee432c0080546001600160a01b031916815561088f826109b9565b5050565b600082156108fb576000836108b084670de0b6b3a7640000610ca1565b6108ba9190610ccc565b6001600160a01b03861660009081526032602052604090206001810154600290910154919250908183118015906108f15750808310155b9350505050610358565b5060009392505050565b600080546040516318c5e8ab60e01b81526001600160a01b03909116906318c5e8ab906109389033908690600401610d34565b602060405180830381865afa158015610955573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109799190610d58565b90508061088f57333083604051634a3fa29360e01b815260040161024993929190610d7a565b6109a7610a2a565b6109b033610a73565b6101fa81610aa5565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3505050565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a0054600160401b900460ff1661020f57604051631afcd79f60e31b815260040160405180910390fd5b610a7b610a2a565b6001600160a01b03811661025257604051631e4fbdf760e01b815260006004820152602401610249565b6101f1610a2a565b80356001600160a01b0381168114610ac457600080fd5b919050565b600060208284031215610adb57600080fd5b61035882610aad565b600080600060608486031215610af957600080fd5b610b0284610aad565b95602085013595506040909401359392505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715610b5657610b56610b17565b604052919050565b600060608284031215610b7057600080fd5b6040516060810181811067ffffffffffffffff82111715610b9357610b93610b17565b604052905080610ba283610aad565b815260208301356020820152604083013560408201525092915050565b60006020808385031215610bd257600080fd5b823567ffffffffffffffff80821115610bea57600080fd5b818501915085601f830112610bfe57600080fd5b813581811115610c1057610c10610b17565b610c1e848260051b01610b2d565b81815284810192506060918202840185019188831115610c3d57600080fd5b938501935b82851015610c6357610c548986610b5e565b84529384019392850192610c42565b50979650505050505050565b600060608284031215610c8157600080fd5b6103588383610b5e565b634e487b7160e01b600052603260045260246000fd5b8082028115828204841417610cc657634e487b7160e01b600052601160045260246000fd5b92915050565b600082610ce957634e487b7160e01b600052601260045260246000fd5b500490565b6000815180845260005b81811015610d1457602081850181015186830182015201610cf8565b506000602082860101526020601f19601f83011685010191505092915050565b6001600160a01b038316815260406020820181905260009061035590830184610cee565b600060208284031215610d6a57600080fd5b8151801515811461035857600080fd5b6001600160a01b03848116825283166020820152606060408201819052600090610da690830184610cee565b9594505050505056fe73657456616c6964617465436f6e6669672856616c6964617465436f6e66696729a264697066735822122035ddc6eb4ca09b6428bac8ac9f7375abd99ae9364325806a70f7174e27750d1d64736f6c63430008140033",
                "nonce": 26,
                "type": 2,
                "network": null,
                "v": "0x1",
                "r": "0x7d3a997b0008752caa956197ade1fad82830033210bb9a42cf8f0d2ee85f7d8",
                "s": "0x2deb449a777403707fd64bff28f7dc53f5062c3358b68a34b1c7164c42202399",
                "yParity": "0x1",
                "transactionIndex": 2,
                "accessList": [],
                "maxFeePerGas": "399896",
                "maxPriorityFeePerGas": "199943",
                "logs": [
                    {
                        "address": "0x955C423B00995902D6db3F6107d39a38cE4d64f3",
                        "topics": [
                            "0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2"
                        ],
                        "data": "0x000000000000000000000000000000000000000000000000ffffffffffffffff",
                        "blockHash": "0xfc4add7f892b28ffbeca1092d92315a7b7a86d2337e229ddd0472947ec9eed30",
                        "blockNumber": 667592,
                        "blockTimestamp": "0x68661b54",
                        "transactionHash": "0x212ca19430e9c1162f23e0b04d95adca3e25a7922fbe7ecf3661982545152a25",
                        "transactionIndex": 2,
                        "logIndex": 1,
                        "removed": false,
                        "id": "log_8d7e575b"
                    }
                ]
            },
            {
                "chainId": "3637",
                "hash": "0xc0cb098602e2fc88f060acf85649c67da15c5621102d6fdc354916f0e5b0cebe",
                "transactionStatus": true,
                "blockNumber": "667592",
                "timestamp": null,
                "from": "0xA67b03DBB74c8a8DBb8Fb93C5d554275817acbF5",
                "to": "0xFB8e879Cb77AEB594850DA75F30C7d777ce54513",
                "value": "10000000000",
                "transactionFees": "3396010984",
                "gas": "64314",
                "gasPrice": "159654",
                "input": "0x5674634a5874657347793457494c4f4e47",
                "nonce": 155,
                "type": 2,
                "network": null,
                "v": "0x1",
                "r": "0x4a46ed38267e4430335478e892b93b98d46856e0249c5d8ae63d9844908ec242",
                "s": "0x6f045ccdca3a49f7c8474ae4bbe049784a00def3ad0ee36f26086f0abc4f1702",
                "yParity": "0x1",
                "transactionIndex": 3,
                "accessList": [],
                "maxFeePerGas": "159649",
                "maxPriorityFeePerGas": "159640",
                "logs": []
            },
            {
                "chainId": "3637",
                "hash": "0xcf58e46c4954d6f3fbb24f618f1ac26fec6cee45fa5ab9236bfc7f9afbed04da",
                "transactionStatus": true,
                "blockNumber": "667592",
                "timestamp": null,
                "from": "0x123C53C163Efb185a80997360A1c3154b286F0cC",
                "to": "0xFB8e879Cb77AEB594850DA75F30C7d777ce54513",
                "value": "10000000000",
                "transactionFees": "3396010984",
                "gas": "64314",
                "gasPrice": "159654",
                "input": "0x76665a72364667443661314166566e4442",
                "nonce": 19,
                "type": 2,
                "network": null,
                "v": "0x1",
                "r": "0xf65d410396fb449e806c7e1c2372c9476039d083f80ba3d302a010804250f007",
                "s": "0x3f1a8356eabac9607f1eb021023f6a36dc5724fdc25a1ba75b7bf6add31ea594",
                "yParity": "0x1",
                "transactionIndex": 4,
                "accessList": [],
                "maxFeePerGas": "159649",
                "maxPriorityFeePerGas": "159640",
                "logs": []
            },
            {
                "chainId": "3637",
                "hash": "0xf4c12d057ce54b731712054e1afb664d2255adb58d31da23c37252f0371e9744",
                "transactionStatus": true,
                "blockNumber": "667592",
                "timestamp": null,
                "from": "0xB3Da196173C954E3d02a93B63a93A3A5076D4373",
                "to": "0xFB8e879Cb77AEB594850DA75F30C7d777ce54513",
                "value": "10000000000",
                "transactionFees": "3396010984",
                "gas": "64314",
                "gasPrice": "159654",
                "input": "0x4c645a544838697a5030343533666f584a",
                "nonce": 45,
                "type": 2,
                "network": null,
                "v": "0x0",
                "r": "0x75543f0207cf2f958a0478aeb603b5ce2e665e23b55e05762a1f58c712c18b1a",
                "s": "0xa3ac80527adceaaf2613e83a9101058dacbc0be72afe12e76c1a1331fbd5484",
                "yParity": "0x0",
                "transactionIndex": 5,
                "accessList": [],
                "maxFeePerGas": "159649",
                "maxPriorityFeePerGas": "159640",
                "logs": []
            },
            {
                "chainId": "3637",
                "hash": "0xbfe48aa186d1cbf3f6176f4349d83ebe021cf601329b18de3706cd2f97e0f589",
                "transactionStatus": true,
                "blockNumber": "667592",
                "timestamp": null,
                "from": "0x03c606C0DDab9c3212f2c5c5427c6A2acAf3a581",
                "to": "0xFB8e879Cb77AEB594850DA75F30C7d777ce54513",
                "value": "10000000000",
                "transactionFees": "3396010984",
                "gas": "64314",
                "gasPrice": "159654",
                "input": "0x713254754855394f39366356647a53736f",
                "nonce": 82,
                "type": 2,
                "network": null,
                "v": "0x0",
                "r": "0x654a11eddd5df1af2142450077d9f158bd9568bb8a6b53c678f1af796728eee4",
                "s": "0x55940e035aec3a8cbcc146c62868b6aaf576f7170f4315a535f1ba83759b3123",
                "yParity": "0x0",
                "transactionIndex": 6,
                "accessList": [],
                "maxFeePerGas": "159649",
                "maxPriorityFeePerGas": "159640",
                "logs": []
            },
            {
                "chainId": "3637",
                "hash": "0x3e7f75ab60a7b1a0ad5cdf052d6ff96bfa99a2f100596ffb86c728066665759e",
                "transactionStatus": true,
                "blockNumber": "667592",
                "timestamp": null,
                "from": "0x40af3FE53784589c0C4D8E210A0d6b84a2cc90c0",
                "to": "0xFB8e879Cb77AEB594850DA75F30C7d777ce54513",
                "value": "10000000000",
                "transactionFees": "3396010984",
                "gas": "64314",
                "gasPrice": "159654",
                "input": "0x57657841316c574f79716e4a55466c6c57",
                "nonce": 147,
                "type": 2,
                "network": null,
                "v": "0x1",
                "r": "0x22bdf7c3d7ab1cb2e5b1a3473dc7426589cacb73f50ea92687e3157c41a33007",
                "s": "0x21c8605e61a4959be990c4313610eadf3f9e636f2db0201b361e60bce94dad59",
                "yParity": "0x1",
                "transactionIndex": 7,
                "accessList": [],
                "maxFeePerGas": "159649",
                "maxPriorityFeePerGas": "159640",
                "logs": []
            },
            {
                "chainId": "3637",
                "hash": "0x61f43f1c0f04072807b1ca13c14fb8aaf4da2ab04e7cfb1ce5f0318109fa929d",
                "transactionStatus": true,
                "blockNumber": "667592",
                "timestamp": null,
                "from": "0x7391743E15Afae6F25dD1d464EFeBBff9dA80f53",
                "to": "0xFB8e879Cb77AEB594850DA75F30C7d777ce54513",
                "value": "10000000000",
                "transactionFees": "3396010984",
                "gas": "64314",
                "gasPrice": "159654",
                "input": "0x6d49547150506731675942427a354b3079",
                "nonce": 15,
                "type": 2,
                "network": null,
                "v": "0x1",
                "r": "0xb97dbf487946669aaceea9f78a0a06d9b3df437e8f41fab56e11740423557063",
                "s": "0x14c7f3836938ea4aae6c746a3ce0ec7c6a1458c44a81d4ab4b600d80a3aa9b63",
                "yParity": "0x1",
                "transactionIndex": 8,
                "accessList": [],
                "maxFeePerGas": "159649",
                "maxPriorityFeePerGas": "159640",
                "logs": []
            },
            {
                "chainId": "3637",
                "hash": "0x3fafb3a493e514978876e69249bc0dd1fcc7c5b579b4e6ca78aa96aaaedfb10b",
                "transactionStatus": true,
                "blockNumber": "667592",
                "timestamp": null,
                "from": "0x6A2534EB4631703Bf8656391fDe68212f4C68DE5",
                "to": "0xFB8e879Cb77AEB594850DA75F30C7d777ce54513",
                "value": "10000000000",
                "transactionFees": "297808",
                "gas": "21438",
                "gasPrice": "21",
                "input": "0x43464e54334a4b4b6f386345716a645034",
                "nonce": 65,
                "type": 2,
                "network": null,
                "v": "0x0",
                "r": "0xc3e08148cb6950537f6bcc342ff1edfa56d135343bd5205a1b4d307dd419c862",
                "s": "0x7c910fc679fbbb5733288532555847a189f690299867fd554967ef6140b6b6d3",
                "yParity": "0x0",
                "transactionIndex": 9,
                "accessList": [],
                "maxFeePerGas": "17",
                "maxPriorityFeePerGas": "7",
                "logs": []
            },
            {
                "chainId": "3637",
                "hash": "0x7ea3ae9941b1baebfd63a52906fece22d2a0a1d68f7f600496d9211e19dac6ab",
                "transactionStatus": true,
                "blockNumber": "667592",
                "timestamp": null,
                "from": "0xbE33D2ef440e30eE59b84512f95BB9d42bb60356",
                "to": "0xFB8e879Cb77AEB594850DA75F30C7d777ce54513",
                "value": "10000000000",
                "transactionFees": "297808",
                "gas": "21438",
                "gasPrice": "21",
                "input": "0x3737414b73366c656c3234673972355245",
                "nonce": 69,
                "type": 2,
                "network": null,
                "v": "0x1",
                "r": "0xcbc8f5c0c2a7cb8599c92708aae2b2cdd425da958c54b2f23645390f42e9b016",
                "s": "0x6e24da256e3553088e158a5e71983dffe80d73b05fca4bf90599f7c58d49b5c4",
                "yParity": "0x1",
                "transactionIndex": 10,
                "accessList": [],
                "maxFeePerGas": "17",
                "maxPriorityFeePerGas": "7",
                "logs": []
            },
            {
                "chainId": "3637",
                "hash": "0xae4eefcc5a769bbb546f2e63ae366a7c66836fbbf76ad898aa5c3ae8eb0a3a10",
                "transactionStatus": true,
                "blockNumber": "667592",
                "timestamp": null,
                "from": "0x66709A9Eed576F9caB925d070270074873fA584b",
                "to": "0xFB8e879Cb77AEB594850DA75F30C7d777ce54513",
                "value": "10000000000",
                "transactionFees": "297808",
                "gas": "21438",
                "gasPrice": "21",
                "input": "0x7642623078524d735364334731696b3461",
                "nonce": 59,
                "type": 2,
                "network": null,
                "v": "0x0",
                "r": "0x1ad0b872f58185e85aef782f9f314f2c43ee3a2d19f56f7ff0dec91dae0fa300",
                "s": "0x1a9b036a6c0a8543e57ebd5ebf81183d71e23437678d6208579df7f20aea946c",
                "yParity": "0x0",
                "transactionIndex": 11,
                "accessList": [],
                "maxFeePerGas": "17",
                "maxPriorityFeePerGas": "7",
                "logs": []
            },
            {
                "chainId": "3637",
                "hash": "0xd565078f72858083040fbf6b2d19c4e97ee1292d937a318838a1c20e68d44ae1",
                "transactionStatus": true,
                "blockNumber": "667592",
                "timestamp": null,
                "from": "0x00CDd6D8a18453dDC65C56a44B8Fb4d60fd3859f",
                "to": "0xFB8e879Cb77AEB594850DA75F30C7d777ce54513",
                "value": "10000000000",
                "transactionFees": "170176",
                "gas": "21438",
                "gasPrice": "15",
                "input": "0x483634546454657538724349514c775951",
                "nonce": 21,
                "type": 2,
                "network": null,
                "v": "0x1",
                "r": "0x8111083763fed552d280096be5625c60e5a00265a31452ba5e00864b246cc0b3",
                "s": "0x71b2601cbfc613801171b7f4b4add3b39c4f4de285398a093bd71d64df426fe7",
                "yParity": "0x1",
                "transactionIndex": 12,
                "accessList": [],
                "maxFeePerGas": "142824",
                "maxPriorityFeePerGas": "1",
                "logs": []
            }
        ],
        "size": 6421
    }
}
```

{% 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=0x4958aca9410343a7e0f617c707364cdd2acbbfa2d3856de124a798f381733442&chainId=3637
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "3637",
        "hash": "0x4958aca9410343a7e0f617c707364cdd2acbbfa2d3856de124a798f381733442",
        "transactionStatus": true,
        "blockNumber": "667675",
        "timestamp": null,
        "from": "0x9BF9B373b5b212F5af5C6e0f2646168927C2b464",
        "to": "0xFB8e879Cb77AEB594850DA75F30C7d777ce54513",
        "value": "10000000000",
        "transactionFees": "510528",
        "gas": "64314",
        "gasPrice": "31",
        "input": "0x665550425350517456694534365565585a",
        "nonce": 57,
        "type": 2,
        "network": null,
        "v": "0x1",
        "r": "0x4c19ed0b7a9545b24d748615d55a397863773c3eeb332d4f28e3e984ec59ceee",
        "s": "0x58092ce37af555905516d3a1c506bf68ccb6b998f5868f071439dd9199b91da7",
        "yParity": "0x1",
        "transactionIndex": null,
        "accessList": [],
        "maxFeePerGas": "26",
        "maxPriorityFeePerGas": "17",
        "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=3637
```

{% endtab %}

{% tab title="Sample Response" %}

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

{% 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=0x6A10Ac0186aB775E76ED639870dFD9285cbE767C&chainId=36377dE592BC965
```

{% endtab %}

{% tab title="Sample Response" %}

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

{% 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
{
    "rawTransaction": "0xf86780830d55f78301e0f3940ebc19619e8aa912d393ca321c0b6b4f7d98697d8204bd80821c8ba065b8747d1405d67d64ebea0fe3be15c3f2dd86539aa6e0d1741d1dc4d702b696a01214809a4639376e3c8523b51165564526de92080b385e8e9877748185e467f6",
    "chainId": "3636"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "parsedTx": {
            "nonce": 0,
            "gasPrice": {
                "type": "BigNumber",
                "hex": "0x0d55f7"
            },
            "gasLimit": {
                "type": "BigNumber",
                "hex": "0x01e0f3"
            },
            "to": "0x0eBc19619e8aA912d393Ca321c0B6b4f7d98697D",
            "value": {
                "type": "BigNumber",
                "hex": "0x04bd"
            },
            "data": "0x",
            "chainId": 3636,
            "v": 7307,
            "r": "0x65b8747d1405d67d64ebea0fe3be15c3f2dd86539aa6e0d1741d1dc4d702b696",
            "s": "0x1214809a4639376e3c8523b51165564526de92080b385e8e9877748185e467f6",
            "from": "0xa80c8Ff4118884f63329eC6C7D6c220E356D419f",
            "hash": "0x2dda089b10e8c3cdb3119727df28871e84f1802601ec56884e8a5dc68b78fea2",
            "type": null
        },
        "assetChanges": {
            "from": "0xa80c8Ff4118884f63329eC6C7D6c220E356D419f",
            "to": "0x0eBc19619e8aA912d393Ca321c0B6b4f7d98697D",
            "value": {
                "type": "BigNumber",
                "hex": "0x04bd"
            }
        }
    }
}
```

{% 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
{
  "rawTransaction": "0xf86780830d55f78301e0f3940ebc19619e8aa912d393ca321c0b6b4f7d98697d8204bd80821c8ba065b8747d1405d67d64ebea0fe3be15c3f2dd86539aa6e0d1741d1dc4d702b696a01214809a4639376e3c8523b51165564526de92080b385e8e9877748185e467f6",
  "chainId": "3636"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "3637",
        "transactionHash": "0x4958aca9410343a7e0f617c707364cdd2acbbfa2d3856de124a798f381733442"
    }
}

```

{% endtab %}
{% endtabs %}


---

# Agent Instructions: 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/botanix.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.
