# Cronos

### /getbalance

Get the balance or number 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="159">Name</th><th width="79">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="../../../ids/chain-ids">Chain ID </a>page for details. </td></tr><tr><td>chainSymbol</td><td>String</td><td>Refer to the <a href="../../../ids/chain-ids">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" %}

```url
https://api.expand.network/chain/getbalance?chainId=25&blockNumber=14600244&address=0x7eC359a41ffd69EaBa4ca98434370Cbd57AdF20A&tokenAddress=0x40914BBDdea0ec8d22E044cd3131F1B5ED4e866d
```

{% endtab %}

{% tab title="Sample Response" %}

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

{% endtab %}
{% endtabs %}

### /getblock

Get details of a block.

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

#### Query Parameters

| Name                                          | Type   | Description                                                                          |
| --------------------------------------------- | ------ | ------------------------------------------------------------------------------------ |
| rpc                                           | String | Remote procedural call URL.                                                          |
| chainId<mark style="color:red;">\*</mark>     | String | Refer to the [Chain ID ](https://docs.expand.network/ids/chain-ids)page for details. |
| chainSymbol                                   | String | Refer to the [Chain ID ](https://docs.expand.network/ids/chain-ids)page for details. |
| blockNumber<mark style="color:red;">\*</mark> | String | The block number or block hash.                                                      |

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

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

{% endtab %}

{% tab title="Sample Response" %}

```json
{
  "status": 200,
  "msg": "success",
  "data": {
    "difficulty": "0",
    "extraData": "0x",
    "gasLimit": 10000000,
    "gasUsed": 2823984,
    "hash": "0xfdd51808f0b55519c1ba374b100ab795f249b60d3a67d5ab68a33f7fd1ebc4c8",
    "logsBloom": "0x00b804048100800100010004c0804101500210804c4040000000040410080004008000000002001200008000000010020820c0000000100000200008007200004004000010010a8240018009000022202000002804001810a081010028002000401504080a8448000129000010821a0020000060000091000820001402000000010600004000a0000404428081000a000004003400003008004000424000108002008008802a000008000000041000a0000450042212000000006034200000000100000220a005000100100000044440200010100000033000030400000028400010000040040000000000001000000010200200400001000240000401010400",
    "miner": "0x0780aDEF7832a7F7682B757a5ec5Bd9fe7C38B4B",
    "mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
    "nonce": "0x0000000000000000",
    "number": 2525553,
    "parentHash": "0xa3d13004390de130e542c464c29b30ee856d4855bd347105bd6001dcab9d2f5f",
    "receiptsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
    "size": 11545,
    "timestamp": 1651114167,
    "totalDifficulty": "0",
    "transactions": [
      {
        "chainId": "25",
        "hash": "0x4c7b15d42b15820dc918b65c030f19fd0b199149ab20dda0bd0abf797bb77728",
        "transactionStatus": true,
        "blockNumber": "2525553",
        "timestamp": null,
        "from": "0x801C21C9F5AcFDa67962527716d4011C74F6574E",
        "to": "0x5a51946CBAEfD1ABfAd283b57402563220EBfc27",
        "value": "0",
        "transactionFees": "NaN",
        "gas": "47876",
        "gasPrice": "5000000000000",
        "input": "0xf14fcbc80ee38dee4768ebc9a26adcd8afccfaf1044afa11308bd22b50167f02955bc4fa",
        "nonce": 11,
        "type": null,
        "network": null,
        "v": "0x55",
        "r": "0x6b4aeeca3030653d1686da43c0fc1d17713c1bfad838edc9db1e8db4abf85203",
        "s": "0x58d77d09862f2c530bfd9e044e6469ee489c3452ff2428935524d214b0c3291b",
        "yParity": null,
        "transactionIndex": null,
        "accessList": null,
        "maxFeePerGas": null,
        "maxPriorityFeePerGas": null,
        "logs": []
      }
    ],
    "transactionsRoot": "0x250001957a7bc26b572ef8f3c1e5af9abfa709e97866f6ca5d18579bbfa483e1",
    "uncles": []
  }
}
```

{% 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

| Name                                      | Type   | Description                                                                          |
| ----------------------------------------- | ------ | ------------------------------------------------------------------------------------ |
| rpc                                       | String | Remote procedural call URL.                                                          |
| chainId<mark style="color:red;">\*</mark> | String | Refer to the [Chain ID ](https://docs.expand.network/ids/chain-ids)page for details. |
| chainSymbol                               | String | Refer to the [Chain ID ](https://docs.expand.network/ids/chain-ids)page for details. |

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

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

{% endtab %}

{% tab title="Sample Response" %}

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

{% endtab %}
{% endtabs %}

### /getstorage

Get data stored in the given slot.

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

#### Query Parameters

| Name                                      | Type   | Description                                                                          |
| ----------------------------------------- | ------ | ------------------------------------------------------------------------------------ |
| rpc                                       | String | Remote procedural call URL.                                                          |
| chainId<mark style="color:red;">\*</mark> | String | Refer to the [Chain ID ](https://docs.expand.network/ids/chain-ids)page for details. |
| chainSymbol                               | String | Refer to the [Chain ID ](https://docs.expand.network/ids/chain-ids)page for details. |
| address<mark style="color:red;">\*</mark> | String | Contract address whose storage is needed.                                            |
| index                                     | String | Slot index on the smart contract. By default,  it is taken as 0.                     |

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

```url
https://api.expand.network/chain/getstorage?chainId=25&address=0x90BCF206f9a5D5D2F96f9906e612985BFB43Cf79
```

{% endtab %}

{% tab title="Sample Response" %}

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

{% endtab %}
{% endtabs %}

### /gettransaction

Get details of a transaction.

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

#### Query Parameters

| Name                                              | Type   | Description                                                                          |
| ------------------------------------------------- | ------ | ------------------------------------------------------------------------------------ |
| rpc                                               | String | Remote procedural call URL.                                                          |
| chainId<mark style="color:red;">\*</mark>         | String | Refer to the [Chain ID ](https://docs.expand.network/ids/chain-ids)page for details. |
| chainSymbol                                       | String | Refer to the [Chain ID ](https://docs.expand.network/ids/chain-ids)page for details. |
| transactionHash<mark style="color:red;">\*</mark> | String | The transaction hash.                                                                |

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

```url
https://api.expand.network/chain/gettransaction?chainId=25&transactionHash=0xba7628bfd2adb2c7d9bb49df7bb045497f52d3036059dd1c38e0535ce8f3827c
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "25",
        "hash": "0xba7628bfd2adb2c7d9bb49df7bb045497f52d3036059dd1c38e0535ce8f3827c",
        "transactionStatus": true,
        "blockNumber": "6744761",
        "timestamp": null,
        "from": "0x4684FAc17483022d5c328F330dedeaC1c7Ba4657",
        "to": "0x90BCF206f9a5D5D2F96f9906e612985BFB43Cf79",
        "value": "0",
        "transactionFees": "219620697366316060",
        "gas": "45524",
        "gasPrice": "4824283836357",
        "input": "0x0c1c972a",
        "nonce": 95,
        "type": 2,
        "network": null,
        "v": "0x0",
        "r": "0x1b720c10d4befa2a8bceb542fe36da9efe4c2e746c3c286ddaad608f264232d",
        "s": "0x1c4d73ff42a8f43a9431c3e68a50178386b94a59c572b9f118cbee23f0366a32",
        "yParity": null,
        "transactionIndex": 2,
        "accessList": [],
        "maxFeePerGas": "9646068144614",
        "maxPriorityFeePerGas": "2500000000",
        "logs": []
    }
}
```

{% endtab %}
{% endtabs %}

### /portfolio

Get detailed information about the verified assets or tokens currently associated with a user's wallet address.

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

#### Query Parameters

<table><thead><tr><th width="167">Name</th><th width="112">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</td><td>String</td><td>Refer to the <a href="../../../ids/chain-ids">Chain ID </a>page for details.</td></tr><tr><td>chainSymbol</td><td>String</td><td>Refer to the <a href="../../../ids/chain-ids">Chain ID </a>page for details.</td></tr><tr><td>address<mark style="color:red;">*</mark></td><td>String</td><td>Public addess of the user.</td></tr><tr><td>tokens</td><td>String</td><td>Comma-separated value of ERC-20 tokens to get value of. Maximum 10 at a time.</td></tr><tr><td>pageToken</td><td>String</td><td>Present at the end of a lengthy response to fetch the next page.</td></tr><tr><td>assetType</td><td>String</td><td><code>fungible</code>/<code>nonFungible</code> standard choice.  <br>By default, <code>all</code>.</td></tr><tr><td>timestamp</td><td>String</td><td>The Timestamp of the block number up to which the balances will be fetched.<br>Note-Only applicable for assetType <code>fungible</code></td></tr><tr><td>blockNumber</td><td>String</td><td>The block number up to which the balances will be fetched.<br>Note-Only applicable for assetType <code>fungible</code></td></tr><tr><td>include24hrChange</td><td>Boolean</td><td>If <code>true</code>return the token data with 24-hour changes.<br>By default, <code>false</code></td></tr></tbody></table>

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

```url
https://api.expand.network/chain/portfolio?chainId=25&address=0xA14d3599F898B070d62dd717839a042A22C9cb9E&availableOnly=true
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "native": "27391964755979697675",
        "evmTokens": [
            {
                "name": "SHIBA INU",
                "symbol": "SHIB",
                "decimals": "18",
                "address": "0xbed48612bc69fa1cab67052b42a95fb30c1bcfee",
                "balance": "20026405034480539898252732",
                "assetType": "ERC20",
                "USDPrice": "0.000030714136548755"
            },
            {
                "name": "Tether USD",
                "symbol": "USDT",
                "decimals": "6",
                "address": "0x66e428c3f67a68878562e79a0234c1f83c208770",
                "balance": "430424546",
                "assetType": "ERC20",
                "USDPrice": "0.99574956910171"
            },
            {
                "name": "Dogelon",
                "symbol": "ELON",
                "decimals": "18",
                "address": "0x02dccaf514c98451320a9365c5b46c61d3246ff3",
                "balance": "396568549975763947625755127",
                "assetType": "ERC20",
                "USDPrice": "3.49822794119e-7"
            },
            {
                "name": "USD Coin",
                "symbol": "USDC",
                "decimals": "6",
                "address": "0xc21223249ca28397b4b6541dffaecc539bff0c59",
                "balance": "138012765",
                "assetType": "ERC20",
                "USDPrice": "1"
            }
        ]
    }
}
```

{% endtab %}
{% endtabs %}

### **/getusertransactions**

Get the historical transaction details for a specific user address.&#x20;

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

#### Query Parameters

<table><thead><tr><th width="175">Name</th><th width="109">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</td><td>String</td><td>Refer to the <a href="../../../ids/chain-ids">Chain ID </a>page for details.</td></tr><tr><td>chainSymbol</td><td>String</td><td>Refer to the <a href="../../../ids/chain-ids">Chain ID </a>page for details. </td></tr><tr><td>address<mark style="color:red;">*</mark></td><td>String</td><td>The public address of the user.</td></tr><tr><td>pageToken</td><td>String</td><td>The page cursor present at the top to fetch the next page.</td></tr><tr><td>pageSize</td><td>String</td><td>The page size. <br>By Default 30 and Max 100</td></tr><tr><td>sortOrder</td><td>String</td><td>The transaction sorting order. <br>asc or desc. <br>By default, desc.</td></tr><tr><td>startBlock</td><td>String</td><td>The starting block number from which to get the transactions.<br>By default, the Genesis block</td></tr><tr><td>endBlock</td><td>String</td><td>The ending block number from which to get the transactions<br>By default, the current block</td></tr><tr><td>fromTimestamp</td><td>String</td><td>The start date from which to get the transactions ( format in seconds or date string )<br>Note-If 'fromTimestamp' and 'startBlock' are provided, 'startBlock' will be used.<br>By default, the Genesis block timestamp</td></tr><tr><td>toTimestamp</td><td>String</td><td><p>The end date from which to get the transactions ( format in seconds or date string )<br>Note- If 'toTimestamp' and 'endBlock' are provided, 'endBlock' will be used.</p><p>By default, the current block timestamp</p></td></tr></tbody></table>

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

```url
https://historicallp.api.expand.network/chain/getusertransactions?address=0x227F6757289A86c13EeE2e91C2E6eB03f2eD11A6&pageSize=5&chainId=25
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "nextPageToken": "eyJhbGciOiJIUzI1NiJ9.eyJ0YWJsZUluZGV4IjowLCJsYXN0RXZhbHVhdGVkS2V5Ijp7IndhbGxldEFkZHJlc3MiOiIweDIyN2Y2NzU3Mjg5YTg2YzEzZWVlMmU5MWMyZTZlYjAzZjJlZDExYTYiLCJ0aW1lc3RhbXBfYmxvY2tOdW1iZXJfdHhJbmRleCI6IjAwMDAwMDE3MzMwMzg0ODkwMDAxNjk5MTY5NTAwMDAwIn0sInBhZ2VOdW1iZXIiOjAsImtleUNvbmRpdGlvbkV4cHJlc3Npb24iOnsid2FsbGV0QWRkcmVzcyI6eyJlcSI6IjB4MjI3ZjY3NTcyODlhODZjMTNlZWUyZTkxYzJlNmViMDNmMmVkMTFhNiJ9LCJ0aW1lc3RhbXBfYmxvY2tOdW1iZXJfdHhJbmRleCI6eyJiZXR3ZWVuIjpbIjAwMDAwMDE2MzYzMzMyMDAwMDAwMDAwMDAwMDAwMDAwIiwiMDAwMDAwMTczMzAzODU3MzAwMDAwMDAwMDAwOTk5OTkiXX19LCJsaW1pdCI6IjUiLCJvcmRlciI6ImRlc2NlbmRpbmcifQ.IhNXwA9tdIoSWmaLxOQcB4eUreHvuX7ZWGXus-blXH4",
        "pageSize": "5",
        "transactions": [
            {
                "hash": "0xdbca547abf7437367cb8eaa019cb99f760a628d0d14b0b95f184d57e3e15fbf5",
                "nonce": "795258",
                "transaction_index": "1",
                "from_address_entity": null,
                "from_address_entity_logo": null,
                "from_address": "0x227f6757289a86c13eee2e91c2e6eb03f2ed11a6",
                "from_address_label": null,
                "to_address_entity": null,
                "to_address_entity_logo": null,
                "to_address": "0x145863eb42cf62847a6ca784e6416c1682b1b2ae",
                "to_address_label": null,
                "value": "0",
                "gas": "350000",
                "gas_price": "5000000000000",
                "receipt_cumulative_gas_used": "221776",
                "receipt_gas_used": "175000",
                "receipt_contract_address": null,
                "receipt_status": "0",
                "block_timestamp": "2024-12-01T07:35:54.000Z",
                "block_number": "16991706",
                "block_hash": "0xc03db71ad00ad13439ef4569bd0b946103e88c1ea7d83992d71761daae6a4174",
                "transaction_fee": "NaN",
                "method_label": "swapExactTokensForETHSupportingFeeOnTransferTokens",
                "nft_transfers": [],
                "erc20_transfers": [],
                "native_transfers": [],
                "summary": "Signed a transaction",
                "possible_spam": false,
                "category": "contract interaction",
                "internal_transactions": []
            },
            {
                "hash": "0xb6f2047f14d9775d7fbdef1133693209bbf7d0a7a77925eea3ad88e85e68ace4",
                "nonce": "795257",
                "transaction_index": "0",
                "from_address_entity": null,
                "from_address_entity_logo": null,
                "from_address": "0x227f6757289a86c13eee2e91c2e6eb03f2ed11a6",
                "from_address_label": null,
                "to_address_entity": null,
                "to_address_entity_logo": null,
                "to_address": "0x145863eb42cf62847a6ca784e6416c1682b1b2ae",
                "to_address_label": null,
                "value": "0",
                "gas": "350000",
                "gas_price": "6060000000000",
                "receipt_cumulative_gas_used": "175000",
                "receipt_gas_used": "175000",
                "receipt_contract_address": null,
                "receipt_status": "1",
                "block_timestamp": "2024-12-01T07:35:46.000Z",
                "block_number": "16991705",
                "block_hash": "0x1c18b5809f18abefd916a9c98fa955ea0f45fdeb12e09d8686e2ae2900fd1433",
                "transaction_fee": "NaN",
                "method_label": "swapExactTokensForETHSupportingFeeOnTransferTokens",
                "nft_transfers": [],
                "erc20_transfers": [
                    {
                        "token_name": "Capybara Nation",
                        "token_symbol": "BARA",
                        "token_decimals": "18",
                        "from_address_entity": null,
                        "from_address_entity_logo": null,
                        "from_address": "0x227f6757289a86c13eee2e91c2e6eb03f2ed11a6",
                        "from_address_label": null,
                        "to_address_entity": null,
                        "to_address_entity_logo": null,
                        "to_address": "0xc77580d7aeb496ebc9163f1e11059821ec63e47c",
                        "to_address_label": null,
                        "address": "0xf24409d155965ca87c45ad5bc084ad8ad3be4f39",
                        "log_index": 0,
                        "value": "53200000000000000000000000",
                        "possible_spam": false,
                        "verified_contract": true,
                        "security_score": 97,
                        "direction": "send",
                        "value_formatted": "53200000"
                    }
                ],
                "native_transfers": [],
                "summary": "Sent 53,200,000 BARA to 0xc7...e47c",
                "possible_spam": false,
                "category": "token send",
                "internal_transactions": []
            },
            {
                "hash": "0x4b2fffb10a44c491bb337ced3392c826dac52c8e94685e6ab612c8408f7ac1f8",
                "nonce": "795256",
                "transaction_index": "0",
                "from_address_entity": null,
                "from_address_entity_logo": null,
                "from_address": "0x227f6757289a86c13eee2e91c2e6eb03f2ed11a6",
                "from_address_label": null,
                "to_address_entity": null,
                "to_address_entity_logo": null,
                "to_address": "0x145863eb42cf62847a6ca784e6416c1682b1b2ae",
                "to_address_label": null,
                "value": "0",
                "gas": "350000",
                "gas_price": "6060000000000",
                "receipt_cumulative_gas_used": "175000",
                "receipt_gas_used": "175000",
                "receipt_contract_address": null,
                "receipt_status": "1",
                "block_timestamp": "2024-12-01T07:34:55.000Z",
                "block_number": "16991696",
                "block_hash": "0xfefed951a281c571af91e878ec023b73292fc2b2d9cf87dc660a2e840e9a05ea",
                "transaction_fee": "NaN",
                "method_label": "swapExactTokensForETHSupportingFeeOnTransferTokens",
                "nft_transfers": [],
                "erc20_transfers": [
                    {
                        "token_name": "Capybara Nation",
                        "token_symbol": "BARA",
                        "token_decimals": "18",
                        "from_address_entity": null,
                        "from_address_entity_logo": null,
                        "from_address": "0x227f6757289a86c13eee2e91c2e6eb03f2ed11a6",
                        "from_address_label": null,
                        "to_address_entity": null,
                        "to_address_entity_logo": null,
                        "to_address": "0xc77580d7aeb496ebc9163f1e11059821ec63e47c",
                        "to_address_label": null,
                        "address": "0xf24409d155965ca87c45ad5bc084ad8ad3be4f39",
                        "log_index": 0,
                        "value": "86600000000000000000000000",
                        "possible_spam": false,
                        "verified_contract": true,
                        "security_score": 97,
                        "direction": "send",
                        "value_formatted": "86599999.99999999"
                    }
                ],
                "native_transfers": [],
                "summary": "Sent 86,599,999.99 BARA to 0xc7...e47c",
                "possible_spam": false,
                "category": "token send",
                "internal_transactions": []
            },
            {
                "hash": "0x8c922bc1815cfe3934c4422c2d79444c528b29fc3388e9ba3eb0b4188381eb78",
                "nonce": "795255",
                "transaction_index": "1",
                "from_address_entity": null,
                "from_address_entity_logo": null,
                "from_address": "0x227f6757289a86c13eee2e91c2e6eb03f2ed11a6",
                "from_address_label": null,
                "to_address_entity": null,
                "to_address_entity_logo": null,
                "to_address": "0x145863eb42cf62847a6ca784e6416c1682b1b2ae",
                "to_address_label": null,
                "value": "0",
                "gas": "350000",
                "gas_price": "5050000000000",
                "receipt_cumulative_gas_used": "350000",
                "receipt_gas_used": "175000",
                "receipt_contract_address": null,
                "receipt_status": "1",
                "block_timestamp": "2024-12-01T07:34:49.000Z",
                "block_number": "16991695",
                "block_hash": "0xc57ad43c2d0fe29b6e04eb9a85216077d573e77b62dbbe82fbaaad114d016d92",
                "transaction_fee": "NaN",
                "method_label": "swapExactTokensForETHSupportingFeeOnTransferTokens",
                "nft_transfers": [],
                "erc20_transfers": [
                    {
                        "token_name": "Capybara Nation",
                        "token_symbol": "BARA",
                        "token_decimals": "18",
                        "from_address_entity": null,
                        "from_address_entity_logo": null,
                        "from_address": "0x227f6757289a86c13eee2e91c2e6eb03f2ed11a6",
                        "from_address_label": null,
                        "to_address_entity": null,
                        "to_address_entity_logo": null,
                        "to_address": "0xc77580d7aeb496ebc9163f1e11059821ec63e47c",
                        "to_address_label": null,
                        "address": "0xf24409d155965ca87c45ad5bc084ad8ad3be4f39",
                        "log_index": 5,
                        "value": "70600000000000000000000000",
                        "possible_spam": false,
                        "verified_contract": true,
                        "security_score": 97,
                        "direction": "send",
                        "value_formatted": "70600000"
                    }
                ],
                "native_transfers": [],
                "summary": "Sent 70,600,000 BARA to 0xc7...e47c",
                "possible_spam": false,
                "category": "token send",
                "internal_transactions": []
            },
            {
                "hash": "0x5a3acb1896abe70f811fe7709c8faca188c5304a3f5e910341d46902315ff26c",
                "nonce": "795254",
                "transaction_index": "0",
                "from_address_entity": null,
                "from_address_entity_logo": null,
                "from_address": "0x227f6757289a86c13eee2e91c2e6eb03f2ed11a6",
                "from_address_label": null,
                "to_address_entity": null,
                "to_address_entity_logo": null,
                "to_address": "0x88d6757c6303f94b11bfd23087383e871b938780",
                "to_address_label": null,
                "value": "0",
                "gas": "350000",
                "gas_price": "6060000000000",
                "receipt_cumulative_gas_used": "175000",
                "receipt_gas_used": "175000",
                "receipt_contract_address": null,
                "receipt_status": "1",
                "block_timestamp": "2024-12-01T07:34:49.000Z",
                "block_number": "16991695",
                "block_hash": "0xc57ad43c2d0fe29b6e04eb9a85216077d573e77b62dbbe82fbaaad114d016d92",
                "transaction_fee": "NaN",
                "method_label": "multicall",
                "nft_transfers": [],
                "erc20_transfers": [
                    {
                        "token_name": "VVSToken",
                        "token_symbol": "VVS",
                        "token_decimals": "18",
                        "from_address_entity": null,
                        "from_address_entity_logo": null,
                        "from_address": "0x227f6757289a86c13eee2e91c2e6eb03f2ed11a6",
                        "from_address_label": null,
                        "to_address_entity": null,
                        "to_address_entity_logo": null,
                        "to_address": "0x9d96706f31f520cb2404a3d2ad1a932b61a85acf",
                        "to_address_label": null,
                        "address": "0x2d03bece6747adc00e1a131bba1469c15fd11e03",
                        "log_index": 1,
                        "value": "30227693972933292000000000",
                        "possible_spam": false,
                        "verified_contract": true,
                        "security_score": 95,
                        "direction": "send",
                        "value_formatted": "30227693.972933292"
                    }
                ],
                "native_transfers": [],
                "summary": "Sent 30,227,693.97 VVS to 0x9d...5acf",
                "possible_spam": false,
                "category": "token send",
                "internal_transactions": []
            }
        ]
    }
}
```

{% endtab %}
{% endtabs %}

### **/sendtransaction**

Send transaction on the chain.

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

#### Request Body

| Name                                             | Type   | Description                                                                          |
| ------------------------------------------------ | ------ | ------------------------------------------------------------------------------------ |
| rpc                                              | String | Remote procedural call URL.                                                          |
| chainId<mark style="color:red;">\*</mark>        | String | Refer to the [Chain ID ](https://docs.expand.network/ids/chain-ids)page for details. |
| chainSymbol                                      | String | Refer to the [Chain ID ](https://docs.expand.network/ids/chain-ids)page for details. |
| rawTransaction<mark style="color:red;">\*</mark> | String | The encoded transaction, obtained from the signed transaction.                       |

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

```json
{
    "chainId" : "25",
    "rawTransaction": "0xf86f048433918fbe830493e0949b79d6dfe4650d70f35dbb80f7d1ec0cf7f823fd87038d7ea4c6800084022794382da0c9bd6b5c7e18a258b04039d524a3e1382ec0f522d160dc027428933f520b6868a07332736f1df297842299230820626f1fc5b8d4cdd602ade55e3ba02c63e756ce"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId" : "25",
        "transactionHash": "0x8375c5eedd17609292cecc051c18e180fa970b32a77011c48d3725e45e46e7b3" 
    }
}
```

{% 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

| Name                                             | Type   | Description                                                                                                |
| ------------------------------------------------ | ------ | ---------------------------------------------------------------------------------------------------------- |
| chainId                                          | String | Refer to the [Chain ID ](https://docs.expand.network/ids/chain-ids)page for details. By default, Ethereum. |
| chainSymbol                                      | String | Refer to the [Chain ID ](https://docs.expand.network/ids/chain-ids)page for details.                       |
| rawTransaction<mark style="color:red;">\*</mark> | String | The raw transaction to be given for decoding.                                                              |

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

```json
{
    "chainId": "25",
    "rawTransaction": "0xf86a8086043842816f20830a3d8794f73ee0e06a1b8ec3a7ff860d766e75f3eea7b985843b9aca008056a0ebe8cc67db282ad618a9f5800fbaf03198674c9ad99bae574eabf13a3b2ce214a079551f134b3e5b04910c8328f64253596a25bc4db4a2c632e46cc5c9cb847ec0"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "parsedTx": {
            "nonce": 0,
            "gasPrice": {
                "type": "BigNumber",
                "hex": "0x043842816f20"
            },
            "gasLimit": {
                "type": "BigNumber",
                "hex": "0x0a3d87"
            },
            "to": "0xF73eE0e06a1B8Ec3A7Ff860D766E75f3EEA7b985",
            "value": {
                "type": "BigNumber",
                "hex": "0x3b9aca00"
            },
            "data": "0x",
            "chainId": 25,
            "v": 86,
            "r": "0xebe8cc67db282ad618a9f5800fbaf03198674c9ad99bae574eabf13a3b2ce214",
            "s": "0x79551f134b3e5b04910c8328f64253596a25bc4db4a2c632e46cc5c9cb847ec0",
            "from": "0x6Fb447Ae94F5180254D436A693907a1f57696900",
            "hash": "0x6026a99a963024d9aad9e1ba7d52a30c2ad93c824e68f3213e852d507e669fff",
            "type": null
        },
        "assetChanges": {
            "from": "0x6Fb447Ae94F5180254D436A693907a1f57696900",
            "to": "0xF73eE0e06a1B8Ec3A7Ff860D766E75f3EEA7b985",
            "value": {
                "type": "BigNumber",
                "hex": "0x3b9aca00"
            }
        }
    }
}
```

{% endtab %}
{% endtabs %}
