# Overview

expand.network offers a single unified API for transacting and sourcing on-chain data from 170+ endpoints, including DEXs, bridges, lending protocols, yield aggregators, oracles, NFTs, and stablecoins.

{% hint style="success" %}
Visit our new <mark style="color:red;">\*</mark> **Playground Expand Playground** <mark style="color:red;">\*</mark>!

[<mark style="color:blue;">https://playground.expand.network/api-collection</mark>](https://playground.expand.network/api-collection)

The Expand Playground provides an interactive version of our documentation.&#x20;

Discover and live-test our 170+ endpoints and learn about use cases.

**Key Features:**

* Easy to navigate display of endpoints with filters and search tools
* Selecting chain and/or protocol will display unique parameters for each endpoint
* Live testing of endpoints by adding in your API key and relevant parameters
* Test use cases including charting token prices, portfolio management, and sourcing transaction data

<img src="/files/eL9v3n6C1Nvs4KB5iUTK" alt="" data-size="original">
{% endhint %}

#### We currently support the following blockchains:

| Blockchain type | Blockchains                                                                                                        |
| --------------- | ------------------------------------------------------------------------------------------------------------------ |
| EVM compatible  | Arbitrum, Avalanche, Base, Binance Smart Chain, Cronos, Ethereum, Fantom, Optimism, Mantle, Polygon, zkSync        |
| Non-EVM         | Algorand, Aptos, NEAR, Solana, Starknet, Stellar, Sui, TON, Tron, Cosmos Hub, Stacks, Bitcoin, Stellar, XRP Ledger |

#### In addition, we currently support the following DeFi protocols:

| Protocol type     | Protocol                                                                                                                                                                              |
| ----------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Bridge            | Stargate, Squid Router, Allbridge Classic, Allbridge Core                                                                                                                             |
| DEX & Aggregators | 0x, 1inch, Balancer, Curve, Kyberswap, Pancakeswap (V2, V3), Sushiswap, Trader Joe, Uniswap (V2, V3, X), Orca, Raydium, SDEX, Jupiter,Liquidswap, REF Finance, Sologenic, Alex, Cetus |
| Derivative        | dYdX V4                                                                                                                                                                               |
| Lend and Borrow   | Aave V2, Aave V3, Compound V2, Compound V3                                                                                                                                            |
| Liquid Staking    | Lido V2, Stader, Benqi, Jito, EigenLayer, ChorusOne                                                                                                                                   |
| Oracle            | Chainlink, Pyth Network, Winklink                                                                                                                                                     |
| Synthetic         | Synthetix                                                                                                                                                                             |
| Yield aggregator  | Harvest finance, Yearn finance, Pendle                                                                                                                                                |

All transactions are securely signed on your end, so your private key remains with you and never comes to us over API. We do not hold your crypto at any point: your keys, your crypto. Our APIs are a one-stop shop for you to make the enquiries and conduct the transactions as you want.

We provide two high-level categories for the simplicity of developers.&#x20;

* **Blockchains** - Communicate with the various public blockchains to pull real-time information about blocks, transactions, slots (storage), balance, and many more. This can also be used to sign and send transactions to the chain. For example, if you need to check the transaction for the given transaction hash from Solana as well as the Binance smart chain, you need not learn about two different web3 libraries (Solana and BSC), you can easily do it using our common API endpoint, `gettransaction`. &#x20;
* **Protocols** - There are multiple protocols available on the various chains. expand.network aims to provide interaction with a maximum of them based on various subcategories (Please refer to the [categories](/integrations/blockchains) section for details). For example, if you need to check the swap price of Token A to Token B on Uniswap V3 and Sushiswap, you need not learn about two different protocols, they can easily do it using our common API, `getprice`.&#x20;

{% hint style="info" %}
**Good to know:** `expand.network` is a wrapper across the various available web3 blockchains and protocols.&#x20;
{% endhint %}

{% hint style="info" %}
**FYI:** Our API responses are provided in the smallest unit of measurement for each respective item.
{% endhint %}


# Getting Started

Learn how to generate an API Key and make your first request with the expand.network API.

### Follow these steps to get started today :

#### Step 1: 🔑 Create an API key (For further details, [<mark style="color:blue;">Click here</mark>](/how-do-i-get-my-api-key))

#### Step 2:  Make Your First Request

#### Performing READ operations

To perform **read** queries, directly target our domain **`https://api.expand.network/`** to hit our API environmen&#x74;**.** Following are the examples to make read queries:

{% hint style="info" %}
📑 Replace **"`YOUR_API_KEY"`** with your **API Key,** which was received by completing Step 1.
{% endhint %}

#### Example 1: via Postman

<figure><img src="/files/Un7UxZIZiyNuOagOx1zw" alt=""><figcaption><p>API KEY - AUTHORIZATION</p></figcaption></figure>

<figure><img src="/files/pn5xUoAXEYQ8Mqyi9qb1" alt=""><figcaption><p>Sample request via Postman</p></figcaption></figure>

#### Example 2: via cURL from a command line

```
curl -H "x-api-key: YOUR_API_KEY" https://api.expand.network/chain/getbalance?address=0xe688b84b23f322a994A53dbF8E15FA82CDB71127
```

#### Performing WRITE operations

To perform a **write** transaction, you would require the followings:-

1. expand.network SDK which can be cloned from [GitHub](https://github.com/expand-network/sdk-nodejs.git).
2. API key&#x20;

* *Example code*: Send one Wei from an address ending in `2c7` to address ending in `86F`. You need to use your private key to sign the transaction. The return value is the transaction hash (`res`).&#x20;

```javascript
const rawTransaction = await signTransaction({
    from: '0x1BdC0A29f667E2cc74e55531431986838023E2c7',
    to: '0x94a5E554DC172A472421291Ae6e6c0e3C150286F',
    value: '1',
    gas: 50000,
},{
    privateKey: YOUR_PRIVATE_KEY',
    xApiKey : 'YOUR_API_KEY'
}).then(rawTransaction => sendTransaction({
    rawTransaction: rawTransaction.rawTransaction,
    xApiKey : 'YOUR_API_KEY'
})).then(res => console.log(res));
```

{% hint style="info" %}
**Good to know:** All transactions are securely signed on your end, so your **private key remains with you**. Expand.network does not hold your crypto or have access to your private key at any point.
{% endhint %}


# How do I get my API Key?

### Step 1: 👉 Navigate To expand.network homepage ([<mark style="color:blue;">https://expand.network/</mark>](https://expand.network/))&#x20;

<figure><img src="/files/pgi949xAMsWl554jqNIK" alt=""><figcaption></figcaption></figure>

### Step 2: 🗝️ Get API Key

1. Click on the [<mark style="color:blue;">Get API key</mark>](https://auth.expand.network/).
2. After clicking, you will be redirected to the below-mentioned page.

<figure><img src="/files/aifm5aDqfMWjMjal987b" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
Users can either click on the "Sign up with Google" button to directly get their API key or follow the steps below.
{% endhint %}

3. Fill in your details and click on the Signup button. An email will be sent to the entered email address.&#x20;

<figure><img src="/files/3Vkuv90VF7tFtMJtMb7E" alt=""><figcaption></figcaption></figure>

{% hint style="success" %}
If the user does not receive the verification email, they can click the Resend email button to receive it again.
{% endhint %}

### Step 3: ✅ Verify Your Entered Email Address

1. After signing up, the user will be receiving an email stating "Please verify Email".&#x20;
2. Click on the Verify Email button.

<figure><img src="/files/2NkKIwdL8SMROR19EdBG" alt=""><figcaption></figcaption></figure>

3\. After clicking on verify email, you will be redirected to the Thank You page, containing your API key.&#x20;

<figure><img src="/files/VmmiKRVWGeOZ1e0oFTh1" alt="" width="563"><figcaption></figcaption></figure>

An email, containing your API Key, will also be sent to the registered email address.

{% hint style="danger" %}
**It is important to keep your private key confidential. Please do not share it with anyone.**
{% endhint %}


# Overview

Welcome to the expand.network SDK

This SDK helps you to easily interact with multiple chains and access smart contracts, allowing you to create applications that leverage the power of blockchain technology.

Whether you're building a decentralized finance platform, a blockchain-based game, or any other application, our SDK is the perfect solution for developers looking to harness the power of multiple blockchains.

## Installation

To complete the installation process, simply clone the repository directly from Git.

You can clone the repository by pasting the following command in your terminal:&#x20;

```bash
git clone https://github.com/expand-network/sdk-nodejs.git
```

## Developer Links

* [**expand.network Github Repo**](https://github.com/expand-network/sdk-nodejs)


# Getting Started

Learn how to send transactions using our SDK

### Follow these steps to start using our SDK today!!

#### Step1: Clone the repository

This can be done using the following command:&#x20;

```bash
git clone https://github.com/expand-network/sdk-nodejs.git
```

Install the project dependencies using the following command:&#x20;

```bash
npm i
```

#### Step2: File creation

Once Step1 has been completed, the user can create a javascript file in the root directory and subsequently insert the provided code into the file in order to execute a transaction on the Ethereum network.

```javascript
const {signTransaction,sendTransaction} = require('./src/index');

async function transfer() {
    const rawTransaction = await signTransaction({
        from: 'SENDER_WALLET_ADDRESS',
        to: 'RECEIVER_WALLET_ADDRESS',
        value: '1', // in wei
        gas: '50000',
    },{
        privateKey: 'YOUR_PRIVATE_KEY',
        xApiKey : 'YOUR_API_KEY',
        chainId : "1" // 5 for goerli
    }).then(rawTransaction => sendTransaction({
        rawTransaction: rawTransaction.rawTransaction,
        xApiKey : 'YOUR_API_KEY',
        chainId:"1" // 5 for goerli
    })).then(res => console.log(res));
}

transfer()
```

Upon completion of the transaction, the user will be provided with the transaction hash.

{% hint style="info" %}
For further details, please refer [here](https://github.com/expand-network/sdk-nodejs).
{% endhint %}


# Blockchains

We support all major public blockchains

expand.network provides connectivity to various EVM and Non-EVM based chains for both, **query**(Read) and **transaction**(Write). So now, the developer does not need to worry about how different blockchains work. The developer will be required to know only the chainID to perform multiple operations on different chains.&#x20;

For example, if a developer wants to send two transactions, one on the Ethereum mainnet and another on Solana, then they just need to call the sendtransaction API with different chain IDs in the request body.&#x20;

Following are the common APIs implemented for all the various chains:-&#x20;

<table><thead><tr><th width="225.4">Name</th><th width="150">Type</th><th>Description</th></tr></thead><tbody><tr><td>getbalance</td><td>Read</td><td>Get the balance or number of the given token in the requested public address.</td></tr><tr><td>getblock</td><td>Read</td><td>Get details of a block.</td></tr><tr><td>getgasprice</td><td>Read</td><td>Get the current gas price from the network.</td></tr><tr><td>getstorage</td><td>Read</td><td>Get data stored in the given slot.</td></tr><tr><td>gettransaction</td><td>Read</td><td>Get details of a transaction.</td></tr><tr><td>getgasfees</td><td>Read</td><td>Retrieves gas fee spent in a particular range.</td></tr><tr><td>getusertransactions</td><td>Read</td><td>Get the historical transaction details for a specific user address.<br>Available on Ethereum, Binance Smart Chain, Avalanche - P/C/X, Polygon, Fantom, Stellar and TON.</td></tr><tr><td>gethistoricalrewards</td><td>Read</td><td>Get the historical transaction details focusing on staking rewards for a specific user address. Available on Avax-P.</td></tr><tr><td>getevents</td><td>Read</td><td>Get a filtered list of events emitted by a given ledger range, within a maximum 24 hours of recent ledgers. Currently available on Stellar.</td></tr><tr><td>getlatestledger</td><td>Read</td><td>Get details for the current latest known ledger of the node. Currently available on Stellar.</td></tr><tr><td>portfolio</td><td>Read</td><td>Get detailed information about the verified assets or tokens currently associated with a user's wallet address. Available on Ethereum as well as Arbitrum, Avalanche, Base, Binance Smart Chain, Cronos, Fantom, Near, Optimism, Polygon, Stellar and Solana.</td></tr><tr><td>getflashbotblocks</td><td>Read</td><td>Get details of the flashbot blocks.</td></tr><tr><td>getflashbottransactions</td><td>Read</td><td>Get details of the flashbot transactions.</td></tr><tr><td>getflashbotbundle</td><td>Read</td><td>Get details of the specified flashbot bundle.</td></tr><tr><td>gettokenmarketdata</td><td>Read</td><td>Get the market data for a given asset on the Ethereum chain. </td></tr><tr><td>gettokenmapping</td><td>Read</td><td>Get the top 40 popular tokens on the EVM chains</td></tr><tr><td>getapprovaldata</td><td>Read</td><td>Retrieves approval-related information for a specified address, including token details, amount approved, spender, risk factor, value at risk, and timestamp. Currently supported for Ethereum chain.</td></tr><tr><td><a href="#createfeetransaction">createfeetransaction</a></td><td>Write</td><td>This endpoint lets users collect fees on transactions via the Expand API or plug-in.</td></tr><tr><td>estimategas</td><td>Write</td><td>Generates and returns an estimate of how much gas would be necessary to complete a transaction.</td></tr><tr><td>settrustline</td><td>Write</td><td>Implement a trustline between issuer and distributor. Currently available on Stellar.</td></tr><tr><td>rwa/issue</td><td>Write</td><td>Executes a payment operation to create (or mint) an asset on the Stellar network.</td></tr><tr><td>rwa/freeze</td><td>Write</td><td>Executes a transaction to revoke an existing trustline’s authorization, thereby freezing the asset held by an account on the Stellar network.</td></tr><tr><td>rwa/burn</td><td>Write</td><td>Executes a transaction to burn or delete an asset on the Stellar network.</td></tr><tr><td>rwa/transfer</td><td>Write</td><td>Trigger a payment operation to send an amount in a specific asset (XLM or non-XLM) to a destination account on the Stellar network.</td></tr><tr><td>sendtransaction</td><td>Write</td><td>Sign and send transactions on the chain.</td></tr><tr><td>createaccount</td><td>write</td><td>Initiates a transaction to fund a newly created account using the public key as the account ID.</td></tr><tr><td>simulatetransaction</td><td>write</td><td>Submit a trial contract invocation to simulate how it would be executed by the network. This endpoint calculates the effective transaction data, required authorizations, and minimal resource fee. It provides a way to test and analyze the potential outcomes of a transaction without actually submitting it to the Stellar network.</td></tr><tr><td>genericsmartcontractmethod</td><td>Write</td><td>Calls read functions of verified smart contracts. Available on ethereum.</td></tr><tr><td>decodetransaction</td><td>Write</td><td>Get the decoded transaction for the provided raw transaction. Available on ethereum, binance, avalanche, polygon, cronos, arbitrum, fantom, optimism, solana, stellar and near.</td></tr><tr><td><a href="#getapprovaldata">getapprovaldata</a></td><td>Read</td><td>Retrieves approval-related information for a specified address, including token details, amount approved, spender, risk factor, value at risk, and timestamp. This is currently available for EVM chains</td></tr></tbody></table>

{% hint style="info" %}
Every chain requires a different set of parameters to perform the common operations. Please refer to the sub-sections for details.
{% endhint %}

{% hint style="success" %}
To perform **sendtransaction()** successfully, the user needs to sign the transaction first.

For more details, click [<mark style="color:blue;">**here**</mark>](https://github.com/expand-network/sdk-nodejs#usage).
{% endhint %}

## /getapprovaldata

Retrieves approval-related information for a specified address, including token details, amount approved, spender, risk factor, value at risk, and timestamp. This is currently available for [EVM chains](https://docs.expand.network/)(Except zkSync Era)

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

#### Query Parameter

<table><thead><tr><th width="242">Name </th><th width="102">Type</th><th>Description</th></tr></thead><tbody><tr><td>address<mark style="color:red;">*</mark></td><td>String</td><td>The public address of the user.</td></tr><tr><td>chainId</td><td>String</td><td>Refer to the <a href="/pages/5o1xMsQPqXw9GBfGTpdB">Chain ID </a>page for details.</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>rpc</td><td>String</td><td>Remote procedural call URL.</td></tr><tr><td>pageToken</td><td>String</td><td>The page cursor present at the top to fetch the next page data.</td></tr></tbody></table>

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

```url
https://historicallp.api.expand.network/chain/getapprovaldata?chainId=56&address=0x65A8F07Bd9A8598E1b5B6C0a88F4779DBC077675
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "nextPageToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJwYWdlIjoxLCJjb250cmFjdEFkZHJlc3MiOiIweGZhZThlNjRjZGRlNzM1NTBlN2Q3ZjA0Njk1NTdhMzNhNDE3YjI4NjgiLCJjb250cmFjdFR5cGUiOiJlcmMyMCIsImFwcHJvdmVyQWRkcmVzcyI6IjB4NjVhOGYwN2JkOWE4NTk4ZTFiNWI2YzBhODhmNDc3OWRiYzA3NzY3NSIsInNwZW5kZXJBZGRyZXNzIjoiMHgxMTExMTExMjU0ZmI2YzQ0YmFjMGJlZDI4NTRlNzZmOTA2NDMwOTdkIiwiaWF0IjoxNzMzMzkzODE2fQ.y7FANxpXgtdgk83CIqPHHk2jutj1NZrueTu4XR39jnk",
        "approvals": [
            {
                "tokenAddress": "0xffeecbf8d7267757c2dc3d13d730e97e15bfdf7f",
                "tokenSymbol": "BORING",
                "spender": "0xe7b388d44fa9069385e174efe6f10616b149fe86",
                "allowance": "115792089237316195423570985008687907853269984665640564036939768402646829639935",
                "valueAtRisk": "0",
                "riskFactor": "LOW RISK",
                "lastUpdated": "1668720058"
            },
            {
                "tokenAddress": "0xffeecbf8d7267757c2dc3d13d730e97e15bfdf7f",
                "tokenSymbol": "BORING",
                "spender": "0xdef1c0ded9bec7f1a1670819833240f027b25eff",
                "allowance": "115792089237316195423570985008687907853269984665640563892563776604972513032835",
                "valueAtRisk": "0",
                "riskFactor": "LOW RISK",
                "lastUpdated": "1688315609"
            },
            {
                "tokenAddress": "0xffeecbf8d7267757c2dc3d13d730e97e15bfdf7f",
                "tokenSymbol": "BORING",
                "spender": "0x216b4b4ba9f3e719726886d34a177484278bfcae",
                "allowance": "115792089237316195423570985008687907853269984665640563979724133720178046426639",
                "valueAtRisk": "0",
                "riskFactor": "LOW RISK",
                "lastUpdated": "1704261178"
            },
            {
                "tokenAddress": "0xffeecbf8d7267757c2dc3d13d730e97e15bfdf7f",
                "tokenSymbol": "BORING",
                "spender": "0x1111111254fb6c44bac0bed2854e76f90643097d",
                "allowance": "115792089237316195423570985008687907853269984665640563879721856107913129639935",
                "valueAtRisk": "0",
                "riskFactor": "LOW RISK",
                "lastUpdated": "1649694300"
            },
            {
                "tokenAddress": "0xffeecbf8d7267757c2dc3d13d730e97e15bfdf7f",
                "tokenSymbol": "BORING",
                "spender": "0x1111111254eeb25477b68fb85ed929f73a960582",
                "allowance": "115792089237316195423570985008687907853269984665640563447809936703527957376182",
                "valueAtRisk": "0",
                "riskFactor": "LOW RISK",
                "lastUpdated": "1728966764"
            },
            {
                "tokenAddress": "0xffeb8287de7dc756067e171e9919c730f0636680",
                "tokenSymbol": "LAVA",
                "spender": "0x216b4b4ba9f3e719726886d34a177484278bfcae",
                "allowance": "115792089237316195423570985008687907853269984665640564039457584007913129639935",
                "valueAtRisk": "0",
                "riskFactor": "LOW RISK",
                "lastUpdated": "1730006073"
            },
            {
                "tokenAddress": "0xffeb8287de7dc756067e171e9919c730f0636680",
                "tokenSymbol": "LAVA",
                "spender": "0x1111111254eeb25477b68fb85ed929f73a960582",
                "allowance": "115792089237316195423570985008687907853269984665640564039457584007913129639935",
                "valueAtRisk": "0",
                "riskFactor": "LOW RISK",
                "lastUpdated": "1732528906"
            },
            {
                "tokenAddress": "0xffba7529ac181c2ee1844548e6d7061c9a597df4",
                "tokenSymbol": "CAPS",
                "spender": "0xdef1c0ded9bec7f1a1670819833240f027b25eff",
                "allowance": "115792089237316195423570985008687907853269984665640561790168545683103269739709",
                "valueAtRisk": "0",
                "riskFactor": "LOW RISK",
                "lastUpdated": "1710865847"
            },
            {
                "tokenAddress": "0xffba7529ac181c2ee1844548e6d7061c9a597df4",
                "tokenSymbol": "CAPS",
                "spender": "0x6352a56caadc4f1e25cd6c75970fa768a3304e64",
                "allowance": "115792089237316195423570985008687907853269984665640563533217452007913129639935",
                "valueAtRisk": "0",
                "riskFactor": "LOW RISK",
                "lastUpdated": "1688661067"
            },
            {
                "tokenAddress": "0xffba7529ac181c2ee1844548e6d7061c9a597df4",
                "tokenSymbol": "CAPS",
                "spender": "0x6131b5fae19ea4f9d964eac0408e4408b66337b5",
                "allowance": "115792089237316195423570985008687907853269984665640563530483818469617955326242",
                "valueAtRisk": "0",
                "riskFactor": "LOW RISK",
                "lastUpdated": "1709938847"
            },
            {
                "tokenAddress": "0xffba7529ac181c2ee1844548e6d7061c9a597df4",
                "tokenSymbol": "CAPS",
                "spender": "0x216b4b4ba9f3e719726886d34a177484278bfcae",
                "allowance": "115792089237316195423570985008687907853269984665640554282926385749167167311770",
                "valueAtRisk": "0",
                "riskFactor": "LOW RISK",
                "lastUpdated": "1726827052"
            },
            {
                "tokenAddress": "0xffba7529ac181c2ee1844548e6d7061c9a597df4",
                "tokenSymbol": "CAPS",
                "spender": "0x1111111254fb6c44bac0bed2854e76f90643097d",
                "allowance": "115792089237316195423570985008687907853269984665640563038265690880827039639935",
                "valueAtRisk": "0",
                "riskFactor": "LOW RISK",
                "lastUpdated": "1643151681"
            },
            {
                "tokenAddress": "0xffba7529ac181c2ee1844548e6d7061c9a597df4",
                "tokenSymbol": "CAPS",
                "spender": "0x1111111254eeb25477b68fb85ed929f73a960582",
                "allowance": "115792089237316195423570985008687907853269984665640546375573747739243615886867",
                "valueAtRisk": "0",
                "riskFactor": "LOW RISK",
                "lastUpdated": "1726935057"
            },
            {
                "tokenAddress": "0xffba7529ac181c2ee1844548e6d7061c9a597df4",
                "tokenSymbol": "CAPS",
                "spender": "0x111111125421ca6dc452d289314280a0f8842a65",
                "allowance": "115792089237316195423570985008687907853269984665640562330663181186017639770448",
                "valueAtRisk": "0",
                "riskFactor": "LOW RISK",
                "lastUpdated": "1728136480"
            },
            {
                "tokenAddress": "0xff2f5e8e796b6739ac9d73b8fe916568abb871b5",
                "tokenSymbol": "OXAI",
                "spender": "0xdef1c0ded9bec7f1a1670819833240f027b25eff",
                "allowance": "115792089237316195423570985008687907853269984665640564039457584007913129639935",
                "valueAtRisk": "807000000000000000000",
                "riskFactor": "LOW RISK",
                "lastUpdated": "1676764296"
            },
            {
                "tokenAddress": "0xff2f5e8e796b6739ac9d73b8fe916568abb871b5",
                "tokenSymbol": "OXAI",
                "spender": "0x58892974758a4013377a45fad698d2ff1f08d98e",
                "allowance": "115792089237316195423570985008687907853269984665640564039457584007913129639935",
                "valueAtRisk": "807000000000000000000",
                "riskFactor": "LOW RISK",
                "lastUpdated": "1676742598"
            },
            {
                "tokenAddress": "0xff2f5e8e796b6739ac9d73b8fe916568abb871b5",
                "tokenSymbol": "OXAI",
                "spender": "0x1111111254eeb25477b68fb85ed929f73a960582",
                "allowance": "115792089237316195423570985008687907853269984665640564039457584007913129639935",
                "valueAtRisk": "807000000000000000000",
                "riskFactor": "LOW RISK",
                "lastUpdated": "1676742005"
            },
            {
                "tokenAddress": "0xff2f5e8e796b6739ac9d73b8fe916568abb871b5",
                "tokenSymbol": "OXAI",
                "spender": "0x10ed43c718714eb63d5aa57b78b54704e256024e",
                "allowance": "115792089237316195423570985008687907853269984665640564039457584007913129639935",
                "valueAtRisk": "807000000000000000000",
                "riskFactor": "LOW RISK",
                "lastUpdated": "1677323691"
            },
            {
                "tokenAddress": "0xfeea0bdd3d07eb6fe305938878c0cadbfa169042",
                "tokenSymbol": "8PAY",
                "spender": "0xdef1c0ded9bec7f1a1670819833240f027b25eff",
                "allowance": "115792089237316195423570985008687907853269984665640564018755141282105772081151",
                "valueAtRisk": "66114939279596",
                "riskFactor": "LOW RISK",
                "lastUpdated": "1667599217"
            },
            {
                "tokenAddress": "0xfeea0bdd3d07eb6fe305938878c0cadbfa169042",
                "tokenSymbol": "8PAY",
                "spender": "0xbc3b4e7517c06019f30bf2f707ed2770b85f9928",
                "allowance": "88582937105451500231690829",
                "valueAtRisk": "66114939279596",
                "riskFactor": "LOW RISK",
                "lastUpdated": "1643496563"
            },
            {
                "tokenAddress": "0xfeea0bdd3d07eb6fe305938878c0cadbfa169042",
                "tokenSymbol": "8PAY",
                "spender": "0xabd380327fe66724ffda91a87c772fb8d00be488",
                "allowance": "115792089237316195423570985008687907853269984665640563686732493885041162846207",
                "valueAtRisk": "66114939279596",
                "riskFactor": "LOW RISK",
                "lastUpdated": "1667590483"
            },
            {
                "tokenAddress": "0xfeea0bdd3d07eb6fe305938878c0cadbfa169042",
                "tokenSymbol": "8PAY",
                "spender": "0x216b4b4ba9f3e719726886d34a177484278bfcae",
                "allowance": "115792089237316195423570985008687907853269984665640564039457584007913129639935",
                "valueAtRisk": "66114939279596",
                "riskFactor": "LOW RISK",
                "lastUpdated": "1666545316"
            },
            {
                "tokenAddress": "0xfeea0bdd3d07eb6fe305938878c0cadbfa169042",
                "tokenSymbol": "8PAY",
                "spender": "0x1111111254fb6c44bac0bed2854e76f90643097d",
                "allowance": "115792089237316195423570985008687907853269984665640563818699602112242849105734",
                "valueAtRisk": "66114939279596",
                "riskFactor": "LOW RISK",
                "lastUpdated": "1643236661"
            },
            {
                "tokenAddress": "0xfeea0bdd3d07eb6fe305938878c0cadbfa169042",
                "tokenSymbol": "8PAY",
                "spender": "0x1111111254eeb25477b68fb85ed929f73a960582",
                "allowance": "115792089237316195423570985008687907853269984665640563950088107850441750668765",
                "valueAtRisk": "66114939279596",
                "riskFactor": "LOW RISK",
                "lastUpdated": "1668723837"
            },
            {
                "tokenAddress": "0xfeea0bdd3d07eb6fe305938878c0cadbfa169042",
                "tokenSymbol": "8PAY",
                "spender": "0x10ed43c718714eb63d5aa57b78b54704e256024e",
                "allowance": "115792089237316195423570985008687907853269984665640563960590978914048759408961",
                "valueAtRisk": "66114939279596",
                "riskFactor": "LOW RISK",
                "lastUpdated": "1667593810"
            },
            {
                "tokenAddress": "0xfebfa339e44c28e2aa9e62ea1027c9cb4e378605",
                "tokenSymbol": "NPC",
                "spender": "0xb6f6d86a8f9879a9c87f643768d9efc38c1da6e7",
                "allowance": "115792089237316195423570985008687907853269984665640559108239333620033129639935",
                "valueAtRisk": "0",
                "riskFactor": "LOW RISK",
                "lastUpdated": "1733360475"
            },
            {
                "tokenAddress": "0xfebfa339e44c28e2aa9e62ea1027c9cb4e378605",
                "tokenSymbol": "NPC",
                "spender": "0x89b8aa89fdd0507a99d334cbe3c808fafc7d850e",
                "allowance": "115792089237316195423570985008687907853269984665640564014730119975274334607750",
                "valueAtRisk": "0",
                "riskFactor": "LOW RISK",
                "lastUpdated": "1731462369"
            },
            {
                "tokenAddress": "0xfebfa339e44c28e2aa9e62ea1027c9cb4e378605",
                "tokenSymbol": "NPC",
                "spender": "0x6131b5fae19ea4f9d964eac0408e4408b66337b5",
                "allowance": "115792089237316195423570985008687907853269984665640563955016596244110458115131",
                "valueAtRisk": "0",
                "riskFactor": "LOW RISK",
                "lastUpdated": "1732136471"
            },
            {
                "tokenAddress": "0xfebfa339e44c28e2aa9e62ea1027c9cb4e378605",
                "tokenSymbol": "NPC",
                "spender": "0x216b4b4ba9f3e719726886d34a177484278bfcae",
                "allowance": "115792089237316195423570985008687907853269984665640563831028951525553927377069",
                "valueAtRisk": "0",
                "riskFactor": "LOW RISK",
                "lastUpdated": "1733331837"
            },
            {
                "tokenAddress": "0xfebfa339e44c28e2aa9e62ea1027c9cb4e378605",
                "tokenSymbol": "NPC",
                "spender": "0x1111111254eeb25477b68fb85ed929f73a960582",
                "allowance": "115792089237316195423570985008687907853269984665640559692407482619727486063955",
                "valueAtRisk": "0",
                "riskFactor": "LOW RISK",
                "lastUpdated": "1733376768"
            },
            {
                "tokenAddress": "0xfebfa339e44c28e2aa9e62ea1027c9cb4e378605",
                "tokenSymbol": "NPC",
                "spender": "0x111111125421ca6dc452d289314280a0f8842a65",
                "allowance": "115792089237316195423570985008687907853269984665640563940044437479669111988344",
                "valueAtRisk": "0",
                "riskFactor": "LOW RISK",
                "lastUpdated": "1732047349"
            },
            {
                "tokenAddress": "0xfebe8c1ed424dbf688551d4e2267e7a53698f0aa",
                "tokenSymbol": "VINU",
                "spender": "0xdef1c0ded9bec7f1a1670819833240f027b25eff",
                "allowance": "115792089237316195423570985008687907853269984665390694744878574445754311797562",
                "valueAtRisk": "0",
                "riskFactor": "LOW RISK",
                "lastUpdated": "1688479376"
            },
            {
                "tokenAddress": "0xfebe8c1ed424dbf688551d4e2267e7a53698f0aa",
                "tokenSymbol": "VINU",
                "spender": "0xc3711bdbe7e3063bf6c22e7fed42f782ac82baee",
                "allowance": "115792089237316195423570985008687907853269984662680603427879681348390663645612",
                "valueAtRisk": "0",
                "riskFactor": "LOW RISK",
                "lastUpdated": "1731384555"
            },
            {
                "tokenAddress": "0xfebe8c1ed424dbf688551d4e2267e7a53698f0aa",
                "tokenSymbol": "VINU",
                "spender": "0x89b8aa89fdd0507a99d334cbe3c808fafc7d850e",
                "allowance": "115792089237316195423570985008687907853269984665509450503980459156749934889463",
                "valueAtRisk": "0",
                "riskFactor": "LOW RISK",
                "lastUpdated": "1713000340"
            },
            {
                "tokenAddress": "0xfebe8c1ed424dbf688551d4e2267e7a53698f0aa",
                "tokenSymbol": "VINU",
                "spender": "0x6131b5fae19ea4f9d964eac0408e4408b66337b5",
                "allowance": "115792089237316195423570985008687907853269984665528698069767620919182718847703",
                "valueAtRisk": "0",
                "riskFactor": "LOW RISK",
                "lastUpdated": "1713818023"
            },
            {
                "tokenAddress": "0xfebe8c1ed424dbf688551d4e2267e7a53698f0aa",
                "tokenSymbol": "VINU",
                "spender": "0x216b4b4ba9f3e719726886d34a177484278bfcae",
                "allowance": "115792089237316195423570985008687907853269984664984253402875469701431494604645",
                "valueAtRisk": "0",
                "riskFactor": "LOW RISK",
                "lastUpdated": "1725232254"
            },
            {
                "tokenAddress": "0xfebe8c1ed424dbf688551d4e2267e7a53698f0aa",
                "tokenSymbol": "VINU",
                "spender": "0x1111111254eeb25477b68fb85ed929f73a960582",
                "allowance": "115792089237316195423570985008687907853269984663430082943664701452924119016950",
                "valueAtRisk": "0",
                "riskFactor": "LOW RISK",
                "lastUpdated": "1702137193"
            },
            {
                "tokenAddress": "0xfebe8c1ed424dbf688551d4e2267e7a53698f0aa",
                "tokenSymbol": "VINU",
                "spender": "0x10ed43c718714eb63d5aa57b78b54704e256024e",
                "allowance": "115792089237316195423570985008687907853269984665358774015781171453706388855794",
                "valueAtRisk": "0",
                "riskFactor": "LOW RISK",
                "lastUpdated": "1680018141"
            },
            {
                "tokenAddress": "0xfea292e5ea4510881bdb840e3cec63abd43f936f",
                "tokenSymbol": "COPI",
                "spender": "0x6352a56caadc4f1e25cd6c75970fa768a3304e64",
                "allowance": "115792089237316195423570985008687907853269984665640564039457584007913129639935",
                "valueAtRisk": "61232287749",
                "riskFactor": "LOW RISK",
                "lastUpdated": "1701504058"
            },
            {
                "tokenAddress": "0xfea292e5ea4510881bdb840e3cec63abd43f936f",
                "tokenSymbol": "COPI",
                "spender": "0x6131b5fae19ea4f9d964eac0408e4408b66337b5",
                "allowance": "115792089237316195423570985008687907853269984665640563841025160163090908818076",
                "valueAtRisk": "61232287749",
                "riskFactor": "LOW RISK",
                "lastUpdated": "1729707303"
            },
            {
                "tokenAddress": "0xfea292e5ea4510881bdb840e3cec63abd43f936f",
                "tokenSymbol": "COPI",
                "spender": "0x5c80ae9c3396ca4394f9d8e6786ed9aa74489afe",
                "allowance": "115792089237316195423570985008687907853269984665640559901513676071324823057288",
                "valueAtRisk": "61232287749",
                "riskFactor": "LOW RISK",
                "lastUpdated": "1728769113"
            },
            {
                "tokenAddress": "0xfea292e5ea4510881bdb840e3cec63abd43f936f",
                "tokenSymbol": "COPI",
                "spender": "0x1111111254eeb25477b68fb85ed929f73a960582",
                "allowance": "115792089237316195423570985008687907853269984665640563488597074998378105510455",
                "valueAtRisk": "61232287749",
                "riskFactor": "LOW RISK",
                "lastUpdated": "1703112862"
            },
            {
                "tokenAddress": "0xfe73bb1cdd5a544a4c856468a9c6487e552a3fae",
                "tokenSymbol": "OMC",
                "spender": "0xdef1c0ded9bec7f1a1670819833240f027b25eff",
                "allowance": "115792089237316195423570985008687907853269984665640564039457584007913129639935",
                "valueAtRisk": "0",
                "riskFactor": "LOW RISK",
                "lastUpdated": "1705678977"
            },
            {
                "tokenAddress": "0xfe73bb1cdd5a544a4c856468a9c6487e552a3fae",
                "tokenSymbol": "OMC",
                "spender": "0x216b4b4ba9f3e719726886d34a177484278bfcae",
                "allowance": "115792089237316195423570985008687907853269984665640564039457584007913129639935",
                "valueAtRisk": "0",
                "riskFactor": "LOW RISK",
                "lastUpdated": "1705679544"
            },
            {
                "tokenAddress": "0xfe73bb1cdd5a544a4c856468a9c6487e552a3fae",
                "tokenSymbol": "OMC",
                "spender": "0x1111111254eeb25477b68fb85ed929f73a960582",
                "allowance": "115792089237316195423570985008687907853269984665640564039457584007913129639935",
                "valueAtRisk": "0",
                "riskFactor": "LOW RISK",
                "lastUpdated": "1705677392"
            },
            {
                "tokenAddress": "0xfe642f7463b7a2ab67690209ed5a070a46b66064",
                "tokenSymbol": "PLAYFI",
                "spender": "0xdef1c0ded9bec7f1a1670819833240f027b25eff",
                "allowance": "115792089237316195423570985008687907853269984665640564020842029622133129639935",
                "valueAtRisk": "0",
                "riskFactor": "LOW RISK",
                "lastUpdated": "1730407988"
            },
            {
                "tokenAddress": "0xfe642f7463b7a2ab67690209ed5a070a46b66064",
                "tokenSymbol": "PLAYFI",
                "spender": "0x89b8aa89fdd0507a99d334cbe3c808fafc7d850e",
                "allowance": "115792089237316195423570985008687907853269984665640564039457584007913129639935",
                "valueAtRisk": "0",
                "riskFactor": "LOW RISK",
                "lastUpdated": "1730489565"
            },
            {
                "tokenAddress": "0xfe642f7463b7a2ab67690209ed5a070a46b66064",
                "tokenSymbol": "PLAYFI",
                "spender": "0x6131b5fae19ea4f9d964eac0408e4408b66337b5",
                "allowance": "115792089237316195423570985008687907853269984665640564030226608880623129639935",
                "valueAtRisk": "0",
                "riskFactor": "LOW RISK",
                "lastUpdated": "1730507376"
            },
            {
                "tokenAddress": "0xfe642f7463b7a2ab67690209ed5a070a46b66064",
                "tokenSymbol": "PLAYFI",
                "spender": "0x216b4b4ba9f3e719726886d34a177484278bfcae",
                "allowance": "115792089237316195423570985008687907853269984665640564026014463266421837047294",
                "valueAtRisk": "0",
                "riskFactor": "LOW RISK",
                "lastUpdated": "1730489595"
            },
            {
                "tokenAddress": "0xfe642f7463b7a2ab67690209ed5a070a46b66064",
                "tokenSymbol": "PLAYFI",
                "spender": "0x1111111254eeb25477b68fb85ed929f73a960582",
                "allowance": "115792089237316195423570985008687907853269984665640564039457584007913129639935",
                "valueAtRisk": "0",
                "riskFactor": "LOW RISK",
                "lastUpdated": "1727827516"
            },
            {
                "tokenAddress": "0xfe56d5892bdffc7bf58f2e84be1b2c32d21c308b",
                "tokenSymbol": "KNC",
                "spender": "0x1111111254fb6c44bac0bed2854e76f90643097d",
                "allowance": "115792089237316195423570985008687907853269984665640564037977537000031281170693",
                "valueAtRisk": "0",
                "riskFactor": "LOW RISK",
                "lastUpdated": "1648655341"
            },
            {
                "tokenAddress": "0xfdc66a08b0d0dc44c17bbd471b88f49f50cdd20f",
                "tokenSymbol": "SDEX",
                "spender": "0xdef1c0ded9bec7f1a1670819833240f027b25eff",
                "allowance": "115792089237316195423570985008687907853269984665640563528636605726246974393382",
                "valueAtRisk": "31359636365021785577",
                "riskFactor": "LOW RISK",
                "lastUpdated": "1692059015"
            },
            {
                "tokenAddress": "0xfdc66a08b0d0dc44c17bbd471b88f49f50cdd20f",
                "tokenSymbol": "SDEX",
                "spender": "0xb6f6d86a8f9879a9c87f643768d9efc38c1da6e7",
                "allowance": "2276984211592829806155246553",
                "valueAtRisk": "31359636365021785577",
                "riskFactor": "LOW RISK",
                "lastUpdated": "1733393001"
            },
            {
                "tokenAddress": "0xfdc66a08b0d0dc44c17bbd471b88f49f50cdd20f",
                "tokenSymbol": "SDEX",
                "spender": "0x89b8aa89fdd0507a99d334cbe3c808fafc7d850e",
                "allowance": "115792089237316195423570985008687907853269984665640546354491787520065798533378",
                "valueAtRisk": "31359636365021785577",
                "riskFactor": "LOW RISK",
                "lastUpdated": "1733367756"
            },
            {
                "tokenAddress": "0xfdc66a08b0d0dc44c17bbd471b88f49f50cdd20f",
                "tokenSymbol": "SDEX",
                "spender": "0x6131b5fae19ea4f9d964eac0408e4408b66337b5",
                "allowance": "115792089237316195423570985008687907853269984665640563576958628813653129639935",
                "valueAtRisk": "31359636365021785577",
                "riskFactor": "LOW RISK",
                "lastUpdated": "1733233774"
            },
            {
                "tokenAddress": "0xfdc66a08b0d0dc44c17bbd471b88f49f50cdd20f",
                "tokenSymbol": "SDEX",
                "spender": "0x216b4b4ba9f3e719726886d34a177484278bfcae",
                "allowance": "115792089237316195423570985008687907853269984665640563633656883890896991973900",
                "valueAtRisk": "31359636365021785577",
                "riskFactor": "LOW RISK",
                "lastUpdated": "1733266628"
            },
            {
                "tokenAddress": "0xfdc66a08b0d0dc44c17bbd471b88f49f50cdd20f",
                "tokenSymbol": "SDEX",
                "spender": "0x1111111254eeb25477b68fb85ed929f73a960582",
                "allowance": "115792089237316195423570985008687907853269984665640563608118068882755527943909",
                "valueAtRisk": "31359636365021785577",
                "riskFactor": "LOW RISK",
                "lastUpdated": "1733234032"
            },
            {
                "tokenAddress": "0xfdc66a08b0d0dc44c17bbd471b88f49f50cdd20f",
                "tokenSymbol": "SDEX",
                "spender": "0x111111125421ca6dc452d289314280a0f8842a65",
                "allowance": "115792089237316195423570985008687907853269984665640563840167461519883129639935",
                "valueAtRisk": "31359636365021785577",
                "riskFactor": "LOW RISK",
                "lastUpdated": "1733285237"
            },
            {
                "tokenAddress": "0xfd7b3a77848f1c2d67e05e54d78d174a0c850335",
                "tokenSymbol": "ONT",
                "spender": "0x1111111254fb6c44bac0bed2854e76f90643097d",
                "allowance": "115792089237316195423570985008687907853269984665640564038957406386977486511619",
                "valueAtRisk": "0",
                "riskFactor": "LOW RISK",
                "lastUpdated": "1643986916"
            },
            {
                "tokenAddress": "0xfd799ddcca8ab5c1ad8a3d64a58d4e907c9d0b71",
                "tokenSymbol": "TAP",
                "spender": "0xdef1c0ded9bec7f1a1670819833240f027b25eff",
                "allowance": "115792089237316195423570985008687907853269984665640563983064207424020312752127",
                "valueAtRisk": "0",
                "riskFactor": "LOW RISK",
                "lastUpdated": "1668193014"
            },
            {
                "tokenAddress": "0xfd799ddcca8ab5c1ad8a3d64a58d4e907c9d0b71",
                "tokenSymbol": "TAP",
                "spender": "0xbc3b4e7517c06019f30bf2f707ed2770b85f9928",
                "allowance": "115792089237316195423570985008687907853269984665640563819468343713876691199574",
                "valueAtRisk": "0",
                "riskFactor": "LOW RISK",
                "lastUpdated": "1673514765"
            },
            {
                "tokenAddress": "0xfd799ddcca8ab5c1ad8a3d64a58d4e907c9d0b71",
                "tokenSymbol": "TAP",
                "spender": "0x1111111254fb6c44bac0bed2854e76f90643097d",
                "allowance": "115792089237316195423570985008687907853269984665640564039457584007913129639935",
                "valueAtRisk": "0",
                "riskFactor": "LOW RISK",
                "lastUpdated": "1668192126"
            },
            {
                "tokenAddress": "0xfd799ddcca8ab5c1ad8a3d64a58d4e907c9d0b71",
                "tokenSymbol": "TAP",
                "spender": "0x1111111254eeb25477b68fb85ed929f73a960582",
                "allowance": "115792089237316195423570985008687907853269984665640564039457584007913129639935",
                "valueAtRisk": "0",
                "riskFactor": "LOW RISK",
                "lastUpdated": "1673311394"
            },
            {
                "tokenAddress": "0xfd799ddcca8ab5c1ad8a3d64a58d4e907c9d0b71",
                "tokenSymbol": "TAP",
                "spender": "0x10ed43c718714eb63d5aa57b78b54704e256024e",
                "allowance": "115792089237316195423570985008687907853269984665640563984130468809048399747273",
                "valueAtRisk": "0",
                "riskFactor": "LOW RISK",
                "lastUpdated": "1662925015"
            },
            {
                "tokenAddress": "0xfd5af95c12446b60d23e16a4ea95690ce942e5dc",
                "tokenSymbol": "FREL",
                "spender": "0xbc3b4e7517c06019f30bf2f707ed2770b85f9928",
                "allowance": "997352256275522425710252679",
                "valueAtRisk": "0",
                "riskFactor": "LOW RISK",
                "lastUpdated": "1680046854"
            },
            {
                "tokenAddress": "0xfd2700c51812753215754de9ec51cdd42bf725b9",
                "tokenSymbol": "ROUTE",
                "spender": "0x21c1e74caadf990e237920d5515955a024031109",
                "allowance": "100000000000000000000000000000000000000000000000000000000000000000",
                "valueAtRisk": "0",
                "riskFactor": "LOW RISK",
                "lastUpdated": "1724175827"
            },
            {
                "tokenAddress": "0xfd2700c51812753215754de9ec51cdd42bf725b9",
                "tokenSymbol": "ROUTE",
                "spender": "0x216b4b4ba9f3e719726886d34a177484278bfcae",
                "allowance": "115792089237316195423570985008687907853269984665640564039002410120052659039626",
                "valueAtRisk": "0",
                "riskFactor": "LOW RISK",
                "lastUpdated": "1730243616"
            },
            {
                "tokenAddress": "0xfd2700c51812753215754de9ec51cdd42bf725b9",
                "tokenSymbol": "ROUTE",
                "spender": "0x1111111254eeb25477b68fb85ed929f73a960582",
                "allowance": "115792089237316195423570985008687907853269984665640564039457584007913129639935",
                "valueAtRisk": "0",
                "riskFactor": "LOW RISK",
                "lastUpdated": "1730243607"
            },
            {
                "tokenAddress": "0xfce246750b6ff65b5799418ab07ce502f053a20a",
                "tokenSymbol": "CPEPE",
                "spender": "0x1111111254fb6c44bac0bed2854e76f90643097d",
                "allowance": "115792089237316195423570985008687907853269984665627945304756180818954057004744",
                "valueAtRisk": "0",
                "riskFactor": "LOW RISK",
                "lastUpdated": "1649807079"
            },
            {
                "tokenAddress": "0xfccf5becfcc0978a3a766476bb58d5f13565d999",
                "tokenSymbol": "NESG",
                "spender": "0x216b4b4ba9f3e719726886d34a177484278bfcae",
                "allowance": "115792089237316195423570985008687907853269984665640564039436488904066772699400",
                "valueAtRisk": "0",
                "riskFactor": "LOW RISK",
                "lastUpdated": "1725148861"
            },
            {
                "tokenAddress": "0xfccf5becfcc0978a3a766476bb58d5f13565d999",
                "tokenSymbol": "NESG",
                "spender": "0x1111111254eeb25477b68fb85ed929f73a960582",
                "allowance": "115792089237316195423570985008687907853269984665640564039347272494847802961375",
                "valueAtRisk": "0",
                "riskFactor": "LOW RISK",
                "lastUpdated": "1725151289"
            },
            {
                "tokenAddress": "0xfc2b9f95ef1e5ab03c341accc7fd2586eb1a551f",
                "tokenSymbol": "bMVL",
                "spender": "0x3f621973a1363c2ecc8b256e9c0a1c3e62d2cefe",
                "allowance": "354367205209786569293736",
                "valueAtRisk": "0",
                "riskFactor": "LOW RISK",
                "lastUpdated": "1686723634"
            },
            {
                "tokenAddress": "0xfbcf80ed90856af0d6d9655f746331763efdb22c",
                "tokenSymbol": "NT",
                "spender": "0xdef1c0ded9bec7f1a1670819833240f027b25eff",
                "allowance": "115792089237316195423570985008687907853269984665640563953307299636605759920199",
                "valueAtRisk": "0",
                "riskFactor": "LOW RISK",
                "lastUpdated": "1683115049"
            },
            {
                "tokenAddress": "0xfbcf80ed90856af0d6d9655f746331763efdb22c",
                "tokenSymbol": "NT",
                "spender": "0xabd380327fe66724ffda91a87c772fb8d00be488",
                "allowance": "115792089237316195423570985008687907853269984665640563776936432928882578967830",
                "valueAtRisk": "0",
                "riskFactor": "LOW RISK",
                "lastUpdated": "1668034354"
            },
            {
                "tokenAddress": "0xfbcf80ed90856af0d6d9655f746331763efdb22c",
                "tokenSymbol": "NT",
                "spender": "0x1111111254fb6c44bac0bed2854e76f90643097d",
                "allowance": "115792089237316195423570985008687907853269984665640563795025418260722649371562",
                "valueAtRisk": "0",
                "riskFactor": "LOW RISK",
                "lastUpdated": "1665776619"
            },
            {
                "tokenAddress": "0xfbcf80ed90856af0d6d9655f746331763efdb22c",
                "tokenSymbol": "NT",
                "spender": "0x1111111254eeb25477b68fb85ed929f73a960582",
                "allowance": "115792089237316195423570985008687907853269984665640564039457584007913129639935",
                "valueAtRisk": "0",
                "riskFactor": "LOW RISK",
                "lastUpdated": "1680469419"
            },
            {
                "tokenAddress": "0xfb7400707df3d76084fbeae0109f41b178f71c02",
                "tokenSymbol": "DOWS",
                "spender": "0xdef1c0ded9bec7f1a1670819833240f027b25eff",
                "allowance": "115792089237316195423570985008687907853269984665640564002815294559713945976831",
                "valueAtRisk": "0",
                "riskFactor": "LOW RISK",
                "lastUpdated": "1678906619"
            },
            {
                "tokenAddress": "0xfb7400707df3d76084fbeae0109f41b178f71c02",
                "tokenSymbol": "DOWS",
                "spender": "0xbc3b4e7517c06019f30bf2f707ed2770b85f9928",
                "allowance": "40652401117958971319827281",
                "valueAtRisk": "0",
                "riskFactor": "LOW RISK",
                "lastUpdated": "1643400374"
            },
            {
                "tokenAddress": "0xfb7400707df3d76084fbeae0109f41b178f71c02",
                "tokenSymbol": "DOWS",
                "spender": "0x1111111254fb6c44bac0bed2854e76f90643097d",
                "allowance": "115792089237316195423570985008687907853269984665640563946131899899932122808319",
                "valueAtRisk": "0",
                "riskFactor": "LOW RISK",
                "lastUpdated": "1648652802"
            },
            {
                "tokenAddress": "0xfb7400707df3d76084fbeae0109f41b178f71c02",
                "tokenSymbol": "DOWS",
                "spender": "0x1111111254eeb25477b68fb85ed929f73a960582",
                "allowance": "115792089237316195423570985008687907853269984665640563785710256945372696795683",
                "valueAtRisk": "0",
                "riskFactor": "LOW RISK",
                "lastUpdated": "1677965908"
            },
            {
                "tokenAddress": "0xfb6115445bff7b52feb98650c87f44907e58f802",
                "tokenSymbol": "AAVE",
                "spender": "0x1111111254eeb25477b68fb85ed929f73a960582",
                "allowance": "115792089237316195423570985008687907853269984665640564039457474411313333553394",
                "valueAtRisk": "0",
                "riskFactor": "LOW RISK",
                "lastUpdated": "1715952593"
            },
            {
                "tokenAddress": "0xfb5b838b6cfeedc2873ab27866079ac55363d37e",
                "tokenSymbol": "FLOKI",
                "spender": "0xabd380327fe66724ffda91a87c772fb8d00be488",
                "allowance": "115792089237316195423570985008687907853269984665640564039457218746913129639935",
                "valueAtRisk": "70873810564577",
                "riskFactor": "LOW RISK",
                "lastUpdated": "1668534442"
            },
            {
                "tokenAddress": "0xfb5b838b6cfeedc2873ab27866079ac55363d37e",
                "tokenSymbol": "FLOKI",
                "spender": "0x6352a56caadc4f1e25cd6c75970fa768a3304e64",
                "allowance": "62942790903587627",
                "valueAtRisk": "70873810564577",
                "riskFactor": "LOW RISK",
                "lastUpdated": "1709865333"
            },
            {
                "tokenAddress": "0xfb5b838b6cfeedc2873ab27866079ac55363d37e",
                "tokenSymbol": "FLOKI",
                "spender": "0x1111111254fb6c44bac0bed2854e76f90643097d",
                "allowance": "115792089237316195423570985008687907853269984665640564039457584007913129639935",
                "valueAtRisk": "70873810564577",
                "riskFactor": "LOW RISK",
                "lastUpdated": "1666003377"
            },
            {
                "tokenAddress": "0xfb5b838b6cfeedc2873ab27866079ac55363d37e",
                "tokenSymbol": "FLOKI",
                "spender": "0x1111111254eeb25477b68fb85ed929f73a960582",
                "allowance": "115792089237316195423570985008687907853269984665640564039457359173677455672801",
                "valueAtRisk": "70873810564577",
                "riskFactor": "LOW RISK",
                "lastUpdated": "1709865366"
            },
            {
                "tokenAddress": "0xfb5b838b6cfeedc2873ab27866079ac55363d37e",
                "tokenSymbol": "FLOKI",
                "spender": "0x10ed43c718714eb63d5aa57b78b54704e256024e",
                "allowance": "115792089237316195423570985008687907853269984665640564039453739666833553030364",
                "valueAtRisk": "70873810564577",
                "riskFactor": "LOW RISK",
                "lastUpdated": "1667934155"
            },
            {
                "tokenAddress": "0xfb288d60d3b66f9c3e231a9a39ed3f158a4269aa",
                "tokenSymbol": "PPAY",
                "spender": "0xdef1c0ded9bec7f1a1670819833240f027b25eff",
                "allowance": "115792089237316195423570985008687907853269984665640564039457584007913129639935",
                "valueAtRisk": "967000000000000000",
                "riskFactor": "LOW RISK",
                "lastUpdated": "1675848886"
            },
            {
                "tokenAddress": "0xfb288d60d3b66f9c3e231a9a39ed3f158a4269aa",
                "tokenSymbol": "PPAY",
                "spender": "0x1111111254fb6c44bac0bed2854e76f90643097d",
                "allowance": "115792089237316195423570985008687907853269984665640564039457584007913129639935",
                "valueAtRisk": "967000000000000000",
                "riskFactor": "LOW RISK",
                "lastUpdated": "1642832816"
            },
            {
                "tokenAddress": "0xfb288d60d3b66f9c3e231a9a39ed3f158a4269aa",
                "tokenSymbol": "PPAY",
                "spender": "0x1111111254eeb25477b68fb85ed929f73a960582",
                "allowance": "115792089237316195423570985008687907853269984665640564039457584007913129639935",
                "valueAtRisk": "967000000000000000",
                "riskFactor": "LOW RISK",
                "lastUpdated": "1668947624"
            },
            {
                "tokenAddress": "0xfb288d60d3b66f9c3e231a9a39ed3f158a4269aa",
                "tokenSymbol": "PPAY",
                "spender": "0x10ed43c718714eb63d5aa57b78b54704e256024e",
                "allowance": "115792089237316195423570985008687907853269984665640564039457584007913129639935",
                "valueAtRisk": "967000000000000000",
                "riskFactor": "LOW RISK",
                "lastUpdated": "1672863800"
            },
            {
                "tokenAddress": "0xfafd4cb703b25cb22f43d017e7e0d75febc26743",
                "tokenSymbol": "WEYU",
                "spender": "0xb6f6d86a8f9879a9c87f643768d9efc38c1da6e7",
                "allowance": "115792089237316195423570985008687907853269984665640562895682360698323129639935",
                "valueAtRisk": "0",
                "riskFactor": "LOW RISK",
                "lastUpdated": "1707241922"
            },
            {
                "tokenAddress": "0xfafd4cb703b25cb22f43d017e7e0d75febc26743",
                "tokenSymbol": "WEYU",
                "spender": "0x89b8aa89fdd0507a99d334cbe3c808fafc7d850e",
                "allowance": "115792089237316195423570985008687907853269984665640564039457584007913129639935",
                "valueAtRisk": "0",
                "riskFactor": "LOW RISK",
                "lastUpdated": "1713331476"
            },
            {
                "tokenAddress": "0xfafd4cb703b25cb22f43d017e7e0d75febc26743",
                "tokenSymbol": "WEYU",
                "spender": "0x6131b5fae19ea4f9d964eac0408e4408b66337b5",
                "allowance": "115792089237316195423570985008687907853269984665640564039457584007913129639935",
                "valueAtRisk": "0",
                "riskFactor": "LOW RISK",
                "lastUpdated": "1713330933"
            },
            {
                "tokenAddress": "0xfafd4cb703b25cb22f43d017e7e0d75febc26743",
                "tokenSymbol": "WEYU",
                "spender": "0x31c2f6fcff4f8759b3bd5bf0e1084a055615c768",
                "allowance": "115792089237316195423570985008687907853269984665640564039457584007913129639935",
                "valueAtRisk": "0",
                "riskFactor": "LOW RISK",
                "lastUpdated": "1713331572"
            },
            {
                "tokenAddress": "0xfafd4cb703b25cb22f43d017e7e0d75febc26743",
                "tokenSymbol": "WEYU",
                "spender": "0x216b4b4ba9f3e719726886d34a177484278bfcae",
                "allowance": "115792089237316195423570985008687907853269984665640564039457584007913129639935",
                "valueAtRisk": "0",
                "riskFactor": "LOW RISK",
                "lastUpdated": "1714837969"
            },
            {
                "tokenAddress": "0xfafd4cb703b25cb22f43d017e7e0d75febc26743",
                "tokenSymbol": "WEYU",
                "spender": "0x13f4ea83d0bd40e75c8222255bc855a974568dd4",
                "allowance": "115792089237316195423570985008687907853269984665640562265098743125446980535166",
                "valueAtRisk": "0",
                "riskFactor": "LOW RISK",
                "lastUpdated": "1714677116"
            },
            {
                "tokenAddress": "0xfafd4cb703b25cb22f43d017e7e0d75febc26743",
                "tokenSymbol": "WEYU",
                "spender": "0x1111111254eeb25477b68fb85ed929f73a960582",
                "allowance": "115792089237316195423570985008687907853269984665640564039457584007913129639935",
                "valueAtRisk": "0",
                "riskFactor": "LOW RISK",
                "lastUpdated": "1714837876"
            },
            {
                "tokenAddress": "0xfafd4cb703b25cb22f43d017e7e0d75febc26743",
                "tokenSymbol": "WEYU",
                "spender": "0x10ed43c718714eb63d5aa57b78b54704e256024e",
                "allowance": "115792089237316195423570985008687907853269984665640563476548442725166113346662",
                "valueAtRisk": "0",
                "riskFactor": "LOW RISK",
                "lastUpdated": "1707609250"
            },
            {
                "tokenAddress": "0xfae8e64cdde73550e7d7f0469557a33a417b2868",
                "tokenSymbol": "Croge",
                "spender": "0x665b70283be3e014e9d2482545040df77b17d9fb",
                "allowance": "115792089237316195423570985008687907853000000000",
                "valueAtRisk": "0",
                "riskFactor": "LOW RISK",
                "lastUpdated": "1711500953"
            },
            {
                "tokenAddress": "0xfae8e64cdde73550e7d7f0469557a33a417b2868",
                "tokenSymbol": "Croge",
                "spender": "0x1111111254fb6c44bac0bed2854e76f90643097d",
                "allowance": "115792089237316195423570985008687907853269984665640564039457584007913129639935",
                "valueAtRisk": "0",
                "riskFactor": "LOW RISK",
                "lastUpdated": "1665522820"
            }
        ]
    }
}
```

{% endtab %}
{% endtabs %}

## /estimategas

Generates and returns an estimate of how much gas would be necessary to complete a transaction. This is currently available for [EVM chains](https://docs.expand.network/)

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

#### Request Body

<table><thead><tr><th>Name</th><th width="163">Type</th><th>Description</th></tr></thead><tbody><tr><td>chainId</td><td>String</td><td>Refer to the <a href="/pages/5o1xMsQPqXw9GBfGTpdB">Chain ID </a>page for details. </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>data<mark style="color:red;">*</mark></td><td>String</td><td>Encoded function call data.</td></tr><tr><td>from<mark style="color:red;">*</mark></td><td>String</td><td>Address of the sender of the token.</td></tr><tr><td>to<mark style="color:red;">*</mark></td><td>String</td><td>Address of the recipient of the token.</td></tr><tr><td>value</td><td>String</td><td>Amount being sent with the transaction.</td></tr><tr><td>rpc</td><td>String</td><td>Remote procedural call URL.</td></tr></tbody></table>

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

```json
{
  "chainId": "1",
  "data": "0xb6f9de9500000000000000000000000000000000000000000000000000027504c2d159000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000b999e0cb5f5e075b11239093e82703dbf0e561d60000000000000000000000000000000000000000000000000000018ef59ee21e0000000000000000000000000000000000000000000000000000000000000002000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2000000000000000000000000c3705517b4002ecd90185e07a9fcdfe8e93e9248",
  "from": "0x56Eddb7aa87536c09CCc2793473599fD21A8b17F",
  "to": "0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D",
  "value": "160000000000000000"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "estimatedGas": "153222"
    }
}
```

{% endtab %}
{% endtabs %}

## /createfeetransaction

This endpoint lets users collect fees on transactions via the Expand API or plug-in. By default, it deducts 5 basis points from the transaction value, but the fee can be customized.

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

#### Request Body

| Name                                          | Type   | Description                                                       |
| --------------------------------------------- | ------ | ----------------------------------------------------------------- |
| rpc                                           | string | Remote procedural call URL.                                       |
| chainId<mark style="color:red;">\*</mark>     | String | Refer to the [Chain ID ](/ids/chain-ids)page for details.         |
| chainSymbol                                   | String | Refer to the [Chain ID ](/ids/chain-ids)page for details.         |
| from<mark style="color:red;">\*</mark>        | String | Address of the sender                                             |
| to                                            | String | Address of the recipient                                          |
| gas<mark style="color:red;">\*</mark>         | String | Maximum gas limit provided by the sender, for the transaction.    |
| value<mark style="color:red;">\*</mark>       | String | Amount being sent with the transaction.                           |
| data                                          | String | Encoded function call data.                                       |
| gasPrice                                      | String | The price per unit of gas                                         |
| referenceId<mark style="color:red;">\*</mark> | String | Reference ID value that the user receives from the POST response. |

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

```json
{
  "chainId": "8453",
  "from": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
  "to": "0x6131B5fae19EA4f9D964eAc0408E4408b66337b5",
  "value": "0",
  "gas": "256356",
  "data": "0x8af033fb000000000000000000000000c7d3ab410d49b664d03fe5b1038852ac852b1b290000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000028000000000000000000000000000000000000000000000000000000000000004e00000000000000000000000001a3e429d2d22149cc61e0f539b112a227c844aa30000000000000000000000000b3e328455c4059eeb9e3f84b5543f74e24e7e1b0000000000000000000000000000000000000000000000000000000000000160000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000001a000000000000000000000000000000000000000000000000000000000000001c0000000000000000000000000dae2f6eddda6fb4fb60cc02633de27e2b431b4020000000000000000000000000000000000000000000000000de0b6b3a7640000000000000000000000000000000000000000000000000000000040ca9ec52b8e000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000001e0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000240000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000681c888e00000000000000000000000000000000000000000000000000000000000001e00000000000000000000000000000000000000000000000000000000000000001000000000000000000000000cd6efb9c75c79449f5a0d689c5528154d162762e00000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000de0b6b3a764000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000004e0100000034000000cd6efb9c75c79449f5a0d689c5528154d162762e020000000000000000000000000000000000000003000003e800000032001a3e429d2d22149cc61e0f539b112a227c844aa3000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000055bcedfd000000000000000000051c421677206000000000000000000000000000000000000000000000000000000000000002877b22536f75726365223a22657870616e64222c22416d6f756e74496e555344223a22302e303032333431383930373631373837303932222c22416d6f756e744f7574555344223a22302e3030303131373430393532393738323533383338222c22526566657272616c223a22222c22466c616773223a302c22416d6f756e744f7574223a223731393232323532363933393139222c2254696d657374616d70223a313734363639393233302c22526f7574654944223a2264333035333133322d373061382d346266362d393636372d6537336465663537303834633a34353336333036382d343039312d346438622d386137642d626232393732356438643631222c22496e74656772697479496e666f223a7b224b65794944223a2231222c225369676e6174757265223a225839694942713276356d49627774386b5545454d765577434573564b4d445576596e464c33737138315758556e434b484e31796d39444f346b5979744774786931493132524b646e634972304c376a54494f2f63534166537079436c7446457a676d5a5669516b7044625277376d4f354a4238364f5258674f6c5564787237756d786138696b6649584259304b4e49574f55624e484c61444264597457594666544a5252426c4d715579696e4d53746636387239786a68564677343678626d736d7643486b4d394951776338482b2b6d68397466734f46315742654b56546452453856572b41755666586a6378454e6f536c5a6e666a58514e584d4c49314b54682b48736d55697971506866513857717472585a7169424870356a364333373051524535763175774467746e38785a41493747387737384e655a7957454f715653565059737964474d4d35534462574c416f675758673d3d227d7d00000000000000000000000000000000000000000000000000",
  "estimationCheck": true,
  "referenceId": "1bdb1e332fae44dfaced44428fd2387c"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "8453",
        "from": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
        "to": "0xB2f172233436206A067eB859CB99ae69e6AF490D",
        "value": "607561709",
        "gas": "256356",
        "nonce": "1"
    }
}
```

{% endtab %}
{% endtabs %}

## /gettokenaddress

Return the token address

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

#### Query Parameter

<table><thead><tr><th width="242">Name </th><th width="102">Type</th><th>Description</th></tr></thead><tbody><tr><td>tokenSymbol<mark style="color:red;">*</mark></td><td>String</td><td>The public address of the user.</td></tr><tr><td>chainId</td><td>String</td><td>Refer to the <a href="/pages/5o1xMsQPqXw9GBfGTpdB">Chain ID </a>page for details.</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></tbody></table>

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

```url
https://api.expand.network/chain/gettokenaddress?tokenSymbol=savax&chainId=43114
```

{% endtab %}

{% tab title="Sample Response" %}

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

{% endtab %}
{% endtabs %}

## /gettickerprice

Return the token symbols and their addresses for which the ticker price is provided by the streamTickerPrice service.(Currently available for Ethereum)

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

#### Query Parameter

<table><thead><tr><th width="242">Name </th><th width="102">Type</th><th>Description</th></tr></thead><tbody><tr><td>chainId</td><td>String</td><td>Refer to the <a href="/pages/5o1xMsQPqXw9GBfGTpdB">Chain ID </a>page for details.</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></tbody></table>

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

```url
https://api.expand.network/chain/gettickerprice
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "STTAO": "0xb60acd2057067dc9ed8c083f5aa227a244044fd6",
        "ALPH": "0x590f820444fa3638e022776752c5eef34e2f89a6",
        "REQ": "0x8f8221afbb33998d8584a2b05749ba73c37a938a",
        "ARB": "0xb50721bcf8d664c30412cfbc6cf7a15145234ad1",
        "ENS": "0xc18360217d8f7ab5e7c516566761ea12ce7f9d72",
        "FET": "0xaea46a60368a7bd060eec7df8cba43b7ef41ad85",
        "WMINIMA": "0x669c01caf0edcad7c2b8dc771474ad937a7ca4af",
        "METH": "0xd5f7838f5c461feff7fe49ea5ebaf7728bb0adfa",
        "TRIBE": "0xc7283b66eb1eb5fb86327f08e1b5816b0720212b",
        "SYRUP": "0x643c4e15d7d62ad0abec4a9bd4b001aa3ef52d66",
        "PRIME": "0xb23d80f5fefcddaa212212f028021b41ded428cf",
        "SAVM": "0x15e6e0d4ebeac120f9a97e71faa6a0235b85ed12",
        "MPL": "0x33349b282065b0284d756f0577fb39c158f935e6",
        "KAS": "0x112b08621e27e10773ec95d250604a041f36c582",
        "NEXO": "0xb62132e35a6c13ee1ee0f84dc5d40bad8d815206",
        "CAKE": "0x152649ea73beab28c5b49b26eb48f7ead6d4c898",
        "TONCOIN": "0x582d872a1b094fc48f5de31d3b73f2d9be47def1",
        "FLOAT": "0xb05097849bca421a3f51b249ba6cca4af4b97cb9",
        "NXRA": "0x644192291cc835a93d6330b24ea5f5fedd0eef9e",
        "WSTETH": "0x7f39c581f595b53c5cb19bd0b3f8da6c935e2ca0",
        "FLT": "0x236501327e701692a281934230af0b6be8df3353",
        "ACX": "0x44108f0223a3c3028f5fe7aec7f9bb2e66bef82f",
        "PUFFER": "0x4d1c297d39c5c1277964d0e3f8aa901493664530",
        "WEETH": "0xcd5fe23c85820f7b72d0926fc9b05b43e359b7ee",
        "SPX": "0xe0f63a424a4439cbe457d80e4f4b51ad25b2c56c",
        "FEI": "0x956f47f50a910163d8bf957cf5846d573e7f87ca",
        "BEARDY": "0x32c6f1c1731ff8f98ee2ede8954f696446307846",
        "CVXCRV": "0x62b9c7356a2dc64a1969e19c23e4f579f9810aa7",
        "SEI": "0xbdf43ecadc5cef51b7d1772f722e40596bc1788b",
        "UNI": "0x1f9840a85d5af5bf1d1762f925bdaddc4201f984",
        "ESOV": "0xbdab72602e9ad40fc6a6852caf43258113b8f7a5",
        "FORT": "0x41545f8b9472d758bb669ed8eaeeecd7a9c4ec29",
        "WDOGE": "0x35a532d376ffd9a705d0bb319532837337a398e7",
        "CTA": "0x90685e300a4c4532efcefe91202dfe1dfd572f47",
        "ZCHF": "0xb58e61c3098d85632df34eecfb899a1ed80921cb",
        "RSC": "0xd101dcc414f310268c37eeb4cd376ccfa507f571",
        "FOLD": "0xd084944d3c05cd115c09d072b9f44ba3e0e45921",
        "LUSD": "0x5f98805a4e8be255a32880fdec7f6728c6568ba0",
        "SUIAI": "0xd19b72e027cd66bde41d8f60a13740a26c4be8f3",
        "ASF": "0x59a529070fbb61e6d6c91f952ccb7f35c34cf8aa",
        "SWETH": "0xf951e335afb289353dc249e82926178eac7ded78",
        "DSYNC": "0xf94e7d0710709388bce3161c32b4eea56d3f91cc",
        "ALVA": "0x8e729198d1c59b82bd6bba579310c40d740a11c2",
        "XFT": "0x76bc677d444f1e9d57daf5187ee2b7dc852745ae",
        "BAT": "0x0d8775f648430679a709e98d2b0cb6250d2887ef",
        "GLM": "0x7dd9c5cba05e151c895fde1cf355c9a1d5da6429",
        "SNPAD": "0x772358ef6ed3e18bde1263f7d229601c5fa81875",
        "PAR": "0x68037790a0229e9ce6eaa8a99ea92964106c4703",
        "WETH": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
        "RLUSD": "0x8292bb45bf1ee4d140127049757c2e0ff06317ed",
        "SQT": "0x09395a2a58db45db0da254c7eaa5ac469d8bdc85",
        "DEFI": "0x6b0faca7ba905a86f221ceb5ca404f605e5b3131",
        "RLB": "0x046eee2cc3188071c02bfc1745a6b17c656e3f3d",
        "KP3R": "0x1ceb5cb57c4d4e2b2433641b95dd330a33185a44",
        "FLIP": "0x826180541412d574cf1336d22c0c0a287822678a",
        "BOBA": "0x42bbfa2e77757c645eeaad1655e0911a7553efbc",
        "POWR": "0x595832f8fc6bf59c85c527fec3740a1b7a361269",
        "NKN": "0x5cf04716ba20127f1e2297addcf4b5035000c9eb",
        "PENDLE": "0x808507121b80c02388fad14726482e061b8da827",
        "USD0": "0x73a15fed60bf67631dc6cd7bc5b6e8da8190acf5",
        "SHFL": "0x8881562783028f5c1bcb985d2283d5e170d88888",
        "AGRS": "0x738865301a9b7dd80dc3666dd48cf034ec42bdda",
        "REZ": "0x3b50805453023a91a8bf641e279401a0b23fa6f9",
        "BONE": "0x9813037ee2218799597d83d4a5b6f3b6778218d9",
        "PLU": "0xd8912c10681d8b21fd3742244f44658dba12264e",
        "BADGER": "0x3472a5a71965499acd81997a54bba8d852c6e53d",
        "DXN": "0x80f0c1c49891dcfdd40b6e0f960f84e6042bcb6f",
        "LINK": "0x514910771af9ca656af840dff83e8264ecf986ca",
        "G": "0x9c7beba8f6ef6643abd725e45a4e8387ef260649",
        "CHEX": "0x9ce84f6a69986a83d92c324df10bc8e64771030f",
        "CRV": "0xd533a949740bb3306d119cc777fa900ba034cd52",
        "MATIC": "0x7d1afa7b718fb893db30a3abc0cfc608aacfebb0",
        "LDO": "0x5a98fcbea516cf06857215779fd812ca3bef1b32",
        "EURA": "0x1a7e4e63778b4f12a199c062f3efdd288afcbce8",
        "TAIKO": "0x10dea67478c5f8c5e2d90e5e9b26dbe60c54d800",
        "RETH": "0xae78736cd615f374d3085123a210448e74fc6393",
        "MMX": "0x614da3b37b6f66f7ce69b4bbbcf9a55ce6168707",
        "FORTH": "0x77fba179c79de5b7653f68b5039af940ada60ce0",
        "PXETH": "0x04c154b66cb340f3ae24111cc767e0184ed00cc6",
        "SX": "0xbe9f61555f50dd6167f2772e9cf7519790d96624",
        "SKAI": "0xcf078da6e85389de507ceede0e3d217e457b9d49",
        "RAI": "0xc575bd129848ce06a460a19466c30e1d0328f52c",
        "BERASTONE": "0x97ad75064b20fb2b2447fed4fa953bf7f007a706",
        "BASEDAI": "0x44971abf0251958492fee97da3e5c5ada88b9185",
        "WCOMAI": "0xc78b628b060258300218740b1a7a5b3c82b3bd9f",
        "ORN": "0x0258f474786ddfd37abce6df6bbb1dd5dfc4434a",
        "YFI": "0x0bc529c00c6401aef6d220be8c6ea1667f6ad93e",
        "GHO": "0x40d16fc0246ad3160ccc09b8d0d3a2cd28ae6c2f",
        "WFLOW": "0x5c147e74d63b1d31aa3fd78eb229b65161983b2b",
        "LLD": "0x054c9d4c6f4ea4e14391addd1812106c97d05690",
        "ADX": "0xade00c28244d5ce17d72e40330b1c318cd12b7c3",
        "VEE": "0x340d2bde5eb28c1eed91b2f790723e3b160613b7",
        "MAGIC": "0xb0c7a3ba49c7a6eaba6cd4a96c55a1391070ac9a",
        "TORN": "0x77777feddddffc19ff86db637967013e6c6a116c",
        "OBI": "0xbb3a8fd6ec4bf0fdc6cd2739b1e41192d12b1873",
        "EURQ": "0x8df723295214ea6f21026eeeb4382d475f146f9f",
        "$PAAL": "0x14fee680690900ba0cccfc76ad70fd1b95d10e16",
        "INDEX": "0x0954906da0bf32d5479e25f46056d22f08464cab",
        "FRAX": "0x853d955acef822db058eb8505911ed77f175b99e",
        "NMT": "0x03aa6298f1370642642415edc0db8b957783e8d6",
        "NYM": "0x525a8f6f3ba4752868cde25164382bfbae3990e1",
        "EXRD": "0x6468e79a80c0eab0f9a2b574c8d5bc374af59414",
        "GOHM": "0x0ab87046fbb341d058f17cbc4c1133f25a20a52f",
        "POOL": "0x0cec1a9154ff802e7934fc916ed7ca50bde6844e",
        "APU": "0x594daad7d77592a2b97b725a7ad59d7e188b5bfa",
        "HIFI": "0x4b9278b94a1112cad404048903b8d343a810b07e",
        "BKN": "0x0a638f07acc6969abf392bb009f216d22adea36d",
        "HAY": "0xfa3e941d1f6b7b10ed84a0c211bfa8aee907965e",
        "FDM": "0x60d91f6d394c5004a782e0d175e2b839e078fb83",
        "DHN": "0x32462ba310e447ef34ff0d15bce8613aa8c4a244",
        "LCX": "0x037a54aab062628c9bbae1fdb1583c195585fe41",
        "BNB": "0xb8c77482e45f1f44de1745f52c74426c631bdd52",
        "BZZ": "0x19062190b1925b5b6689d7073fdfc8c2976ef8cb",
        "RSR": "0x320623b8e4ff03373931769a31fc52a4e78b5d70",
        "G-CRE": "0xa3ee21c306a700e682abcdfe9baa6a08f3820419",
        "SMT": "0xb17548c7b510427baac4e267bea62e800b247173",
        "AGIX": "0x5b7533812759b45c2b44c19e320ba2cd2681b542",
        "OL": "0x1f57da732a77636d913c9a75d685b26cc85dcc3a",
        "TRU": "0xf65b5c5104c4fafd4b709d9d60a185eae063276c",
        "SUSHI": "0x6b3595068778dd592e39a122f4f5a5cf09c90fe2",
        "DOG": "0xbaac2b4491727d78d2b78815144570b9f2fe8899",
        "FTM": "0x4e15361fd6b4bb609fa63c81a2be19d873717870",
        "ENA": "0x57e114b691db790c35207b2e685d4a43181e6061",
        "WBTC": "0x2260fac5e5542a773aa44fbcfedf7c193bc2c599",
        "STORJ": "0xb64ef51c888972c908cfacf59b47c1afbc0ab8ac",
        "GNUS": "0x614577036f0a024dbc1c88ba616b394dd65d105a",
        "DAI": "0x6b175474e89094c44da98b954eedeac495271d0f",
        "COW": "0xdef1ca1fb7fbcdc777520aa7f396b4e015f497ab",
        "RIO": "0x94a8b4ee5cd64c79d0ee816f467ea73009f51aa0",
        "RNDR": "0x6de037ef9ad2725eb40118bb1702ebb27e4aeb24",
        "STG": "0xaf5191b0de278c7286d6c7cc6ab6bb8a73ba2cd6",
        "ETH+": "0xe72b141df173b999ae7c1adcbf60cc9833ce56a8",
        "FAR": "0xf9fa60ef4f23f00cce403cc4d2c11baf4880a0d6",
        "WEPE": "0xccb365d2e11ae4d6d74715c680f56cf58bf4bf10",
        "TARA": "0x2f42b7d686ca3effc69778b6ed8493a7787b4d6e",
        "PRO": "0x226bb599a12c826476e3a771454697ea52e9e220",
        "EIGEN": "0xec53bf9167f50cdeb3ae105f56099aaab9061f83",
        "XVS": "0xd3cc9d8f3689b83c91b7b59cab4946b063eb894a",
        "KING": "0x8f08b70456eb22f6109f57b8fafe862ed28e6040",
        "QSP": "0x99ea4db9ee77acd40b119bd1dc4e33e1c070b80d",
        "AIOZ": "0x626e8036deb333b408be468f951bdb42433cbf18",
        "EEFI": "0x857ffc55b1aa61a7ff847c82072790cae73cd883",
        "GAME": "0x825459139c897d769339f295e962396c4f9e4a4d",
        "TRIAS": "0x3a856d4effa670c54585a5d523e96513e148e95d",
        "EMP": "0x39d5313c3750140e5042887413ba8aa6145a9bd2",
        "SDAI": "0x83f20f44975d03b1b09e64809b757c47f942beea",
        "UMA": "0x04fa0d235c4abf4bcf4787af4cf447de572ef828",
        "SDEUSD": "0x5c5b196abe0d54485975d1ec29617d42d9198326",
        "ZARP": "0xb755506531786c8ac63b756bab1ac387bacb0c04",
        "PAXG": "0x45804880de22913dafe09f4980848ece6ecbaf78",
        "VIRTUAL": "0x44ff8620b8ca30902395a7bd3f2407e1a091bf73",
        "COMP": "0xc00e94cb662c3520282e6f5717214004a7f26888",
        "CBETH": "0xbe9895146f7af43049ca1c1ae358b0541ea49704",
        "FLUID": "0x6f40d4a6237c257fff2db00fa0510deeecd303eb",
        "RSS3": "0xc98d64da73a6616c42117b582e832812e7b8d57f",
        "AGETH": "0xe1b4d34e8754600962cd944b535180bd758e6c2e",
        "USDE": "0x4c9edd5852cd905f086c759e8383e09bff1e68b3",
        "PEPECOIN": "0xa9e8acf069c58aec8825542845fd754e41a9489a",
        "ANYONE": "0xfeac2eae96899709a43e252b6b92971d32f9c0f9",
        "NMR": "0x1776e1f26f98b1a5df9cd347953a26dd3cb46671",
        "MORPHO": "0x58d97b57bb95320f9a05dc918aef65434969c2b2",
        "ZRX": "0xe41d2489571d322189246dafa5ebde1f4699f498",
        "BIFI": "0xb1f1ee126e9c96231cc3d3fad7c08b4cf873b1f1",
        "APE": "0x4d224452801aced8b2f0aebe155379bb5d594381",
        "BIO": "0xcb1592591996765ec0efc1f92599a19767ee5ffa",
        "PERP": "0xbc396689893d065f41bc2c6ecbee5e0085233447",
        "CVX": "0x4e3fbd56cd56c3e72c1403e103b45db9da5b9d2b",
        "CTX": "0x321c2fe4446c7c963dc41dd58879af648838f98d",
        "LMWR": "0x628a3b2e302c7e896acc432d2d0dd22b6cb9bc88",
        "AVA": "0xa6c0c097741d55ecd9a3a7def3a8253fd022ceb9",
        "WXRP": "0x39fbbabf11738317a448031930706cd3e612e1b9",
        "BMP": "0xbbbb2d4d765c1e455e4896a64ba3883e914abbbb",
        "VRA": "0xf411903cbc70a74d22900a5de66a2dda66507255",
        "EUL": "0xd9fcd98c322942075a5c3860693e9f4f03aae07b",
        "SNX": "0xc011a73ee8576fb46f5e1c5751ca3b9fe0af2a6f",
        "KOIN": "0xed11c9bcf69fdd2eefd9fe751bfca32f171d53ae",
        "HOT": "0x6c6ee5e31d828de241282b9606c8e98ea48526e2",
        "USD0++": "0x35d8949372d46b7a3d5a56006ae77b215fc69bc0",
        "BYTES": "0xa19f5264f7d7be11c451c093d8f92592820bea86",
        "L1X": "0x399ef659fdead53b3e7f97e9491e727925667945",
        "BMEX": "0xb113c6cf239f60d380359b762e95c13817275277",
        "MET": "0x2ebd53d035150f328bd754d6dc66b99b0edb89aa",
        "GBTC": "0xdc9cb148ecb70876db0abeb92f515a5e1dc9f580",
        "OCEAN": "0x967da4048cd07ab37855c090aaf366e4ce1b9f48",
        "SSV": "0x9d65ff81a3c488d585bbfb0bfe3c7707c7917f54",
        "HUNT": "0x9aab071b4129b083b01cb5a0cb513ce7eca26fa5",
        "XRT": "0x7de91b204c1c737bcee6f000aaa6569cf7061cb7",
        "SPC": "0x86ed939b500e121c0c5f493f399084db596dad20",
        "PANDORA": "0x9e9fbde7c7a83c43913bddc8779158f1368f0413",
        "USR": "0x66a1e37c9b0eaddca17d3662d6c05f4decf3e110",
        "CULT": "0x0000000000c5dc95539589fbd24be07c6c14eca4",
        "RLC": "0x607f4c5bb672230e8672085532f7e901544a7375",
        "DEUSD": "0x15700b564ca08d9439c58ca5053166e8317aa138",
        "RUSD": "0x09d4214c03d01f49544c0448dbe3a27f768f2b34",
        "PUNDIX": "0x0fd10b9899882a6f2fcb5c371e17e70fdee00c38",
        "CPOOL": "0x66761fa41377003622aee3c7675fc7b5c1c2fac5",
        "OUSD": "0x2a8e1e676ec238d8a992307b495b45b3feaa5e86",
        "MEOW": "0x0ec78ed49c2d27b315d462d43b5bab94d2c79bf8",
        "CELL": "0x26c8afbbfe1ebaca03c2bb082e69d0476bffe099",
        "MVRWA": "0xa5cdea03b11042fc10b52af9eca48bb17a2107d2",
        "BUSD": "0x4fabb145d64652a948d72533023f6e7a623c7c53",
        "ETHFI": "0xfe0c30065b384f05761f15d0cc899d4f9f9cc0eb",
        "PRQ": "0x362bc847a3a9637d3af6624eec853618a43ed7d2",
        "DIA": "0x84ca8bc7997272c7cfb4d0cd3d55cd942b3c9419",
        "RBN": "0x6123b0049f904d730db3c36a31167d9d4121fa6b",
        "DUSK": "0x940a2db1b7008b6c776d4faaca729d6d4a4aa551",
        "STRK": "0xca14007eff0db1f8135f4c25b34de49ab0d42766",
        "1INCH": "0x111111111117dc0aa78b770fa6a738034120c302",
        "AVL": "0x5c8d0c48810fd37a0a824d074ee290e64f7a8fa2",
        "OM": "0x3593d125a4f7849a1b059e64f4517a86dd60c95d",
        "WBNB": "0x418d75f65a02b3d53b2418fb8e1fe493759c7605",
        "ZETA": "0xf091867ec603a6628ed83d274e835539d82e9cc8",
        "KCS": "0xf34960d9d60be18cc1d5afc1a6f012a723a28811",
        "JUSTICE": "0x59d1e836f7b7210a978b25a855085cc46fd090b5",
        "DEVVE": "0x8248270620aa532e4d64316017be5e873e37cc09",
        "LYXE": "0xa8b919680258d369114910511cc87595aec0be6d",
        "A8": "0x3e5a19c91266ad8ce2477b91585d1856b84062df",
        "HEX": "0x2b591e99afe9f32eaa6214f7b7629768c40eeb39",
        "NGL": "0x12652c6d93fdb6f4f37d48a8687783c782bb0d10",
        "NEAR": "0x85f17cf997934a597031b2e18a9ab6ebd4b9f6a4",
        "STRDY": "0xaeb3607ec434454ceb308f5cd540875efb54309a",
        "SAFE": "0x5afe3855358e112b5647b952709e6165e1c1eeee",
        "DGI": "0x9a1741e151233a82cf69209a2f1bc7442b1fb29c",
        "CELO": "0x3294395e62f4eb6af3f1fcf89f5602d90fb3ef69",
        "EZETH": "0xbf5495efe5db9ce00f80364c8b423567e58d2110",
        "PYR": "0x430ef9263e76dae63c84292c3409d61c598e9682",
        "LPT": "0x58b6a8a3302369daec383334672404ee733ab239",
        "RCH": "0x57b96d4af698605563a4653d882635da59bf11af",
        "BEFI": "0x8b9b95292f890df47fff5ac9cbe93d5fc242bd51",
        "QNT": "0x4a220e6096b25eadb88358cb44068a3248254675",
        "PORTAL": "0x1bbe973bef3a977fc51cbed703e8ffdefe001fed",
        "LOOKS": "0xf4d2888d29d722226fafa5d9b24f9164c092421e",
        "CBBTC": "0xcbb7c0000ab88b473b1f5afd9ef808440eed33bf",
        "TUSD": "0x0000000000085d4780b73119b644ae5ecd22b376",
        "GROW": "0x761a3557184cbc07b7493da0661c41177b2f97fa",
        "OGPU": "0x067def80d66fb69c276e53b641f37ff7525162f6",
        "PUFETH": "0xd9a442856c234a39a81a089c06451ebaa4306a72",
        "ONDO": "0xfaba6f8e4a5e8ab82f62fe7c39859fa577269be3",
        "WAMPL": "0xedb171c18ce90b633db442f2a6f72874093b49ef",
        "ECOX": "0xcccd1ba9f7acd6117834e0d28f25645decb1736a",
        "LOCK": "0x922d8563631b03c2c4cf817f4d18f6883aba0109",
        "FDUSD": "0xc5f0f7b66764f6ec8c8dff7ba683102295e16409",
        "WAVAX": "0x85f138bfee4ef8e540890cfb48f620571d67eda3",
        "ICHI": "0x111111517e4929d3dcbdfa7cce55d30d4b6bc4d6",
        "USUAL": "0xc4441c2be5d8fa8126822b9929ca0b81ea0de38e",
        "GTC": "0xde30da39c46104798bb5aa3fe8b9e0e1f348163f",
        "ELA": "0xe6fd75ff38adca4b97fbcd938c86b98772431867",
        "PLUME": "0x4c1746a800d224393fe2470c70a35717ed4ea5f1",
        "XAI": "0x35e78b3982e87ecfd5b3f3265b601c046cdbe232",
        "ARKM": "0x6e2a43be0b1d33b726f0ca3b8de60b3482b8b050",
        "MYST": "0x4cf89ca06ad997bc732dc876ed2a7f26a9e7f361",
        "DPI": "0x1494ca1f11d487c2bbe4543e90080aeba4ba3c2b",
        "DFX": "0x188d12eb13a5eadd0867074ce8354b1ad6f4790b",
        "API3": "0x0b38210ea11411557c13457d4da7dc6ea731b88a",
        "AAVE": "0x7fc66500c84a76ad7e9c93437bfc5ac33e2ddae9",
        "MNT": "0x3c3a81e81dc49a522a592e7622a7e711c06bf354",
        "BOOE": "0x289ff00235d2b98b0145ff5d4435d3e92f9540a6",
        "XSWAP": "0x8fe815417913a93ea99049fc0718ee1647a2a07c",
        "PEAS": "0x02f92800f57bcd74066f5709f1daa1a4302df875",
        "POL": "0x455e53cbb86018ac2b8092fdcd39d8444affc3f6",
        "USDC": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
        "USDT": "0xdac17f958d2ee523a2206206994597c13d831ec7",
        "SUSDE": "0x9d39a5de30e57443bff2a8307a4256c8797a3497",
        "PUNDIAI": "0x075f23b9cdfce2cc0ca466f4ee6cb4bd29d83bef",
        "DCK": "0x672f4fa517894496b8a958b4b3fca068ce513a39",
        "SOL": "0xd31a59c85ae9d8edefec411d448f90841571b89c",
        "ORA": "0x33333333fede34409fb7f67c6585047e1f653333",
        "$WELF": "0x2a92525fda8d3ab481f8e2a913b64b64bd1c9fdd",
        "TRAC": "0xaa7a9ca87d3694b5755f213b5d04094b8d0f0a6f",
        "CGPT": "0x25931894a86d47441213199621f1f2994e1c39aa",
        "KRL": "0x464ebe77c293e473b48cfe96ddcf88fcf7bfdac0",
        "MAVIA": "0x24fcfc492c1393274b6bcd568ac9e225bec93584",
        "ILV": "0x767fe9edc9e0df98e07454847909b5e959d7ca0e",
        "GMT": "0x7ddc52c4de30e94be3a6a0a2b259b2850f421989",
        "TKX": "0x667102bd3413bfeaa3dffb48fa8288819e480a88",
        "GPU": "0x1258d60b224c0c5cd888d37bbf31aa5fcfb7e870",
        "ORDER": "0xabd4c63d2616a5201454168269031355f4764337",
        "MANA": "0x0f5d2fb29fb7d3cfee444a200298f468908cc942",
        "STONE": "0x7122985656e38bdc0302db86685bb972b145bd3c",
        "WCFG": "0xc221b7e65ffc80de234bbb6667abdd46593d34f0",
        "USDF": "0xfa2b947eec368f42195f24f36d2af29f7c24cec2",
        "ETH2X-FLI": "0xaa6e8127831c9de45ae56bb1b0d4d4da6e5665bd",
        "CYBER": "0x14778860e937f509e651192a90589de711fb88a9",
        "PPT": "0xd4fa1460f537bb9085d22c7bccb5dd450ef28e3a",
        "MOVE": "0x3073f7aaa4db83f95e9fff17424f71d4751a3073",
        "SPARKLET": "0x0bc37bea9068a86c221b8bd71ea6228260dad5a2",
        "MAHA": "0x745407c86df8db893011912d3ab28e68b62e49b0",
        "PYUSD": "0x6c3ea9036406852006290770bedfcaba0e23a0e8",
        "WQUIL": "0x8143182a775c54578c8b7b3ef77982498866945d",
        "IMX": "0xf57e7e7c23978c3caec3c3548e3d615c346e79ff",
        "GRT": "0xc944e90c64b2c07662a292be6244bdf05cda44a7",
        "FRXETH": "0x5e8422345238f34275888049021821e8e08caa1f",
        "OSMI": "0x5485a469faea1492191cfce7528ab6e58135aa4d",
        "FPIS": "0xc2544a32872a91f4a553b404c6950e89de901fdb",
        "GNO": "0x6810e776880c02933d47db1b9fc05908e5386b96",
        "STBU": "0xa6422e3e219ee6d4c1b18895275fe43556fd50ed",
        "TRADE": "0x6e5970dbd6fc7eb1f29c6d2edf2bc4c36124c0c1",
        "LNDX": "0x08a1c30bbb26425c1031ee9e43fa0b9960742539",
        "GFI": "0xdab396ccf3d84cf2d07c4454e10c8a6f5b008d2b",
        "WTAO": "0x77e06c9eccf2e797fd462a92b6d7642ef85b0a44",
        "USDA": "0x8a60e489004ca22d775c5f2c657598278d17d9c2",
        "SYRUPUSDC": "0x80ac24aa929eaf5013f6436cda2a7ba190f5cc0b",
        "SD": "0x30d20208d987713f46dfd34ef128bb16c404d10f",
        "EURC": "0x1abaea1f7c830bd89acc67ec4af516284b1bc33c",
        "AUDD": "0x4cce605ed955295432958d8951d0b176c10720d5",
        "AUSD": "0x00000000efe302beaa2b3e6e1b18d08d69a9012a",
        "UOS": "0xd13c7342e1ef687c5ad21b27c2b65d772cab5c8c",
        "ANON": "0x79bbf4508b1391af3a0f4b30bb5fc4aa9ab0e07c",
        "SWFTC": "0x0bb217e40f8a5cb79adf04e1aab60e5abd0dfc1e",
        "SPOT": "0xc1f33e0cf7e40a67375007104b929e49a581bafe",
        "AXL": "0x467719ad09025fcc6cf6f8311755809d45a5e5f3",
        "WIGL": "0xf8206a19fca5999425358de4e4cdefc7f5c5d4ca",
        "WMC": "0x7fd4d7737597e7b4ee22acbf8d94362343ae0a79",
        "XAUT": "0x68749665ff8d2d112fa859aa293f07a622782f38",
        "WAAC": "0x30ae41d5f9988d359c733232c6c693c0e645c77e",
        "XSGD": "0x70e8de73ce538da2beed35d14187f6959a8eca96",
        "SGT": "0x5b649c07e7ba0a1c529deaabed0b47699919b4a2",
        "GUSD": "0x056fd409e1d7a124bd7017459dfea2f387b6d5cd",
        "MPS": "0x96c645d3d3706f793ef52c19bbace441900ed47d",
        "DEXT": "0xfb7b4564402e5500db5bb6d63ae671302777c75a",
        "WEETHS": "0x917cee801a67f933f2e6b33fc0cd1ed2d5909d88",
        "USN": "0xda67b4284609d2d48e5d10cfac411572727dc1ed",
        "TREE": "0xba25b2281214300e4e649fead9a6d6acd25f1c0a",
        "ZND": "0x2d8ea194902bc55431420bd26be92b0782dce91d",
        "SHX": "0xee7527841a932d2912224e20a405e1a1ff747084",
        "LQTY": "0x6dea81c8171d0ba574754ef6f8b412f2ed88c54d",
        "DMT": "0x0b7f0e51cd1739d6c96982d55ad8fa634dd43a9c",
        "TRUU": "0xdae0fafd65385e7775cf75b1398735155ef6acd2",
        "INJ": "0xe28b3b32b6c345a34ff64674606124dd5aceca30",
        "SHRAP": "0x31e4efe290973ebe91b3a875a7994f650942d28f",
        "AXGT": "0xdd66781d0e9a08d4fbb5ec7bac80b691be27f21d",
        "WNXM": "0x0d438f3b5175bebc262bf23753c1e53d03432bde",
        "SUPER": "0xe53ec727dbdeb9e2d5456c3be40cff031ab40a55",
        "SAITO": "0xfa14fa6958401314851a17d6c5360ca29f74b57b",
        "PROM": "0xfc82bb4ba86045af6f327323a46e80412b91b27d",
        "ORAI": "0x4c11249814f11b9346808179cf06e71ac328c1b5",
        "BB": "0xd459eceddafcc1d876a3be7290a2e16e801073a3",
        "DAR": "0x081131434f93063751813c619ecca9c4dc7862a3",
        "EDGE": "0x4ec1b60b96193a64acae44778e51f7bff2007831",
        "CBY": "0xb9d27bc093ed0a3b7c18366266704cfe5e7af77b",
        "EEIGEN": "0xe77076518a813616315eaaba6ca8e595e845eee9",
        "WMTX": "0xdbb5cf12408a3ac17d668037ce289f9ea75439d7",
        "SAND": "0x3845badade8e6dff049820680d1f14bd3903a5d0",
        "SWEAT": "0xb4b9dc1c77bdbb135ea907fd5a08094d98883a35",
        "OETH": "0x856c4efb76c1d1ae02e20ceb03a2a6a08b0b8dc3",
        "VITA": "0x81f8f0bb1cb2a06649e51913a151f0e7ef6fa321",
        "MNW": "0xd3e4ba569045546d09cf021ecc5dfe42b1d7f6e4",
        "GATSBY": "0xca7af58da871736994ce360f51ec6cd28351a3df",
        "MASK": "0x69af81e73a73b40adf4f3d4223cd9b1ece623074",
        "ZK": "0xc71b5f631354be6853efe9c3ab6b9590f8302e81",
        "SOIL": "0x54991328ab43c7d5d31c19d1b9fa048e77b5cd16",
        "KNC": "0xdefa4e8a7bcba345f687a2f1456f5edd9ce97202",
        "EURE": "0x3231cb76718cdef2155fc47b5286d82e6eda273f",
        "ZRO": "0x6985884c4392d348587b19cb9eaaf157f13271cd",
        "AGLD": "0x32353a6c91143bfd6c7d363b546e62a9a2489a20",
        "CHEQ": "0x70edf1c215d0ce69e7f16fd4e6276ba0d99d4de7",
        "WAXP": "0x2a79324c19ef2b89ea98b23bc669b7e7c9f8a517",
        "WBAI": "0x8ccd897ca6160ed76755383b201c1948394328c7",
        "EURT": "0xc581b735a1688071a1746c968e0798d642ede491",
        "OHM": "0x64aa3364f17a4d01c6f1751fd97c2bd3d7e7f1d5",
        "OMIKAMI": "0x9e18d5bab2fa94a6a95f509ecb38f8f68322abd3",
        "HOME": "0xb8919522331c59f5c16bdfaa6a121a6e03a91f62",
        "TRX": "0x50327c6c5a14dcade707abad2e27eb517df87ab5",
        "LINA": "0x3e9bc21c9b189c09df3ef1b824798658d5011937",
        "LEO": "0x2af5d2ad76741191d15dfe7bf6ac92d4bd912ca3",
        "ID": "0x2dff88a56767223a5529ea5960da7a3f5f766406",
        "EURI": "0x9d1a7a3191102e9f900faa10540837ba84dcbae7",
        "RSETH": "0xa1290d69c65a6fe4df752f95823fae25cb99e5a7",
        "AXS": "0xbb0e17ef65f82ab018d8edd776e8dd940327b28b",
        "RETIK": "0x26ebb8213fb8d66156f1af8908d43f7e3e367c1d",
        "MUBI": "0x38e382f74dfb84608f3c1f10187f6bef5951de93",
        "LSK": "0x6033f7f88332b8db6ad452b7c6d5bb643990ae3f",
        "ROUTE": "0x60f67e1015b3f069dd4358a78c38f83fe3a667a9",
        "QBX": "0x72fdc31f4a9a1edf6b6132d3c1754f1cdcf5d9b1",
        "RPL": "0xd33526068d116ce69f19a9ee46f0bd304f21a51f",
        "BOSON": "0xc477d038d5420c6a9e0b031712f61c5120090de9",
        "AIUS": "0x8afe4055ebc86bd2afb3940c0095c9aca511d852",
        "BIT": "0x1a4b46696b2bb4794eb3d4c26f1c55f9170fa4c5",
        "L3": "0x88909d489678dd17aa6d9609f89b0419bf78fd9a",
        "METIS": "0x9e32b13ce7f2e80a01932b42553652e053d6ed8e",
        "FJO": "0x69457a1c9ec492419344da01daf0df0e0369d5d0",
        "WLD": "0x163f8c2467924be0ae7b5347228cabf260318753",
        "WVTRS": "0x74950fc112473caba58193c6bf6412a6f1e4d7d2",
        "OVR": "0x21bfbda47a0b4b5b1248c767ee49f7caa9b23697",
        "ABT": "0xb98d4c97425d9908e66e53a6fdf673acca0be986",
        "MUSE": "0xb6ca7399b4f9ca56fc27cbff44f4d2e4eef1fc81"
    }
}
```

{% endtab %}
{% endtabs %}

## SendTransaction() process

Following is a sequence diagram for sendTransaction() process in chains:-

<figure><img src="/files/KF4Mef5g48Cgb6vFkl4w" alt=""><figcaption><p>Sequence Diagram for sendTransaction</p></figcaption></figure>


# EVM based blockchains

Following are the EVM (Ethereum Virtual Machine) based blockchains integrated with expand.network:-

* Ethereum
* Binance Smart Chain
* Avalanche - P/C/X
* Polygon
* Cronos
* Arbitrum
* Fantom
* Optimism
* Base
* zkSync


# Ethereum

## /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="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</td><td>String</td><td>Refer to the <a href="/pages/5o1xMsQPqXw9GBfGTpdB">Chain ID </a>page for details. </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>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=1&blockNumber=20182307&address=0x95222290DD7278Aa3Ddd389Cc1E1d165CC4BAfe5&tokenAddress=0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599
```

{% endtab %}

{% tab title="Sample Response" %}

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

{% 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</td><td>String</td><td>Refer to the <a href="/pages/5o1xMsQPqXw9GBfGTpdB">Chain ID </a>page for details.</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>blockNumber</td><td>String</td><td>The block number or block hash.</td></tr><tr><td>startBlock</td><td>String</td><td>Starting block of the range.<br>Note: Maximum supported range is 10, meaning the startBlock is determined by endBlock - 9.</td></tr><tr><td>endBlock</td><td>String</td><td>Last block of the range.<br>Note: Maximum supported range is 10, meaning the endBlock is determined by startBlock + 9.</td></tr></tbody></table>

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

```url
https://historicallp.api.expand.network/chain/getblock
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "blocks": [
            {
                "baseFeePerGas": 7355886917,
                "blobGasUsed": "0x20000",
                "difficulty": "0",
                "excessBlobGas": "0x20000",
                "extraData": "0x6265617665726275696c642e6f7267",
                "gasLimit": 30000000,
                "gasUsed": 10750958,
                "hash": "0x26023767590e1bf6d7de6cf54f7864de1688727746d6300ccc8e5a1de51afe72",
                "logsBloom": "0x00b30d4821e01405928d00b6b821db0214038200091b96c3868b0218b46a000004c517013404a0954218dad410121b2922a1cb408aca6c700181e1a70daf2002a85a602e5792188d6892408b9060b7a00cc0d20105c4dd4270c39d78847e10e5444cca40039040a00c0e55dc90622c892242026206028e048304a49c4508c2c71b1b937a302843090444ed41082291444b23a4a1eb56d08c742aa56a7f9d3e2a3295310418e02a12169612cc080785ae85439680a70262060ca18490a10c02c1099224462392801a5342463303ebf8850ce0003217284a7890015082e21e68b1e07f394004c88400cb4d148326600005001d581998616ff00b9b88505c7516c3",
                "miner": "0x95222290DD7278Aa3Ddd389Cc1E1d165CC4BAfe5",
                "mixHash": "0x69737f26d73fd38cad39695eabd750a5bee7fe1e469b80ffe17464288ef17804",
                "nonce": "0x0000000000000000",
                "number": 19889489,
                "parentBeaconBlockRoot": "0x444c777bbca621d3c065cd4844a1f1118ab29b922e5c919a5f7aada60bf4e38f",
                "parentHash": "0xf04415b74a0b19a14bcc7fecc46fa6f4058629b29856fb9dd17158b204b91a36",
                "receiptsRoot": "0x410587024158e2cd0ab17b12c12210e1bcc424518a52a520fe26882bf048cbbd",
                "size": 54431,
                "timestamp": 1715946467,
                "totalDifficulty": "58750003716598352816469",
                "transactions": [
                    {
                        "chainId": "1",
                        "hash": "0x52de02ef0d20453cfe487f6b1d6b39d340012d7cdc9cd3b14e216172d45998b5",
                        "transactionStatus": true,
                        "blockNumber": "19889489",
                        "timestamp": null,
                        "from": "0xa323f6472876F22D78dd5aE347FC460Dc3e6D1A2",
                        "to": "0x6a50353E2B7F2f96A7C5680c51B9f32565B04195",
                        "value": "5091709189",
                        "transactionFees": "8389941743040326",
                        "gas": "1328061",
                        "gasPrice": "18952311098",
                        "input": "0xfe263102682933297cb65dc813e51932497692515c6ee304399dbdb9c8ef030ab642b10820db8f56a6e484f65035b3676d08828cb85679e8628d2d193dd0843a028c86e0b760b1a76929d1c5ef93a2dd59a19d8c652fa0284f44113d0ff9aba70bd46fb40a0000000005ea5c8eb9000000ff0000000000000000000000000000000000000000000b0280140000000005ea5c8eb900000000000005fe12840000000000ff01c02aaa39b223fe8d0a0e5c4f27ead9083c756cc201ff0101000000070b208c0000000000ff020047010b02024900000005fe1284000000000000000000000000000000000002035c6ee304399dbdb9c8ef030ab642b10820db8f56616e8bfa43f920657b3497dbf40d6b1a02d4608d0f000000147c9bfb000000000009000000147c9bfb000000000000000000060f5d67000000000004ba100000625a3754423978a60c9317c58a424e3dc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
                        "nonce": 12520,
                        "type": 2,
                        "network": null,
                        "v": "0x1",
                        "r": "0x27ecacc8583a3e2e421eb6102fa2a97b6686266877cf4698a0213775d95c4320",
                        "s": "0x15b4a442f19a2c8c72f440c3fb8d9361dda1eb67b264a6873a8a53c60a210de",
                        "yParity": "0x1",
                        "transactionIndex": null,
                        "accessList": [
                            {
                                "address": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
                                "storageKeys": [
                                    "0x4602181b5e79e3e408d4864e88bef4efa47a0241b560c11c597f8001eb983a5a",
                                    "0x788aacbfa372bd90bdeaf697207f83d57eef1752560f5196ab4ce420485d4651",
                                    "0xaf0e63fa240d8172edcbc295596eee4ccedd2338660f18235464065e65f5eb76"
                                ]
                            },
                            {
                                "address": "0x5c6ee304399dbdb9c8ef030ab642b10820db8f56",
                                "storageKeys": [
                                    "0x37e79e97e240457fc79b35c57aa3fcfb360d13baa86eded8ebb4896c8a58b548"
                                ]
                            },
                            {
                                "address": "0xba12222222228d8ba445958a75a0704d566bf2c8",
                                "storageKeys": [
                                    "0x067480438d841df9ef847f8428e81a96751c87c5bbf3c5eee2387f8c3a1b9138",
                                    "0x067480438d841df9ef847f8428e81a96751c87c5bbf3c5eee2387f8c3a1b9139",
                                    "0x6470f1c6b4043fb36e268d07434d0e748acc63de3c0a975d05ccd7861d921733",
                                    "0x6470f1c6b4043fb36e268d07434d0e748acc63de3c0a975d05ccd7861d921734"
                                ]
                            },
                            {
                                "address": "0x616e8bfa43f920657b3497dbf40d6b1a02d4608d",
                                "storageKeys": [
                                    "0x2df542080a353ae9604413231aac6e90f1df934f83c500c4f9cef1e57e7b2962",
                                    "0x35319886236d14fde3fb5d2d478c99523591cec1329d23f2a1dd0025f7b62718"
                                ]
                            },
                            {
                                "address": "0x3dd0843a028c86e0b760b1a76929d1c5ef93a2dd",
                                "storageKeys": [
                                    "0x0000000000000000000000000000000000000000000000000000000000000009"
                                ]
                            },
                            {
                                "address": "0xba100000625a3754423978a60c9317c58a424e3d",
                                "storageKeys": [
                                    "0x0a6ba891a7d732e32e6d6d768d141f0979c94d92471078e6ac10c719d3811bff",
                                    "0xd32d2ed63584066ce16a2b3aa674881b2bfe6841230731753832281673c85362",
                                    "0xe89d8b739d4d161037a600e7e9830dad4393935d25476b2f0566f48135b472c3",
                                    "0xec1ba55849195bb2bb00e1209e81a3302aeeb52987a4869eaa0679c9038d159f"
                                ]
                            },
                            {
                                "address": "0xa6e484f65035b3676d08828cb85679e8628d2d19",
                                "storageKeys": [
                                    "0x0000000000000000000000000000000000000000000000000000000000000000",
                                    "0x0000000000000000000000000000000000000000000000000000000000000001",
                                    "0x0000000000000000000000000000000000000000000000000000000000000004",
                                    "0x0000000000000000000000000000000000000000000000000000000000000008",
                                    "0x54cdd369e4e8a8515e52ca72ec816c2101831ad1f18bf44102ed171459c9b4f8"
                                ]
                            },
                            {
                                "address": "0x59a19d8c652fa0284f44113d0ff9aba70bd46fb4",
                                "storageKeys": [
                                    "0x0000000000000000000000000000000000000000000000000000000000000005",
                                    "0x0000000000000000000000000000000000000000000000000000000000000007",
                                    "0x76cbd4b79bd948b542ff71e2bf8d3e0db2c03de79405f027a4cdf90e12745c7d",
                                    "0x76cbd4b79bd948b542ff71e2bf8d3e0db2c03de79405f027a4cdf90e12745c7f",
                                    "0x76cbd4b79bd948b542ff71e2bf8d3e0db2c03de79405f027a4cdf90e12745c80",
                                    "0xd0bcf4df132c65dad73803c5e5e1c826f151a3342680034a8a4c8e5f8eb0c13c",
                                    "0xd0bcf4df132c65dad73803c5e5e1c826f151a3342680034a8a4c8e5f8eb0c13e",
                                    "0xd0bcf4df132c65dad73803c5e5e1c826f151a3342680034a8a4c8e5f8eb0c13f"
                                ]
                            }
                        ],
                        "maxFeePerGas": "18952311098",
                        "maxPriorityFeePerGas": "11596424181",
                        "logs": [
                            {
                                "address": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
                                "topics": [
                                    "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
                                    "0x000000000000000000000000fe263102682933297cb65dc813e5193249769251",
                                    "0x0000000000000000000000006a50353e2b7f2f96a7c5680c51b9f32565b04195"
                                ],
                                "data": "0x00000000000000000000000000000000000000000000000005ea5c8eb9000000",
                                "blockNumber": 19889489,
                                "transactionHash": "0x52de02ef0d20453cfe487f6b1d6b39d340012d7cdc9cd3b14e216172d45998b5",
                                "transactionIndex": 0,
                                "blockHash": "0x26023767590e1bf6d7de6cf54f7864de1688727746d6300ccc8e5a1de51afe72",
                                "logIndex": 0,
                                "removed": false,
                                "id": "log_6b5ce338"
                            },
                            {
                                "address": "0xa6e484F65035b3676d08828cB85679E8628D2D19",
                                "topics": [
                                    "0xc42079f94a6350d7e6235f29174924f928cc2ac818eb64fed8004e115fbcca67",
                                    "0x0000000000000000000000006a50353e2b7f2f96a7c5680c51b9f32565b04195",
                                    "0x0000000000000000000000006a50353e2b7f2f96a7c5680c51b9f32565b04195"
                                ],
                                "data": "0x0000000000000000000000000000000000000000000000070b208c0000000000ffffffffffffffffffffffffffffffffffffffffffffffeb8364049152fcae490000000000000000000000000000000000000001b279dd1a06af4f53444239e00000000000000000000000000000000000000000000003ac4689a18beb5e176f0000000000000000000000000000000000000000000000000000000000002953",
                                "blockNumber": 19889489,
                                "transactionHash": "0x52de02ef0d20453cfe487f6b1d6b39d340012d7cdc9cd3b14e216172d45998b5",
                                "transactionIndex": 0,
                                "blockHash": "0x26023767590e1bf6d7de6cf54f7864de1688727746d6300ccc8e5a1de51afe72",
                                "logIndex": 12,
                                "removed": false,
                                "id": "log_d83243ca"
                            },
                            {
                                "address": "0xba100000625a3754423978a60c9317c58a424e3D",
                                "topics": [
                                    "0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925",
                                    "0x0000000000000000000000006a50353e2b7f2f96a7c5680c51b9f32565b04195",
                                    "0x00000000000000000000000059a19d8c652fa0284f44113d0ff9aba70bd46fb4"
                                ],
                                "data": "0x0000000000000000000000000000000000000000000000147c9bfb0000000000",
                                "blockNumber": 19889489,
                                "transactionHash": "0x52de02ef0d20453cfe487f6b1d6b39d340012d7cdc9cd3b14e216172d45998b5",
                                "transactionIndex": 0,
                                "blockHash": "0x26023767590e1bf6d7de6cf54f7864de1688727746d6300ccc8e5a1de51afe72",
                                "logIndex": 13,
                                "removed": false,
                                "id": "log_bc2aa54e"
                            },
                            {
                                "address": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
                                "topics": [
                                    "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
                                    "0x0000000000000000000000006a50353e2b7f2f96a7c5680c51b9f32565b04195",
                                    "0x000000000000000000000000fe263102682933297cb65dc813e5193249769251"
                                ],
                                "data": "0x000000000000000000000000000000000000000000000000060f5d6700000000",
                                "blockNumber": 19889489,
                                "transactionHash": "0x52de02ef0d20453cfe487f6b1d6b39d340012d7cdc9cd3b14e216172d45998b5",
                                "transactionIndex": 0,
                                "blockHash": "0x26023767590e1bf6d7de6cf54f7864de1688727746d6300ccc8e5a1de51afe72",
                                "logIndex": 19,
                                "removed": false,
                                "id": "log_ccbedeff"
                            }
                        ]
                    },
                     "transactionsRoot": "0x7652f614f644e6330bc76c4de51de546755bb5635e65dcb2b5d1414cd64f8632",
                "uncles": [],
                "withdrawals": [
                    {
                        "index": "0x2b8e88b",
                        "validatorIndex": "0xb9d8f",
                        "address": "0xb9d7934878b5fb9610b3fe8a5e441e8fad7e293f",
                        "amount": "0x3c8c33c"
                    },
                    {
                        "index": "0x2b8e88c",
                        "validatorIndex": "0xb9d90",
                        "address": "0xb9d7934878b5fb9610b3fe8a5e441e8fad7e293f",
                        "amount": "0x11b63c4"
                    },
                    {
                        "index": "0x2b8e899",
                        "validatorIndex": "0xb9d9e",
                        "address": "0xb9d7934878b5fb9610b3fe8a5e441e8fad7e293f",
                        "amount": "0x11c1f4c"
                    },
                    {
                        "index": "0x2b8e89a",
                        "validatorIndex": "0xb9d9f",
                        "address": "0xb9d7934878b5fb9610b3fe8a5e441e8fad7e293f",
                        "amount": "0x11c8d83"
                    }
                ],
                "withdrawalsRoot": "0x60dcaacc9f347ae4e03b171d8126a83db4a668e4f4bb5bc513f96c4bb421371a"
            }
        ]
    }
}
```

{% 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</td><td>String</td><td>Refer to the <a href="/pages/5o1xMsQPqXw9GBfGTpdB">Chain ID </a>page for details.</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></tbody></table>

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

```url
https://api.expand.network/chain/getgasprice
```

{% endtab %}

{% tab title="Sample Response" %}

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

{% 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</td><td>String</td><td>Refer to the <a href="/pages/5o1xMsQPqXw9GBfGTpdB">Chain ID </a>page for details.</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>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": "0x000000000000000000000001c6f53a31de0ed6753f021224905772c706ee71ea"
    }
}
```

{% 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</td><td>String</td><td>Refer to the <a href="/pages/5o1xMsQPqXw9GBfGTpdB">Chain ID </a>page for details.</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>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=0x00ac1582db64ee60e1be6b653c42ca5d199d749c2e0e3990f3ab00433fcdc1d6
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
  "status": 200,
  "msg": "success",
  "data": {
    "chainId": "1",
    "hash": "0x00ac1582db64ee60e1be6b653c42ca5d199d749c2e0e3990f3ab00433fcdc1d6",
    "transactionStatus": true,
    "blockNumber": "16525031",
    "timestamp": null,
    "from": "0x6887246668a3b87F54DeB3b94Ba47a6f63F32985",
    "to": "0x5E4e65926BA27467555EB562121fac00D24E9dD2",
    "value": "0",
    "transactionFees": "4099876632748185",
    "gas": "333435",
    "gasPrice": "14871598501",
    "input": "0xd0f89344000441a255000039000007000000000000000000000000000000000000060000000063d8b5850000fc26b00000130000000063d8b5940000fc26b000000c0000000063d8b5940000fc26b20000090000000063d8b5a30000fc26b20000060000000063d8b5a30000fc26b30000050000000063d8b5b20000fc26b3789cec7d7754154bf2ffdc4b4e12248364c94972ce92339211908c20194114b90449220a5e1105611024a3e4a004014550b22220224816c9820409bf23fadec2aedcd1e7eefbeeef9cad3f14e633dd5d5ddd5d555d5dd300308275186e08fa7628a1825c28bed21364483ef7988ca0939449ade65bb99b96deb9bacba688ca0c20f77614b087c2178715f059b34d361924448e0f528b845fa51c07fe2291c56199e49d6912de8120a87ac440b743bde339c6bc73897847b3bd893141be61eb43d24187139d4eebb97a355ec606833c2412522363c424c538c2b374f89e3f8d95ab1d9590297834ea7d34e6122700c0f2d76139e6bbd2807dec45f22a2c912a07d9054d446cdde6faf47070c3dbc71e510553d28aad6442cd8cf8f1bdbf351d4b1abec41c63ea68debf6c9f9ab99577ce4b1c5569cc1b8315bf52ff0fc81d027f0c81cb0fc1d49fad106bcc3f6dbf8ee7a915483633359cff59cbdeb8861d77fb5ead278545e9479601a28a19585e87531adbbacb76bd78b6791413cbc5184d8c11cf18465a88064441c6214bd691cf69679f4dbe6b54f25e21e07d733ad1f768355a744d30dd80834b07a89aa25337cca02e12fca01ea465e34eece9d70e55c7e131b56934b9a8de1fa00100396b59725f472ba43416195c42b8c2d8b55d7ef19dc080d7991b9eda8598a2884aa5bbdca5f67bdbbd15bbe896414c84fc6839c9d7d0b43c316577d60182559828887535eb4ce413d98e0215d36ab85055668ec0e8e79b6bcfa944ef1c93ab721cba085ee841e799cf73f62f0fa93fee5a267337a0cdb661dcf7dc5dd971fec8e106374e00e6be0e730d8559a585d2f8c9856a6ac8fd78ad55c1d0cb8bca1bf7368f0cc9dd6a7f5d79cbc65dd9921eeca021a5ecbd09c1f15f25259653940cd3e807e23ce53e975c00d53bf5a82ab1ed2b4b866ac8c3decbc3ef94ebb18370315087fd12bfb100a30303272972cdddb3ac685ec8edb2a2de00a6663ad17bc1204150168b54faceb4c8949164d2214be3e0553912ec8afa918fb802f2be9ad47c84d40030bbf631142bec6228890e22148d400e09b60a0ebaab52bdf266b2313ec7b9cd7ca8b129085119a6bc26a90bc1ae1b0fdbb86ead3d354240f94da4e3717d439f0b31cd3197baf0b9e8f3bdb9baf3a1c683145bb22d8a225310dba197137f4de03e9130b6f990da0b7b864be2f01a7b0445ab18189d4269fa4657c9ddb1449099c5f7ca672917d7c3422305bd574779952c37349a401e6bcced65c1d5a001bc68aeb36e2bf8816519750db91a2baa7a99318f877a0e0130ad75987a8818f6aefa1a7bfff800653ed6f61ea77c2f7311c4f9ce38610fdf2a4ce64dd20bd39835dc2d2040ad8ac13ed4f8ddca1f4a01e64d284292984d13d4761d425e9004652c44c1d6c05e1db2e4097655469a731233b819f9be77b7b91cedc99315aa9b3d1aeb4b403a524e7de51bec69c63e5b1c3e45a5b9b877f331246fd064f0beec0aa3cc00e60174c27574fc50f87dfd5d8162a53120df476bdf5aa05ae7eee5c5bf80617ae76c767c421ba20a2da305e18b529f030080400dc3ad51e3685fff81fdaa94fe41b0bdfa7ee9edabb3de95292a8e6f57c346f21aaf00b03a13383a06160c1b80e3a061fea50620f807705181685b4efea8f1e70c28f16db94594f84eedbbdfc3eb3650e3cd6f50e1e8f07ad438fa60334a9c9a570015fef5151ba29235fa499cb192c54ceb901dc297cd9d8e9d619629378d1f30dabfcc0fdac93b7fa6fe9979766bf1d6e5f64d2ffbe222bce1961c981936f9dc6458ffb806b27cca133b48d8488a3139284afe51b32cef4027b329e6991db1b62ceb4424e90c6f06a91ee16d256b81440af11075ec29b8dbfadc46da2865383c238467dbe102147f4c8eea3e6530eb8249b64059b2292acb9c35e1b825b41c63b6a9e6371809ce3862512fed3462b3a331cacae548549c54b70ab8b7148bb436e9a3b01e568b3ca574d093947c86511b7a7b896b444cacd956bc193631a6381b1270144f3f4f47f618d62ba1f6fed1ead4a81d41b5b78951f1176f9c37b0ce361c61a441f29c8259898b82e11aaf2c4879150d38af25ec08de15ad3be56575bdd564fbe3cb42664eeb4b313d20da486b1337df8aea8c568dbbf100cb44e4b62edbb1f8728e267d5abdbea467350050b2561442d4b7ab0fe05827907852d21d9a774a928209f9dd0cdb48eff7d427e345609c905ee5780c542af9489151a77b5b0eb13da9de602dd29310b5e8b1bbdf4e1b7d4f691acfbfd39ec231a13c9086464ff9153f31f884df07b793e2f2d8799e0c695acce433da21937176b80cfea2209babb9376ffc134d4df32297de6ba4ba156e0f3ad960b9d7b275308bd905f969419189763b79daa8a4f00cf5bbd647d37cbef4ab8ce86d7face66a6a872fba0c1cfad3f3b8bb6b08ffc39e07948e3a08273e8ce838b4867f60393cdb7a9e4b9e8f3c51ea19dbbeb21488f67fc2f3d80c2f79ad9bb206b4b126bb771cd10d597ec940dfba341b88779fa2832e9ec911c4f3b8e41596485ed1e6a65eb719faca45834ebfd16527f393e787025a39bcbae0bfcd2f1503a563e9c6ec7cea65f806748c7336b8f334b74d2df55a5d2b40b91d4c8546c956900d074739a1992229e884ca17768dd755ee168f5b691687433ca5b324920e535e0160aeeb30679ddd298df9901c994c72fdfa350c0eaa07c70c976996c9095f3a9c76ff3a350866279eec6d3bc8e2ac6635e9ba435264e8853435fce7148de4587bf11877f6a5c5f4e620c2eb9713ba7d19fa7de99afba1ba7330847ee15092ef2794a5b5870e2c2f639793ed3013b1cf84f41f27a53218fac8fea2704384cca52fc03381ef14aaea6dfb2ac6c440091eb36046b03ff0505209dae7c974161a5e21b4f628be48e1209331fa37362920ad9de43bdee9cbc1d7a54ee79d50a8b9a26b369726cb259a953e1593d6d1853dfd6d87a9f96d87496287ecf3c89210e8ac6cd4eca0b34efc70d7d9ef85b5f9d71da6c18bc2b1bdcd735719a38d149fed7b49923786a33fcbc19a4efe42d9d5d9c3dbd9cedecad7dbdecbcadbd6ddcbd9cd11a58cf611844702b943841dbc4df82992c716b989b74339c115733dd121406745956833d87a768ee0225da6da71e9774986f0ee339f448cfbe48d924d8ed49ea9ee5d5b220d105c38af78bbfdb98cbc1575010d44036260a4b9e59dcd54efa27ca58ad5f4b1da63a7d9b4b368b95997e0c96de12b63eb95a01bc6fc6a96f58a6a7fd966ca7c3f15b9dccb1e97f7c2ba87269e138e1c7947b203c0dcd6612e21a1ef51fbd43f509d7c54c121332794e36e64803636398ad40acaccdebf27af030953dad084fbead903712e238c5b00729e21e577232cc71c44c4c545854e898bfe18170553447c487cbc882f49f1214f2d2c7901297aa4a6786ead2503be7273844cb77840b9eb2f56f0a864a79a097544afeb0d3c7b9ee7e8f146bc4d32ffe21cf35d4356beef112998c5b788148bf0cf46a462424f6ea46b734e50f84e1d1a49e1f6d23c3df2e8af08f32b1dcfb8ba612e8e2ff9bbf2120553b32af1a22826bc1d3f947ada6fe9de32ba67b676942ae59eaf09d191601b7e1cf04c8a415dbfc5c2f829e5986b3d0522a70555e7ca369c3cc596de51e475383c0effd378a78732acfcc78df75f16d8a6b8f9d651cd03713e1890c0f9f0da8d425495d8f69581500d411b6f95e23ce15bcfefeb816c1789d799e7f9c6ca902d9a1604879a8d0aebf09e642f80a61ecfb8826347ef37882f011633a5c9e6eca58d999f33b6a21459734e5b015a0050b096170a5375fce6e5a92d207f64ea10954a3918c9fb661807e5a5ae16665b79b7c5277d8f83ed672b389b5950768650414e14d488d3f5d678d5cfff49a8f4d6d31aab365b5e17b93b79ef6fd0dcc37c6de689bc0a72c8b861b5cdb779fbb41e71c24cbb8cfd252a85f0cb6445fe34c9511b1eceaafb0090bf961b0213fdc62e2c0959705e939c0d6bb8b8ecf3d6c0cb358368ab8704d6884a2595c9f97dec4019f07f215838280a3e6276b09105b2c48388a85ff5f2b1d4912d0c254f979985a69fcebd1d15dde109aa73b063cb5149e75e0e3c6d19e80f6fbae85e594823d1de45721889e504b3bbf7475426e8df119599193248b36ed3134b40d3af478b9a8b10a88af43c67c5e2d2211d18c8e74ecc09519ed407bbf5e66b4674cff15636245ffd4c90167561827acf156eab571a746f94fa54c4c08f001a0de9797946c7f8945807fc58da12359a1dc7ea1e297a42876b3d7dab64a0de168353fe2a1d1c37902af94aeee86b35841686f9f2e58d2a22b655494d45d23f1770462829cb7f6ddc4fde3ab9d8288ef2409cebb3d1d9abebd16adca82ab1ed2b4b876a087a01f3f8804a3df7d59ed6286aa85262decf6129fba26f196c7adf83c4f37252401026a8e9f1f65cc3a444bca01e7ccb7cc825c8b7465fdb2b8291e0a201c37582073933dfe3366887affe19b789dea46d62aaa5edb23b7eaee5d98ceca3cc1a78f7df16b781c1fe5d711b0b7ec1d469dc61648246c1f44987f846002d0c171d0e4343c7c1c0c2fe6b619bdf8bdb005754ba50e31ac3bf871b27a2c61dc550e3ee71a871af85dfc3bdcfa1c67de0287100401fcdc4245fc9b3291f11b08895351bbac4a8dd9deec8e826a0139514b3ddb430932ff1def643cf8513e93dbeb802a25cea2c7c1f565ceb2f0eb79ee7e57cc1da23e43d2d0d189e723bbd46375da94b8171b9a1f390df338161e93adc90cb47b9c7ebad41ac20e9369f428b54f6b6a2d2e9082b728ff11d411f0774a3d5bcc6d94b7e50fc9192770d2a4a876109362d27d97d227bf2583122adcaa4b695c856b22d99870f347f22b238f09c7b92ccbf6afe4e1a9dc7fc30b96fa059c6b823f31383d29092acc3d6701b9b888e96622bee575326c9fa99af3159cc850aa40274a6d0222b041136455dd8d308b0c9db2192512eaeb88e88e914fe33d302209e8a97e19584da8418b8ba88b3da9243451a19fafecafcd4e1de3bd80b1ace86e5c16daf13f3853e192f8070759fa530b2a999668b1dec7a417f2d39e2a2ce786318f3c9cd66af8c3ef663dfbd7816de5d85f02b2af847a1710881fd458291bed8c493cb8e840e6da3aac5b6afecf5ef72220afa1950cac7bf9cc52a11497e193692f1e88c2b8d3186c85bf12b5377cf9c54110f00f5ecdff122d2df613dd1b233e0f2f33bce8fd481cd1fe29f93dc04966f28907603d8daebd81a21273a77051e400220c15a4d1c50d62aaee92ae5f4d344321312229a514415d6187c76990e821fd41a024047191906002c080d8705a1e1b1209c52ac7dfb644932ae8f8bd82d379484b95cbd9f66cda4f19d32465d1ea0dafbcbe1d139e73b54381fa2bc787dc50ceef3175dc47eba17ef850fde74af70df697899208d16b875df1c7d7cdf594a93ed31ab8075f42f8f08fd2d04d0cf6ca04de97becc57523de3a6f896381e4350a2508a6d50516522cb6bd38c1ac75f426b397ce298db337cc6bee6c070e36b3efc55b99793a72278435dfc7d518cb63d717a0add9edf3d2f83a448564e2dcee772d0ee6ae2999a49b9689edd33082b1affd83940591ddaa878b6fcad1a46264b7ecb320511451c61f6ab0ae6bf9c5ef3cee105fa48de1a2df8b23cc4ef56894878f07c1bb6612d2d4680396b1f7f59f5821654aac1586450a5fa2654cf478918f6bba6ffc08d8dceb55a8d639782ce8ee52857b772db3c62bef931fa6bd605c109ae667a2c7b1f4e31f9e4dbf233cb117af896f6a0863a3650aa0c35bf47757be6c90aab72facf5dc3da3f2858805bc4d320b43697e67f2aa6d7ec85e7c3e6a8037c345fdd5a8a0b2cb69551744ca29d97d1ec8cb4be7565f7469327550dd34b6cc9e3fbf6df37c9fcf35279c63711b5329ce80f47a5f09a25a2ea3b573dfc942fd1d137b1e97cd33e55f44e26633738304cf8d7dd88bdf171cf603193c27788478956e6f25de2824ef91df8b8bb08a241aa7e1b7ba36668ead34ac24aaeba5ee5b5f06ce4a8d59f41f2fd05938cc8976a5a9f6f57dde377f4f10a83ea647ba79c5f9e85d844974d6dcb7c2deb73ec46b3d3e48f3b05ba478d606796c9a1dcff23b4fba1777ef194bbb7e3cf5d95047938f700089acbd95db1a809aa850602c5ed99b28d62f9c2469bd14a57e88557e88320ee6135d87729782e965870a06389cdb51ea1f8264137e14306c58b10825ff4c69e672a87099110c94fd63cdee4789e32764a38201e0ca85525430c6b2721f2a9ca0600c65ffb4cfcba2c2b1241d4d51f27fc8e986092a1c3e8a87727cd1e53f2051e198be4beca87000afe2e0b0c9d70e9893a36eff18eb3594b8271cb587fc37901848b38975dd8168694d35629e98dca1c4e688f74919dcacc88d559c488fa14ca30720262755c138f5542cebeded98cbae84c1080f5ebaecb3a3855d312e0e8c5b47b6be7b708af1bfecc15d2cc89621cbefbcc2547029eded075eb3a3012fe2ff43fda45daaa1aee34cfc6ff0e03e369828bcab2eab26f6b0dae44712126c0a9407311388b7aceec0cb3e0c1a5681d8c79daa672b7a05eb9bbde2a2d664ee84f84bd9ccad2fd2542e1fc130641fb004603ceb30ce10187a28710c7f289aba10528fff73fbd1f3579356371e8365543526c10cb37288ca27f81f32a5ff6c983d94f2c0b01226a662fb1b79ec8378c65879fff53f166f7c2e3998ed71ff93d10000340376b67d65bdbb2f28ba3a7b78d87b8d089888229bfd66ce7cc116c3e7b92e2ce167cc72b422a1db8084f89cbcffe039cb7502ebf4a4e143444588d241fd78d778629dd7cacb4a2dd2ece6774f2c45bb5fc70c0b15589f223718c298b549afefaf6cb6f012034de6066b46edd06f9f4f7ee5caebdb7d224969908eb312d348db93613891a5401e342dadeab96bdd7d6af843f27a2ef5231abb33cbdbf50f52cf79452b4faed963597f9fa04273bf3c41ffc68302b4bcf00a9d934b78d4fff713d459750ee7639bc738706ef86e94aa7e20a66c607dfeb42f7d3e68d50b74edd481748a0dfcd696cdc19fe1c9dede3495e73f5ea5d794269d0c1ff9c2241b4110bf0cc062d7619743c470a04e66581a2d8b63f636feefdbd3c17393bd39b8e44dbd13518b338d14357e77f977050a4550032e0a9a18e31163073a51dce32517a3d5cbbcee9765556b22c42da12981658e97cd5c00e267f228c5b9f96edfed65baa6e1a4acfabcd8c0ff29265b131337a5a918a144ed9f81ce7ba182c781ffd640a7a632fe51bbed83d313056d8bc7fbcd9f8942a519644235041de89449ef6ebb7d67ba337ce553b8b1ae766e88967904e7c6c7ce2147d6f08b774f2a83528519cbca9fc939b1edb05d67e7621a48a355ba636c97e7f08fac0764d1b02f0340ebdaf3100cf5dd487a620202a9d89528df4759dcda247159a93d26703e9cbc3f16516967748b625f14cc6dd2b2c5500e1d9776e36903cbbb1b885ac36393077089732179ace38c055467bf76c7eec1a198dc4b9b669add29ed4f11a5d3db1c93a2273daf6b0d49b4dedcd0443881e4529bb9ce0f4354ca445b598e8e6932dbf849dfa6761944d37f246bcd914fff1a80c7acc3a33076d7337a6b0bb2d14ea134439f37e2f0ad36cf809a3e953ce2ed4844159c253f4117a5cb080000444800800acaa17499010006557f06be5a6b2dca37d06fa248d0663f7d46dc41f260bc719a85f5dd8f532c7f926cfbca8b7ea378d8a6bbbf3dca37fea97f1233625bb6f3271fbca7cc2d9f22dfb8d53da0f22f32843242bf62a44441daa1c6aa558caac2ad07f771f54a221d134a5ef7b69790b654abfa0bd7dc1ba807fd2d638da2e9cb31e39c6b1147c7975a617ac7e24b74d5b6386a97b22c1e9472ed26f1c8fe2dc9e582fe350be9ee8678af9696134887e96ecfe0e826ae10c5e3444e9b276a3c26370661d79e15f7f63733eab9b8c97c7008c1186655bddc2db111b06627dda37af758c09fba37f3bffa94b8bce779c0f0c1db2d3e2ce12bb4134cd722515562db5706b1e3fc19dd5b575ee84b8ed7e472823ce9b9d184d1d8b54cbc538519d552afd1139bfd8fc93c06cdd61c5fcb777c4992e1f62a8dbfcbdb7848c731570e7820b04096e27adad0be1200f2d6728223bf1dba0a6e23b5a653e2626ca2ee71bf727edea4ef75febc3c7737a25269e45111caed25eaac271c4a7aa533bd62a0bf326ec949f973f08164f5cde77257d5902c6779efd911f087c6afdd6788d43301c9eb678e9c705f346fc9e31297ced7b81cf79190d5251307c648dcff889ee90b3580a5bf8ea51342241e2a8d0384528ecf22898989494e9c250c2859b4139ccbe197677ddb750b5185397501aebf8f850567f5d614240d851b45d57cbc8ce76465b14a00448720e2adb07df10e857f7d61df41d64d3d999b66413958dc5e2d3c08a070e05a91edd35fe1af475b27da90c52762f0428ce9a2f6f8e38648e481271ee81c9dce9407e60fc2a2762ed40b1115141d90fcf28f6a50c3bf7118b84b1812281bdf0440acf1c7dd07bfd007c03f0060cba485eaf7276cd8683f7e15fe0880bb02305d3dcc348137e5240316559bb79fb082ad8c6642cceb2d3f1c39f4650a0728e37c205518b604b1638a4119d77df1bc5f9d9fb6435a4720eadf374050f3f307f80f1eed274592f7a6edf10ca7640deef0a472a9ab30e9c8472be61ec4cdd4a23d71eddbe6d7000b4b09f5befcd8bfb036a108d5e48401f0b31910e5a11278f68ded8f640b3fa8061c9d3b72043484abde73b6f5e3b04d7a8184e3579338d9c0aa23bd4eb4720cc377307e38547b273a1ffc80eec1ea01982500d802e0978a364cc4c5f56b87c79407db59c22b8755842b60b7892dddf748e6470d29fc484ffd48c702608d72ba6268c6f8cdfa1ad8a524714912cdf7616cb94aacd99e7baad32c7ca7a690fa08d124acc8f5b0b324c19cdd08e6b787056de194ec533172bacc9b1a896f8a0ae94545e3d358f7e03a1062def708821720a97d956bca7382eed597eab3fc914973beb195fb96d0cf777d57baafc743344e7cd69c58242721aaa698abdbf41b3eb68775ccdf92ee01b45fb38fb8dcf213053f6d7ed412ebb7819998b2f8a6ad7fba85e0778fb5ccbdfa620a9d673d85ecb01ee8df859368e04ff27674e6cd4ce7630a2619d5c9d1150720867ca62995e57355d7ae83a8f0b7647907997d7a11742d5e3a6d29edc3d2d0f33cb3e2493feaeee4f0616b51acf24eaa57a08c036bff76b84ae3394b5cb43ef8cb09bb09b0ebc2fde717f274631e5061e6e70130ae75187bd0f7605ee14f05f3e8b2b20f0ce6a1c7eeb85e9fa93e88e53f83796406c03f05f3be9d567d0fe6319fe567c21c0d0295d34dcf8e5b634b292d10841b324e355a02f3b7a38f9eead2682c48ea9de68de080e3ab46445d888eaf52d44e22e71936369399189e0cf6b1c7f3a68f5497e4e6500ea73badbe3117b1f9fcad18e86c78937496f8848e311f7a94847facc343ceb04f382446a956f346b465e7ac6a414a762c339e63589d75ba86dad57d470c413d1abfaece88e0e6a6a0fe63ce2c2f0020772d5b72d7b7c3bd6f8dfc512a3ba25209c732ab646fa78baf2c56509b4bd8c6b60fa96a631c57363bde3d0315771103cd9fa8125b2e311d4bc5590d0a771d7ae54c137e477a678164357bdcdb21cd100bb45266aa66965eb30f137e3003cf74bbb066b6458f3b78be08bb56e6be62e3a9e9dd6928ffb7ec5386ceb6c18f39fa87d9a6e91c3fb9dc9053c033f3e179b939dbd0b337f1aff8a752c1131a5a6c082af9f36d4130f555be739a0b9d87e38a0407c4a5fa49dec49572dff92335cb85e27fa959d0f4bfd4acdfc2ff979af59f4fcd3a667a35a9fae8ad3471e2bc4eeee205cc4a8373b03af45a58b5bf0eb892f3b00d74a3f16ee52c6f9baf8ec4911690984ded3da1f050f6bab0507159b579e3d48deb00e0b2e68cbfabbdf4b19174ae14448e95dab6127886925ad96db62fb5758f45e05c785b146ecf891005d7789c9757650cb2662b6f5e2e70124d0fcf6bf44876bf1a5ca9c22a21e5924901fae0df0c5cb00d4ba91c32e78dbd9c4fd22458eac6d6fd92a02d8422abcda7be7b57572afe2d26fbca4921ce3cbdf2c053f34200dfb3b8381241983a490ad1dc9c96ae28e5e795bba0160101dc0ee8a78f5450f49991bfd6dc8ea91889b1a82d79527c3d148b82571d002eaf4585c0df7c0b31c0b790be87b323a237db4de1f44df76deafd6210af65c61119e56556470fe4e3108da239b9f31751305291e9c97a0181ff3cab9a7b49e36bd60cd9105ab721a77067cdb22736b64fa44029f955da2ac229dd2c83a126e55a5ed84b6ce9e99711ae27030e1b7daa609e2f0680e76bcd067f6aed9eec25c11783a5684e3d16820c763a256ea61e7044a59d45a8e4d6def6695643bd694cc65eb43b7e7969e955c6cfe07b781a95dc0a4b6537a1ca8b823e2ed3e44f2f7cd66820add13610269320e688fe64cf67c4cb7743ea8a328d6c0e4850979408c2c8c0f929273c2fb78016245c1cef7363d94b216ba64b542b51f100ecd83a8c37786377224cf22133188abb1e87919265dea8a4330f3fdf8635b4d61281ef2e2957fe18a87ca2c614b5efe3e4a8239987bbdd16f466d22dd3451562f4b4d868f76942a82de33efade0a04451d8890f851f04e1c45b9e5b4ed2b751105172d2c0a06e12ebd3078befd7a5284bcd571a189271da4ca3bdb4fefde736a694ded80d31bdebfe64c3fbdb658957ee83c3aa12c639e909edec496d75bc418adc5f7bc7de9f4ff3ff2f6574d521b8bdf8fe71b2bd0a4d872c08b6f8af58e2ac81c9e3b3d452be54c981e037a5677c88df6a2bf97c98ad0b13929b1dceb929aa244f6ea6160bdb0d2111a6cb75d1f307861778a74261df40dc83ffb80bb9b92b9e2137ee5572b2dfb395625123042a07dc0f3c301a9374e0fbff8908293b2fdc663759a3dfd21b3bfa42231e22d7ba254e851f0e29b523a521193be852292e3f2caa43c1c374430959b2c7ccdebfa932959451bbee90ad8f16fbae2f51ba4454fd0875eeb097ece87e4e7ae835dad685196fd880c5eea40ad1f4b94a03689c6bf3ebffa558d1828617d573a4b4e74f146fbb5cf0ff89d39b3ef4ac4526055304c74953560b4098d823e5a576598528f862808a82cbd987cd8a8f34174a8478dff65be7e780ace8bd2770030b3361d4224b11b6cc4a8ec4322d2acc95bd5794f73e7676764241639a72eac29212ac3588e340ced65022ad6f7f3b13cd8e50da396b1149ede608899b4210afa2f874921df6004a4f691b138063fc2f1bc7aade282c0110fceb39f466c2ac5544021c6a22344838304a18f155925c9716f3015da7ef237ab1df670d2346acf3d83061090ad1390846285b5ef2e0d2ae7b7c8e0c9f8f11c40aabeb9ced01924142a3fe95b4811ae1ec356fd1051859f81818d84ca7975dbfb8b07f50d8f00f8b5fccbd74a3c5362c78b8944b043519626b1c586baaf04ea3e1208fef6b986636f4461def686e732c2462cd179a8e94fb679407c858d07152782707df1200ee800d45f32fdf60120e4b7b1066b7aa0d78021c96b6a82c5b2c789850c279a7a1e309c32988b2669c43c8c447f8fdeaa8af84660e1ca91c96b09061bef06acb5152c24deb39c54b63ddacce160d310b52170716efafb7b509febee259cce759cb66355382df0759ca7b05022f86215ec8f6e31c8fd532fbfc7e488beffc8b0fbe33f6e6f22fa56eadbeb44df9eedc9e291fbc7cfdf02df30a2ef9cc2779f7c2d8caefbbde4bf84c6bfe7c621bebf0fc87d1b19f4bd8cfd8388e0fb9adead9ce13b934400d11f0dfff1ca9ebdddd747ebd80fd76112c828b64b9fa4de8d70f2df5fd55dbaf43e86121d5fe63d28e440d8fc805fc94e3f5535cb7f581a6deca5469b55923bfe974f6dcc31767c4155901b45a80bb7f655f0ab4b867aa96d068a01d4247c4090ff3ba1cdab40d5b09684dcb9897b0ad4a04d5315ca903d396620533360d1bc660b0e2ee917d08c34273937143a6d8a5ec9bdc195b568fb248d9c7dc54c6b85b9647edf6aff51d7f7bdf0a30142a92fa83f2f891ccc5c8cf9fbf18f3381e65d3a9e0a8174619f06d1481faf1673d09933e0363f6bac3afa6bcc19d4854a9c74d57a1379d5b9813bb2e5935106392988caba9bf7144bad551d30eb9cc5d76564193b0edb7ca42033f781fbbd338a78f3215be2d2b5d4de2339a64a9395508bfe9726ddaf11dc84c5a9da7fcd044911283230c246ad35c0d9c7af1562135bc5d87bed3d38c4f884ac22b6db90bbe52689da28278644f5047600eef0974fab57ca28d485ae1f3c62302e3a6135de99b575a49677410557e3a04894c36ce7423169182ccd7fe43d58d824b062454723c92d1db24c37e6e952fa9890f06458db837a79139a4adf009d4a28e50ba5bca1846204611ed018505cd6f3cdcaa35edf6bfd3f749edf83daf2738787a57a8695ec22ca58b69e447fce5f72c5d2ca1f182a2ff329e50e56ae84b29bbf3b1ff6e5e20bf384f8e68e0e37c869a53a7d6e1f0e2bab2d193cb8a8eb654b37fb47ebf037070ceb879a592b960cf2581dc9656d8023e6962493e8e98218936783399ed1275e4c87541d78f4f307411c0cc2bf7da881de750170fb21ebeebfec48fdf5eb6c7e16ff0dfab64051bd016d3520acc2ef128455f9aab85157008358eb507e1c40faebcee9c1b4760ef9a389f51ebc22333c745ae36248d612ee59595a27d6090a5be609c307769f9829430219495e55fe9e4afa3aa57f8d20e502413051b03e3473f0d66daa1236d14e0c3fdd317c75d7c90f6cf7d6a96348b51c6aded5cd83a785bbe0572a75deb13bd961350fab92befaa8df8da716c7199f7c7e56cb21a4ed7b4af4d16f97cb9a6fa0ff37e62451a2bd651fc93df8daa99f22dbbeb1e8df6544140cafa86f7a3ce6abf5887aa0f202279bdbd4d0bd8e74f1c2b2b25a3c4ee9f0640cf0824bd880addbf44eb55c3c7dd73d572691311197f4bc17ca06294fb6547013960174e43a7a1c6257dc87825591ef163db7553b6064457d78916f63f34c29dce78c23ff388eab42673931fa09ea0a9d7d2a77ee07b417ff951b25fe3c154441382afa2328710305887b246110df8ec2214c0a1ac4ba4583bcb0642f61a73764538dbe0b782ea6792ec4b9a49db6734cf4f7ec031acafed9f6e3a299c205df1ea5537a57846e35f0ccadf25733f7f7b1777725b8906478e96ddb94fb8b2ffaa9ea4f07d5a0cce7585c3a97f3de075073685fe33f31477e355fe7070435867bead7a63dd742b2bdc2500b7073b919cf28b28c587f8a858a76a2a2dfd5d36310f881d3eb27650b88820e88fed42018072323f9fa1b7887e40e8bd90e6e8f437a087d29f51601f16d2e10cee55ff7d270203943824715b85f97737e293eacda57cdefe358432ba903690600b8adb98662b039fe71ca531130ec77b8a8e1cce178bc9020e3cf88369f0dae08dcecf373060800210a3e48881c7f2c3f379f6741134bc560f6590aa3485bcd74d16e5b524b4867857c161438d9a09596fa9a41fad1c9daabb38c29abe8fc7a7ccfe78f2864781f37738055ee9ef21cdd6d6ddcef6723b73fba35072a722b0abef1bc4f42caf8b421c1ff29d024368029fc6e91ea519ed513c590a7ce4a2d952a200bddfdcbda894b09171ec7bf552a0e371c3a9eb9769c7e9e236c9a4e3930d965f28f13711de9ff8a4b6661ffd94b66d160d8701c2c000d1de3ffe292d9dfbe0416ea92d7449439f5e89849286f2443c7caf0418dbf457930f2db381dd73a2afceb2bb8f424110afad35ffa4e46de10431addd27609ce88bf8ecca9f404a3c1ea941978d7b3e29bda5659b16b1ce5e7ded53dd429baa10418959a120a0c8bb5bd997f935abcfeea1803a545fb8b8b27dc964b8dae257bdd29427b30af62fac995f67afb8a82ea52e0d2bc637c5d8c839c55255c1f7dbbafa4ceb5a2bd1dab742b85980b6ab7824e25907ddc45f349c299a1bb645a7302615be3ce97c92cde0e662eac9bf1945e6c14bb2ee0efc308ffe8d2e6abadb783b02ab852b2d0b4b091ca1b2b64921ef6eca2d992649f47ca3d8a8ca645fbf57b1995b6ae4a5cf6cbb7ce98951cb11b56ec7e26e9d881af2f915237c7c36782101bb199f6ad1757f3cdcc528e417f2e762cd0480cd43dfb19e3e190767d61e0cd47dbc485dd4c79c242cf1e80ed96390df7db274f0680ee19c7695bea8d82cc4f12d6914570247f94959dd26c630ade4e2b561238a1b702a0e1afa3e1187dbb90f3112672b68b72386e6e787223e56392560585de55a31764882a7806e6a4f1bebf41802cc4ce058c930f6315ce73abddee8f8e198fdd977afeabf77d616863ff56141c432ec07cefefc63bfe56b215dace042ed90bd77ce529131a2dab20ea875245fbbcb743dd79873633d53609f26cf44cb0c3ea095514a0fe4602d4673e2cf327f350665bff848ca02278101e2aa40cf67910ffee39f013eda3bcde400c6461cbeff9d83d4da7f5326b49e729feb0586c912a46cc865babe3667076a0483688fd457941cdb8fa75fe66e3796ee0ccdb7698cf97c9e8d9cbb57e479cb5d86459778df9b95d63be81f7b3c67c97985e79a311129f79f7e173a9c4b3cbe9d0c6dc78702390e6c669ebda01d7e2603c95c7bd93f64f9d231b58bd8ce0ac2ee1b912a047dc0d71c5d3da57452bcfa85c54f2ad926a4f2e65bc52f296ccd30e4b66fec6e4f71d2fececeee225185ffde91defbff3efa97ca7835d3fa550a22c1254f30e0d44bcb55f8212d86ff2078882879052aee4e32bad22c10b3c01f5e60fa55367a28d3262222f3063440e08c199418f88e1d4528f6ea2388343e55216e7cdd7bb139d00273f6c1bfeb9c0c636427b00705a7308c54aa1fff32360e6c4b8d74db9b3d81d6a8f4687463717a957bbc7110831302210ff03e3b5a657a75653e6835ed1210c9ebe68d01d499c8ebe16df934094240fa2b97e3ab3e936c5a4eef008bd8c8246919ce9ca6856ef48a47264ce2cedcd24afff170000ffff68d5119f",
    "nonce": 532315,
    "type": 2,
    "network": null,
    "v": "0x0",
    "r": "0x499c92a129e8be1ecbee20644891d13c96f50c3fe38d084c09bb3d02cec1f22a",
    "s": "0xa0cca26adda20fb784295009b4c32921eaf483e0ac1e9fa4a2d70f13e1f97f4",
    "yParity": "0x0",
    "transactionIndex": 210,
    "accessList": [],
    "maxFeePerGas": "26532462838",
    "maxPriorityFeePerGas": "150000000",
    "logs": [
      {
        "address": "0x5E4e65926BA27467555EB562121fac00D24E9dD2",
        "topics": [
          "0x127186556e7be68c7e31263195225b4de02820707889540969f62c05cf73525e",
          "0x000000000000000000000000000000000000000000000000000000000007c1ee"
        ],
        "data": "0x571e95f97edea0a71f80422b69a12b71386829561a6ff3f5b6f43b16fad7c6580000000000000000000000000000000000000000000000000000000000000039000000000000000000000000000000000000000000000000000000000441a25500000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000000",
        "blockNumber": 16525031,
        "transactionHash": "0x00ac1582db64ee60e1be6b653c42ca5d199d749c2e0e3990f3ab00433fcdc1d6",
        "transactionIndex": 210,
        "blockHash": "0x0cda5f2df18f889cbed8d2b691a46794996ee2ede5dde63187b8d556882e705c",
        "logIndex": 345,
        "removed": false,
        "id": "log_2fca2f68"
      },
      {
        "address": "0x5E4e65926BA27467555EB562121fac00D24E9dD2",
        "topics": [
          "0x602f1aeac0ca2e7a13e281a9ef0ad7838542712ce16780fa2ecffd351f05f899"
        ],
        "data": "0x00000000000000000000000000000000000000000000000000000000000451030000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000441a28e",
        "blockNumber": 16525031,
        "transactionHash": "0x00ac1582db64ee60e1be6b653c42ca5d199d749c2e0e3990f3ab00433fcdc1d6",
        "transactionIndex": 210,
        "blockHash": "0x0cda5f2df18f889cbed8d2b691a46794996ee2ede5dde63187b8d556882e705c",
        "logIndex": 346,
        "removed": false,
        "id": "log_554477d1"
      }
    ]
  }
}
```

{% endtab %}
{% endtabs %}

## /getgasfees

Retrieves the total fee spent, current price, adjusted price (in cents), and the transaction list associated with a specified address within a given block range.

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

#### Query Parameters

<table><thead><tr><th width="162">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</td><td>String</td><td>Refer to the <a href="/pages/5o1xMsQPqXw9GBfGTpdB">Chain ID </a>page for details.</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>address<mark style="color:red;">*</mark></td><td>String</td><td>Addess of the user</td></tr><tr><td>startBlock</td><td>String</td><td>Starting block of the range  by default it is latestblock-100</td></tr><tr><td>endBlock</td><td>String</td><td><p>Last block of the range</p><p>by default it is latest block</p></td></tr></tbody></table>

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

```url
https://api.expand.network/chain/getgasfees?address=0x690B9A9E9aa1C9dB991C7721a92d351Db4FaC990
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "totalFeesSpent": "8171409897000",
        "totalCurrentPrice": "0.0134",
        "transactionList": {
            "0x9d63b422a8f42be489122d6bf75df2ee5650ac8b1b2ed4f292faa00ca0d02148": "8171409897000"
        }
    }
}
```

{% 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="/pages/5o1xMsQPqXw9GBfGTpdB">Chain ID </a>page for details.</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>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=1&address=0x356dB816602c85e2075774bB77D13995c8Bab023
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "native": "0",
        "evmTokens": [
            {
                "name": "Dai Stablecoin",
                "symbol": "DAI",
                "decimals": "18",
                "address": "0x6b175474e89094c44da98b954eedeac495271d0f",
                "balance": "1732207021824890025",
                "assetType": "ERC20",
                "USDPrice": "1.0001188795",
                "logoUrl": "https://assetlogo.expand.network/ethereum/DAI.png"
            },
            {
                "name": "USD Coin",
                "symbol": "USDC",
                "decimals": "6",
                "address": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
                "balance": "997568",
                "assetType": "ERC20",
                "USDPrice": "1.0001282756",
                "logoUrl": "https://assetlogo.expand.network/ethereum/USDC.png"
            },
            {
                "name": "SushiToken",
                "symbol": "SUSHI",
                "decimals": "18",
                "address": "0x6b3595068778dd592e39a122f4f5a5cf09c90fe2",
                "balance": "234925199478993887",
                "assetType": "ERC20",
                "USDPrice": "1.5005360210",
                "logoUrl": "https://assetlogo.expand.network/ethereum/SUSHI.png"
            },
            {
                "name": "Tether USD",
                "symbol": "USDT",
                "decimals": "6",
                "address": "0xdac17f958d2ee523a2206206994597c13d831ec7",
                "balance": "10007",
                "assetType": "ERC20",
                "USDPrice": "1.0001404515",
                "logoUrl": "https://assetlogo.expand.network/ethereum/USDT.png"
            },
            {
                "name": "Aave interest bearing DAI",
                "symbol": "aDAI",
                "decimals": "18",
                "address": "0x028171bca77440897b824ca71d1c56cac55b68a3",
                "balance": "54259196050366566",
                "assetType": "ERC20",
                "USDPrice": null,
                "logoUrl": "https://assetlogo.expand.network/ethereum/ADAI.png"
            },
            {
                "name": "Uniswap V2",
                "symbol": "UNI-V2",
                "decimals": "18",
                "address": "0xa478c2975ab1ea89e8196811f51a7b7ade33eb11",
                "balance": "2168376756249587",
                "assetType": "ERC20",
                "USDPrice": null,
                "logoUrl": "https://assetlogo.expand.network/ethereum/UNI-V2.png"
            }
        ]
    }
}
```

{% 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="/pages/5o1xMsQPqXw9GBfGTpdB">Chain ID </a>page for details.</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>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=0x95222290DD7278Aa3Ddd389Cc1E1d165CC4BAfe5&chainId=1&fromTimestamp=2024-11-25&toTimestamp=2024-11-26&sortOrder=desc&pageSize=5
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "nextPageToken": "eyJhbGciOiJIUzI1NiJ9.eyJ0YWJsZUluZGV4IjowLCJsYXN0RXZhbHVhdGVkS2V5Ijp7IndhbGxldEFkZHJlc3MiOiIweDk1MjIyMjkwZGQ3Mjc4YWEzZGRkMzg5Y2MxZTFkMTY1Y2M0YmFmZTUiLCJ0aW1lc3RhbXBfYmxvY2tOdW1iZXJfdHhJbmRleCI6IjAwMDAwMDE3MzI1NzkxNjMwMDAyMTI2ODE5OTAwMDAxIn0sInBhZ2VOdW1iZXIiOjAsImtleUNvbmRpdGlvbkV4cHJlc3Npb24iOnsid2FsbGV0QWRkcmVzcyI6eyJlcSI6IjB4OTUyMjIyOTBkZDcyNzhhYTNkZGQzODljYzFlMWQxNjVjYzRiYWZlNSJ9LCJ0aW1lc3RhbXBfYmxvY2tOdW1iZXJfdHhJbmRleCI6eyJiZXR3ZWVuIjpbIjAwMDAwMDE3MzI0OTI3OTkwMDAwMDAwMDAwMDAwMDAwIiwiMDAwMDAwMTczMjU3OTE5OTAwMDAwMDAwMDAwOTk5OTkiXX19LCJsaW1pdCI6IjUiLCJvcmRlciI6ImRlc2NlbmRpbmcifQ.A8XTqltMTV2l6qit4DIvVEPrtZKDyqHwSa3kjg8_zio",
        "pageSize": "5",
        "transactions": [
            {
                "hash": "0x4357e50aa43cac717c971e4f86a6689fd621515559ab07919a21184e500bbdb6",
                "nonce": "1706902",
                "transaction_index": "61",
                "from_address_entity": null,
                "from_address_entity_logo": null,
                "from_address": "0x95222290dd7278aa3ddd389cc1e1d165cc4bafe5",
                "from_address_label": "beaverbuild",
                "to_address_entity": null,
                "to_address_entity_logo": null,
                "to_address": "0x13f2241aa64bb6da2b74553fa9e12b713b74f334",
                "to_address_label": null,
                "value": "65645477106837944",
                "gas": "21000",
                "gas_price": "6284009466",
                "receipt_cumulative_gas_used": "13777624",
                "receipt_gas_used": "21000",
                "receipt_contract_address": null,
                "receipt_status": "1",
                "block_timestamp": "2024-11-25T23:59:23.000Z",
                "block_number": "21268199",
                "block_hash": "0xebef1670529602e29a4f56802b5dbf9fb58d04ffec9295ea262c6d881ee35534",
                "transaction_fee": "0.000131964198786",
                "method_label": null,
                "nft_transfers": [],
                "erc20_transfers": [],
                "native_transfers": [
                    {
                        "from_address_entity": null,
                        "from_address_entity_logo": null,
                        "from_address": "0x95222290dd7278aa3ddd389cc1e1d165cc4bafe5",
                        "from_address_label": "beaverbuild",
                        "to_address_entity": null,
                        "to_address_entity_logo": null,
                        "to_address": "0x13f2241aa64bb6da2b74553fa9e12b713b74f334",
                        "to_address_label": null,
                        "value": "65645477106837944",
                        "value_formatted": "0.06564547710683795",
                        "direction": "send",
                        "internal_transaction": false,
                        "token_symbol": "ETH"
                    }
                ],
                "summary": "Sent 0.06564 ETH to 0x13...f334",
                "possible_spam": false,
                "category": "send",
                "internal_transactions": []
            },
            {
                "hash": "0x85d86ae6a47ef52184ee1849ffc438bf47a7a3f5059c04aac0c7a9da4815beb8",
                "nonce": "1706901",
                "transaction_index": "10",
                "from_address_entity": null,
                "from_address_entity_logo": null,
                "from_address": "0x95222290dd7278aa3ddd389cc1e1d165cc4bafe5",
                "from_address_label": "beaverbuild",
                "to_address_entity": null,
                "to_address_entity_logo": null,
                "to_address": "0xb7641d7b663d6cfc149c544883ef1692fea348a6",
                "to_address_label": null,
                "value": "81728592291360",
                "gas": "21000",
                "gas_price": "6284009466",
                "receipt_cumulative_gas_used": "2571406",
                "receipt_gas_used": "21000",
                "receipt_contract_address": null,
                "receipt_status": "1",
                "block_timestamp": "2024-11-25T23:59:23.000Z",
                "block_number": "21268199",
                "block_hash": "0xebef1670529602e29a4f56802b5dbf9fb58d04ffec9295ea262c6d881ee35534",
                "transaction_fee": "0.000131964198786",
                "method_label": null,
                "nft_transfers": [],
                "erc20_transfers": [],
                "native_transfers": [
                    {
                        "from_address_entity": null,
                        "from_address_entity_logo": null,
                        "from_address": "0x95222290dd7278aa3ddd389cc1e1d165cc4bafe5",
                        "from_address_label": "beaverbuild",
                        "to_address_entity": null,
                        "to_address_entity_logo": null,
                        "to_address": "0xb7641d7b663d6cfc149c544883ef1692fea348a6",
                        "to_address_label": null,
                        "value": "81728592291360",
                        "value_formatted": "0.00008172859229136",
                        "direction": "send",
                        "internal_transaction": false,
                        "token_symbol": "ETH"
                    }
                ],
                "summary": "Sent 0.00008172 ETH to 0xb7...48a6",
                "possible_spam": false,
                "category": "send",
                "internal_transactions": []
            },
            {
                "hash": "0x85ab1681dcb221869eaf62ba03642fbc76279c3364490ad30cf078b12e9ba75b",
                "nonce": "346",
                "transaction_index": "4",
                "from_address_entity": null,
                "from_address_entity_logo": null,
                "from_address": "0x86da51f66a5f4b170200f8cc6429856580541028",
                "from_address_label": null,
                "to_address_entity": null,
                "to_address_entity_logo": null,
                "to_address": "0x817648d73fd85c802cfde8a29eba9f68b783ca60",
                "to_address_label": null,
                "value": "0",
                "gas": "500000",
                "gas_price": "6315429513",
                "receipt_cumulative_gas_used": "1539105",
                "receipt_gas_used": "258878",
                "receipt_contract_address": null,
                "receipt_status": "1",
                "block_timestamp": "2024-11-25T23:59:23.000Z",
                "block_number": "21268199",
                "block_hash": "0xebef1670529602e29a4f56802b5dbf9fb58d04ffec9295ea262c6d881ee35534",
                "transaction_fee": "0.001634925761466414",
                "method_label": null,
                "nft_transfers": [],
                "erc20_transfers": [],
                "native_transfers": [],
                "summary": "Signed a transaction",
                "possible_spam": false,
                "category": "contract interaction",
                "internal_transactions": [
                    {
                        "transaction_hash": "0x85ab1681dcb221869eaf62ba03642fbc76279c3364490ad30cf078b12e9ba75b",
                        "block_number": 21268199,
                        "block_hash": "0xebef1670529602e29a4f56802b5dbf9fb58d04ffec9295ea262c6d881ee35534",
                        "type": "CALL",
                        "from": "0x817648d73fd85c802cfde8a29eba9f68b783ca60",
                        "to": "0x95222290dd7278aa3ddd389cc1e1d165cc4bafe5",
                        "value": "3039388317129529",
                        "gas": "2300",
                        "gas_used": "0",
                        "input": "0x",
                        "output": "0x"
                    },
                    {
                        "transaction_hash": "0x85ab1681dcb221869eaf62ba03642fbc76279c3364490ad30cf078b12e9ba75b",
                        "block_number": 21268199,
                        "block_hash": "0xebef1670529602e29a4f56802b5dbf9fb58d04ffec9295ea262c6d881ee35534",
                        "type": "CALL",
                        "from": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
                        "to": "0x817648d73fd85c802cfde8a29eba9f68b783ca60",
                        "value": "3039388317129529",
                        "gas": "2300",
                        "gas_used": "72",
                        "input": "0x",
                        "output": "0x"
                    }
                ]
            },
            {
                "hash": "0xebba90e71f26c8a82b825527ab7eeefc1775697648499c7b1139b8225c9ac54d",
                "nonce": "273",
                "transaction_index": "2",
                "from_address_entity": null,
                "from_address_entity_logo": null,
                "from_address": "0xe17e026d3dc521154e773867b4e20577b32bdff9",
                "from_address_label": null,
                "to_address_entity": null,
                "to_address_entity_logo": null,
                "to_address": "0x817648d73fd85c802cfde8a29eba9f68b783ca60",
                "to_address_label": null,
                "value": "0",
                "gas": "500000",
                "gas_price": "6315429513",
                "receipt_cumulative_gas_used": "637296",
                "receipt_gas_used": "258836",
                "receipt_contract_address": null,
                "receipt_status": "1",
                "block_timestamp": "2024-11-25T23:59:23.000Z",
                "block_number": "21268199",
                "block_hash": "0xebef1670529602e29a4f56802b5dbf9fb58d04ffec9295ea262c6d881ee35534",
                "transaction_fee": "0.001634660513426868",
                "method_label": null,
                "nft_transfers": [],
                "erc20_transfers": [],
                "native_transfers": [],
                "summary": "Signed a transaction",
                "possible_spam": false,
                "category": "contract interaction",
                "internal_transactions": [
                    {
                        "transaction_hash": "0xebba90e71f26c8a82b825527ab7eeefc1775697648499c7b1139b8225c9ac54d",
                        "block_number": 21268199,
                        "block_hash": "0xebef1670529602e29a4f56802b5dbf9fb58d04ffec9295ea262c6d881ee35534",
                        "type": "CALL",
                        "from": "0x817648d73fd85c802cfde8a29eba9f68b783ca60",
                        "to": "0x95222290dd7278aa3ddd389cc1e1d165cc4bafe5",
                        "value": "8393334440265254",
                        "gas": "2300",
                        "gas_used": "0",
                        "input": "0x",
                        "output": "0x"
                    },
                    {
                        "transaction_hash": "0xebba90e71f26c8a82b825527ab7eeefc1775697648499c7b1139b8225c9ac54d",
                        "block_number": 21268199,
                        "block_hash": "0xebef1670529602e29a4f56802b5dbf9fb58d04ffec9295ea262c6d881ee35534",
                        "type": "CALL",
                        "from": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
                        "to": "0x817648d73fd85c802cfde8a29eba9f68b783ca60",
                        "value": "8393334440265254",
                        "gas": "2300",
                        "gas_used": "72",
                        "input": "0x",
                        "output": "0x"
                    }
                ]
            },
            {
                "hash": "0x23a019479daf56c662517dca483614041f5b9608e7d872c087dbcf277f2da811",
                "nonce": "365",
                "transaction_index": "1",
                "from_address_entity": null,
                "from_address_entity_logo": null,
                "from_address": "0xedd538785fe8cd7ecfdc08b1a6b93925d741cf1b",
                "from_address_label": null,
                "to_address_entity": null,
                "to_address_entity_logo": null,
                "to_address": "0x817648d73fd85c802cfde8a29eba9f68b783ca60",
                "to_address_label": null,
                "value": "0",
                "gas": "500000",
                "gas_price": "6315429513",
                "receipt_cumulative_gas_used": "378460",
                "receipt_gas_used": "226858",
                "receipt_contract_address": null,
                "receipt_status": "1",
                "block_timestamp": "2024-11-25T23:59:23.000Z",
                "block_number": "21268199",
                "block_hash": "0xebef1670529602e29a4f56802b5dbf9fb58d04ffec9295ea262c6d881ee35534",
                "transaction_fee": "0.001432705708460154",
                "method_label": null,
                "nft_transfers": [],
                "erc20_transfers": [],
                "native_transfers": [
                    {
                        "from_address_entity": null,
                        "from_address_entity_logo": null,
                        "from_address": "0x817648d73fd85c802cfde8a29eba9f68b783ca60",
                        "from_address_label": null,
                        "to_address_entity": null,
                        "to_address_entity_logo": null,
                        "to_address": "0x95222290dd7278aa3ddd389cc1e1d165cc4bafe5",
                        "to_address_label": "beaverbuild",
                        "value": "2606209353475460",
                        "value_formatted": "0.00260620935347546",
                        "direction": "receive",
                        "internal_transaction": true,
                        "token_symbol": "ETH"
                    }
                ],
                "summary": "Received 0.002606 ETH from 0x81...ca60",
                "possible_spam": false,
                "category": "receive",
                "internal_transactions": [
                    {
                        "transaction_hash": "0x23a019479daf56c662517dca483614041f5b9608e7d872c087dbcf277f2da811",
                        "block_number": 21268199,
                        "block_hash": "0xebef1670529602e29a4f56802b5dbf9fb58d04ffec9295ea262c6d881ee35534",
                        "type": "CALL",
                        "from": "0x817648d73fd85c802cfde8a29eba9f68b783ca60",
                        "to": "0x95222290dd7278aa3ddd389cc1e1d165cc4bafe5",
                        "value": "2606209353475460",
                        "gas": "2300",
                        "gas_used": "0",
                        "input": "0x",
                        "output": "0x"
                    },
                    {
                        "transaction_hash": "0x23a019479daf56c662517dca483614041f5b9608e7d872c087dbcf277f2da811",
                        "block_number": 21268199,
                        "block_hash": "0xebef1670529602e29a4f56802b5dbf9fb58d04ffec9295ea262c6d881ee35534",
                        "type": "CALL",
                        "from": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
                        "to": "0x817648d73fd85c802cfde8a29eba9f68b783ca60",
                        "value": "2606209353475460",
                        "gas": "2300",
                        "gas_used": "72",
                        "input": "0x",
                        "output": "0x"
                    }
                ]
            }
        ]
    }
}
```

{% 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</td><td>String</td><td>Refer to the <a href="/pages/5o1xMsQPqXw9GBfGTpdB">Chain ID </a>page for details.</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 encoded transaction, obtained from the signed transaction.</td></tr><tr><td>bdnTransaction</td><td>Boolean</td><td><p>If true, then txn goes through the bdn route, which speeds up the transaction process.</p><p>By default, false.</p></td></tr><tr><td>mevProtection</td><td>Boolean</td><td>If true, then txn goes through flashbots.</td></tr></tbody></table>

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

```json
{
    "rawTransaction": "0xf86f048433918fbe830493e0949b79d6dfe4650d70f35dbb80f7d1ec0cf7f823fd87038d7ea4c6800084022794382da0c9bd6b5c7e18a258b04039d524a3e1382ec0f522d160dc027428933f520b6868a07332736f1df297842299230820626f1fc5b8d4cdd602ade55e3ba02c63e756ce"
}
```

{% endtab %}

{% tab title="Sample Response" %}

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

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
**With bdnTransaction: true**&#x20;

```json
{
    "chainId": "1",
    "rawTransaction": "0xf8672385070e93c2cf8261a8946fb447ae94f5180254d436a693907a1f57696900830186a08026a0544037b4bd1f139c5d5cbc926d239f4eff34ecc428872e9ba576d6b921254c15a014e0e56c6b2d752d03e059098d69b59b26063a8767bcd1cfc00fc0e9e7ab8365",
    "bdnTransaction": true
}
```

{% endtab %}

{% tab title="Sample Response" %}
**With bdnTransaction: true**&#x20;

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId" : "1",
        "txHash": "65f59305a9e6f684c8e680dce60c613484a72c61c844be5666e21fccd8a2a53f"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
**With mevProtection: true**&#x20;

```json
{
    "chainId":"1",
    "rawTransaction": "0xf8a68205180f82753e94dc31ee1784292379fbb2964b3b9c4124d8f89c6080b844a9059cbb000000000000000000000000a67e9b68c41b0f26184d64c26e0b2b81466e5994000000000000000000000000000000000000000000000000000000174876e8002ea0952b0468aff066f3e00a1d476b8894d84bfc47a1a3cdab9d6809a3461cc713e5a018219ee382aa3c7edf73a87bd8a75e2c40a97efbdf56a6cfd353af06fb74101d",
    "mevProtection": true
}
```

{% endtab %}

{% tab title="Sample Response" %}
**With mevProtection: true** &#x20;

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId" : "1",
        "txHash": "0xd9cdf1483a85aa206625c66fea49059b96ffae1c086f76664cfa3f91a495d73a"
    }
}
```

{% endtab %}
{% endtabs %}

## /**genericsmartcontractmethod**

Executes a read query on a verified smart contract on etherscan. In case of un-verified smart contracts, ABI needs to be provided to proceed accordingly.

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

#### Request Body

<table><thead><tr><th width="181">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="/pages/5o1xMsQPqXw9GBfGTpdB">Chain ID </a>page for details.</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>contractAddress<mark style="color:red;">*</mark></td><td>String</td><td>Address of the Contract to perform read operation on.</td></tr><tr><td>parameters</td><td>Array</td><td>Parameters to the read function</td></tr><tr><td>abi</td><td>String</td><td>Abi of the smart contract</td></tr><tr><td>methodName<mark style="color:red;">*</mark></td><td>String</td><td>Name of the read function to be called</td></tr><tr><td>blockNumber</td><td>String</td><td>BlockNumber to perform read query on. by Default latestBlock</td></tr></tbody></table>

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

```json
{
    "contractAddress": "0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D",
    "methodName": "getAmountsIn",
    "parameters": [
        "4515444785",
        [
            "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
            "0x6B175474E89094C44Da98b954EedeAC495271d0F"
        ]
    ]
}
```

{% endtab %}

{% tab title="Sample Response" %}

<pre class="language-json"><code class="lang-json"><strong>{
</strong>    "status": 200,
    "msg": "success",
    "data": {
        "getAmountsIn": [
            "2425265",
            "4515444785"
        ]
    }
}
</code></pre>

{% 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</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" : "1",
    "rawTransaction":"0xf865808509c9919d87830a4a1194a67e9b68c41b0f26184d64c26e0b2b81466e5994018025a07542477f2599acdda95c37ff0492bd0ac656687780033807e0434ccf69bd4015a005f33bf2cde8001f51b46e18db78049b4509b824f09dccb45b4dbb9087d17049"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "parsedTx": {
            "nonce": 0,
            "gasPrice": {
                "type": "BigNumber",
                "hex": "0x09c9919d87"
            },
            "gasLimit": {
                "type": "BigNumber",
                "hex": "0x0a4a11"
            },
            "to": "0xa67E9B68c41b0f26184D64C26e0b2B81466E5994",
            "value": {
                "type": "BigNumber",
                "hex": "0x01"
            },
            "data": "0x",
            "chainId": 1,
            "v": 37,
            "r": "0x7542477f2599acdda95c37ff0492bd0ac656687780033807e0434ccf69bd4015",
            "s": "0x05f33bf2cde8001f51b46e18db78049b4509b824f09dccb45b4dbb9087d17049",
            "from": "0xa2e73C17F437688946993F683930E3Fd42Dd4F8C",
            "hash": "0x5c3ef8d1720f481a6dbeb58f4d6cb404f9e2b6f31ba52ba5c8df48142b9e2ad3",
            "type": null
        },
        "assetChanges": {
            "from": "0xa2e73C17F437688946993F683930E3Fd42Dd4F8C",
            "to": "0xa67E9B68c41b0f26184D64C26e0b2B81466E5994",
            "value": {
                "type": "BigNumber",
                "hex": "0x01"
            }
        }
    }
}
```

{% endtab %}
{% endtabs %}


# Binance Smart Chain

### /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="185">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</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" %}

```url
https://api.expand.network/chain/getbalance?chainId=56&blockNumber=39314029&address=0x4C5dE1BF2d8e7D86E6473cCDDfC3c9C804983446&tokenAddress=0x3203c9E46cA618C8C1cE5dC67e7e9D75f5da2377
```

{% endtab %}

{% tab title="Sample Response" %}

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

{% 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 ](/ids/chain-ids)page for details.                                                                      |
| chainSymbol                               | String | Refer to the [Chain ID ](/ids/chain-ids)page for details.                                                                      |
| blockNumber                               | String | The block number or block hash.                                                                                                |
| startBlock                                | String | Starting block of the range. Note: Maximum supported range is 10, meaning the startBlock is determined by endBlock - 9.        |
| endBlock                                  | String | <p>Last block of the range. <br>Note: Maximum supported range is 10, meaning the endBlock is determined by startBlock + 9.</p> |

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

```url
https://historicallp.api.expand.network/chain/getblock?chainId=56
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
  "status": 200,
  "msg": "success",
  "data": {
    "blocks": [
      {
        "difficulty": "2",
        "extraData": "0xd883010002846765746888676f312e31332e34856c696e7578000000000000000f0d5147246b972a70e3f2ac247f6daba4fafaaebfc65d0de82a63851ef92a1d634395b7d2a2ed5c7ffd82c0a41f7bb84156f4ff4d5b7a9a781fb38d4f65faab01",
        "gasLimit": 30000000,
        "gasUsed": 954239,
        "hash": "0xe53f0af352716cc2e7b0f7984f7061991b8fff7261e757c880775ff33ab3488e",
        "logsBloom": "0x08200000000280100004800088002410000000000404000008000000800000101000000000000004000000000400000008000000000000000000000000240400000000000100000204000008000000202010000400440000002c100484000000008000200202001001000800000008000000000000e10480004000100000000000400000000000000000000000008000004404010400000810000840000000000200000000000600180210000000000000000000000023000020000800200000010008220000280200000000000010000101000901000014001000020202e0000010000004000000091000020400002000000000400000400010000000400000",
        "miner": "0xa6f79B60359f141df90A0C745125B131cAAfFD12",
        "mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
        "nonce": "0x0000000000000000",
        "number": 1900010,
        "parentHash": "0x9e0b768bf0ba90d9ffff5c15d99b4d6419e9698917674092b5b4e37595d44399",
        "receiptsRoot": "0x163db304696466aa9063e876bb0471a807a6bab90e989e0d517449a8ec5b0bf0",
        "size": 2385,
        "timestamp": 1604372524,
        "totalDifficulty": "3799498",
        "transactions": [
          {
            "chainId": "56",
            "hash": "0xc3d940b3d7b45d6f7977027cb47dbbd05d78cd7c92920ce64fda087790aeade5",
            "transactionStatus": true,
            "blockNumber": "1900010",
            "timestamp": null,
            "from": "0x929648fA0dFC3637d55226CE5e3F75cae1566fCE",
            "to": "0x7aE6E8DDc28D504984CC55180267c375692E381B",
            "value": "188703802094966348",
            "transactionFees": "546000000000000",
            "gas": "21000",
            "gasPrice": "26000000000",
            "input": "0x",
            "nonce": 80,
            "type": null,
            "network": null,
            "v": "0x93",
            "r": "0x768c5454feba7a3dea20106ca4ff4c04731d960bcaf54d8749d3ba1531e01c7b",
            "s": "0x71389db7fc650415eb398aa32fd0998814315254d7a5e753913dd91e18db9db3",
            "yParity": null,
            "transactionIndex": null,
            "accessList": null,
            "maxFeePerGas": null,
            "maxPriorityFeePerGas": null,
            "logs": [
              {
                "address": "0x72dCf845AE36401e82e681B0E063d0703bAC0Bba",
                "topics": [
                  "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
                  "0x00000000000000000000000025b827ffc01d92e191905eb70bb1efbfa90320ed",
                  "0x000000000000000000000000c66a3153c63d94d49714ff1bdf15d76081cd5581"
                ],
                "data": "0x00000000000000000000000000000000000000000000000d31c714616069f380",
                "blockNumber": 38800735,
                "transactionHash": "0x2edca61f6423a0445edbe8b4b23875dbf04e100cd3e6e525d50261f203f2a959",
                "transactionIndex": 1,
                "blockHash": "0xeddf553948d9e673bf912c2381db68c1bc7730c161c7edf8c0849fc5b05b5f38",
                "logIndex": 0,
                "removed": false,
                "id": "log_31cb7e18"
              }
            ]
          }
        ],
        "transactionsRoot": "0xf096034684f149dcf71c676d12885a55fec3a95294589db39785285f1caecdee",
        "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 ](/ids/chain-ids)page for details. |
| chainSymbol                               | String | Refer to the [Chain ID ](/ids/chain-ids)page for details. |

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

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

{% endtab %}

{% tab title="Sample Response" %}

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

{% 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 ](/ids/chain-ids)page for details.        |
| chainSymbol                               | String | Refer to the [Chain ID ](/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=56&address=0xb22069baEf86655460F56CD73d7EC999B5DA6B73
```

{% endtab %}

{% tab title="Sample Response" %}

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

{% 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 ](/ids/chain-ids)page for details. |
| chainSymbol                                       | String | Refer to the [Chain ID ](/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=56&transactionHash=0x5834a0ef28b7f58044d183e2ceb140365c5e5329d6364ca8f5ad8d29d7838715
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
  "status": 200,
  "msg": "success",
  "data": {
    "chainId": "56",
    "hash": "0x5834a0ef28b7f58044d183e2ceb140365c5e5329d6364ca8f5ad8d29d7838715",
    "transactionStatus": true,
    "blockNumber": "30265849",
    "timestamp": null,
    "from": "0xca2e63aaC05F6aFFdb6beC468fa2258003c8A450",
    "to": "0x55d398326f99059fF775485246999027B3197955",
    "value": "0",
    "transactionFees": "23200100000000",
    "gas": "65000",
    "gasPrice": "1100000000",
    "input": "0xa9059cbb000000000000000000000000b8c1c3c3a17123b0df178bb2005a2949391bdb3c000000000000000000000000000000000000000000000000000246fc714d1000",
    "nonce": 10,
    "type": null,
    "network": null,
    "v": "0x93",
    "r": "0x3a07d5ae42015756122c3033caae1029292c1bf651763455213d2b82e133ac67",
    "s": "0x50444f7eede576535e3b23dd500a84690f174797216404ed05944feaf165538a",
    "yParity": null,
    "transactionIndex": 139,
    "accessList": null,
    "maxFeePerGas": null,
    "maxPriorityFeePerGas": null,
    "logs": [
      {
        "address": "0x55d398326f99059fF775485246999027B3197955",
        "topics": [
          "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
          "0x000000000000000000000000ca2e63aac05f6affdb6bec468fa2258003c8a450",
          "0x000000000000000000000000b8c1c3c3a17123b0df178bb2005a2949391bdb3c"
        ],
        "data": "0x000000000000000000000000000000000000000000000000000246fc714d1000",
        "blockNumber": 30265849,
        "transactionHash": "0x5834a0ef28b7f58044d183e2ceb140365c5e5329d6364ca8f5ad8d29d7838715",
        "transactionIndex": 139,
        "blockHash": "0xb4b573a409d29d6d715cd6e51c7161701766badd1bbc956afbe67f6217034bdc",
        "logIndex": 378,
        "removed": false,
        "id": "log_312fdee5"
      }
    ]
  }
}
```

{% 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="/pages/5o1xMsQPqXw9GBfGTpdB">Chain ID </a>page for details.</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>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=56&address=0x9ef9f4360c606c7AB4db26b016007d3ad0aB86a0&availableOnly=true
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "native": "100000000000000000",
        "evmTokens": [
            {
                "name": "Pelican Trust (Save The Pelicans)",
                "symbol": "PTRST",
                "decimals": "9",
                "address": "0x2a3a5011d4a43e3966ac061762d476bcb54289c2",
                "balance": "1000000015646852",
                "assetType": "ERC20",
                "USDPrice": "566.4003103654223"
            },
            {
                "name": "AI Avail",
                "symbol": "AI-A",
                "decimals": "6",
                "address": "0xd048b4c23af828e5be412505a51a8dd7b37782dd",
                "balance": "23000000000",
                "assetType": "ERC20",
                "USDPrice": "0.7034536653118537"
            },
            {
                "name": "eCash",
                "symbol": "XEC",
                "decimals": "6",
                "address": "0x5f7a1a4dafd0718caee1184caa4862543f75edb1",
                "balance": "29000000000000",
                "assetType": "ERC20",
                "USDPrice": "0.000061525764023246"
            },
            {
                "name": "Minereum BSC",
                "symbol": "MNEB",
                "decimals": "8",
                "address": "0xd22202d23fe7de9e3dbe11a2a88f42f4cb9507cf",
                "balance": "15000000000000",
                "assetType": "ERC20",
                "USDPrice": "0.002957114417754845"
            },
            {
                "name": "Volt Token",
                "symbol": "VLT",
                "decimals": "9",
                "address": "0x3f413df715251814d2ce25dcf74c8e94f3b40b67",
                "balance": "2188732955437000000000",
                "assetType": "ERC20",
                "USDPrice": "9.97635e-13"
            },
            {
                "name": "RGDC Token",
                "symbol": "RGDC",
                "decimals": "18",
                "address": "0x64434605adac8f5441029133fd12c4289fc8b4a8",
                "balance": "1000000000000000000",
                "assetType": "ERC20",
                "USDPrice": "0.03271055525971668"
            },
            {
                "name": "superspreader.info",
                "symbol": "SPRD",
                "decimals": "18",
                "address": "0xd4e4d228eafb1ca8897c7e9cc9992fe3a0b8693c",
                "balance": "8802832521443043712",
                "assetType": "ERC20",
                "USDPrice": "0.000008618710042535"
            },
            {
                "name": "AIR",
                "symbol": "AIR",
                "decimals": "18",
                "address": "0xd8a2ae43fd061d24acd538e3866ffc2c05151b53",
                "balance": "10000000000000000000000",
                "assetType": "ERC20",
                "USDPrice": "7.5981e-14"
            },
            {
                "name": "BLESS",
                "symbol": "GOD",
                "decimals": "0",
                "address": "0x81a7571fabb0e1e3a6a2d815f054d503dc649f42",
                "balance": "255",
                "assetType": "ERC20",
                "USDPrice": null
            },
            {
                "name": "My Get Rich Token",
                "symbol": "MGRT",
                "decimals": "18",
                "address": "0x71753d0586ea6b979dfccbb492a45e611e0e0ad6",
                "balance": "120000576000000000000000",
                "assetType": "ERC20",
                "USDPrice": null
            },
            {
                "name": "!  Kuroro.gg",
                "symbol": "KURO  [www.kuroro.gg]",
                "decimals": "18",
                "address": "0x31217006cb5515f0f5358a00b83847861c0d27c6",
                "balance": "1391842000000000000000000",
                "assetType": "ERC20",
                "USDPrice": null
            },
            {
                "name": "Airdrop at 3000usdc.us 🎁",
                "symbol": "Airdrop at [3000usdc.us]",
                "decimals": "0",
                "address": "0xac08ac192dff5d0865806c3700006849162f5d34",
                "balance": "1",
                "assetType": "ERC1155",
                "tokenId": "1"
            },
            {
                "name": "Airdrop at 3000usdc.us 🎁",
                "symbol": "Airdrop at [3000usdc.us]",
                "decimals": "0",
                "address": "0x3a193b2a0b2eeee6e0c1cdc05c4a75bc4efb8845",
                "balance": "1",
                "assetType": "ERC1155",
                "tokenId": "1"
            },
            {
                "name": "SHA256 Miner",
                "symbol": "SHA256Miner",
                "decimals": "0",
                "address": "0x322d1f74defab8700ddafc3b3369186f03c81a92",
                "balance": "1",
                "assetType": "ERC721",
                "tokenId": "1249"
            },
            {
                "name": "SHA256 Miner",
                "symbol": "SHA256Miner",
                "decimals": "0",
                "address": "0x07e8d4b6f3f849d919f172150108d24ac7e548f2",
                "balance": "1",
                "assetType": "ERC721",
                "tokenId": "1253"
            }
        ]
    }
}
```

{% 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="/pages/5o1xMsQPqXw9GBfGTpdB">Chain ID </a>page for details.</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>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=0xee226379dB83CfFC681495730c11fDDE79BA4c0C&sortOrder=asc&chainId=56
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "nextPageToken": "eyJhbGciOiJIUzI1NiJ9.eyJ0YWJsZUluZGV4IjoxLCJsYXN0RXZhbHVhdGVkS2V5Ijp7IndhbGxldEFkZHJlc3MiOiIweGVlMjI2Mzc5ZGI4M2NmZmM2ODE0OTU3MzBjMTFmZGRlNzliYTRjMGMiLCJ0aW1lc3RhbXBfYmxvY2tOdW1iZXJfdHhJbmRleCI6IjAwMDAwMDE2MTY1NDQ4OTMwMDAwNTk0NTcwODAwMDg2In0sInBhZ2VOdW1iZXIiOjAsImtleUNvbmRpdGlvbkV4cHJlc3Npb24iOnsid2FsbGV0QWRkcmVzcyI6eyJlcSI6IjB4ZWUyMjYzNzlkYjgzY2ZmYzY4MTQ5NTczMGMxMWZkZGU3OWJhNGMwYyJ9LCJ0aW1lc3RhbXBfYmxvY2tOdW1iZXJfdHhJbmRleCI6eyJiZXR3ZWVuIjpbIjAwMDAwMDE1OTg2NzE0NDgwMDAwMDAwMDAwMDAwMDAwIiwiMDAwMDAwMTczMzAzNzQ0MDAwMDAwMDAwMDAwOTk5OTkiXX19LCJsaW1pdCI6IjUiLCJvcmRlciI6ImFzY2VuZGluZyJ9.p9ArjQM0SCNFmJs1pEe6opDuII_pook0CbH7z0WhgpE",
        "pageSize": "5",
        "transactions": [
            {
                "hash": "0x6b5e8ffd143cbe00d23f35db175bd47dcd4dcc96dd05f43cebadd36a20b30d67",
                "nonce": "0",
                "transaction_index": "203",
                "from_address_entity": null,
                "from_address_entity_logo": null,
                "from_address": "0xee226379db83cffc681495730c11fdde79ba4c0c",
                "from_address_label": "Validator: InfStones",
                "to_address_entity": null,
                "to_address_entity_logo": null,
                "to_address": "0x0000000000000000000000000000000000001000",
                "to_address_label": "BSC: Validator Set",
                "value": "156908695760385395",
                "gas": "9223372036854775807",
                "gas_price": "0",
                "receipt_cumulative_gas_used": "29528027",
                "receipt_gas_used": "32150",
                "receipt_contract_address": null,
                "receipt_status": "1",
                "block_timestamp": "2021-03-24T00:10:41.000Z",
                "block_number": "5945624",
                "block_hash": "0x72228719858a93f0437b87f57f9724eec9c1f34671b7fc3e266b730aa2a9f563",
                "transaction_fee": "0",
                "method_label": "deposit",
                "nft_transfers": [],
                "erc20_transfers": [],
                "native_transfers": [
                    {
                        "from_address_entity": null,
                        "from_address_entity_logo": null,
                        "from_address": "0xee226379db83cffc681495730c11fdde79ba4c0c",
                        "from_address_label": "Validator: InfStones",
                        "to_address_entity": null,
                        "to_address_entity_logo": null,
                        "to_address": "0x0000000000000000000000000000000000001000",
                        "to_address_label": "BSC: Validator Set",
                        "value": "156908695760385395",
                        "value_formatted": "0.1569086957603854",
                        "direction": "send",
                        "internal_transaction": false,
                        "token_symbol": "BNB"
                    }
                ],
                "summary": "Sent 0.1569 BNB to 0x00...1000",
                "possible_spam": false,
                "category": "send",
                "internal_transactions": []
            },
            {
                "hash": "0xe06bffa5a11ccc8f4e57a8202f047ba72c29f92fa2ba390610be3e744a573657",
                "nonce": "1",
                "transaction_index": "93",
                "from_address_entity": null,
                "from_address_entity_logo": null,
                "from_address": "0xee226379db83cffc681495730c11fdde79ba4c0c",
                "from_address_label": "Validator: InfStones",
                "to_address_entity": null,
                "to_address_entity_logo": null,
                "to_address": "0x0000000000000000000000000000000000001000",
                "to_address_label": "BSC: Validator Set",
                "value": "166873014375423901",
                "gas": "9223372036854775807",
                "gas_price": "0",
                "receipt_cumulative_gas_used": "29515609",
                "receipt_gas_used": "17150",
                "receipt_contract_address": null,
                "receipt_status": "1",
                "block_timestamp": "2021-03-24T00:11:44.000Z",
                "block_number": "5945645",
                "block_hash": "0x3fe55b9a7566c4e599902aa61860e005a33c5be745383c2b9a2b4a29dc96e9ff",
                "transaction_fee": "0",
                "method_label": "deposit",
                "nft_transfers": [],
                "erc20_transfers": [],
                "native_transfers": [
                    {
                        "from_address_entity": null,
                        "from_address_entity_logo": null,
                        "from_address": "0xee226379db83cffc681495730c11fdde79ba4c0c",
                        "from_address_label": "Validator: InfStones",
                        "to_address_entity": null,
                        "to_address_entity_logo": null,
                        "to_address": "0x0000000000000000000000000000000000001000",
                        "to_address_label": "BSC: Validator Set",
                        "value": "166873014375423901",
                        "value_formatted": "0.1668730143754239",
                        "direction": "send",
                        "internal_transaction": false,
                        "token_symbol": "BNB"
                    }
                ],
                "summary": "Sent 0.1668 BNB to 0x00...1000",
                "possible_spam": false,
                "category": "send",
                "internal_transactions": []
            },
            {
                "hash": "0xc06e1cc7bda1c884411758f860ef9c152b4e75269112793e0cf3a5550092d848",
                "nonce": "2",
                "transaction_index": "84",
                "from_address_entity": null,
                "from_address_entity_logo": null,
                "from_address": "0xee226379db83cffc681495730c11fdde79ba4c0c",
                "from_address_label": "Validator: InfStones",
                "to_address_entity": null,
                "to_address_entity_logo": null,
                "to_address": "0x0000000000000000000000000000000000001000",
                "to_address_label": "BSC: Validator Set",
                "value": "109144431022067336",
                "gas": "9223372036854775807",
                "gas_price": "0",
                "receipt_cumulative_gas_used": "29515240",
                "receipt_gas_used": "17150",
                "receipt_contract_address": null,
                "receipt_status": "1",
                "block_timestamp": "2021-03-24T00:12:47.000Z",
                "block_number": "5945666",
                "block_hash": "0x100dd151692de606897a040d3ebad9928e45346830f2e5f4318527cab9784c3d",
                "transaction_fee": "0",
                "method_label": "deposit",
                "nft_transfers": [],
                "erc20_transfers": [],
                "native_transfers": [
                    {
                        "from_address_entity": null,
                        "from_address_entity_logo": null,
                        "from_address": "0xee226379db83cffc681495730c11fdde79ba4c0c",
                        "from_address_label": "Validator: InfStones",
                        "to_address_entity": null,
                        "to_address_entity_logo": null,
                        "to_address": "0x0000000000000000000000000000000000001000",
                        "to_address_label": "BSC: Validator Set",
                        "value": "109144431022067336",
                        "value_formatted": "0.10914443102206733",
                        "direction": "send",
                        "internal_transaction": false,
                        "token_symbol": "BNB"
                    }
                ],
                "summary": "Sent 0.1091 BNB to 0x00...1000",
                "possible_spam": false,
                "category": "send",
                "internal_transactions": []
            },
            {
                "hash": "0x593667361b8b2b32dcaae961ac2fe8d30a11be252179ed21b7d9d6e614e14ab3",
                "nonce": "3",
                "transaction_index": "110",
                "from_address_entity": null,
                "from_address_entity_logo": null,
                "from_address": "0xee226379db83cffc681495730c11fdde79ba4c0c",
                "from_address_label": "Validator: InfStones",
                "to_address_entity": null,
                "to_address_entity_logo": null,
                "to_address": "0x0000000000000000000000000000000000001000",
                "to_address_label": "BSC: Validator Set",
                "value": "227866518525848953",
                "gas": "9223372036854775807",
                "gas_price": "0",
                "receipt_cumulative_gas_used": "29486842",
                "receipt_gas_used": "17150",
                "receipt_contract_address": null,
                "receipt_status": "1",
                "block_timestamp": "2021-03-24T00:13:50.000Z",
                "block_number": "5945687",
                "block_hash": "0x255037342170f0fecc4adba66f5a6b2e6853c1c6a2676f341a486437779166c1",
                "transaction_fee": "0",
                "method_label": "deposit",
                "nft_transfers": [],
                "erc20_transfers": [],
                "native_transfers": [
                    {
                        "from_address_entity": null,
                        "from_address_entity_logo": null,
                        "from_address": "0xee226379db83cffc681495730c11fdde79ba4c0c",
                        "from_address_label": "Validator: InfStones",
                        "to_address_entity": null,
                        "to_address_entity_logo": null,
                        "to_address": "0x0000000000000000000000000000000000001000",
                        "to_address_label": "BSC: Validator Set",
                        "value": "227866518525848953",
                        "value_formatted": "0.22786651852584897",
                        "direction": "send",
                        "internal_transaction": false,
                        "token_symbol": "BNB"
                    }
                ],
                "summary": "Sent 0.2278 BNB to 0x00...1000",
                "possible_spam": false,
                "category": "send",
                "internal_transactions": []
            },
            {
                "hash": "0xa6aabde6255181ca590a557c81888f17331cac2fd9452737bcc493bfc37f7610",
                "nonce": "4",
                "transaction_index": "86",
                "from_address_entity": null,
                "from_address_entity_logo": null,
                "from_address": "0xee226379db83cffc681495730c11fdde79ba4c0c",
                "from_address_label": "Validator: InfStones",
                "to_address_entity": null,
                "to_address_entity_logo": null,
                "to_address": "0x0000000000000000000000000000000000001000",
                "to_address_label": "BSC: Validator Set",
                "value": "122092667761713637",
                "gas": "9223372036854775807",
                "gas_price": "0",
                "receipt_cumulative_gas_used": "29501029",
                "receipt_gas_used": "17150",
                "receipt_contract_address": null,
                "receipt_status": "1",
                "block_timestamp": "2021-03-24T00:14:53.000Z",
                "block_number": "5945708",
                "block_hash": "0xef05bd74255976e877a9e4c9fb1d14407bb9c1cedab0e41a0a68d3bfc8f1cd7d",
                "transaction_fee": "0",
                "method_label": "deposit",
                "nft_transfers": [],
                "erc20_transfers": [],
                "native_transfers": [
                    {
                        "from_address_entity": null,
                        "from_address_entity_logo": null,
                        "from_address": "0xee226379db83cffc681495730c11fdde79ba4c0c",
                        "from_address_label": "Validator: InfStones",
                        "to_address_entity": null,
                        "to_address_entity_logo": null,
                        "to_address": "0x0000000000000000000000000000000000001000",
                        "to_address_label": "BSC: Validator Set",
                        "value": "122092667761713637",
                        "value_formatted": "0.12209266776171364",
                        "direction": "send",
                        "internal_transaction": false,
                        "token_symbol": "BNB"
                    }
                ],
                "summary": "Sent 0.122 BNB to 0x00...1000",
                "possible_spam": false,
                "category": "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 ](/ids/chain-ids)page for details.      |
| chainSymbol                                      | String | Refer to the [Chain ID ](/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" : "56",
    "rawTransaction": "0xf86f048433918fbe830493e0949b79d6dfe4650d70f35dbb80f7d1ec0cf7f823fd87038d7ea4c6800084022794382da0c9bd6b5c7e18a258b04039d524a3e1382ec0f522d160dc027428933f520b6868a07332736f1df297842299230820626f1fc5b8d4cdd602ade55e3ba02c63e756ce"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId" : "56",
        "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 ](/ids/chain-ids)page for details. By default, Ethereum. |
| chainSymbol                                      | String | Refer to the [Chain ID ](/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": "56",
    "rawTransaction": "0xf86a80843b9aca00830a3d8794a67e9b68c41b0f26184d64c26e0b2b81466e599485e8d4a51000808193a0d10d1098d97c6ee39ef89aeccfce05e5c736da024f5a6d9973fb0cfffd585e95a006117e1c44a882403df404cd8509c5bc7f8bd0f9425d306c46c6642d0ebb3f82"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "parsedTx": {
            "nonce": 0,
            "gasPrice": {
                "type": "BigNumber",
                "hex": "0x3b9aca00"
            },
            "gasLimit": {
                "type": "BigNumber",
                "hex": "0x0a3d87"
            },
            "to": "0xa67E9B68c41b0f26184D64C26e0b2B81466E5994",
            "value": {
                "type": "BigNumber",
                "hex": "0xe8d4a51000"
            },
            "data": "0x",
            "chainId": 56,
            "v": 147,
            "r": "0xd10d1098d97c6ee39ef89aeccfce05e5c736da024f5a6d9973fb0cfffd585e95",
            "s": "0x06117e1c44a882403df404cd8509c5bc7f8bd0f9425d306c46c6642d0ebb3f82",
            "from": "0xa67E9B68c41b0f26184D64C26e0b2B81466E5994",
            "hash": "0xc646c843f859ad3478ff4ce9d31a17917b474b99d7c5ba81491197af4006dbf6",
            "type": null
        },
        "assetChanges": {
            "from": "0xa67E9B68c41b0f26184D64C26e0b2B81466E5994",
            "to": "0xa67E9B68c41b0f26184D64C26e0b2B81466E5994",
            "value": {
                "type": "BigNumber",
                "hex": "0xe8d4a51000"
            }
        }
    }
}
```

{% endtab %}
{% endtabs %}


# Avalanche - C

### /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="168">Name</th><th width="99">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</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" %}

```url
https://api.expand.network/chain/getbalance?chainId=43114&blockNumber=46286930&address=0x555CE236C0220695b68341bc48C68d52210cC35b&tokenAddress=0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E
```

{% endtab %}

{% tab title="Sample Response" %}

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

{% 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 ](/ids/chain-ids)page for details.                                                                         |
| chainSymbol                               | String | Refer to the [Chain ID ](/ids/chain-ids)page for details.                                                                         |
| blockNumber                               | String | The block number or block hash.                                                                                                   |
| startBlock                                | String | SStarting block of the range. Note: Maximum supported range is 10, meaning the startBlock is determined by endBlock - 9.          |
| endBlock                                  | String | <p>Last block of the range. </p><p>Note: Maximum supported range is 10, meaning the endBlock is determined by startBlock + 9.</p> |

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

```
https://historicallp.api.expand.network/chain/getblock?chainId=43114
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
  "status": 200,
  "msg": "success",
  "data": {
    "blocks": [
      {
        "blockExtraData": "0x",
        "difficulty": "1",
        "extDataHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
        "extraData": "0xd883010916846765746888676f312e31352e35856c696e75780c856f1a19acb66a35be8afd8e0eb52b6ba956dcc1be47b3ff08e1994c531ac1",
        "gasLimit": 8000000,
        "gasUsed": 32113,
        "hash": "0x1b2ff9eb4347a8754f145963b4392e74b16331259ca4759e619d666c9c481183",
        "logsBloom": "0x00000000000000000000000000000000000100000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000008000001000000000000000000000000000000000000000000000000000000000000000000000080000000000000000010000000000000000000000400000000000000000000000000000000000000000004000000000000001000000000000000000000000000000000000000000000000000000000000002000000000001000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000",
        "miner": "0x0100000000000000000000000000000000000000",
        "mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
        "nonce": "0x0000000000000000",
        "number": 19001,
        "parentHash": "0xd93375ff4142bf28fb839c4273c4dfda813c1052fbe4bce09d99f85b3397d52d",
        "receiptsRoot": "0x0989ba3b91aa784d6e95d44b4f855e085b6e25e775442a1479fb4d85d53d375e",
        "size": 782,
        "timestamp": 1609456476,
        "totalDifficulty": "19001",
        "transactions": [
          {
            "chainId": "43114",
            "hash": "0x6dc7c9e23547cda2eb15b666201c8faa250091e3822345449a00d43ebc07db89",
            "transactionStatus": true,
            "blockNumber": "19001",
            "timestamp": null,
            "from": "0xaE7c8d805d05aCE4E05B93B6359AdD421E325C33",
            "to": "0xcB65daD78320a8d15Ad8a88001324e4e163ca534",
            "value": "0",
            "transactionFees": "15093110000000000",
            "gas": "32113",
            "gasPrice": "470000000000",
            "input": "0xa9059cbb00000000000000000000000077c31cd409fce1984abe6f23743bf6046de4b9e00000000000000000000000000000000000000000000000000000000000000fff",
            "nonce": 4512,
            "type": null,
            "network": null,
            "v": "0x150f8",
            "r": "0xddd6689404f35066dbed919d1ceca65673d6b66ab40e2127cd99d8b6e8d36a8a",
            "s": "0x459bb80f8b3ad1245a97094f4c8c39554e0473e20f6db5182ba8a94a4aef29ad",
            "yParity": null,
            "transactionIndex": null,
            "accessList": null,
            "maxFeePerGas": null,
            "maxPriorityFeePerGas": null,
            "logs": [
              {
                "address": "0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E",
                "topics": [
                  "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
                  "0x0000000000000000000000008f66c4ae756bebc49ec8b81966dd8bba9f127549",
                  "0x00000000000000000000000093606829ceeabff5d3234fdb2968be03174c9c24"
                ],
                "data": "0x000000000000000000000000000000000000000000000000000000003b654402",
                "blockNumber": 45551810,
                "transactionHash": "0x30c4f7b1f927560f2d7faae4604c3c193005637897fa44a90df6497121bb4c8d",
                "transactionIndex": 0,
                "blockHash": "0xa1860cc85b126e928736972760941a68dbdabfc6187379f59287bbaa82a7818e",
                "logIndex": 0,
                "removed": false,
                "id": "log_08da991b"
              }
            ]
          }
        ],
        "transactionsRoot": "0x8ca037a0dad66bafb827fb455e82244ae83dd362dd7e120775f026b0234db7fc",
        "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 ](/ids/chain-ids)page for details. |
| chainSymbol                               | String | Refer to the [Chain ID ](/ids/chain-ids)page for details. |

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

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

{% endtab %}

{% tab title="Sample Response" %}

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

{% 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 ](/ids/chain-ids)page for details.        |
| chainSymbol                               | String | Refer to the [Chain ID ](/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=43114&address=0x919dF3aDbF5cfC9fcfd43198EDFe5aA5561CB456
```

{% endtab %}

{% tab title="Sample Response" %}

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

{% 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 ](/ids/chain-ids)page for details. |
| chainSymbol                                       | String | Refer to the [Chain ID ](/ids/chain-ids)page for details. |
| transactionHash<mark style="color:red;">\*</mark> | String | The transaction hash.                                     |

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

```
https://api.expand.network/chain/gettransaction?chainId=43114&transactionHash=0x832963961420faccbce52926d3dbe27e435ea916ccc7debb65c855cd18120143
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
  "status": 200,
  "msg": "success",
  "data": {
    "chainId": "43114",
    "hash": "0x832963961420faccbce52926d3dbe27e435ea916ccc7debb65c855cd18120143",
    "transactionStatus": true,
    "blockNumber": "33133735",
    "timestamp": null,
    "from": "0x23b64B4792a8EE4501Ae43357c36703457AA40C8",
    "to": "0xD85b5E176A30EdD1915D6728FaeBD25669b60d8b",
    "value": "40383985111293828",
    "transactionFees": "11617575000000000",
    "gas": "534681",
    "gasPrice": "25000000000",
    "input": "0xe55856660000000000000000000000000000000000000000000000000000000000000004000000000000000000000000ca9c40c8690e816482ccafe8b1eae460ba4c8ea7000000000000000000000000000000000000000000000000000000000003ca550000000000000000000000000000000000000000000000000000004089b07fa200000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000006000000000000000000000000023b64b4792a8ee4501ae43357c36703457aa40c800000000000000000000000023b64b4792a8ee4501ae43357c36703457aa40c80000000000000000000000000000000000000000000000000000000000000001",
    "nonce": 55,
    "type": 2,
    "network": null,
    "v": "0x0",
    "r": "0x2cd55ee7c5ebb08f55ed0f3bc80b1223a4fdd6a80846b1b2cee2ca75bed1875c",
    "s": "0x62ec6bec8f723b62ad399142aaaa964072e8c864008ff990a83f84027ce0c871",
    "yParity": null,
    "transactionIndex": 8,
    "accessList": [],
    "maxFeePerGas": "31250000000",
    "maxPriorityFeePerGas": "0",
    "logs": [
      {
        "address": "0xcA9c40C8690e816482cCafE8b1eaE460bA4C8ea7",
        "blockHash": "0xfa61ebd3800c4727e03a3afa9013c632695fbbb6a59cf2c6a2607c770745c7d0",
        "blockNumber": 33133735,
        "data": "0x",
        "logIndex": 31,
        "removed": false,
        "topics": [
          "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
          "0x00000000000000000000000023b64b4792a8ee4501ae43357c36703457aa40c8",
          "0x0000000000000000000000000000000000000000000000000000000000000000",
          "0x0000000000000000000000000000000000000000000000000000000000000001"
        ],
        "transactionHash": "0x832963961420faccbce52926d3dbe27e435ea916ccc7debb65c855cd18120143",
        "transactionIndex": 8,
        "id": "log_b55815f5"
      },
      {
        "address": "0x9c120F9281308D71C838F8FADB41a82Bfc7ffFEF",
        "blockHash": "0xfa61ebd3800c4727e03a3afa9013c632695fbbb6a59cf2c6a2607c770745c7d0",
        "blockNumber": 33133735,
        "data": "0x00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000080351b8d13789e4d8d2717631559251955685881a31494dd0b8b19b4ef8530bb6d00000000000000000000000023b64b4792a8ee4501ae43357c36703457aa40c800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001",
        "logIndex": 32,
        "removed": false,
        "topics": [
          "0xb4d3a3f85e85fdbd1d39f939d8c75355ec33ef437522432fe1a7b8b20bb4fab4",
          "0x000000000000000000000000ca9c40c8690e816482ccafe8b1eae460ba4c8ea7"
        ],
        "transactionHash": "0x832963961420faccbce52926d3dbe27e435ea916ccc7debb65c855cd18120143",
        "transactionIndex": 8,
        "id": "log_56a65a89"
      },
      {
        "address": "0xCD2E3622d483C7Dc855F72e5eafAdCD577ac78B4",
        "blockHash": "0xfa61ebd3800c4727e03a3afa9013c632695fbbb6a59cf2c6a2607c770745c7d0",
        "blockNumber": 33133735,
        "data": "0x000000000000000000000000000000000000000000000000005795cbf46629d6",
        "logIndex": 33,
        "removed": false,
        "topics": [
          "0xdf21c415b78ed2552cc9971249e32a053abce6087a0ae0fbf3f78db5174a3493"
        ],
        "transactionHash": "0x832963961420faccbce52926d3dbe27e435ea916ccc7debb65c855cd18120143",
        "transactionIndex": 8,
        "id": "log_9ae24065"
      },
      {
        "address": "0x4D73AdB72bC3DD368966edD0f0b2148401A178E2",
        "blockHash": "0xfa61ebd3800c4727e03a3afa9013c632695fbbb6a59cf2c6a2607c770745c7d0",
        "blockNumber": 33133735,
        "data": "0x0000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000220001000000000000000000000000000000000000000000000000000000000001f5f4000000000000000000000000000000000000000000000000000000000000",
        "logIndex": 34,
        "removed": false,
        "topics": [
          "0xb0c632f55f1e1b3b2c3d82f41ee4716bb4c00f0f5d84cdafc141581bb8757a4f"
        ],
        "transactionHash": "0x832963961420faccbce52926d3dbe27e435ea916ccc7debb65c855cd18120143",
        "transactionIndex": 8,
        "id": "log_7540523d"
      },
      {
        "address": "0x5a54fe5234E811466D5366846283323c954310B2",
        "blockHash": "0xfa61ebd3800c4727e03a3afa9013c632695fbbb6a59cf2c6a2607c770745c7d0",
        "blockNumber": 33133735,
        "data": "0x000000000000000000000000000000000000000000000000000000000000006d0000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000006f484eacd997d9880205af22f6a4881ea0e1ccd70000000000000000000000000000000000000000000000000001aae2afd8acce",
        "logIndex": 35,
        "removed": false,
        "topics": [
          "0x4e41ee13e03cd5e0446487b524fdc48af6acf26c074dacdbdfb6b574b42c8146"
        ],
        "transactionHash": "0x832963961420faccbce52926d3dbe27e435ea916ccc7debb65c855cd18120143",
        "transactionIndex": 8,
        "id": "log_3c26e2ce"
      },
      {
        "address": "0x4D73AdB72bC3DD368966edD0f0b2148401A178E2",
        "blockHash": "0xfa61ebd3800c4727e03a3afa9013c632695fbbb6a59cf2c6a2607c770745c7d0",
        "blockNumber": 33133735,
        "data": "0x000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000003180000000000012b60006a6f484eacd997d9880205af22f6a4881ea0e1ccd7006d6f484eacd997d9880205af22f6a4881ea0e1ccd716f1be70000000000000000000000000000000000000000000000000000000000003e3d40000000000000000000000000000000000000000000000000000000000000003000000000000000000000000ca9c40c8690e816482ccafe8b1eae460ba4c8ea70000000000000000000000007692f71caa72985ca81f395c9b1e0ccbd48445950000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001925cb010db48c00000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000018000000000000000000000000023b64b4792a8ee4501ae43357c36703457aa40c800000000000000000000000023b64b4792a8ee4501ae43357c36703457aa40c80000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000007f73742e6465706f73697470686f746f732e636f6d2f323230383332302f323239372f762f3338302f6465706f73697470686f746f735f32323937383235342d73746f636b2d696c6c757374726174696f6e2d6f6e652d626c75652d706c616e65742d64650000000000000000000000009c120f9281308d71c838f8fadb41a82b000000000000000000000000000000000000000000000000000000000003ca550000000000000000000000000000000000000000000000000000004089b07fa20000000000000000",
        "logIndex": 36,
        "removed": false,
        "topics": [
          "0xe9bded5f24a4168e4f3bf44e00298c993b22376aad8c58c7dda9718a54cbea82"
        ],
        "transactionHash": "0x832963961420faccbce52926d3dbe27e435ea916ccc7debb65c855cd18120143",
        "transactionIndex": 8,
        "id": "log_4164def0"
      },
      {
        "address": "0xE8303f9b7d7a3DE35F8c9B4405411c5EbfaF4c2c",
        "blockHash": "0xfa61ebd3800c4727e03a3afa9013c632695fbbb6a59cf2c6a2607c770745c7d0",
        "blockNumber": 33133735,
        "data": "0xf6e9b414bdd7ebfb577c7ae88654ffeb9e95d5844f9391dde84610d1267e0ecb",
        "logIndex": 37,
        "removed": false,
        "topics": [
          "0x0f5759b4182507dcfc771071166f98d7ca331262e5134eaa74b676adce2138b7"
        ],
        "transactionHash": "0x832963961420faccbce52926d3dbe27e435ea916ccc7debb65c855cd18120143",
        "transactionIndex": 8,
        "id": "log_db46b75f"
      }
    ]
  }
}
```

{% 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="/pages/5o1xMsQPqXw9GBfGTpdB">Chain ID </a>page for details.</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>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=43114&address=0x341dc441D0540166A26b98d1960DD2f997e378eA&availableOnly=true
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "native": "183750000000000",
        "evmTokens": [
            {
                "name": "Lava Degen ID",
                "symbol": "SDD",
                "decimals": "0",
                "address": "0xb8ee8ce133100033b1bdd03cb4cc2bdebf781b6d",
                "balance": "1",
                "assetType": "ERC721",
                "tokenId": "4227"
            }
        ]
    }
}
```

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

| Name                                      | Type   | Description                                                     |
| ----------------------------------------- | ------ | --------------------------------------------------------------- |
| rpc                                       | String | Remote procedural call URL.                                     |
| chainId<mark style="color:red;">\*</mark> | String | Refer to the [Chain ID ](/ids/chain-ids)page for details.       |
| chainSymbol                               | String | Refer to the [Chain ID ](/ids/chain-ids)page for details.       |
| address<mark style="color:red;">\*</mark> | String | Comma-separated value of user addresses.                        |
| endBlock                                  | String | Last block of the range.                                        |
| startBlock                                | String | Starting block of the range.                                    |
| pageToken                                 | String | The next page's token. Can be found at the end of the response. |
| sortOrder                                 | String | <p>The transaction sorting order. <br>asc or desc.</p>          |

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

```url
https://historicallp.api.expand.network/chain/getusertransactions?startBlock=37838200&endBlock=37838250&chainSymbol=c-avax&address=0xBEBA4cE6DfC24820a994eCE4e25f023976Dcd979
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "transactions": [
            {
                "nativeTransaction": {
                    "blockNumber": "37838218",
                    "blockIndex": 1,
                    "blockHash": "0xa90a9fae3b80de5ada2baa9313d5f22a36f9bcac4ab85e926d5af53f0017bea9",
                    "txHash": "0x54852168aec81e25228077a05ccb2717a102df5ddac44a9148323bd557a5a92e",
                    "txStatus": "1",
                    "txType": 2,
                    "gasLimit": "300000",
                    "gasUsed": "133593",
                    "gasPrice": "81000000000",
                    "nonce": "4249",
                    "blockTimestamp": 1700136217,
                    "from": {
                        "address": "0xBEBA4cE6DfC24820a994eCE4e25f023976Dcd979"
                    },
                    "to": {
                        "address": "0x60aE616a2155Ee3d9A68541Ba4544862310933d4"
                    },
                    "method": {
                        "callType": "CONTRACT_CALL",
                        "methodHash": "0x8a657e67",
                        "methodName": "swapAVAXForExactTokens(uint256,address[],address,uint256)"
                    },
                    "value": "1640955933498300000"
                },
                "erc20Transfers": [
                    {
                        "from": {
                            "address": "0xCDFD91eEa657cc2701117fe9711C9a4F61FEED23"
                        },
                        "to": {
                            "address": "0xBEBA4cE6DfC24820a994eCE4e25f023976Dcd979"
                        },
                        "logIndex": 6,
                        "value": "1623065279150000000000",
                        "erc20Token": {
                            "ercType": "ERC-20",
                            "address": "0x22d4002028f537599bE9f666d1c4Fa138522f9c8",
                            "name": "Platypus",
                            "symbol": "PTP",
                            "decimals": 18,
                            "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/06600fa5-b70b-48c7-a3bb-437d70952216/fa231762bdbc2c0b391f885d89e32d02/43114-0x22d4002028f537599bE9f666d1c4Fa138522f9c8.png",
                            "price": {
                                "value": 0.014573,
                                "currencyCode": "usd"
                            }
                        }
                    }
                ],
                "internalTransactions": [
                    {
                        "from": {
                            "address": "0x60aE616a2155Ee3d9A68541Ba4544862310933d4"
                        },
                        "to": {
                            "address": "0xBEBA4cE6DfC24820a994eCE4e25f023976Dcd979"
                        },
                        "internalTxType": "CALL",
                        "value": "102213470370951213",
                        "isReverted": false,
                        "gasUsed": "0",
                        "gasLimit": "164253"
                    }
                ]
            }
        ]
    }
}
```

{% 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 ](/ids/chain-ids)page for details.      |
| chainSymbol                                      | String | Refer to the [Chain ID ](/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" : "43114",
    "rawTransaction": "0xf86f048433918fbe830493e0949b79d6dfe4650d70f35dbb80f7d1ec0cf7f823fd87038d7ea4c6800084022794382da0c9bd6b5c7e18a258b04039d524a3e1382ec0f522d160dc027428933f520b6868a07332736f1df297842299230820626f1fc5b8d4cdd602ade55e3ba02c63e756ce"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId" : "43114",
        "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 ](/ids/chain-ids)page for details. By default, Ethereum. |
| chainSymbol                                      | String | Refer to the [Chain ID ](/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": "43114",
    "rawTransaction": "0xf86c808505d21dba00830a3d8794f73ee0e06a1b8ec3a7ff860d766e75f3eea7b985843b9aca0080830150f7a084e67381cbe0ef549cba454b7b252b324cc5d7a05be4e67a8f8242e71ec0bc39a07cd18e29ccc04a5cc34c886a8df02400c5432341a99559fcaed8bad622450b70"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "parsedTx": {
            "nonce": 0,
            "gasPrice": {
                "type": "BigNumber",
                "hex": "0x05d21dba00"
            },
            "gasLimit": {
                "type": "BigNumber",
                "hex": "0x0a3d87"
            },
            "to": "0xF73eE0e06a1B8Ec3A7Ff860D766E75f3EEA7b985",
            "value": {
                "type": "BigNumber",
                "hex": "0x3b9aca00"
            },
            "data": "0x",
            "chainId": 43114,
            "v": 86263,
            "r": "0x84e67381cbe0ef549cba454b7b252b324cc5d7a05be4e67a8f8242e71ec0bc39",
            "s": "0x7cd18e29ccc04a5cc34c886a8df02400c5432341a99559fcaed8bad622450b70",
            "from": "0xa67E9B68c41b0f26184D64C26e0b2B81466E5994",
            "hash": "0x9a0f46a0d7adbfc10fa6eb0bf6b625472f59d02ebc1288f64f50ec4bb005c1ba",
            "type": null
        },
        "assetChanges": {
            "from": "0xa67E9B68c41b0f26184D64C26e0b2B81466E5994",
            "to": "0xF73eE0e06a1B8Ec3A7Ff860D766E75f3EEA7b985",
            "value": {
                "type": "BigNumber",
                "hex": "0x3b9aca00"
            }
        }
    }
}
```

{% endtab %}
{% endtabs %}


# Avalanche - P

### **/gethistoricalrewards**

Get the historical transaction details focusing on staking rewards for a specific user address.

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

#### Query Parameters

| Name                                      | Type   | Description                                                     |
| ----------------------------------------- | ------ | --------------------------------------------------------------- |
| rpc                                       | String | Remote procedural call URL.                                     |
| chainId<mark style="color:red;">\*</mark> | String | Refer to the [Chain ID ](/ids/chain-ids)page for details.       |
| chainSymbol                               | String | Refer to the [Chain ID ](/ids/chain-ids)page for details.       |
| address<mark style="color:red;">\*</mark> | String | Comma-separated value of user addresses.                        |
| pageToken                                 | String | The next page's token. Can be found at the end of the response. |
| sortOrder                                 | String | <p>The transaction sorting order. <br>asc or desc.</p>          |

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

```url
https://api.expand.network/chain/gethistoricalrewards?chainSymbol=p-AVAx&address=avax189rs3vx07p5y7uu27lk52vltksjue980fevxgm&sortOrder=asc
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "historicalRewards": [
            {
                "addresses": [
                    "avax189rs3vx07p5y7uu27lk52vltksjue980fevxgm"
                ],
                "txHash": "21Ji5iD9v3oDmZBBmZt591akrk3YMG27yRK5ArXNhhvrSJi5zs",
                "utxoId": "2KDPLiCTuZGovZKtBD4hStFV6nvhSDKEMmjeXn9fKoGmq3i81m",
                "outputIndex": 1,
                "amountStaked": "4958623659071",
                "nodeId": "NodeID-HpMSfYT2ox1vkr1hFNMwmdWuq8QWhvH2u",
                "startTimestamp": 1699954003,
                "endTimestamp": 1701164176,
                "reward": {
                    "assetId": "FvwEAhmxKfeiG8SnEvq42hc6whRyY3EFYAvebMqDNDGCgxN5Z",
                    "name": "Avalanche",
                    "symbol": "AVAX",
                    "denomination": 9,
                    "type": "secp256k1",
                    "amount": "12275074035"
                },
                "rewardType": "DELEGATOR",
                "rewardTxHash": "2YhfzVxmGJjCejS4vkgyEwNwHXHKLn7rfVu5rFviwdEXpMXLYS"
            }
        ]
    }
}
```

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

| Name                                      | Type   | Description                                                     |
| ----------------------------------------- | ------ | --------------------------------------------------------------- |
| rpc                                       | String | Remote procedural call URL.                                     |
| chainId<mark style="color:red;">\*</mark> | String | Refer to the [Chain ID ](/ids/chain-ids)page for details.       |
| chainSymbol                               | String | Refer to the [Chain ID ](/ids/chain-ids)page for details.       |
| address<mark style="color:red;">\*</mark> | String | Comma-separated value of user addresses.                        |
| endBlock                                  | String | Last block of the range.                                        |
| startBlock                                | String | Starting block of the range.                                    |
| pageToken                                 | String | The next page's token. Can be found at the end of the response. |
| sortOrder                                 | String | <p>The transaction sorting order. <br>asc or desc.</p>          |

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

```url
https://historicallp.api.expand.network/chain/getusertransactions?chainSymbol=p-avax&address=avax1n70cnwt8tsjwgnq4m6xm3n9cqk0enw59jptawa
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "transactions": [
            {
                "txHash": "kkB6wavomFLVxeXgV55QaPVvipGrnJmA8woz9qAdX2Deut9gw",
                "txType": "AddDelegatorTx",
                "blockTimestamp": 1699945429,
                "blockNumber": "9852683",
                "blockHash": "2rwz34pyFgMuhTHvFY9ERR64atuzmpYks3TK28oBS1Psx8KHry",
                "memo": "0x",
                "rewardAddresses": [
                    "avax1ve4tyryp5mxe3m6s898lvlefg4ezrczvnn7mnn"
                ],
                "estimatedReward": "95136059",
                "startTimestamp": 1699945718,
                "endTimestamp": 1701760581,
                "nodeId": "NodeID-84XTAh1VM9QmfdewNnqFVhz2kbjrFvK4Y",
                "subnetId": "11111111111111111111111111111111LpoYY",
                "consumedUtxos": [
                    {
                        "addresses": [
                            "avax160zup7kq54s52ltfq2um5vu7uwdy8lxxm8pez9"
                        ],
                        "utxoId": "131snzt9LGg1kCDBhPf16HS7XDKbbevKNGYwoG5UVVnKfz3Pf",
                        "txHash": "29wbsRnSAhZ4DnbNTemMv1maW71n3tQPfUg2gzVXqrNzMZpYgx",
                        "outputIndex": 0,
                        "blockTimestamp": 1699945126,
                        "blockNumber": "9852560",
                        "consumingTxHash": "kkB6wavomFLVxeXgV55QaPVvipGrnJmA8woz9qAdX2Deut9gw",
                        "consumingBlockTimestamp": 1699945429,
                        "consumingBlockNumber": "9852683",
                        "assetId": "FvwEAhmxKfeiG8SnEvq42hc6whRyY3EFYAvebMqDNDGCgxN5Z",
                        "asset": {
                            "assetId": "FvwEAhmxKfeiG8SnEvq42hc6whRyY3EFYAvebMqDNDGCgxN5Z",
                            "name": "Avalanche",
                            "symbol": "AVAX",
                            "denomination": 9,
                            "type": "secp256k1",
                            "amount": "24610000000"
                        },
                        "utxoType": "TRANSFER",
                        "amount": "24610000000",
                        "platformLocktime": 0,
                        "threshold": 1,
                        "createdOnChainId": "11111111111111111111111111111111LpoYY",
                        "consumedOnChainId": "11111111111111111111111111111111LpoYY",
                        "staked": false
                    },
                    {
                        "addresses": [
                            "avax1n70cnwt8tsjwgnq4m6xm3n9cqk0enw59jptawa"
                        ],
                        "utxoId": "2miAzyiNFrGza2tCAbCudQZzeettdbK56sBnWnbKRC9DSHiLgh",
                        "txHash": "2vq35qTh4iqb5ZkzxiZsD6R6RoX245u4dzVsSgyqHdPLAJMWSY",
                        "outputIndex": 0,
                        "blockTimestamp": 1699945024,
                        "blockNumber": "9852548",
                        "consumingTxHash": "kkB6wavomFLVxeXgV55QaPVvipGrnJmA8woz9qAdX2Deut9gw",
                        "consumingBlockTimestamp": 1699945429,
                        "consumingBlockNumber": "9852683",
                        "assetId": "FvwEAhmxKfeiG8SnEvq42hc6whRyY3EFYAvebMqDNDGCgxN5Z",
                        "asset": {
                            "assetId": "FvwEAhmxKfeiG8SnEvq42hc6whRyY3EFYAvebMqDNDGCgxN5Z",
                            "name": "Avalanche",
                            "symbol": "AVAX",
                            "denomination": 9,
                            "type": "secp256k1",
                            "amount": "406841363"
                        },
                        "utxoType": "TRANSFER",
                        "amount": "406841363",
                        "platformLocktime": 0,
                        "threshold": 1,
                        "createdOnChainId": "11111111111111111111111111111111LpoYY",
                        "consumedOnChainId": "11111111111111111111111111111111LpoYY",
                        "staked": false
                    }
                ],
                "emittedUtxos": [
                    {
                        "addresses": [
                            "avax1ve4tyryp5mxe3m6s898lvlefg4ezrczvnn7mnn"
                        ],
                        "utxoId": "24bbri5KJbNz3uG16hLhrzrKq44noATLrVPhyr51DYVBT5j4gg",
                        "txHash": "kkB6wavomFLVxeXgV55QaPVvipGrnJmA8woz9qAdX2Deut9gw",
                        "outputIndex": 0,
                        "blockTimestamp": 1699945429,
                        "blockNumber": "9852683",
                        "assetId": "FvwEAhmxKfeiG8SnEvq42hc6whRyY3EFYAvebMqDNDGCgxN5Z",
                        "asset": {
                            "assetId": "FvwEAhmxKfeiG8SnEvq42hc6whRyY3EFYAvebMqDNDGCgxN5Z",
                            "name": "Avalanche",
                            "symbol": "AVAX",
                            "denomination": 9,
                            "type": "secp256k1",
                            "amount": "25016841363"
                        },
                        "utxoType": "TRANSFER",
                        "amount": "25016841363",
                        "platformLocktime": 0,
                        "threshold": 1,
                        "createdOnChainId": "11111111111111111111111111111111LpoYY",
                        "consumedOnChainId": "11111111111111111111111111111111LpoYY",
                        "staked": true,
                        "utxoStartTimestamp": 1699945718,
                        "utxoEndTimestamp": 1701760581
                    }
                ],
                "value": [
                    {
                        "assetId": "FvwEAhmxKfeiG8SnEvq42hc6whRyY3EFYAvebMqDNDGCgxN5Z",
                        "name": "Avalanche",
                        "symbol": "AVAX",
                        "denomination": 9,
                        "type": "secp256k1",
                        "amount": "25016841363"
                    }
                ],
                "amountBurned": [
                    {
                        "assetId": "FvwEAhmxKfeiG8SnEvq42hc6whRyY3EFYAvebMqDNDGCgxN5Z",
                        "name": "Avalanche",
                        "symbol": "AVAX",
                        "denomination": 9,
                        "type": "secp256k1",
                        "amount": "0"
                    }
                ],
                "amountStaked": [
                    {
                        "assetId": "FvwEAhmxKfeiG8SnEvq42hc6whRyY3EFYAvebMqDNDGCgxN5Z",
                        "name": "Avalanche",
                        "symbol": "AVAX",
                        "denomination": 9,
                        "type": "secp256k1",
                        "amount": "25016841363"
                    }
                ]
            },
            {
                "txHash": "2vq35qTh4iqb5ZkzxiZsD6R6RoX245u4dzVsSgyqHdPLAJMWSY",
                "txType": "ImportTx",
                "blockTimestamp": 1699945024,
                "blockNumber": "9852548",
                "blockHash": "RK258J8Pn3tKxQzcYAPxnE8RSJ2AWkTmFwJzhcS8Q9STTDYRh",
                "sourceChain": "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5",
                "destinationChain": "11111111111111111111111111111111LpoYY",
                "memo": "0x",
                "consumedUtxos": [
                    {
                        "addresses": [
                            "avax1n70cnwt8tsjwgnq4m6xm3n9cqk0enw59jptawa"
                        ],
                        "utxoId": "jqNLomDdiWSQDHYotDU1RcHgo4VtNmYmM8eaBiJEe7vXKuK2P",
                        "txHash": "fetvPgXzjphbuEjAp4ezAv4he9zSrhMgpA2mNJJU9MLGbrX88",
                        "outputIndex": 0,
                        "blockTimestamp": 1699945009,
                        "blockNumber": "37742387",
                        "consumingTxHash": "2vq35qTh4iqb5ZkzxiZsD6R6RoX245u4dzVsSgyqHdPLAJMWSY",
                        "consumingBlockTimestamp": 1699945024,
                        "consumingBlockNumber": "9852548",
                        "assetId": "FvwEAhmxKfeiG8SnEvq42hc6whRyY3EFYAvebMqDNDGCgxN5Z",
                        "asset": {
                            "assetId": "FvwEAhmxKfeiG8SnEvq42hc6whRyY3EFYAvebMqDNDGCgxN5Z",
                            "name": "Avalanche",
                            "symbol": "AVAX",
                            "denomination": 9,
                            "type": "secp256k1",
                            "amount": "407841363"
                        },
                        "utxoType": "TRANSFER",
                        "amount": "407841363",
                        "threshold": 1,
                        "createdOnChainId": "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5",
                        "consumedOnChainId": "11111111111111111111111111111111LpoYY",
                        "staked": false
                    }
                ],
                "emittedUtxos": [
                    {
                        "addresses": [
                            "avax1n70cnwt8tsjwgnq4m6xm3n9cqk0enw59jptawa"
                        ],
                        "utxoId": "2miAzyiNFrGza2tCAbCudQZzeettdbK56sBnWnbKRC9DSHiLgh",
                        "txHash": "2vq35qTh4iqb5ZkzxiZsD6R6RoX245u4dzVsSgyqHdPLAJMWSY",
                        "outputIndex": 0,
                        "blockTimestamp": 1699945024,
                        "blockNumber": "9852548",
                        "consumingTxHash": "kkB6wavomFLVxeXgV55QaPVvipGrnJmA8woz9qAdX2Deut9gw",
                        "consumingBlockTimestamp": 1699945429,
                        "consumingBlockNumber": "9852683",
                        "assetId": "FvwEAhmxKfeiG8SnEvq42hc6whRyY3EFYAvebMqDNDGCgxN5Z",
                        "asset": {
                            "assetId": "FvwEAhmxKfeiG8SnEvq42hc6whRyY3EFYAvebMqDNDGCgxN5Z",
                            "name": "Avalanche",
                            "symbol": "AVAX",
                            "denomination": 9,
                            "type": "secp256k1",
                            "amount": "406841363"
                        },
                        "utxoType": "TRANSFER",
                        "amount": "406841363",
                        "platformLocktime": 0,
                        "threshold": 1,
                        "createdOnChainId": "11111111111111111111111111111111LpoYY",
                        "consumedOnChainId": "11111111111111111111111111111111LpoYY",
                        "staked": false
                    }
                ],
                "value": [
                    {
                        "assetId": "FvwEAhmxKfeiG8SnEvq42hc6whRyY3EFYAvebMqDNDGCgxN5Z",
                        "name": "Avalanche",
                        "symbol": "AVAX",
                        "denomination": 9,
                        "type": "secp256k1",
                        "amount": "406841363"
                    }
                ],
                "amountBurned": [
                    {
                        "assetId": "FvwEAhmxKfeiG8SnEvq42hc6whRyY3EFYAvebMqDNDGCgxN5Z",
                        "name": "Avalanche",
                        "symbol": "AVAX",
                        "denomination": 9,
                        "type": "secp256k1",
                        "amount": "1000000"
                    }
                ],
                "amountStaked": [
                    {
                        "assetId": "FvwEAhmxKfeiG8SnEvq42hc6whRyY3EFYAvebMqDNDGCgxN5Z",
                        "name": "Avalanche",
                        "symbol": "AVAX",
                        "denomination": 9,
                        "type": "secp256k1",
                        "amount": "0"
                    }
                ]
            }
        ]
    }
}
```

{% endtab %}
{% endtabs %}


# Avalanche - X

### **/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

| Name                                      | Type   | Description                                                     |
| ----------------------------------------- | ------ | --------------------------------------------------------------- |
| rpc                                       | String | Remote procedural call URL.                                     |
| chainId<mark style="color:red;">\*</mark> | String | Refer to the [Chain ID ](/ids/chain-ids)page for details.       |
| chainSymbol                               | String | Refer to the [Chain ID ](/ids/chain-ids)page for details.       |
| address<mark style="color:red;">\*</mark> | String | Comma-separated value of user addresses.                        |
| endBlock                                  | String | Last block of the range.                                        |
| startBlock                                | String | Starting block of the range.                                    |
| pageToken                                 | String | The next page's token. Can be found at the end of the response. |
| sortOrder                                 | String | <p>The transaction sorting order. <br>asc or desc.</p>          |

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

```url
https://historicallp.api.expand.network/chain/getusertransactions?chainSymbol=X-AVAX&address=avax1tnuesf6cqwnjw7fxjyk7lhch0vhf0v95wj5jvy
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
  "status": 200,
  "msg": "success",
  "data": {
      "transactions": [
        {
          "txHash": "2n83BAtdJtoy879aXZUy7eaeHqzj3xnVqiqUaHwGgBszchtRaz",
          "chainFormat": "linear",
          "blockHash": "hLFoBAsNpSvURSzgrd2DoB2f5Zr9zRt9jtfPcDtu7Hr8esRr8",
          "txType": "ExportTx",
          "timestamp": 1701683089,
          "sourceChain": "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
          "destinationChain": "11111111111111111111111111111111LpoYY",
          "memo": "0x",
          "consumedUtxos": [
              {
                  "addresses": [
                      "avax1tnuesf6cqwnjw7fxjyk7lhch0vhf0v95wj5jvy"
                  ],
                  "utxoId": "2dKqf9Hu82YryDU92qztDpQgxhkMfZBXEzBifMwxUsirce8LC4",
                  "asset": {
                      "assetId": "FvwEAhmxKfeiG8SnEvq42hc6whRyY3EFYAvebMqDNDGCgxN5Z",
                      "name": "Avalanche",
                      "symbol": "AVAX",
                      "denomination": 9,
                      "type": "secp256k1",
                      "amount": "959500419"
                  },
                  "utxoType": "transfer",
                  "outputIndex": "1",
                  "timestamp": 1701683089,
                  "creationTxHash": "xu3EKKVrFsNZBZNM3XQHwy5Hk9w8PYtuxuvmgdverGzAMXVSK",
                  "consumingTxHash": "2n83BAtdJtoy879aXZUy7eaeHqzj3xnVqiqUaHwGgBszchtRaz",
                  "consumingTxTimestamp": 1701683089,
                  "locktime": 0,
                  "threshold": 1,
                  "createdOnChainId": "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
                  "consumedOnChainId": "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
                  "credentials": [
                      {
                          "publicKey": "A6rT2g4cHByzSOLz+Mrx+ONJCEbmfioBs8wmia9yy/yQ",
                          "signature": "gR36XcB+V4tglUGlw5gdm7Ega14VPDZW29lSyo6HZNV9A8CaOTVxhz8gIDOGS+dsFnZ0Tc/ZMmMTxzjUrwKbjQE"
                      }
                  ]
              }
          ],
          "emittedUtxos": [
              {
                  "addresses": [
                      "avax1tnuesf6cqwnjw7fxjyk7lhch0vhf0v95wj5jvy"
                  ],
                  "utxoId": "HXQN6KqpXerAEtYu2yThUcyRcaYcLfRgemftQYZk9ntGUfKEm",
                  "asset": {
                      "assetId": "FvwEAhmxKfeiG8SnEvq42hc6whRyY3EFYAvebMqDNDGCgxN5Z",
                      "name": "Avalanche",
                      "symbol": "AVAX",
                      "denomination": 9,
                      "type": "secp256k1",
                      "amount": "958500419"
                  },
                  "utxoType": "transfer",
                  "outputIndex": "0",
                  "timestamp": 1701683089,
                  "creationTxHash": "2n83BAtdJtoy879aXZUy7eaeHqzj3xnVqiqUaHwGgBszchtRaz",
                  "consumingTxHash": "sq17XDAKyUo7PbCXgRLjG1bntT5fnBZResbDbpSTkKdn1juCf",
                  "consumingTxTimestamp": 1701683096,
                  "locktime": 0,
                  "threshold": 1,
                  "createdOnChainId": "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
                  "consumedOnChainId": "11111111111111111111111111111111LpoYY",
                  "credentials": [
                      {
                          "publicKey": "A6rT2g4cHByzSOLz+Mrx+ONJCEbmfioBs8wmia9yy/yQ",
                          "signature": "C7A8FaG+WLn+f6aMUdhzEcQHi8fFiBF7+fOw/PDwcOsvInV9DlFuUEkCkuUDSFBJjZQlmHqWjEHuNEv8HczMNQA"
                      }
                  ]
              }
          ],
          "amountUnlocked": [
              {
                  "assetId": "FvwEAhmxKfeiG8SnEvq42hc6whRyY3EFYAvebMqDNDGCgxN5Z",
                  "name": "Avalanche",
                  "symbol": "AVAX",
                  "denomination": 9,
                  "type": "secp256k1",
                  "amount": "959500419"
              }
          ],
          "amountCreated": [
              {
                  "assetId": "FvwEAhmxKfeiG8SnEvq42hc6whRyY3EFYAvebMqDNDGCgxN5Z",
                  "name": "Avalanche",
                  "symbol": "AVAX",
                  "denomination": 9,
                  "type": "secp256k1",
                  "amount": "958500419"
              }
          ],
          "blockNumber": 201271
      }
      ],
      "nextPageToken": "a3fb08da-29df-460c-9125-f574364cf298"
  }
}
```

{% endtab %}
{% endtabs %}


# Polygon

### /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="170">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="/pages/5o1xMsQPqXw9GBfGTpdB">Chain ID </a>page for details. </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>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=137&blockNumber=58664722&address=0x804a712AD5BB31756B4Cd6Ee58176dce06594845&tokenAddress=0xD9a1070f832Cc02ff9d839500EEf6E8c64983726
```

{% endtab %}

{% tab title="Sample Response" %}

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

{% 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 ](/ids/chain-ids)page for details.                                                                         |
| chainSymbol                               | String | Refer to the [Chain ID ](/ids/chain-ids)page for details.                                                                         |
| blockNumber                               | String | The block number or block hash.                                                                                                   |
| startBlock                                | String | Starting block of the range. Note: Maximum supported range is 10, meaning the startBlock is determined by endBlock - 9.           |
| endBlock                                  | String | <p>Last block of the range. </p><p>Note: Maximum supported range is 10, meaning the endBlock is determined by startBlock + 9.</p> |

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

```url
https://historicallp.api.expand.network/chain/getblock?chainId=137
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
  "status": 200,
  "msg": "success",
  "data": {
    "blocks": [
      {
        "baseFeePerGas": 163,
        "difficulty": "22",
        "extraData": "0xd78301030283626f7288676f312e32322e32856c696e75780000000000000000f8af80f8acc0c0c180c0c103c103c102c106c0c0c0c109c0c0c10dc0c0c0c0c107c110c0c113c116c0c0c0c0c11bc11cc117c0c11ec120c121c122c115c11dc11ec0c127c128c129c0c12bc0c12dc124c12fc10ec11ec0c0c0c114c130c21e36c12ac139c0c138c0c0c123c13fc137c141c13cc140c142c0c145c0c336323cc13ac147c148c0c146c14cc14bc150c151c152c22049c153c155c14ec156c158c0c14ac159c15cc15dc15ec25426c14fc1443f95b0e2658d0a333261aacc19052ffeb562b1b764c365f291e23dfcad7475226b14d65cfbb8a7f737beb2309e5e8e98f67ae33177c542d93dd8810c0193a53301",
        "gasLimit": 29650224,
        "gasUsed": 18481855,
        "hash": "0xbc0fd190e6d842e3f9a9b68d363bda1942bb91dd73f2a79cf2434e10fd14c84e",
        "logsBloom": "0xfdad2df7d01f5621f3477068d2bc85d6ef5158082085beb5d2b6e1e0a95cef34eedab3031ecbf54007ad31dfbf5c41fdfc73ca07efc7ec7ce23b519ab866e8602a9d28747c22cae834d49e7fad21a0f53f2c5565c16d2ba8ee1fad16eb2f3ee852ced233060bfed4dd311a175008f99f840c88f87a952c2de7ade2729bbfa803d45f05eaf8cc32813bb6b60b8df128af7683bf85117309da70092465d340b316eb7cc9059c75733f8ba02f78c9d377f5fb6f6d5c553dcbdcac7ff20ba2fc0f47ebf9886f44d68bc9150bfe34fad8acffdc66b7517c29b5de32b79bce0f5d682ea71c1e848f2d0d7be454cd2f9e94b164ace815559bcc9a59e22fcfa80a964f0c",
        "miner": "0x0000000000000000000000000000000000000000",
        "mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
        "nonce": "0x0000000000000000",
        "number": 57071123,
        "parentHash": "0x2b683a396333e3ec6e3ce1247b9791496e0a8c244ffb6f0451066738470c3d2c",
        "receiptsRoot": "0xf57f985e2d957c1f7f3da8452a547c58916d47d1a233b5c5653952961b4342a6",
        "size": 44030,
        "timestamp": 1715950159,
        "totalDifficulty": "1048705840",
        "transactions": [
          {
            "chainId": "137",
            "hash": "0x94c299c20e077a7c24f9a908ca033224960a6d583694341a9cd65af7b2def38a",
            "transactionStatus": false,
            "blockNumber": "57071123",
            "timestamp": null,
            "from": "0x7ae81d3d0659014A6F68153bE2B755342Bb9Af6F",
            "to": "0xe957a692C97566EfC85f995162Fa404091232B2E",
            "value": "0",
            "transactionFees": "47144625000000000",
            "gas": "233004",
            "gasPrice": "825000000000",
            "input": "0xa1305b17000000000000000000000000463bf105015eac010aa1d556eaf27205dcb1c7dd000000000000000000000000dc3a1d0db41d9cbc43abb61ee627d675f3730b2b000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000220000000000000000000000000000000000000000000000000608bf676b6867a710000000000000000000000003273623099651a2818b35ac4b4cf27de0f17451900000000000000000000000000000000000000000000000000000000000002a000000000000000000000000000000000000000000000000000000000000000e43266df5b000000000000000000000000924f446ba367474ebc71b804ed33aee22c6c17d90000000000000000000000000000000042a29359f5c84e10af109e33582d5e0a000000000000000000003a7e16c173c56532a31b4de8095a9e314a5505bbad97000000000000000000000000000000000000000000000000000000000000000500000000000000000000000000000000000000000000000000000000000000a9000000000000000000000000aea458c6b3eb38051afc433b4fa960a30b539b560000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000041b8898de08486f68359fba1ac73cd6f06045a2bb117eccde92a07832eede2c099517b46cb8095c1f5791e254c42ef301eae9a78081af73ac6f68c829bb89aba881c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000041e6a097233fc0d5a70900f3131bf9170e1d313638f45dcb33773f9d2e3bdb1f2f4d06804c7ac066c2566e95589e90d348ab35455d0afe5e4465a45e4a3df64f211c00000000000000000000000000000000000000000000000000000000000000",
            "nonce": 7828,
            "type": 2,
            "network": null,
            "v": "0x1",
            "r": "0x9066028074f2ff9aabda3ee271abd066e5645214c666ab661a3737568bb0bbb8",
            "s": "0x30621484fd39791b20d19b7f5d04ad5c49e8d6e03ef42bdaa0484b3307092cf1",
            "yParity": "0x1",
            "transactionIndex": null,
            "accessList": [],
            "maxFeePerGas": "825000000000",
            "maxPriorityFeePerGas": "825000000000",
            "logs": [
              {
                "address": "0x0000000000000000000000000000000000001010",
                "topics": [
                  "0x4dfe1bbbcf077ddc3e01291eea2d5c70c2b422b415d95645b9adcfd678cb1d63",
                  "0x0000000000000000000000000000000000000000000000000000000000001010",
                  "0x0000000000000000000000007ae81d3d0659014a6f68153be2b755342bb9af6f",
                  "0x0000000000000000000000009ead03f7136fc6b4bdb0780b00a1c14ae5a8b6d0"
                ],
                "data": "0x00000000000000000000000000000000000000000000000000a77dc961a388b5000000000000000000000000000000000000000000000002b6aa87802142b38100000000000000000000000000000000000000000000066729b33d63538e9924000000000000000000000000000000000000000000000002b60309b6bf9f2acc0000000000000000000000000000000000000000000006672a5abb2cb53221d9",
                "blockNumber": 57071123,
                "transactionHash": "0x94c299c20e077a7c24f9a908ca033224960a6d583694341a9cd65af7b2def38a",
                "transactionIndex": 0,
                "blockHash": "0xbc0fd190e6d842e3f9a9b68d363bda1942bb91dd73f2a79cf2434e10fd14c84e",
                "logIndex": 0,
                "removed": false,
                "id": "log_2653a8b9"
              }
            ],
            "transactionsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
            "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 ](/ids/chain-ids)page for details. |
| chainSymbol                               | String | Refer to the [Chain ID ](/ids/chain-ids)page for details. |

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

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

{% endtab %}

{% tab title="Sample Response" %}

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

{% 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 ](/ids/chain-ids)page for details.        |
| chainSymbol                               | String | Refer to the [Chain ID ](/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=137&address=0xb33EaAd8d922B1083446DC23f610c2567fB5180f
```

{% endtab %}

{% tab title="Sample Response" %}

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

{% 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 ](/ids/chain-ids)page for details. |
| chainSymbol                                       | String | Refer to the [Chain ID ](/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=137&transactionHash=0xee44d837079754929b0ef0e9752de8c78f0da4a601d3c61a7ac6660cb78f06e4
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
  "status": 200,
  "msg": "success",
  "data": {
    "chainId": "137",
    "hash": "0xee44d837079754929b0ef0e9752de8c78f0da4a601d3c61a7ac6660cb78f06e4",
    "transactionStatus": true,
    "blockNumber": "38721087",
    "timestamp": null,
    "from": "0xF91AfA7840F692F4c6f7830fB48e97561a72c884",
    "to": null,
    "value": "0",
    "transactionFees": "1273608000000000000",
    "gas": "24000000",
    "gasPrice": "300000000000",
    "input": "0x608060405234801561001057600080fd5b50614bd3806100206000396000f3fe608060405234801561001057600080fd5b50600436106102695760003560e01c80636352211e11610151578063a7042855116100c3578063dcec329411610087578063dcec3294146105be578063e985e9c5146105de578063f03109fa1461061a578063f2fde38b1461062d578063f4bbcb2914610640578063f6aacfb11461065357600080fd5b8063a704285514610551578063b88d4fde14610572578063c87b56dd14610585578063cd4bf15114610598578063ce65aff8146105ab57600080fd5b80638da5cb5b116101155780638da5cb5b146104c257806391c79cd7146104d3578063956236411461050f57806395d89b411461052357806399b7c4011461052b578063a22cb4651461053e57600080fd5b80636352211e1461044657806367b73c7d1461045957806370a0823114610494578063715018a6146104a75780637cc53570146104af57600080fd5b8063278d0fd9116101ea5780634ce17b86116101ae5780634ce17b86146103bd5780634def0453146103d05780634e1e4880146103e357806350c0bc58146103f6578063510b5158146104095780635493f09a1461043357600080fd5b8063278d0fd91461035d578063352f988214610371578063393febfa1461038457806342842e0e1461039757806342966c68146103aa57600080fd5b8063121cba1911610231578063121cba19146102fe578063179a9c0f146103115780632016a0d21461032457806323b872dd14610337578063262473941461034a57600080fd5b806301ffc9a71461026e57806305b42c271461029657806306fdde03146102a9578063081812fc146102be578063095ea7b3146102e9575b600080fd5b61028161027c366004613d1d565b610675565b60405190151581526020015b60405180910390f35b6102816102a4366004613d3a565b6106f1565b6102b161087f565b60405161028d9190613da3565b6102d16102cc366004613d3a565b610911565b6040516001600160a01b03909116815260200161028d565b6102fc6102f7366004613ddb565b610938565b005b6102d161030c366004613d3a565b610a52565b6102fc61031f366004613ddb565b610b49565b6102fc610332366004613e4f565b610cb9565b6102fc610345366004613ee3565b610ec7565b6102fc610358366004613ddb565b610ef9565b61022d546102d1906001600160a01b031681565b6102b161037f366004613d3a565b611034565b6102fc610392366004613f24565b6110d9565b6102fc6103a5366004613ee3565b611123565b6102fc6103b8366004613d3a565b61113e565b6102d16103cb366004613d3a565b61116c565b6102fc6103de366004614069565b6111de565b6102fc6103f13660046140d3565b6113f9565b6102fc6104043660046140ff565b6115e2565b6102d1610417366004613d3a565b600090815261016260205260409020546001600160a01b031690565b6102fc61044136600461415d565b61181b565b6102d1610454366004613d3a565b611962565b6104866104673660046140d3565b1515600090815261016460209081526040808320938352929052205490565b60405190815260200161028d565b6104866104a2366004614192565b6119c2565b6102fc611a48565b6102b16104bd366004613d3a565b611a5c565b6033546001600160a01b03166102d1565b6102816104e13660046141af565b6001600160a01b03918216600090815260cb6020908152604080832093909416825291909152205460ff1690565b61022c546102d1906001600160a01b031681565b6102b1611beb565b6102fc6105393660046141e8565b611bfa565b6102fc61054c366004614233565b611c1a565b61056461055f36600461425f565b611c25565b60405161028d929190614294565b6102fc610580366004614318565b611e2d565b6102b1610593366004613d3a565b611e5f565b6102fc6105a63660046143a8565b611e6a565b6102fc6105b936600461445a565b61232d565b6104866105cc366004613d3a565b60c96020526000908152604090205481565b6102816105ec3660046141af565b6001600160a01b039182166000908152609c6020908152604080832093909416825291909152205460ff1690565b6102fc610628366004614551565b61258b565b6102fc61063b366004614192565b612671565b6102fc61064e366004614233565b6126e7565b610281610661366004613d3a565b600090815260c96020526040902054421090565b60006001600160e01b031982166390478cd760e01b14806106a657506001600160e01b0319821663cf9a665f60e01b145b806106c157506001600160e01b0319821663c8f12ba760e01b145b806106dc57506001600160e01b03198216632b59e54960e21b145b806106eb57506106eb826126f2565b92915050565b600081815261013060209081526040808320815160c0810183528154815260018201546001600160a01b03811694820194909452600160a01b90930460ff169183019190915260028101805484939291606084019161074f906145ae565b80601f016020809104026020016040519081016040528092919081815260200182805461077b906145ae565b80156107c85780601f1061079d576101008083540402835291602001916107c8565b820191906000526020600020905b8154815290600101906020018083116107ab57829003601f168201915b505050505081526020016003820180546107e1906145ae565b80601f016020809104026020016040519081016040528092919081815260200182805461080d906145ae565b801561085a5780601f1061082f5761010080835404028352916020019161085a565b820191906000526020600020905b81548152906001019060200180831161083d57829003601f168201915b50505091835250506004919091015460ff16151560209091015260a001519392505050565b60606097805461088e906145ae565b80601f01602080910402602001604051908101604052809291908181526020018280546108ba906145ae565b80156109075780601f106108dc57610100808354040283529160200191610907565b820191906000526020600020905b8154815290600101906020018083116108ea57829003601f168201915b5050505050905090565b600061091c82612717565b506000908152609b60205260409020546001600160a01b031690565b600061094382611962565b9050806001600160a01b0316836001600160a01b0316036109b55760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084015b60405180910390fd5b336001600160a01b03821614806109d157506109d181336105ec565b610a435760405162461bcd60e51b815260206004820152603d60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c00000060648201526084016109ac565b610a4d8383612767565b505050565b6000610a5d826127d5565b610abd5760405162461bcd60e51b815260206004820152602b60248201527f4552433732314c3a206c6f636b657220717565727920666f72206e6f6e65786960448201526a39ba32b73a103a37b5b2b760a91b60648201526084016109ac565b600082815260c960205260409020544210610b2d5760405162461bcd60e51b815260206004820152602a60248201527f4552433732314c3a206c6f636b657220717565727920666f72206e6f6e2d6c6f60448201526931b5b2b2103a37b5b2b760b11b60648201526084016109ac565b50600090815260ca60205260409020546001600160a01b031690565b600081815260c96020526040902054421015610ba25760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c530e881d1bdad95b881a5cc81b1bd8dad95960421b60448201526064016109ac565b6000610bad82611962565b9050806001600160a01b0316836001600160a01b031603610c205760405162461bcd60e51b815260206004820152602760248201527f4552433732314c3a206c6f636b20617070726f76616c20746f2063757272656e6044820152663a1037bbb732b960c91b60648201526084016109ac565b336001600160a01b0382161480610c3c5750610c3c81336104e1565b610cae5760405162461bcd60e51b815260206004820152603e60248201527f4552433732314c3a206c6f636b20617070726f76652063616c6c65722069732060448201527f6e6f74206f776e6572206e6f7220617070726f76656420666f7220616c6c000060648201526084016109ac565b610a4d8184846127f2565b600054610100900460ff1615808015610cd95750600054600160ff909116105b80610cf35750303b158015610cf3575060005460ff166001145b610d565760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084016109ac565b6000805460ff191660011790558015610d79576000805461ff0019166101001790555b610dec85858080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525050604080516020601f8901819004810282018101909252878152925087915086908190840183828082843760009201919091525061284e92505050565b610df461287f565b610dfc6128ae565b6001600160a01b0387161580610e1957506001600160a01b038616155b15610e37576040516317d69aff60e11b815260040160405180910390fd5b61022c80546001600160a01b03808a166001600160a01b03199283161790925561022d805492891692909116919091179055610e7861022a80546001019055565b8015610ebe576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b50505050505050565b610ed2335b826128dd565b610eee5760405162461bcd60e51b81526004016109ac906145e2565b610a4d83838361295c565b33610f0382610a52565b6001600160a01b031614610f6d5760405162461bcd60e51b815260206004820152602b60248201527f4552433732314c3a20756e6c6f636b2063616c6c6572206973206e6f74206c6f60448201526a31b59037b832b930ba37b960a91b60648201526084016109ac565b816001600160a01b0316610f8082611962565b6001600160a01b031614610fe25760405162461bcd60e51b8152602060048201526024808201527f4552433732314c3a20756e6c6f636b2066726f6d20696e636f7272656374206f6044820152633bb732b960e11b60648201526084016109ac565b610fea565b50565b600081815260c960205260408082208290555182916001600160a01b0385169133917fe6e0ef9cd056ca98561ca60e347ada61e1ede2f1142a078951b7a52e1e508e6091a45b5050565b60008181526101c66020526040812080546060929190611053906145ae565b80601f016020809104026020016040519081016040528092919081815260200182805461107f906145ae565b80156110cc5780601f106110a1576101008083540402835291602001916110cc565b820191906000526020600020905b8154815290600101906020018083116110af57829003601f168201915b5093979650505050505050565b6111198886868080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250612acd92505050565b5050505050505050565b610a4d83838360405180602001604052806000815250611e2d565b61114733610ecc565b6111635760405162461bcd60e51b81526004016109ac906145e2565b610fe781612b51565b6000611177826127d5565b610b2d5760405162461bcd60e51b815260206004820152603260248201527f4552433732314c3a206c6f636b20617070726f76656420717565727920666f72604482015271103737b732bc34b9ba32b73a103a37b5b2b760711b60648201526084016109ac565b600082815261013060209081526040808320815160c0810183528154815260018201546001600160a01b03811694820194909452600160a01b90930460ff1691830191909152600281018054606084019190611239906145ae565b80601f0160208091040260200160405190810160405280929190818152602001828054611265906145ae565b80156112b25780601f10611287576101008083540402835291602001916112b2565b820191906000526020600020905b81548152906001019060200180831161129557829003601f168201915b505050505081526020016003820180546112cb906145ae565b80601f01602080910402602001604051908101604052809291908181526020018280546112f7906145ae565b80156113445780601f1061131957610100808354040283529160200191611344565b820191906000526020600020905b81548152906001019060200180831161132757829003601f168201915b50505091835250506004919091015460ff90811615156020928301526060830185815260008781526101308452604090819020855181559385015160018501805492870151909416600160a01b026001600160a81b03199092166001600160a01b03909116171790915551919250829160028201906113c3908261467d565b50608082015160038201906113d8908261467d565b5060a091909101516004909101805460ff1916911515919091179055505050565b600082815261013060209081526040808320815160c0810183528154815260018201546001600160a01b03811694820194909452600160a01b90930460ff1691830191909152600281018054606084019190611454906145ae565b80601f0160208091040260200160405190810160405280929190818152602001828054611480906145ae565b80156114cd5780601f106114a2576101008083540402835291602001916114cd565b820191906000526020600020905b8154815290600101906020018083116114b057829003601f168201915b505050505081526020016003820180546114e6906145ae565b80601f0160208091040260200160405190810160405280929190818152602001828054611512906145ae565b801561155f5780601f106115345761010080835404028352916020019161155f565b820191906000526020600020905b81548152906001019060200180831161154257829003601f168201915b50505091835250506004919091015460ff908116151560209283015284151560a084015260008681526101308352604090819020845181559284015160018401805492860151909316600160a01b026001600160a81b03199092166001600160a01b03909116171790556060820151919250829160028201906113c3908261467d565b6115ea612b5a565b600084815261013060209081526040808320815160c0810183528154815260018201546001600160a01b03811694820194909452600160a01b90930460ff1691830191909152600281018054606084019190611645906145ae565b80601f0160208091040260200160405190810160405280929190818152602001828054611671906145ae565b80156116be5780601f10611693576101008083540402835291602001916116be565b820191906000526020600020905b8154815290600101906020018083116116a157829003601f168201915b505050505081526020016003820180546116d7906145ae565b80601f0160208091040260200160405190810160405280929190818152602001828054611703906145ae565b80156117505780601f1061172557610100808354040283529160200191611750565b820191906000526020600020905b81548152906001019060200180831161173357829003601f168201915b50505091835250506004919091015460ff1615156020918201528101519091506001600160a01b031633146117c75760405162461bcd60e51b815260206004820152601860248201527f416d6265726669436f6e74656e743a20546f6f2068696768000000000000000060448201526064016109ac565b6000858152610130602052604090206002016117e484868361473c565b50506000938452610130602052604090932060010180546001600160a01b0319166001600160a01b03909416939093179092555050565b6118253383612bb4565b6118885760405162461bcd60e51b815260206004820152602e60248201527f4552433732314c3a206c6f636b2063616c6c6572206973206e6f74206f776e6560448201526d1c881b9bdc88185c1c1c9bdd995960921b60648201526084016109ac565b4281116118fd5760405162461bcd60e51b815260206004820152603f60248201527f4552433732314c3a20657870697265642074696d65206d75737420626520677260448201527f6561746572207468616e2063757272656e7420626c6f636b206e756d6265720060648201526084016109ac565b600082815260c960205260409020544210156119565760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c530e881d1bdad95b881a5cc81b1bd8dad95960421b60448201526064016109ac565b610a4d33848484612c91565b6000818152609960205260408120546001600160a01b0316806106eb5760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b60448201526064016109ac565b60006001600160a01b038216611a2c5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b60648201526084016109ac565b506001600160a01b03166000908152609a602052604090205490565b611a50612b5a565b611a5a6000612d79565b565b600081815261013060209081526040808320815160c0810183528154815260018201546001600160a01b03811694820194909452600160a01b90930460ff169183019190915260028101805460609493929185840191611abb906145ae565b80601f0160208091040260200160405190810160405280929190818152602001828054611ae7906145ae565b8015611b345780601f10611b0957610100808354040283529160200191611b34565b820191906000526020600020905b815481529060010190602001808311611b1757829003601f168201915b50505050508152602001600382018054611b4d906145ae565b80601f0160208091040260200160405190810160405280929190818152602001828054611b79906145ae565b8015611bc65780601f10611b9b57610100808354040283529160200191611bc6565b820191906000526020600020905b815481529060010190602001808311611ba957829003601f168201915b50505091835250506004919091015460ff161515602090910152606001519392505050565b60606098805461088e906145ae565b60008381526101c660205260409020611c1482848361473c565b50505050565b611030338383612dcb565b6060806000611c4e86851515600090815261016460209081526040808320938352929052205490565b905080600003611c985760405162461bcd60e51b815260206004820152601560248201527413919514185e5bdd5d1cce881b9bc81c185e5bdd5d605a1b60448201526064016109ac565b806001600160401b03811115611cb057611cb0613fde565b604051908082528060200260200182016040528015611cd9578160200160208202803683370190505b509250806001600160401b03811115611cf457611cf4613fde565b604051908082528060200260200182016040528015611d1d578160200160208202803683370190505b50915060005b81811015611e23578415156000908152610163602090815260408083208a84529091529020805482908110611d5a57611d5a6147fb565b60009182526020909120015484516001600160a01b0390911690859083908110611d8657611d866147fb565b6001600160a01b03929092166020928302919091018201528515156000908152610163825260408082208a8352909252208054612710919083908110611dce57611dce6147fb565b600091825260209091200154611df490600160a01b90046001600160601b031688614827565b611dfe919061483e565b838281518110611e1057611e106147fb565b6020908102919091010152600101611d23565b5050935093915050565b611e3733836128dd565b611e535760405162461bcd60e51b81526004016109ac906145e2565b611c1484848484612e9a565b60606106eb82612ecd565b600087815261013060209081526040808320815160c0810183528154815260018201546001600160a01b03811694820194909452600160a01b90930460ff1691830191909152600281018054606084019190611ec5906145ae565b80601f0160208091040260200160405190810160405280929190818152602001828054611ef1906145ae565b8015611f3e5780601f10611f1357610100808354040283529160200191611f3e565b820191906000526020600020905b815481529060010190602001808311611f2157829003601f168201915b50505050508152602001600382018054611f57906145ae565b80601f0160208091040260200160405190810160405280929190818152602001828054611f83906145ae565b8015611fd05780601f10611fa557610100808354040283529160200191611fd0565b820191906000526020600020905b815481529060010190602001808311611fb357829003601f168201915b50505091835250506004919091015460ff1615156020918201528101519091506001600160a01b03161580612011575060208101516001600160a01b031633145b61205d5760405162461bcd60e51b815260206004820152601b60248201527f416d6265726669456e6372797074696f6e3a20546f6f2068696768000000000060448201526064016109ac565b600083838080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050606084015182519293509115801591506120ad57508051155b806120c35750600081511180156120c357508151155b806120d95750600081511180156120d957508151155b61214b5760405162461bcd60e51b815260206004820152603860248201527f416d6265726669456e6372797074696f6e3a20436f6e74656e742073746f726160448201527f67652063616e2774206265206f7665727772697474656e20000000000000000060648201526084016109ac565b87151560a084015260ff891660408085019190915280516020601f8701819004810282018101909252858152908690869081908401838280828437600092018290525060608801949094525050506080840151604080516020601f8b01819004810282018101909252898152919291908a908a90819084018382808284376000920191909152509293508c925050811590506121e75750845115155b80156121f4575060008151115b1561226e5781511561226e5760405162461bcd60e51b815260206004820152603a60248201527f416d6265726669456e6372797074696f6e3a2043616e2774206368616e67652060448201527f686173682076616c7565206f66206d696e74656420746f6b656e00000000000060648201526084016109ac565b60208501516001600160a01b0316612287573360208601525b60008c8152610130602090815260409182902087518155908701516001820180549389015160ff16600160a01b026001600160a81b03199094166001600160a01b039092169190911792909217909155606086015186919060028201906122ee908261467d565b5060808201516003820190612303908261467d565b5060a091909101516004909101805460ff1916911515919091179055505050505050505050505050565b612335612fd5565b896000819003612365575061022a545b61234e816127d5565b15612365575061022a805460018101909155612345565b612370818686611bfa565b6123b08188888080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506111de92505050565b61022c546123c8906001600160a01b03166001611c1a565b6123f86001600160a01b038d16156123e0578c6123e2565b335b8260405180602001604052806000815250613030565b61240560008d8385612c91565b871561244b5761244b818a8a8080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250612acd92505050565b600061245a60208c018c614860565b915050801561247f5761247f826001838e806020019061247a9190614860565b613063565b600061248e60408d018d614860565b91505080156124ae576124ae836000838f806040019061247a9190614860565b6124c4836124bf60208f018f614192565b61327d565b61022d54604051630ef14b2960e01b81526001600160a01b0390911690630ef14b29906124fb9086908f908f908b906004016148d2565b600060405180830381600087803b15801561251557600080fd5b505af1158015612529573d6000803e3d6000fd5b505050508d6001600160a01b03167f4cc0a9c4a99ddc700de1af2c9f916a7cbfdb71f14801ccff94061ad1ef8a80408460405161256891815260200190565b60405180910390a250505061257e60016101f855565b5050505050505050505050565b61022d546001600160a01b03168063f0a3e7e8866125a881611e5f565b8787876040518663ffffffff1660e01b81526004016125cb959493929190614900565b600060405180830381600087803b1580156125e557600080fd5b505af11580156125f9573d6000803e3d6000fd5b50505050806001600160a01b031663e17f62c0338761261789611e5f565b60006040518563ffffffff1660e01b81526004016126389493929190614942565b600060405180830381600087803b15801561265257600080fd5b505af1158015612666573d6000803e3d6000fd5b505050505050505050565b612679612b5a565b6001600160a01b0381166126de5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016109ac565b610fe781612d79565b611030338383613302565b60006001600160e01b03198216632b59e54960e21b14806106eb57506106eb826133c8565b612720816127d5565b610fe75760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b60448201526064016109ac565b6000818152609b6020526040902080546001600160a01b0319166001600160a01b038416908117909155819061279c82611962565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000908152609960205260409020546001600160a01b0316151590565b600081815260ca602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fbd5378dc6d0395c338ca88b324966808490d6a9983bbc7a0f7a8429a44a3176291a4505050565b600054610100900460ff166128755760405162461bcd60e51b81526004016109ac90614998565b61103082826133ed565b600054610100900460ff166128a65760405162461bcd60e51b81526004016109ac90614998565b611a5a61342d565b600054610100900460ff166128d55760405162461bcd60e51b81526004016109ac90614998565b611a5a61345c565b6000806128e983611962565b9050806001600160a01b0316846001600160a01b0316148061293057506001600160a01b038082166000908152609c602090815260408083209388168352929052205460ff165b806129545750836001600160a01b031661294984610911565b6001600160a01b0316145b949350505050565b826001600160a01b031661296f82611962565b6001600160a01b0316146129955760405162461bcd60e51b81526004016109ac906149e3565b6001600160a01b0382166129f75760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016109ac565b612a048383836001613483565b826001600160a01b0316612a1782611962565b6001600160a01b031614612a3d5760405162461bcd60e51b81526004016109ac906149e3565b6000818152609b6020908152604080832080546001600160a01b03199081169091556001600160a01b03878116808652609a8552838620805460001901905590871680865283862080546001019055868652609990945282852080549092168417909155905184937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b612ad6826127d5565b612b395760405162461bcd60e51b815260206004820152602e60248201527f45524337323155524953746f726167653a2055524920736574206f66206e6f6e60448201526d32bc34b9ba32b73a103a37b5b2b760911b60648201526084016109ac565b600082815260fe60205260409020610a4d828261467d565b610fe78161348f565b6033546001600160a01b03163314611a5a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016109ac565b6000612bbf826127d5565b612c265760405162461bcd60e51b815260206004820152603260248201527f4552433732314c3a206c6f636b206f70657261746f7220717565727920666f72604482015271103737b732bc34b9ba32b73a103a37b5b2b760711b60648201526084016109ac565b6000612c3183611962565b9050806001600160a01b0316846001600160a01b03161480612c7857506001600160a01b03808216600090815260cb602090815260408083209388168352929052205460ff165b806129545750836001600160a01b03166129498461116c565b826001600160a01b0316612ca483611962565b6001600160a01b031614612d055760405162461bcd60e51b815260206004820152602260248201527f4552433732314c3a206c6f636b2066726f6d20696e636f7272656374206f776e60448201526132b960f11b60648201526084016109ac565b600082815260c96020908152604080832084905560ca82529182902080546001600160a01b031916331790558151838152915184926001600160a01b0387811693908916927f967ad762aa9070ada8db64577288e214771e89667066ae38e8750cb8a86c54299281900390910190a4611c14565b603380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b031603612e2c5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016109ac565b6001600160a01b038381166000818152609c6020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3191015b60405180910390a3505050565b612ea584848461295c565b612eb1848484846134cf565b611c145760405162461bcd60e51b81526004016109ac90614a28565b6060612ed882612717565b600082815260fe602052604081208054612ef1906145ae565b80601f0160208091040260200160405190810160405280929190818152602001828054612f1d906145ae565b8015612f6a5780601f10612f3f57610100808354040283529160200191612f6a565b820191906000526020600020905b815481529060010190602001808311612f4d57829003601f168201915b505050505090506000612f8860408051602081019091526000815290565b90508051600003612f9a575092915050565b815115612fcc578082604051602001612fb4929190614a7a565b60405160208183030381529060405292505050919050565b612954846135d0565b60026101f854036130285760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016109ac565b60026101f855565b61303a8383613644565b61304760008484846134cf565b610a4d5760405162461bcd60e51b81526004016109ac90614a28565b61306d85856137bf565b8315156000908152610164602090815260408083208884529091528120849055805b8481101561315e5760008484838181106130ab576130ab6147fb565b6130c19260206040909202019081019150614192565b6001600160a01b0316036131175760405162461bcd60e51b815260206004820152601c60248201527f4e46545061796f7574733a20696e76616c69642072656365697665720000000060448201526064016109ac565b838382818110613129576131296147fb565b90506040020160200160208101906131419190614abe565b613154906001600160601b031683614adb565b915060010161308f565b5084156131bb5761271081146131b65760405162461bcd60e51b815260206004820152601e60248201527f455243323938315061796f75743a20696e76616c6964207061796f757473000060448201526064016109ac565b61320d565b61271081111561320d5760405162461bcd60e51b815260206004820181905260248201527f455243323938315061796f75743a20696e76616c696420726f79616c7469657360448201526064016109ac565b60005b84811015610ebe578515156000908152610163602090815260408083208a84529091529020848483818110613247576132476147fb565b835460018101855560009485526020909420604090910292909201929190910190506132738282614aee565b5050600101613210565b6001600160a01b0381166132d35760405162461bcd60e51b815260206004820181905260248201527f4e46545061796f7574733a207a65726f2063726561746f72206164647265737360448201526064016109ac565b6000918252610162602052604090912080546001600160a01b0319166001600160a01b03909216919091179055565b816001600160a01b0316836001600160a01b0316036133635760405162461bcd60e51b815260206004820152601f60248201527f4552433732314c3a206c6f636b20617070726f766520746f2063616c6c65720060448201526064016109ac565b6001600160a01b03838116600081815260cb6020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527fbb3b2937fc41058c97e1ad0d0bbac3c664894dd823924eb7717d814fe700f0349101612e8d565b60006001600160e01b0319821663c8f12ba760e01b14806106eb57506106eb8261381b565b600054610100900460ff166134145760405162461bcd60e51b81526004016109ac90614998565b6097613420838261467d565b506098610a4d828261467d565b600054610100900460ff166134545760405162461bcd60e51b81526004016109ac90614998565b611a5a613840565b600054610100900460ff16611a5a5760405162461bcd60e51b81526004016109ac90614998565b611c148484848461386f565b613498816138fe565b600081815260fe6020526040902080546134b1906145ae565b159050610fe757600081815260fe60205260408120610fe791613c9a565b60006001600160a01b0384163b156135c557604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290613513903390899088908890600401614b30565b6020604051808303816000875af192505050801561354e575060408051601f3d908101601f1916820190925261354b91810190614b6d565b60015b6135ab573d80801561357c576040519150601f19603f3d011682016040523d82523d6000602084013e613581565b606091505b5080516000036135a35760405162461bcd60e51b81526004016109ac90614a28565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612954565b506001949350505050565b60606135db82612717565b60006135f260408051602081019091526000815290565b90506000815111613612576040518060200160405280600081525061363d565b8061361c84613940565b60405160200161362d929190614a7a565b6040516020818303038152906040525b9392505050565b6001600160a01b03821661369a5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016109ac565b6136a3816127d5565b156136f05760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016109ac565b6136fe600083836001613483565b613707816127d5565b156137545760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016109ac565b6001600160a01b0382166000818152609a6020908152604080832080546001019055848352609990915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b8015156000818152610164602090815260408083208684528252808320839055928252610163815282822085835290529081206137fb91613cd4565b5060009081526101626020526040902080546001600160a01b0319169055565b60006001600160e01b0319821663091b845760e41b14806106eb57506106eb826139d2565b600054610100900460ff166138675760405162461bcd60e51b81526004016109ac90614998565b611a5a6139f7565b61387b84848484613a27565b815b818110156138f757600081815260c960205260409020544210156138ef5760405162461bcd60e51b8152602060048201526024808201527f4552433732314c3a20746f6b656e207472616e73666572207768696c65206c6f60448201526318dad95960e21b60648201526084016109ac565b60010161387d565b5050505050565b600061390982611962565b905061391482613aaf565b50600090815260c96020908152604080832083905560ca909152902080546001600160a01b0319169055565b6060600061394d83613b52565b60010190506000816001600160401b0381111561396c5761396c613fde565b6040519080825280601f01601f191660200182016040528015613996576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a85049450846139a057509392505050565b60006001600160e01b031982166301ffc9a760e01b14806106eb57506106eb82613c2a565b600054610100900460ff16613a1e5760405162461bcd60e51b81526004016109ac90614998565b611a5a33612d79565b6001811115611c14576001600160a01b03841615613a6d576001600160a01b0384166000908152609a602052604081208054839290613a67908490614b8a565b90915550505b6001600160a01b03831615611c14576001600160a01b0383166000908152609a602052604081208054839290613aa4908490614adb565b909155505050505050565b6000613aba82611962565b9050613aca816000846001613483565b613ad382611962565b6000838152609b6020908152604080832080546001600160a01b03199081169091556001600160a01b038516808552609a845282852080546000190190558785526099909352818420805490911690555192935084927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b8310613b915772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310613bbd576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc100008310613bdb57662386f26fc10000830492506010015b6305f5e1008310613bf3576305f5e100830492506008015b6127108310613c0757612710830492506004015b60648310613c19576064830492506002015b600a83106106eb5760010192915050565b60006001600160e01b0319821663a80646d160e01b14806106eb57506106eb8260006001600160e01b031982166380ac58cd60e01b1480613c7b57506001600160e01b03198216635b5e139f60e01b145b806106eb57506301ffc9a760e01b6001600160e01b03198316146106eb565b508054613ca6906145ae565b6000825580601f10613cb6575050565b601f016020900490600052602060002090810190610fe79190613cee565b5080546000825590600052602060002090810190610fe791905b5b80821115613d035760008155600101613cef565b5090565b6001600160e01b031981168114610fe757600080fd5b600060208284031215613d2f57600080fd5b813561363d81613d07565b600060208284031215613d4c57600080fd5b5035919050565b60005b83811015613d6e578181015183820152602001613d56565b50506000910152565b60008151808452613d8f816020860160208601613d53565b601f01601f19169290920160200192915050565b60208152600061363d6020830184613d77565b6001600160a01b0381168114610fe757600080fd5b8035613dd681613db6565b919050565b60008060408385031215613dee57600080fd5b8235613df981613db6565b946020939093013593505050565b60008083601f840112613e1957600080fd5b5081356001600160401b03811115613e3057600080fd5b602083019150836020828501011115613e4857600080fd5b9250929050565b60008060008060008060808789031215613e6857600080fd5b8635613e7381613db6565b95506020870135613e8381613db6565b945060408701356001600160401b0380821115613e9f57600080fd5b613eab8a838b01613e07565b90965094506060890135915080821115613ec457600080fd5b50613ed189828a01613e07565b979a9699509497509295939492505050565b600080600060608486031215613ef857600080fd5b8335613f0381613db6565b92506020840135613f1381613db6565b929592945050506040919091013590565b60008060008060008060008060a0898b031215613f4057600080fd5b8835975060208901356001600160401b0380821115613f5e57600080fd5b613f6a8c838d01613e07565b909950975060408b0135915080821115613f8357600080fd5b613f8f8c838d01613e07565b909750955060608b0135915080821115613fa857600080fd5b50613fb58b828c01613e07565b909450925050608089013560058110613fcd57600080fd5b809150509295985092959890939650565b634e487b7160e01b600052604160045260246000fd5b60006001600160401b038084111561400e5761400e613fde565b604051601f8501601f19908116603f0116810190828211818310171561403657614036613fde565b8160405280935085815286868601111561404f57600080fd5b858560208301376000602087830101525050509392505050565b6000806040838503121561407c57600080fd5b8235915060208301356001600160401b0381111561409957600080fd5b8301601f810185136140aa57600080fd5b6140b985823560208401613ff4565b9150509250929050565b80358015158114613dd657600080fd5b600080604083850312156140e657600080fd5b823591506140f6602084016140c3565b90509250929050565b6000806000806060858703121561411557600080fd5b8435935060208501356001600160401b0381111561413257600080fd5b61413e87828801613e07565b909450925050604085013561415281613db6565b939692955090935050565b60008060006060848603121561417257600080fd5b833561417d81613db6565b95602085013595506040909401359392505050565b6000602082840312156141a457600080fd5b813561363d81613db6565b600080604083850312156141c257600080fd5b82356141cd81613db6565b915060208301356141dd81613db6565b809150509250929050565b6000806000604084860312156141fd57600080fd5b8335925060208401356001600160401b0381111561421a57600080fd5b61422686828701613e07565b9497909650939450505050565b6000806040838503121561424657600080fd5b823561425181613db6565b91506140f6602084016140c3565b60008060006060848603121561427457600080fd5b833592506020840135915061428b604085016140c3565b90509250925092565b604080825283519082018190526000906020906060840190828701845b828110156142d65781516001600160a01b0316845292840192908401906001016142b1565b5050508381038285015284518082528583019183019060005b8181101561430b578351835292840192918401916001016142ef565b5090979650505050505050565b6000806000806080858703121561432e57600080fd5b843561433981613db6565b9350602085013561434981613db6565b92506040850135915060608501356001600160401b0381111561436b57600080fd5b8501601f8101871361437c57600080fd5b61438b87823560208401613ff4565b91505092959194509250565b803560ff81168114613dd657600080fd5b600080600080600080600060a0888a0312156143c357600080fd5b873596506143d360208901614397565b95506143e1604089016140c3565b945060608801356001600160401b03808211156143fd57600080fd5b6144098b838c01613e07565b909650945060808a013591508082111561442257600080fd5b5061442f8a828b01613e07565b989b979a50959850939692959293505050565b60006060828403121561445457600080fd5b50919050565b60008060008060008060008060008060006101008c8e03121561447c57600080fd5b6144858c613dcb565b9a5060208c013599506001600160401b038060408e013511156144a757600080fd5b6144b78e60408f01358f01614442565b99508060608e013511156144ca57600080fd5b6144da8e60608f01358f01613e07565b909950975060808d01358110156144f057600080fd5b6145008e60808f01358f01613e07565b909750955060a08d013581101561451657600080fd5b506145278d60a08e01358e01613e07565b909450925061453860c08d01614397565b915060e08c013590509295989b509295989b9093969950565b6000806000806060858703121561456757600080fd5b8435935060208501356001600160401b0381111561458457600080fd5b61459087828801613e07565b90945092506145a3905060408601614397565b905092959194509250565b600181811c908216806145c257607f821691505b60208210810361445457634e487b7160e01b600052602260045260246000fd5b6020808252602d908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526c1c881bdc88185c1c1c9bdd9959609a1b606082015260800190565b601f821115610a4d57600081815260208120601f850160051c810160208610156146565750805b601f850160051c820191505b8181101561467557828155600101614662565b505050505050565b81516001600160401b0381111561469657614696613fde565b6146aa816146a484546145ae565b8461462f565b602080601f8311600181146146df57600084156146c75750858301515b600019600386901b1c1916600185901b178555614675565b600085815260208120601f198616915b8281101561470e578886015182559484019460019091019084016146ef565b508582101561472c5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6001600160401b0383111561475357614753613fde565b6147678361476183546145ae565b8361462f565b6000601f84116001811461479b57600085156147835750838201355b600019600387901b1c1916600186901b1783556138f7565b600083815260209020601f19861690835b828110156147cc57868501358255602094850194600190920191016147ac565b50868210156147e95760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b80820281158282048414176106eb576106eb614811565b60008261485b57634e487b7160e01b600052601260045260246000fd5b500490565b6000808335601e1984360301811261487757600080fd5b8301803591506001600160401b0382111561489157600080fd5b6020019150600681901b3603821315613e4857600080fd5b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b8481526060602082015260006148ec6060830185876148a9565b905060ff8316604083015295945050505050565b8581526080602082015260006149196080830187613d77565b828103604084015261492c8186886148a9565b91505060ff831660608301529695505050505050565b60018060a01b03851681528360208201526080604082015260006149696080830185613d77565b90506005831061498957634e487b7160e01b600052602160045260246000fd5b82606083015295945050505050565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b60208082526025908201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060408201526437bbb732b960d91b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60008351614a8c818460208801613d53565b835190830190614aa0818360208801613d53565b01949350505050565b6001600160601b0381168114610fe757600080fd5b600060208284031215614ad057600080fd5b813561363d81614aa9565b808201808211156106eb576106eb614811565b8135614af981613db6565b81546001600160a01b03199081166001600160a01b039290921691821783556020840135614b2681614aa9565b60a01b1617905550565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090614b6390830184613d77565b9695505050505050565b600060208284031215614b7f57600080fd5b815161363d81613d07565b818103818111156106eb576106eb61481156fea26469706673582212202e65ca342703b2175cdc4203f547b2814e97c891d740dd2e0c1b20d0b040043d64736f6c63430008110033",
    "nonce": 38,
    "type": null,
    "network": null,
    "v": "0x135",
    "r": "0xafd9284b94f646c0ef6ffe99fe657d713270c0c2c232e06470424684646d7ab3",
    "s": "0x233dac3eab054b9b3812a601009c73ea454e0353d5781b74610ba3d00509905",
    "yParity": null,
    "transactionIndex": 1,
    "accessList": null,
    "maxFeePerGas": null,
    "maxPriorityFeePerGas": null,
    "logs": [
      {
        "address": "0x0000000000000000000000000000000000001010",
        "topics": [
          "0x4dfe1bbbcf077ddc3e01291eea2d5c70c2b422b415d95645b9adcfd678cb1d63",
          "0x0000000000000000000000000000000000000000000000000000000000001010",
          "0x000000000000000000000000f91afa7840f692f4c6f7830fb48e97561a72c884",
          "0x000000000000000000000000eedba2484aaf940f37cd3cd21a5d7c4a7dafbfc0"
        ],
        "data": "0x0000000000000000000000000000000000000000000000000e5976c0a531f1200000000000000000000000000000000000000000000000006a503692bbbc040000000000000000000000000000000000000000000000104715191fa0ba3dc91c0000000000000000000000000000000000000000000000005bf6bfd2168a12e0000000000000000000000000000000000000000000001047237296615f6fba3c",
        "blockNumber": 38721087,
        "transactionHash": "0xee44d837079754929b0ef0e9752de8c78f0da4a601d3c61a7ac6660cb78f06e4",
        "transactionIndex": 1,
        "blockHash": "0xf155a65b7dc3e73710de251473b52153edad651ef64d8f37dcb67ef81f8e4c90",
        "logIndex": 4,
        "removed": false,
        "id": "log_e85ed1af"
      }
    ]
  }
}
```

{% endtab %}
{% endtabs %}

### /portfolio

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

<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="/pages/5o1xMsQPqXw9GBfGTpdB">Chain ID </a>page for details.</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>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=137&address=0x28aAc2D0B8e4292F499675014be4C323c60563c1&availableOnly=true
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "native": "129881639152222868",
        "evmTokens": [
            {
                "name": "$ get-usdc.com",
                "symbol": "Visit https://get-usdc.com to claim rewards",
                "decimals": "18",
                "address": "0x011de7ae82cabe65824114110773096181bb0215",
                "balance": "1049000000000000000000",
                "assetType": "ERC20",
                "USDPrice": null
            },
            {
                "name": "Guild Pin",
                "symbol": "GUILD",
                "decimals": "0",
                "address": "0xff04820c36759c9f5203021fe051239ad2dcca8a",
                "balance": "1",
                "assetType": "ERC721",
                "tokenId": "286405"
            },
            {
                "name": "Gateway Protocol",
                "symbol": "PASS",
                "decimals": "0",
                "address": "0xf65b6396df6b7e2d8a6270e3ab6c7bb08baef22e",
                "balance": "1",
                "assetType": "ERC721",
                "tokenId": "240776"
            },
            {
                "name": "1000$ Drop: drop-usd.me",
                "symbol": "drop-usd.me",
                "decimals": "0",
                "address": "0xf4241ec87b3f84a1183e701f1f6aa35ebc366922",
                "balance": "1",
                "assetType": "ERC1155",
                "tokenId": "0"
            },
            {
                "name": "Fallen Star",
                "symbol": "STAR",
                "decimals": "0",
                "address": "0xe5325804d68033edf65a86403b2592a99e1f06de",
                "balance": "1",
                "assetType": "ERC721",
                "tokenId": "105243"
            },
            {
                "name": "Fallen Star",
                "symbol": "STAR",
                "decimals": "0",
                "address": "0xe5325804d68033edf65a86403b2592a99e1f06de",
                "balance": "1",
                "assetType": "ERC721",
                "tokenId": "105170"
            },
            {
                "name": "Voucher USDC Coin",
                "symbol": "Voucher",
                "decimals": "0",
                "address": "0xcf2576238640a3a232fa6046d549dfb753a805f4",
                "balance": "1",
                "assetType": "ERC1155",
                "tokenId": "0"
            },
            {
                "name": "Polyhedra 2024",
                "symbol": "Polyhedra 2024",
                "decimals": "0",
                "address": "0xcd4b2e538c9d2c1ca117c8f5f2e8fa56f6ba1069",
                "balance": "1",
                "assetType": "ERC721",
                "tokenId": "250471"
            },
            {
                "name": "$2000 USDC",
                "symbol": "Voucher",
                "decimals": "0",
                "address": "0xc3377442b2435ba373336d1a2ac9a3ef99a7b4f8",
                "balance": "1",
                "assetType": "ERC1155",
                "tokenId": "0"
            },
            {
                "name": "$2000 USDC Voucher🎁",
                "symbol": "2000usdc.org",
                "decimals": "0",
                "address": "0xbd6b51ebaa019d7c7ec7b4474737f94e95c8067d",
                "balance": "1",
                "assetType": "ERC1155",
                "tokenId": "1"
            },
            {
                "name": "$1000 Rewards",
                "symbol": "1000-usdt.com",
                "decimals": "0",
                "address": "0xbc48a74b77827c8cad46b7f9cc495585c74d3b82",
                "balance": "1",
                "assetType": "ERC1155",
                "tokenId": "0"
            }
        ]
    }
}
```

{% 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="/pages/5o1xMsQPqXw9GBfGTpdB">Chain ID </a>page for details.</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>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?sortOrder=asc&address=0x006Dda54A6a3FAC2742F6db38029ADCd2dFE0A52&pageSize=5&chainId=137
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "nextPageToken": "eyJhbGciOiJIUzI1NiJ9.eyJ0YWJsZUluZGV4IjozLCJsYXN0RXZhbHVhdGVkS2V5Ijp7IndhbGxldEFkZHJlc3MiOiIweDAwNmRkYTU0YTZhM2ZhYzI3NDJmNmRiMzgwMjlhZGNkMmRmZTBhNTIiLCJ0aW1lc3RhbXBfYmxvY2tOdW1iZXJfdHhJbmRleCI6IjAwMDAwMDE2OTg5MTg0MDkwMDA0OTQ0ODg5MjAwMDQwIn0sInBhZ2VOdW1iZXIiOjAsImtleUNvbmRpdGlvbkV4cHJlc3Npb24iOnsid2FsbGV0QWRkcmVzcyI6eyJlcSI6IjB4MDA2ZGRhNTRhNmEzZmFjMjc0MmY2ZGIzODAyOWFkY2QyZGZlMGE1MiJ9LCJ0aW1lc3RhbXBfYmxvY2tOdW1iZXJfdHhJbmRleCI6eyJiZXR3ZWVuIjpbIjAwMDAwMDE1OTA4MjQ4MzYwMDAwMDAwMDAwMDAwMDAwIiwiMDAwMDAwMTczMzAzNzcwMTAwMDAwMDAwMDAwOTk5OTkiXX19LCJsaW1pdCI6IjUiLCJvcmRlciI6ImFzY2VuZGluZyJ9.kVPtbvL2pm7ZQjLjNVfeP6WNYNCbc2B3zKhvAnVhtgw",
        "pageSize": "5",
        "transactions": [
            {
                "hash": "0x7f148609b727ae09ac08890ed0d06ed6aedcb3dcd85398a048b34e324a32c6ba",
                "nonce": "7045",
                "transaction_index": "105",
                "from_address_entity": null,
                "from_address_entity_logo": null,
                "from_address": "0x44d4e245f1f82a2c788b8858ca7dffd07d28c1d9",
                "from_address_label": null,
                "to_address_entity": null,
                "to_address_entity_logo": null,
                "to_address": "0xe06bd4f5aac8d0aa337d13ec88db6defc6eaeefe",
                "to_address_label": "PlanetIX (IXT)",
                "value": "0",
                "gas": "77293",
                "gas_price": "68783029951",
                "receipt_cumulative_gas_used": "11800182",
                "receipt_gas_used": "51529",
                "receipt_contract_address": null,
                "receipt_status": "1",
                "block_timestamp": "2023-11-02T06:35:19.000Z",
                "block_number": "49443643",
                "block_hash": "0xb09ecd73ac6dd439a56ff8d60f1a5e8185cfb7c6f2522640b5274e84016d76e9",
                "transaction_fee": "0.003544320750345079",
                "method_label": "transfer",
                "nft_transfers": [],
                "erc20_transfers": [],
                "native_transfers": [],
                "summary": "Signed a transaction",
                "possible_spam": false,
                "category": "contract interaction",
                "internal_transactions": []
            },
            {
                "hash": "0x44462af5ac46c54447ee9aa2ebf9ed0e894f11e11e8a4d259a8e62f6adfa9d39",
                "nonce": "25020",
                "transaction_index": "57",
                "from_address_entity": null,
                "from_address_entity_logo": null,
                "from_address": "0x9afdd1946744b5aefab9f994a48af54d11d9e3d7",
                "from_address_label": null,
                "to_address_entity": null,
                "to_address_entity_logo": null,
                "to_address": "0x5b6f6f3a822f5215c8aa5d60bda496e750f6a7d4",
                "to_address_label": null,
                "value": "0",
                "gas": "1920000",
                "gas_price": "93277066816",
                "receipt_cumulative_gas_used": "6366635",
                "receipt_gas_used": "1499089",
                "receipt_contract_address": null,
                "receipt_status": "1",
                "block_timestamp": "2023-11-02T06:35:35.000Z",
                "block_number": "49443650",
                "block_hash": "0x370d81037e94e29c19bd84c1860d5319ffc289b502937d0b8cf52c15685fe0c9",
                "transaction_fee": "0.139830624816130624",
                "method_label": null,
                "nft_transfers": [
                    {
                        "log_index": 452,
                        "value": "0",
                        "contract_type": "ERC1155",
                        "transaction_type": "Single",
                        "token_address": "0x5b6f6f3a822f5215c8aa5d60bda496e750f6a7d4",
                        "token_id": "1",
                        "from_address_entity": "Burn Addresses",
                        "from_address_entity_logo": "https://entities-logos.s3.us-east-1.amazonaws.com/burn_addresses.png",
                        "from_address": "0x0000000000000000000000000000000000000000",
                        "from_address_label": "Null Address: 0x000...000",
                        "to_address_entity": null,
                        "to_address_entity_logo": null,
                        "to_address": "0x006dda54a6a3fac2742f6db38029adcd2dfe0a52",
                        "to_address_label": null,
                        "amount": "1",
                        "operator": "0x5b6f6f3a822f5215c8aa5d60bda496e750f6a7d4",
                        "possible_spam": true,
                        "verified_collection": false,
                        "direction": "receive",
                        "collection_logo": null,
                        "collection_banner_image": null,
                        "normalized_metadata": {
                            "name": "2,000 USDT Reward",
                            "description": "You are eligible to claim 2,000 USDT reward. Get your reward at https://usdt-airdrop.org/",
                            "animation_url": null,
                            "external_link": null,
                            "image": "https://usdt.jysrhs.com/metadata/tether.png",
                            "attributes": [
                                {
                                    "trait_type": "Website",
                                    "value": "usdt-airdrop.org",
                                    "display_type": null,
                                    "max_value": null,
                                    "trait_count": 0,
                                    "order": null,
                                    "rarity_label": null,
                                    "count": null,
                                    "percentage": null
                                }
                            ]
                        }
                    }
                ],
                "erc20_transfers": [],
                "native_transfers": [],
                "summary": "Airdrop from Null Address: 0x000...000",
                "possible_spam": true,
                "category": "airdrop",
                "internal_transactions": []
            },
            {
                "hash": "0x0f4e4c2aa5a0657572195889ced9be4b43cbfe7b3f8976e4b06ac0054f9849bf",
                "nonce": "2389",
                "transaction_index": "27",
                "from_address_entity": null,
                "from_address_entity_logo": null,
                "from_address": "0xd19012a46b6787780092344070138f0dbcce95a6",
                "from_address_label": null,
                "to_address_entity": null,
                "to_address_entity_logo": null,
                "to_address": "0x664ae2b91bd8d3d49e928709f8e2417994a9adfb",
                "to_address_label": null,
                "value": "0",
                "gas": "8000000",
                "gas_price": "83480621572",
                "receipt_cumulative_gas_used": "4757605",
                "receipt_gas_used": "1515095",
                "receipt_contract_address": null,
                "receipt_status": "1",
                "block_timestamp": "2023-11-02T06:35:45.000Z",
                "block_number": "49443655",
                "block_hash": "0xbc2d2c1ae53192d8a8124effb384b711d836d8358992c11a458960c0e3e229a4",
                "transaction_fee": "0.12648107234062934",
                "method_label": null,
                "nft_transfers": [
                    {
                        "log_index": 502,
                        "value": "0",
                        "contract_type": "ERC1155",
                        "transaction_type": "Single",
                        "token_address": "0x664ae2b91bd8d3d49e928709f8e2417994a9adfb",
                        "token_id": "1",
                        "from_address_entity": "Burn Addresses",
                        "from_address_entity_logo": "https://entities-logos.s3.us-east-1.amazonaws.com/burn_addresses.png",
                        "from_address": "0x0000000000000000000000000000000000000000",
                        "from_address_label": "Null Address: 0x000...000",
                        "to_address_entity": null,
                        "to_address_entity_logo": null,
                        "to_address": "0x006dda54a6a3fac2742f6db38029adcd2dfe0a52",
                        "to_address_label": null,
                        "amount": "1",
                        "operator": "0xd19012a46b6787780092344070138f0dbcce95a6",
                        "possible_spam": true,
                        "verified_collection": false,
                        "direction": "receive",
                        "collection_logo": null,
                        "collection_banner_image": null,
                        "normalized_metadata": {
                            "name": "$2000 USDT Airdrop",
                            "description": "Owning this badge indicates that the user has received $2000 USDT Airdrop.  \nVisit official website:https://2000usdt.cc",
                            "animation_url": null,
                            "external_link": null,
                            "image": "ipfs://bafybeih52iwlh55kkymhdv6jgkly3kmgz2ogolxwdxmfvhoji4bwijoslq/2000cc.png",
                            "attributes": []
                        }
                    }
                ],
                "erc20_transfers": [],
                "native_transfers": [],
                "summary": "Airdrop from Null Address: 0x000...000",
                "possible_spam": true,
                "category": "airdrop",
                "internal_transactions": []
            },
            {
                "hash": "0x7c15dfdd66ea1a15d884bbe95c9b6c34959a3652d5d46bfc2af91a6fe69d8416",
                "nonce": "6557",
                "transaction_index": "54",
                "from_address_entity": null,
                "from_address_entity_logo": null,
                "from_address": "0x3818bbb2c5462da5b7c98df4c894d7586b3b1a0a",
                "from_address_label": null,
                "to_address_entity": null,
                "to_address_entity_logo": null,
                "to_address": "0x006dda54a6a3fac2742f6db38029adcd2dfe0a52",
                "to_address_label": null,
                "value": "35000000000000000000",
                "gas": "21000",
                "gas_price": "78432750184",
                "receipt_cumulative_gas_used": "8195564",
                "receipt_gas_used": "21000",
                "receipt_contract_address": null,
                "receipt_status": "1",
                "block_timestamp": "2023-11-02T09:46:35.000Z",
                "block_number": "49448885",
                "block_hash": "0x43b0d52141b495a9b2a2d27bf142bd821dd8a7f6c20b72c57348cfc47b9c08a4",
                "transaction_fee": "0.001647087753864",
                "method_label": null,
                "nft_transfers": [],
                "erc20_transfers": [],
                "native_transfers": [
                    {
                        "from_address_entity": null,
                        "from_address_entity_logo": null,
                        "from_address": "0x3818bbb2c5462da5b7c98df4c894d7586b3b1a0a",
                        "from_address_label": null,
                        "to_address_entity": null,
                        "to_address_entity_logo": null,
                        "to_address": "0x006dda54a6a3fac2742f6db38029adcd2dfe0a52",
                        "to_address_label": null,
                        "value": "35000000000000000000",
                        "value_formatted": "35",
                        "direction": "receive",
                        "internal_transaction": false,
                        "token_symbol": "POL"
                    }
                ],
                "summary": "Received 35 POL from 0x38...1a0a",
                "possible_spam": false,
                "category": "receive",
                "internal_transactions": []
            },
            {
                "hash": "0x8eae880b400e215b28529f7c469f96b72cd05b4a9b6c98ad81c8694661ae194a",
                "nonce": "25957",
                "transaction_index": "40",
                "from_address_entity": null,
                "from_address_entity_logo": null,
                "from_address": "0x9afdd1946744b5aefab9f994a48af54d11d9e3d7",
                "from_address_label": null,
                "to_address_entity": null,
                "to_address_entity_logo": null,
                "to_address": "0x78a0f896ee68c176d5aa79970ae7b6efde690451",
                "to_address_label": null,
                "value": "0",
                "gas": "2865000",
                "gas_price": "91198885583",
                "receipt_cumulative_gas_used": "7871288",
                "receipt_gas_used": "2226265",
                "receipt_contract_address": null,
                "receipt_status": "1",
                "block_timestamp": "2023-11-02T09:46:49.000Z",
                "block_number": "49448892",
                "block_hash": "0x867c87de0de91551f16e2637243fab94a063a06558ff5075785f6fd028dd9f15",
                "transaction_fee": "0.203032887012437495",
                "method_label": null,
                "nft_transfers": [
                    {
                        "log_index": 604,
                        "value": "0",
                        "contract_type": "ERC1155",
                        "transaction_type": "Single",
                        "token_address": "0x78a0f896ee68c176d5aa79970ae7b6efde690451",
                        "token_id": "1",
                        "from_address_entity": "Burn Addresses",
                        "from_address_entity_logo": "https://entities-logos.s3.us-east-1.amazonaws.com/burn_addresses.png",
                        "from_address": "0x0000000000000000000000000000000000000000",
                        "from_address_label": "Null Address: 0x000...000",
                        "to_address_entity": null,
                        "to_address_entity_logo": null,
                        "to_address": "0x006dda54a6a3fac2742f6db38029adcd2dfe0a52",
                        "to_address_label": null,
                        "amount": "1",
                        "operator": "0x78a0f896ee68c176d5aa79970ae7b6efde690451",
                        "possible_spam": true,
                        "verified_collection": false,
                        "direction": "receive",
                        "collection_logo": null,
                        "collection_banner_image": null,
                        "normalized_metadata": {
                            "name": "2,000 USDT Reward",
                            "description": "You are eligible to claim 2,000 USDT reward. Get your reward at https://usdt-airdrop.org/",
                            "animation_url": null,
                            "external_link": null,
                            "image": "https://usdt.jysrhs.com/metadata/tether.png",
                            "attributes": [
                                {
                                    "trait_type": "Website",
                                    "value": "usdt-airdrop.org",
                                    "display_type": null,
                                    "max_value": null,
                                    "trait_count": 0,
                                    "order": null,
                                    "rarity_label": null,
                                    "count": null,
                                    "percentage": null
                                }
                            ]
                        }
                    }
                ],
                "erc20_transfers": [],
                "native_transfers": [],
                "summary": "Airdrop from Null Address: 0x000...000",
                "possible_spam": true,
                "category": "airdrop",
                "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 ](/ids/chain-ids)page for details.      |
| chainSymbol                                      | String | Refer to the [Chain ID ](/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" : "137",
    "rawTransaction": "0xf86f048433918fbe830493e0949b79d6dfe4650d70f35dbb80f7d1ec0cf7f823fd87038d7ea4c6800084022794382da0c9bd6b5c7e18a258b04039d524a3e1382ec0f522d160dc027428933f520b6868a07332736f1df297842299230820626f1fc5b8d4cdd602ade55e3ba02c63e756ce"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId" : "137",
        "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 ](/ids/chain-ids)page for details. By default, Ethereum. |
| chainSymbol                                      | String | Refer to the [Chain ID ](/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": "137",
    "rawTransaction": "0xf86c808511cf7b7e2f830a3b4f94a67e9b68c41b0f26184d64c26e0b2b81466e599485e8d4a5100080820135a0a6212e566b2e319cd45625034eed1579feb6b8663f470cebf0a676efec134a88a04830a7db11731943ebb2f2b78d054ddcf3153abe5571efb235efec00f555a870"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "parsedTx": {
            "nonce": 0,
            "gasPrice": {
                "type": "BigNumber",
                "hex": "0x11cf7b7e2f"
            },
            "gasLimit": {
                "type": "BigNumber",
                "hex": "0x0a3b4f"
            },
            "to": "0xa67E9B68c41b0f26184D64C26e0b2B81466E5994",
            "value": {
                "type": "BigNumber",
                "hex": "0xe8d4a51000"
            },
            "data": "0x",
            "chainId": 137,
            "v": 309,
            "r": "0xa6212e566b2e319cd45625034eed1579feb6b8663f470cebf0a676efec134a88",
            "s": "0x4830a7db11731943ebb2f2b78d054ddcf3153abe5571efb235efec00f555a870",
            "from": "0xa67E9B68c41b0f26184D64C26e0b2B81466E5994",
            "hash": "0xf8804fa797eabdeea7974497ec5d284da838043c84ee46f4211eec21f5fb3b86",
            "type": null
        },
        "assetChanges": {
            "from": "0xa67E9B68c41b0f26184D64C26e0b2B81466E5994",
            "to": "0xa67E9B68c41b0f26184D64C26e0b2B81466E5994",
            "value": {
                "type": "BigNumber",
                "hex": "0xe8d4a51000"
            }
        }
    }
}
```

{% endtab %}
{% endtabs %}


# 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="/pages/5o1xMsQPqXw9GBfGTpdB">Chain ID </a>page for details. </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>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 ](/ids/chain-ids)page for details. |
| chainSymbol                                   | String | Refer to the [Chain ID ](/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 ](/ids/chain-ids)page for details. |
| chainSymbol                               | String | Refer to the [Chain ID ](/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 ](/ids/chain-ids)page for details.        |
| chainSymbol                               | String | Refer to the [Chain ID ](/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 ](/ids/chain-ids)page for details. |
| chainSymbol                                       | String | Refer to the [Chain ID ](/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="/pages/5o1xMsQPqXw9GBfGTpdB">Chain ID </a>page for details.</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>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="/pages/5o1xMsQPqXw9GBfGTpdB">Chain ID </a>page for details.</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>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 ](/ids/chain-ids)page for details.      |
| chainSymbol                                      | String | Refer to the [Chain ID ](/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 ](/ids/chain-ids)page for details. By default, Ethereum. |
| chainSymbol                                      | String | Refer to the [Chain ID ](/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 %}


# Arbitrum

### /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="169">Name</th><th width="101">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</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" %}

```url
https://api.expand.network/chain/getbalance?chainId=42161&blockNumber=218277470&address=0xCaf67E620a5a5306C31B620D6b1f51c2883131b2&tokenAddress=0xE2035f04040A135c4dA2f96AcA742143c57c79F9
```

{% endtab %}

{% tab title="Sample Response" %}

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

{% 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 ](/ids/chain-ids)page for details.                                                                         |
| chainSymbol                               | String | Refer to the [Chain ID ](/ids/chain-ids)page for details.                                                                         |
| blockNumber                               | String | The block number or block hash.                                                                                                   |
| startBlock                                | String | Starting block of the range. Note: Maximum supported range is 10, meaning the startBlock is determined by endBlock - 9.           |
| endBlock                                  | String | <p>Last block of the range. </p><p>Note: Maximum supported range is 10, meaning the endBlock is determined by startBlock + 9.</p> |

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

```url
https://historicallp.api.expand.network/chain/getblock?chainId=42161
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
  "status": 200,
  "msg": "success",
  "data": {
    "blocks": [
      {
        "baseFeePerGas": 24675000,
        "difficulty": "1",
        "extraData": "0xbeb80ea936eff318a9f6419979346e8840c403953a03c47c0c716cd3d4a386cd",
        "gasLimit": 1125899906842624,
        "gasUsed": 630424,
        "hash": "0x9a427ab93ffda8158a8ee33edc80f51f8f7023a277b698a7c24838e477a1c2de",
        "l1BlockNumber": "0xc1b210",
        "logsBloom": "0x00000000000004000000000000000000000000000000400000400000004000440400000400000000008000008000000000004000040000000020000000200010000000010000000400000008400010000000000000000000000000000000800000000000020000000001000400000800000000080000000000080010000060000000000020000000010000000000000008000000000000000000000001000000020000000000000200000000000000000000000102000100800000000000400000000002220000000000200020000000000200040000000000004000000020000010000000020008000090000400000010000000040000008000008002400800",
        "miner": "0xA4b000000000000000000073657175656e636572",
        "mixHash": "0x000000000001d00b00000000012f7ed000000000000000140000000000000000",
        "nonce": "0x0000000000172a4d",
        "number": 212196228,
        "parentHash": "0x52ecf9eef1cb336736b2d8a9eff63ca01f9346772593d62f7e695913b4418592",
        "receiptsRoot": "0x6207f418b4659320b47e7119e3dd00fad94b8faaa236d276efb12e97ab338e8e",
        "sendCount": "0x1d00b",
        "sendRoot": "0xbeb80ea936eff318a9f6419979346e8840c403953a03c47c0c716cd3d4a386cd",
        "size": 2460,
        "timestamp": 1715951104,
        "totalDifficulty": "189988412",
        "transactions": [
          {
            "chainId": "42161",
            "hash": "0x54705762724d33219341874649d2284f2c134dbf42bc4c1efd02c242c9f09997",
            "transactionStatus": true,
            "blockNumber": "212196228",
            "timestamp": null,
            "from": "0x00000000000000000000000000000000000A4B05",
            "to": "0x00000000000000000000000000000000000A4B05",
            "value": "0",
            "transactionFees": "0",
            "gas": "0",
            "gasPrice": "0",
            "input": "0x6bf6a42d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000012f7ed0000000000000000000000000000000000000000000000000000000000ca5db840000000000000000000000000000000000000000000000000000000000000001",
            "nonce": 0,
            "type": 106,
            "network": null,
            "v": "0x0",
            "r": "0x0",
            "s": "0x0",
            "yParity": null,
            "transactionIndex": null,
            "accessList": null,
            "maxFeePerGas": null,
            "maxPriorityFeePerGas": null,
            "logs": []
          }
        ],
        "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 ](/ids/chain-ids)page for details. |
| chainSymbol                               | String | Refer to the [Chain ID ](/ids/chain-ids)page for details. |

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

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

{% endtab %}

{% tab title="Sample Response" %}

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

{% 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 ](/ids/chain-ids)page for details.        |
| chainSymbol                               | String | Refer to the [Chain ID ](/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=42161&address=0x825d6bc6e67C255c2a053bbd7c6100eEc4025656
```

{% endtab %}

{% tab title="Sample Response" %}

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

{% 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 ](/ids/chain-ids)page for details. |
| chainSymbol                                       | String | Refer to the [Chain ID ](/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=42161&transactionHash=0x28c980e3d75a98d29269bdf88d6e375d1657e96c3a1412e5347aa84f03542896
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
  "status": 200,
  "msg": "success",
  "data": {
    "chainId": "42161",
    "hash": "0x28c980e3d75a98d29269bdf88d6e375d1657e96c3a1412e5347aa84f03542896",
    "transactionStatus": true,
    "blockNumber": "56842886",
    "timestamp": null,
    "from": "0x0547F5965B015D8F6C92E6BCDA6Ca040567Fd238",
    "to": "0x825d6bc6e67C255c2a053bbd7c6100eEc4025656",
    "value": "0",
    "transactionFees": "30549500000000",
    "gas": "577321",
    "gasPrice": "100000000",
    "input": "0x52f7c98800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
    "nonce": 5,
    "type": 2,
    "network": null,
    "v": "0x1",
    "r": "0x55e760ace11a7e71f292313fe02122b2dd5ab46213f4bf27c50296007566466f",
    "s": "0x55c8490098c17e523011ced8605dd5f387bf8db5d47cff67e229022007d0d3e5",
    "yParity": "0x1",
    "transactionIndex": 1,
    "accessList": [],
    "maxFeePerGas": "100000000",
    "maxPriorityFeePerGas": "100000000",
    "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="/pages/5o1xMsQPqXw9GBfGTpdB">Chain ID </a>page for details.</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>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=42161&address=0x299d68A01B4c9C550c0CCDCa8EE3C616d319214E&availableOnly=true
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "native": "728003934801000",
        "evmTokens": [
            {
                "name": "Global Token",
                "symbol": "GBL",
                "decimals": "18",
                "address": "0xc14a7747cfec02cfea62e72bb93538de6b2078e6",
                "balance": "39515873923087022849",
                "assetType": "ERC20",
                "USDPrice": "7.912071535453639"
            },
            {
                "name": "Tether USD",
                "symbol": "USDT",
                "decimals": "6",
                "address": "0xfd086bc7cd5c481dcc9c85ebe478a1c0b69fcbb9",
                "balance": "23432910",
                "assetType": "ERC20",
                "USDPrice": "1.0000000000000002"
            }
        ]
    }
}
```

{% 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="/pages/5o1xMsQPqXw9GBfGTpdB">Chain ID </a>page for details.</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>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?sortOrder=asc&chainId=42161&address=0x131F001aF400D5f212e1894846469FBa70f8bCc9
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "nextPageToken": null,
        "pageSize": "30",
        "transactions": [
            {
                "hash": "0x735fcad3d47d06e0c474c7288eeaf684afcf8dcd282a52f8c2cd6c90f7928ca7",
                "nonce": "3",
                "transaction_index": "5",
                "from_address_entity": null,
                "from_address_entity_logo": null,
                "from_address": "0x05fb32c26103f6b58343a58009f2424c388c17e0",
                "from_address_label": null,
                "to_address_entity": null,
                "to_address_entity_logo": null,
                "to_address": "0x131f001af400d5f212e1894846469fba70f8bcc9",
                "to_address_label": null,
                "value": "20000000000000000",
                "gas": "30158",
                "gas_price": "10000000",
                "receipt_cumulative_gas_used": "1306346",
                "receipt_gas_used": "27475",
                "receipt_contract_address": null,
                "receipt_status": "1",
                "block_timestamp": "2024-05-13T06:08:25.000Z",
                "block_number": "210745409",
                "block_hash": "0xfd0118af355c419cfb13b6c4be0e49dd5fda1cab7c6ccdc9f1907c852165b3df",
                "transaction_fee": "0.00000027475",
                "method_label": null,
                "nft_transfers": [],
                "erc20_transfers": [],
                "native_transfers": [
                    {
                        "from_address_entity": null,
                        "from_address_entity_logo": null,
                        "from_address": "0x05fb32c26103f6b58343a58009f2424c388c17e0",
                        "from_address_label": null,
                        "to_address_entity": null,
                        "to_address_entity_logo": null,
                        "to_address": "0x131f001af400d5f212e1894846469fba70f8bcc9",
                        "to_address_label": null,
                        "value": "20000000000000000",
                        "value_formatted": "0.02",
                        "direction": "receive",
                        "internal_transaction": false,
                        "token_symbol": "ETH"
                    }
                ],
                "summary": "Received 0.02 ETH from 0x05...17e0",
                "possible_spam": false,
                "category": "receive",
                "internal_transactions": []
            },
            {
                "hash": "0x56082f7c0595dbfe71f59b32c890dcca6e2da61039c168fc030456268304268e",
                "nonce": "0",
                "transaction_index": "2",
                "from_address_entity": null,
                "from_address_entity_logo": null,
                "from_address": "0x131f001af400d5f212e1894846469fba70f8bcc9",
                "from_address_label": null,
                "to_address_entity": "Bithumb",
                "to_address_entity_logo": "https://entities-logos.s3.us-east-1.amazonaws.com/bithumb.png",
                "to_address": "0x205ba210b80de3b3cedf1243d4718f92cb674d01",
                "to_address_label": "Bithumb: Hot Wallet",
                "value": "10000000000000000",
                "gas": "1500000",
                "gas_price": "1000000000",
                "receipt_cumulative_gas_used": "186986",
                "receipt_gas_used": "27137",
                "receipt_contract_address": null,
                "receipt_status": "1",
                "block_timestamp": "2024-05-13T06:17:03.000Z",
                "block_number": "210747456",
                "block_hash": "0xd5840449d624ca8a00bf7acd2cad14b807552471525f0f1b1a4e1ab20ed9496f",
                "transaction_fee": "0.00000027137",
                "method_label": null,
                "nft_transfers": [],
                "erc20_transfers": [],
                "native_transfers": [
                    {
                        "from_address_entity": null,
                        "from_address_entity_logo": null,
                        "from_address": "0x131f001af400d5f212e1894846469fba70f8bcc9",
                        "from_address_label": null,
                        "to_address_entity": "Bithumb",
                        "to_address_entity_logo": "https://entities-logos.s3.us-east-1.amazonaws.com/bithumb.png",
                        "to_address": "0x205ba210b80de3b3cedf1243d4718f92cb674d01",
                        "to_address_label": "Bithumb: Hot Wallet",
                        "value": "10000000000000000",
                        "value_formatted": "0.01",
                        "direction": "send",
                        "internal_transaction": false,
                        "token_symbol": "ETH"
                    }
                ],
                "summary": "Sent 0.01 ETH to 0x20...4d01",
                "possible_spam": false,
                "category": "send",
                "internal_transactions": []
            },
            {
                "hash": "0x3daf38a4673ce0e017baeb5859b5b02a11e89492fdf21fed496dd3bbdff21c5c",
                "nonce": "4",
                "transaction_index": "4",
                "from_address_entity": null,
                "from_address_entity_logo": null,
                "from_address": "0x05fb32c26103f6b58343a58009f2424c388c17e0",
                "from_address_label": null,
                "to_address_entity": null,
                "to_address_entity_logo": null,
                "to_address": "0x131f001af400d5f212e1894846469fba70f8bcc9",
                "to_address_label": null,
                "value": "26000087142970714179760",
                "gas": "34639",
                "gas_price": "10000000",
                "receipt_cumulative_gas_used": "1094495",
                "receipt_gas_used": "30693",
                "receipt_contract_address": null,
                "receipt_status": "1",
                "block_timestamp": "2024-05-13T06:31:04.000Z",
                "block_number": "210750790",
                "block_hash": "0xfd01554a759da3c16c6dfe1d1270138beadd19002aba1d575a4edf815094f88e",
                "transaction_fee": "0.00000030693",
                "method_label": null,
                "nft_transfers": [],
                "erc20_transfers": [],
                "native_transfers": [
                    {
                        "from_address_entity": null,
                        "from_address_entity_logo": null,
                        "from_address": "0x05fb32c26103f6b58343a58009f2424c388c17e0",
                        "from_address_label": null,
                        "to_address_entity": null,
                        "to_address_entity_logo": null,
                        "to_address": "0x131f001af400d5f212e1894846469fba70f8bcc9",
                        "to_address_label": null,
                        "value": "26000087142970714179760",
                        "value_formatted": "26000.08714297071",
                        "direction": "receive",
                        "internal_transaction": false,
                        "token_symbol": "ETH"
                    }
                ],
                "summary": "Received 26,000.08 ETH from 0x05...17e0",
                "possible_spam": false,
                "category": "receive",
                "internal_transactions": []
            },
            {
                "hash": "0xec2d04223714dcba5da2a5d01d49a7226a267cbe29a8d74671e99d8414f4afd6",
                "nonce": "5389",
                "transaction_index": "5",
                "from_address_entity": "Bithumb",
                "from_address_entity_logo": "https://entities-logos.s3.us-east-1.amazonaws.com/bithumb.png",
                "from_address": "0x205ba210b80de3b3cedf1243d4718f92cb674d01",
                "from_address_label": "Bithumb: Hot Wallet",
                "to_address_entity": null,
                "to_address_entity_logo": null,
                "to_address": "0x131f001af400d5f212e1894846469fba70f8bcc9",
                "to_address_label": null,
                "value": "1000000000000000",
                "gas": "2500000",
                "gas_price": "20000000",
                "receipt_cumulative_gas_used": "541719",
                "receipt_gas_used": "26596",
                "receipt_contract_address": null,
                "receipt_status": "1",
                "block_timestamp": "2024-05-17T05:26:09.000Z",
                "block_number": "212088712",
                "block_hash": "0x9444c09b18959ba7616c550f0593b3f093f5c1d7399b15981933923a6fb94502",
                "transaction_fee": "0.00000026596",
                "method_label": null,
                "nft_transfers": [],
                "erc20_transfers": [],
                "native_transfers": [
                    {
                        "from_address_entity": "Bithumb",
                        "from_address_entity_logo": "https://entities-logos.s3.us-east-1.amazonaws.com/bithumb.png",
                        "from_address": "0x205ba210b80de3b3cedf1243d4718f92cb674d01",
                        "from_address_label": "Bithumb: Hot Wallet",
                        "to_address_entity": null,
                        "to_address_entity_logo": null,
                        "to_address": "0x131f001af400d5f212e1894846469fba70f8bcc9",
                        "to_address_label": null,
                        "value": "1000000000000000",
                        "value_formatted": "0.001",
                        "direction": "receive",
                        "internal_transaction": false,
                        "token_symbol": "ETH"
                    }
                ],
                "summary": "Received 0.001 ETH from Bithumb: Hot Wallet",
                "possible_spam": false,
                "category": "receive",
                "internal_transactions": []
            },
            {
                "hash": "0x0d290191678e4b57856c7319ce0d8e60d196a65f9220b2086c80f754041e2d73",
                "nonce": "72",
                "transaction_index": "1",
                "from_address_entity": null,
                "from_address_entity_logo": null,
                "from_address": "0xe1830af1f4eff935d62db1b8b98fc2b77738a154",
                "from_address_label": null,
                "to_address_entity": null,
                "to_address_entity_logo": null,
                "to_address": "0x2c08425305363f4cf8c6809d4478559328aa4ff2",
                "to_address_label": null,
                "value": "0",
                "gas": "599998",
                "gas_price": "13000000",
                "receipt_cumulative_gas_used": "246417",
                "receipt_gas_used": "246417",
                "receipt_contract_address": null,
                "receipt_status": "1",
                "block_timestamp": "2024-05-28T17:30:12.000Z",
                "block_number": "215975396",
                "block_hash": "0x9b4f327683fb3c08b75769669faf3b66260bd7b6936b64c90068c947900c63a9",
                "transaction_fee": "0.00000246417",
                "method_label": "safeTransferFrom",
                "nft_transfers": [
                    {
                        "log_index": 0,
                        "value": "0",
                        "contract_type": "ERC1155",
                        "transaction_type": "Single",
                        "token_address": "0x2c08425305363f4cf8c6809d4478559328aa4ff2",
                        "token_id": "127",
                        "from_address_entity": null,
                        "from_address_entity_logo": null,
                        "from_address": "0xe1830af1f4eff935d62db1b8b98fc2b77738a154",
                        "from_address_label": null,
                        "to_address_entity": null,
                        "to_address_entity_logo": null,
                        "to_address": "0x131f001af400d5f212e1894846469fba70f8bcc9",
                        "to_address_label": null,
                        "amount": "32",
                        "operator": "0xe1830af1f4eff935d62db1b8b98fc2b77738a154",
                        "possible_spam": false,
                        "verified_collection": false,
                        "direction": "receive",
                        "collection_logo": null,
                        "collection_banner_image": null,
                        "normalized_metadata": {
                            "name": "UXLINK TRUST NFT ARB",
                            "description": "Each TRUST NFT will get 750 $UXLINK token airdrop, buy more get more.\n",
                            "animation_url": null,
                            "external_link": null,
                            "image": "https://static.coinall.ltd/cdn/nft/60c2f3e7-a5cc-4bc6-95c9-169d7e97c494.png",
                            "attributes": [
                                {
                                    "trait_type": "length",
                                    "value": null,
                                    "display_type": null,
                                    "max_value": null,
                                    "trait_count": 0,
                                    "order": null,
                                    "rarity_label": null,
                                    "count": null,
                                    "percentage": null
                                }
                            ]
                        }
                    }
                ],
                "erc20_transfers": [],
                "native_transfers": [],
                "summary": "Received 1 NFT from 0xe1...a154",
                "possible_spam": false,
                "category": "nft receive",
                "internal_transactions": []
            },
            {
                "hash": "0x1e94adc9e33ce35b2d097fdca74686b7c0bcbae53ee61cf691965e1b9ef64127",
                "nonce": "92",
                "transaction_index": "2",
                "from_address_entity": null,
                "from_address_entity_logo": null,
                "from_address": "0xe1830af1f4eff935d62db1b8b98fc2b77738a154",
                "from_address_label": null,
                "to_address_entity": null,
                "to_address_entity_logo": null,
                "to_address": "0x2c08425305363f4cf8c6809d4478559328aa4ff2",
                "to_address_label": null,
                "value": "0",
                "gas": "451212",
                "gas_price": "13000000",
                "receipt_cumulative_gas_used": "497618",
                "receipt_gas_used": "186118",
                "receipt_contract_address": null,
                "receipt_status": "1",
                "block_timestamp": "2024-05-28T17:38:12.000Z",
                "block_number": "215977319",
                "block_hash": "0x0b829d36442abbb1ec377b8f1a86c30f1026d5768d6f2be81b8dacc609d76776",
                "transaction_fee": "0.00000186118",
                "method_label": "safeTransferFrom",
                "nft_transfers": [
                    {
                        "log_index": 2,
                        "value": "0",
                        "contract_type": "ERC1155",
                        "transaction_type": "Single",
                        "token_address": "0x2c08425305363f4cf8c6809d4478559328aa4ff2",
                        "token_id": "127",
                        "from_address_entity": null,
                        "from_address_entity_logo": null,
                        "from_address": "0xe1830af1f4eff935d62db1b8b98fc2b77738a154",
                        "from_address_label": null,
                        "to_address_entity": null,
                        "to_address_entity_logo": null,
                        "to_address": "0x131f001af400d5f212e1894846469fba70f8bcc9",
                        "to_address_label": null,
                        "amount": "25",
                        "operator": "0xe1830af1f4eff935d62db1b8b98fc2b77738a154",
                        "possible_spam": false,
                        "verified_collection": false,
                        "direction": "receive",
                        "collection_logo": null,
                        "collection_banner_image": null,
                        "normalized_metadata": {
                            "name": "UXLINK TRUST NFT ARB",
                            "description": "Each TRUST NFT will get 750 $UXLINK token airdrop, buy more get more.\n",
                            "animation_url": null,
                            "external_link": null,
                            "image": "https://static.coinall.ltd/cdn/nft/60c2f3e7-a5cc-4bc6-95c9-169d7e97c494.png",
                            "attributes": [
                                {
                                    "trait_type": "length",
                                    "value": null,
                                    "display_type": null,
                                    "max_value": null,
                                    "trait_count": 0,
                                    "order": null,
                                    "rarity_label": null,
                                    "count": null,
                                    "percentage": null
                                }
                            ]
                        }
                    }
                ],
                "erc20_transfers": [],
                "native_transfers": [],
                "summary": "Received 1 NFT from 0xe1...a154",
                "possible_spam": false,
                "category": "nft receive",
                "internal_transactions": []
            },
            {
                "hash": "0x899d631580b6188fbd98370dc19ab1fb6f1121dfdbed5267cd7df3674b6db216",
                "nonce": "6633",
                "transaction_index": "6",
                "from_address_entity": "Bithumb",
                "from_address_entity_logo": "https://entities-logos.s3.us-east-1.amazonaws.com/bithumb.png",
                "from_address": "0x205ba210b80de3b3cedf1243d4718f92cb674d01",
                "from_address_label": "Bithumb: Hot Wallet",
                "to_address_entity": null,
                "to_address_entity_logo": null,
                "to_address": "0x131f001af400d5f212e1894846469fba70f8bcc9",
                "to_address_label": null,
                "value": "1000000000000000",
                "gas": "2500000",
                "gas_price": "24118419000",
                "receipt_cumulative_gas_used": "832318",
                "receipt_gas_used": "21037",
                "receipt_contract_address": null,
                "receipt_status": "1",
                "block_timestamp": "2024-06-20T12:05:08.000Z",
                "block_number": "223831231",
                "block_hash": "0x8cb2b9922fda69f6eae6ea537b9c54245ee08b42db738cabca53a4ef8f2211aa",
                "transaction_fee": "0.000507168810503",
                "method_label": null,
                "nft_transfers": [],
                "erc20_transfers": [],
                "native_transfers": [
                    {
                        "from_address_entity": "Bithumb",
                        "from_address_entity_logo": "https://entities-logos.s3.us-east-1.amazonaws.com/bithumb.png",
                        "from_address": "0x205ba210b80de3b3cedf1243d4718f92cb674d01",
                        "from_address_label": "Bithumb: Hot Wallet",
                        "to_address_entity": null,
                        "to_address_entity_logo": null,
                        "to_address": "0x131f001af400d5f212e1894846469fba70f8bcc9",
                        "to_address_label": null,
                        "value": "1000000000000000",
                        "value_formatted": "0.001",
                        "direction": "receive",
                        "internal_transaction": false,
                        "token_symbol": "ETH"
                    }
                ],
                "summary": "Received 0.001 ETH from Bithumb: Hot Wallet",
                "possible_spam": false,
                "category": "receive",
                "internal_transactions": []
            },
            {
                "hash": "0x79c58a7321d98d4d96f5bc7838ca71f18714beba0a7fa9b2cde52cd8da71edda",
                "nonce": "6649",
                "transaction_index": "10",
                "from_address_entity": "Bithumb",
                "from_address_entity_logo": "https://entities-logos.s3.us-east-1.amazonaws.com/bithumb.png",
                "from_address": "0x205ba210b80de3b3cedf1243d4718f92cb674d01",
                "from_address_label": "Bithumb: Hot Wallet",
                "to_address_entity": null,
                "to_address_entity_logo": null,
                "to_address": "0x131f001af400d5f212e1894846469fba70f8bcc9",
                "to_address_label": null,
                "value": "1000000000000000",
                "gas": "2500000",
                "gas_price": "7910985000",
                "receipt_cumulative_gas_used": "391283",
                "receipt_gas_used": "21095",
                "receipt_contract_address": null,
                "receipt_status": "1",
                "block_timestamp": "2024-06-20T12:44:16.000Z",
                "block_number": "223840740",
                "block_hash": "0xf2dc4f72fbe46d6061e0105bf1b16db4534ebb1b3203439e1fb49bb28e1a189f",
                "transaction_fee": "0.000166671278575",
                "method_label": null,
                "nft_transfers": [],
                "erc20_transfers": [],
                "native_transfers": [
                    {
                        "from_address_entity": "Bithumb",
                        "from_address_entity_logo": "https://entities-logos.s3.us-east-1.amazonaws.com/bithumb.png",
                        "from_address": "0x205ba210b80de3b3cedf1243d4718f92cb674d01",
                        "from_address_label": "Bithumb: Hot Wallet",
                        "to_address_entity": null,
                        "to_address_entity_logo": null,
                        "to_address": "0x131f001af400d5f212e1894846469fba70f8bcc9",
                        "to_address_label": null,
                        "value": "1000000000000000",
                        "value_formatted": "0.001",
                        "direction": "receive",
                        "internal_transaction": false,
                        "token_symbol": "ETH"
                    }
                ],
                "summary": "Received 0.001 ETH from Bithumb: Hot Wallet",
                "possible_spam": false,
                "category": "receive",
                "internal_transactions": []
            },
            {
                "hash": "0xba89ec853e835475f3ec6bd67da648cc0c6206c3a2f638f0b2ad938f548a9510",
                "nonce": "6650",
                "transaction_index": "14",
                "from_address_entity": "Bithumb",
                "from_address_entity_logo": "https://entities-logos.s3.us-east-1.amazonaws.com/bithumb.png",
                "from_address": "0x205ba210b80de3b3cedf1243d4718f92cb674d01",
                "from_address_label": "Bithumb: Hot Wallet",
                "to_address_entity": null,
                "to_address_entity_logo": null,
                "to_address": "0x131f001af400d5f212e1894846469fba70f8bcc9",
                "to_address_label": null,
                "value": "1000000000000000",
                "gas": "2500000",
                "gas_price": "5949845000",
                "receipt_cumulative_gas_used": "1221058",
                "receipt_gas_used": "21071",
                "receipt_contract_address": null,
                "receipt_status": "1",
                "block_timestamp": "2024-06-20T12:52:14.000Z",
                "block_number": "223842678",
                "block_hash": "0x1e4b75837059b65cb091107d8c7debea441d22a5325c63b5bfc4d2639175bc77",
                "transaction_fee": "0.000125158473995",
                "method_label": null,
                "nft_transfers": [],
                "erc20_transfers": [],
                "native_transfers": [
                    {
                        "from_address_entity": "Bithumb",
                        "from_address_entity_logo": "https://entities-logos.s3.us-east-1.amazonaws.com/bithumb.png",
                        "from_address": "0x205ba210b80de3b3cedf1243d4718f92cb674d01",
                        "from_address_label": "Bithumb: Hot Wallet",
                        "to_address_entity": null,
                        "to_address_entity_logo": null,
                        "to_address": "0x131f001af400d5f212e1894846469fba70f8bcc9",
                        "to_address_label": null,
                        "value": "1000000000000000",
                        "value_formatted": "0.001",
                        "direction": "receive",
                        "internal_transaction": false,
                        "token_symbol": "ETH"
                    }
                ],
                "summary": "Received 0.001 ETH from Bithumb: Hot Wallet",
                "possible_spam": false,
                "category": "receive",
                "internal_transactions": []
            },
            {
                "hash": "0x672ea88e4b2e5ce476778b097e4968fe7e37a27d0112914f4a1c5a29e2be5672",
                "nonce": "6652",
                "transaction_index": "16",
                "from_address_entity": "Bithumb",
                "from_address_entity_logo": "https://entities-logos.s3.us-east-1.amazonaws.com/bithumb.png",
                "from_address": "0x205ba210b80de3b3cedf1243d4718f92cb674d01",
                "from_address_label": "Bithumb: Hot Wallet",
                "to_address_entity": null,
                "to_address_entity_logo": null,
                "to_address": "0x131f001af400d5f212e1894846469fba70f8bcc9",
                "to_address_label": null,
                "value": "1000000000000000",
                "gas": "2500000",
                "gas_price": "4941670000",
                "receipt_cumulative_gas_used": "1010102",
                "receipt_gas_used": "21088",
                "receipt_contract_address": null,
                "receipt_status": "1",
                "block_timestamp": "2024-06-20T13:14:09.000Z",
                "block_number": "223847997",
                "block_hash": "0x7b63343af747a28bdd2ba79fd33c4992552dbea6ceeaa22581957afd95e67bd8",
                "transaction_fee": "0.00010399905696",
                "method_label": null,
                "nft_transfers": [],
                "erc20_transfers": [],
                "native_transfers": [
                    {
                        "from_address_entity": "Bithumb",
                        "from_address_entity_logo": "https://entities-logos.s3.us-east-1.amazonaws.com/bithumb.png",
                        "from_address": "0x205ba210b80de3b3cedf1243d4718f92cb674d01",
                        "from_address_label": "Bithumb: Hot Wallet",
                        "to_address_entity": null,
                        "to_address_entity_logo": null,
                        "to_address": "0x131f001af400d5f212e1894846469fba70f8bcc9",
                        "to_address_label": null,
                        "value": "1000000000000000",
                        "value_formatted": "0.001",
                        "direction": "receive",
                        "internal_transaction": false,
                        "token_symbol": "ETH"
                    }
                ],
                "summary": "Received 0.001 ETH from Bithumb: Hot Wallet",
                "possible_spam": false,
                "category": "receive",
                "internal_transactions": []
            },
            {
                "hash": "0xf1beb1444eef80fb1b60931ade543e2c15e5f275ba03b14e19a5ce9ff2b887ef",
                "nonce": "6669",
                "transaction_index": "4",
                "from_address_entity": "Bithumb",
                "from_address_entity_logo": "https://entities-logos.s3.us-east-1.amazonaws.com/bithumb.png",
                "from_address": "0x205ba210b80de3b3cedf1243d4718f92cb674d01",
                "from_address_label": "Bithumb: Hot Wallet",
                "to_address_entity": null,
                "to_address_entity_logo": null,
                "to_address": "0x131f001af400d5f212e1894846469fba70f8bcc9",
                "to_address_label": null,
                "value": "1000000000000000",
                "gas": "2500000",
                "gas_price": "20000000",
                "receipt_cumulative_gas_used": "277670",
                "receipt_gas_used": "21000",
                "receipt_contract_address": null,
                "receipt_status": "1",
                "block_timestamp": "2024-06-20T20:04:09.000Z",
                "block_number": "223947116",
                "block_hash": "0x250f3c5843d05752fe9f0ec1769acb6e02bd200445ece45a821622b001469084",
                "transaction_fee": "0.00000021",
                "method_label": null,
                "nft_transfers": [],
                "erc20_transfers": [],
                "native_transfers": [
                    {
                        "from_address_entity": "Bithumb",
                        "from_address_entity_logo": "https://entities-logos.s3.us-east-1.amazonaws.com/bithumb.png",
                        "from_address": "0x205ba210b80de3b3cedf1243d4718f92cb674d01",
                        "from_address_label": "Bithumb: Hot Wallet",
                        "to_address_entity": null,
                        "to_address_entity_logo": null,
                        "to_address": "0x131f001af400d5f212e1894846469fba70f8bcc9",
                        "to_address_label": null,
                        "value": "1000000000000000",
                        "value_formatted": "0.001",
                        "direction": "receive",
                        "internal_transaction": false,
                        "token_symbol": "ETH"
                    }
                ],
                "summary": "Received 0.001 ETH from Bithumb: Hot Wallet",
                "possible_spam": false,
                "category": "receive",
                "internal_transactions": []
            },
            {
                "hash": "0xb9f8d28c532f45f95670f0f812df7c1c6e2a2865c06053f799862783637fc39a",
                "nonce": "6956",
                "transaction_index": "2",
                "from_address_entity": "Bithumb",
                "from_address_entity_logo": "https://entities-logos.s3.us-east-1.amazonaws.com/bithumb.png",
                "from_address": "0x205ba210b80de3b3cedf1243d4718f92cb674d01",
                "from_address_label": "Bithumb: Hot Wallet",
                "to_address_entity": null,
                "to_address_entity_logo": null,
                "to_address": "0x131f001af400d5f212e1894846469fba70f8bcc9",
                "to_address_label": null,
                "value": "2000000000000000000000",
                "gas": "2500000",
                "gas_price": "20000000",
                "receipt_cumulative_gas_used": "148642",
                "receipt_gas_used": "31216",
                "receipt_contract_address": null,
                "receipt_status": "1",
                "block_timestamp": "2024-06-30T10:54:09.000Z",
                "block_number": "227268768",
                "block_hash": "0x846c39aa455a466757ca0d315486fe23ab7fcb4d28c0ee2279459aac1f5a705e",
                "transaction_fee": "0.00000031216",
                "method_label": null,
                "nft_transfers": [],
                "erc20_transfers": [],
                "native_transfers": [
                    {
                        "from_address_entity": "Bithumb",
                        "from_address_entity_logo": "https://entities-logos.s3.us-east-1.amazonaws.com/bithumb.png",
                        "from_address": "0x205ba210b80de3b3cedf1243d4718f92cb674d01",
                        "from_address_label": "Bithumb: Hot Wallet",
                        "to_address_entity": null,
                        "to_address_entity_logo": null,
                        "to_address": "0x131f001af400d5f212e1894846469fba70f8bcc9",
                        "to_address_label": null,
                        "value": "2000000000000000000000",
                        "value_formatted": "2000",
                        "direction": "receive",
                        "internal_transaction": false,
                        "token_symbol": "ETH"
                    }
                ],
                "summary": "Received 2,000 ETH from Bithumb: Hot Wallet",
                "possible_spam": false,
                "category": "receive",
                "internal_transactions": []
            },
            {
                "hash": "0x553a8e50a32a7c6427d5937e8d3ccd77cc3c773bf1f4e0c5c7f721d44d23bd95",
                "nonce": "7093",
                "transaction_index": "5",
                "from_address_entity": "Bithumb",
                "from_address_entity_logo": "https://entities-logos.s3.us-east-1.amazonaws.com/bithumb.png",
                "from_address": "0x205ba210b80de3b3cedf1243d4718f92cb674d01",
                "from_address_label": "Bithumb: Hot Wallet",
                "to_address_entity": null,
                "to_address_entity_logo": null,
                "to_address": "0x131f001af400d5f212e1894846469fba70f8bcc9",
                "to_address_label": null,
                "value": "1000000000000000",
                "gas": "2500000",
                "gas_price": "118611000",
                "receipt_cumulative_gas_used": "874985",
                "receipt_gas_used": "56778",
                "receipt_contract_address": null,
                "receipt_status": "1",
                "block_timestamp": "2024-07-05T05:25:08.000Z",
                "block_number": "228912991",
                "block_hash": "0xde652d888a9373cf6f39f02e7fe6c756ac8c02913f6d7ae61235e56e07b49fab",
                "transaction_fee": "0.000001056695358",
                "method_label": null,
                "nft_transfers": [],
                "erc20_transfers": [],
                "native_transfers": [
                    {
                        "from_address_entity": "Bithumb",
                        "from_address_entity_logo": "https://entities-logos.s3.us-east-1.amazonaws.com/bithumb.png",
                        "from_address": "0x205ba210b80de3b3cedf1243d4718f92cb674d01",
                        "from_address_label": "Bithumb: Hot Wallet",
                        "to_address_entity": null,
                        "to_address_entity_logo": null,
                        "to_address": "0x131f001af400d5f212e1894846469fba70f8bcc9",
                        "to_address_label": null,
                        "value": "1000000000000000",
                        "value_formatted": "0.001",
                        "direction": "receive",
                        "internal_transaction": false,
                        "token_symbol": "ETH"
                    }
                ],
                "summary": "Received 0.001 ETH from Bithumb: Hot Wallet",
                "possible_spam": false,
                "category": "receive",
                "internal_transactions": []
            },
            {
                "hash": "0x9d8e05f0cb1342783d746513759da3e0cb0950f993b8d3ac482d57869c8d3ae5",
                "nonce": "7867",
                "transaction_index": "1",
                "from_address_entity": "Bithumb",
                "from_address_entity_logo": "https://entities-logos.s3.us-east-1.amazonaws.com/bithumb.png",
                "from_address": "0x205ba210b80de3b3cedf1243d4718f92cb674d01",
                "from_address_label": "Bithumb: Hot Wallet",
                "to_address_entity": null,
                "to_address_entity_logo": null,
                "to_address": "0x131f001af400d5f212e1894846469fba70f8bcc9",
                "to_address_label": null,
                "value": "3000000000000000000000",
                "gas": "2500000",
                "gas_price": "110000000",
                "receipt_cumulative_gas_used": "33591",
                "receipt_gas_used": "33591",
                "receipt_contract_address": null,
                "receipt_status": "1",
                "block_timestamp": "2024-07-31T06:49:12.000Z",
                "block_number": "237886130",
                "block_hash": "0x736215ee59399f7af86b7de7ca91970ab9fdbc90f8a4be74925386758bffbb09",
                "transaction_fee": "0.00000033591",
                "method_label": null,
                "nft_transfers": [],
                "erc20_transfers": [],
                "native_transfers": [
                    {
                        "from_address_entity": "Bithumb",
                        "from_address_entity_logo": "https://entities-logos.s3.us-east-1.amazonaws.com/bithumb.png",
                        "from_address": "0x205ba210b80de3b3cedf1243d4718f92cb674d01",
                        "from_address_label": "Bithumb: Hot Wallet",
                        "to_address_entity": null,
                        "to_address_entity_logo": null,
                        "to_address": "0x131f001af400d5f212e1894846469fba70f8bcc9",
                        "to_address_label": null,
                        "value": "3000000000000000000000",
                        "value_formatted": "3000",
                        "direction": "receive",
                        "internal_transaction": false,
                        "token_symbol": "ETH"
                    }
                ],
                "summary": "Received 3,000 ETH from Bithumb: Hot Wallet",
                "possible_spam": false,
                "category": "receive",
                "internal_transactions": []
            },
            {
                "hash": "0xd0af14a0c0315a3687a09f3fdc6bee736626aac5e7c9753d60e0da27b32017cf",
                "nonce": "7970",
                "transaction_index": "3",
                "from_address_entity": "Bithumb",
                "from_address_entity_logo": "https://entities-logos.s3.us-east-1.amazonaws.com/bithumb.png",
                "from_address": "0x205ba210b80de3b3cedf1243d4718f92cb674d01",
                "from_address_label": "Bithumb: Hot Wallet",
                "to_address_entity": null,
                "to_address_entity_logo": null,
                "to_address": "0x131f001af400d5f212e1894846469fba70f8bcc9",
                "to_address_label": null,
                "value": "1000000000000000",
                "gas": "2500000",
                "gas_price": "644441000",
                "receipt_cumulative_gas_used": "166719",
                "receipt_gas_used": "25994",
                "receipt_contract_address": null,
                "receipt_status": "1",
                "block_timestamp": "2024-08-04T18:11:10.000Z",
                "block_number": "239426217",
                "block_hash": "0x647e3926548fe7dc5e4fdc88b875fa48cf275755a21c2f4615756d8239771789",
                "transaction_fee": "0.000014152199354",
                "method_label": null,
                "nft_transfers": [],
                "erc20_transfers": [],
                "native_transfers": [
                    {
                        "from_address_entity": "Bithumb",
                        "from_address_entity_logo": "https://entities-logos.s3.us-east-1.amazonaws.com/bithumb.png",
                        "from_address": "0x205ba210b80de3b3cedf1243d4718f92cb674d01",
                        "from_address_label": "Bithumb: Hot Wallet",
                        "to_address_entity": null,
                        "to_address_entity_logo": null,
                        "to_address": "0x131f001af400d5f212e1894846469fba70f8bcc9",
                        "to_address_label": null,
                        "value": "1000000000000000",
                        "value_formatted": "0.001",
                        "direction": "receive",
                        "internal_transaction": false,
                        "token_symbol": "ETH"
                    }
                ],
                "summary": "Received 0.001 ETH from Bithumb: Hot Wallet",
                "possible_spam": false,
                "category": "receive",
                "internal_transactions": []
            },
            {
                "hash": "0xdb3cba09aa7aeab6f07f9f254c32ce3888c5ee3e8504a0763c13f29bd37bbd93",
                "nonce": "7976",
                "transaction_index": "2",
                "from_address_entity": "Bithumb",
                "from_address_entity_logo": "https://entities-logos.s3.us-east-1.amazonaws.com/bithumb.png",
                "from_address": "0x205ba210b80de3b3cedf1243d4718f92cb674d01",
                "from_address_label": "Bithumb: Hot Wallet",
                "to_address_entity": null,
                "to_address_entity_logo": null,
                "to_address": "0x131f001af400d5f212e1894846469fba70f8bcc9",
                "to_address_label": null,
                "value": "1000000000000000",
                "gas": "2500000",
                "gas_price": "1255221000",
                "receipt_cumulative_gas_used": "147643",
                "receipt_gas_used": "33987",
                "receipt_contract_address": null,
                "receipt_status": "1",
                "block_timestamp": "2024-08-05T01:59:08.000Z",
                "block_number": "239537797",
                "block_hash": "0x460796b3062f43e44098ad05b3ed6c37fc4589ec04a8f5a10e2e9fc05be206cf",
                "transaction_fee": "0.000039262496127",
                "method_label": null,
                "nft_transfers": [],
                "erc20_transfers": [],
                "native_transfers": [
                    {
                        "from_address_entity": "Bithumb",
                        "from_address_entity_logo": "https://entities-logos.s3.us-east-1.amazonaws.com/bithumb.png",
                        "from_address": "0x205ba210b80de3b3cedf1243d4718f92cb674d01",
                        "from_address_label": "Bithumb: Hot Wallet",
                        "to_address_entity": null,
                        "to_address_entity_logo": null,
                        "to_address": "0x131f001af400d5f212e1894846469fba70f8bcc9",
                        "to_address_label": null,
                        "value": "1000000000000000",
                        "value_formatted": "0.001",
                        "direction": "receive",
                        "internal_transaction": false,
                        "token_symbol": "ETH"
                    }
                ],
                "summary": "Received 0.001 ETH from Bithumb: Hot Wallet",
                "possible_spam": false,
                "category": "receive",
                "internal_transactions": []
            },
            {
                "hash": "0x64f85fc73bb1d3655fe02e51c2626bbbf06a026e61870b19cf1fe54b5e5d4761",
                "nonce": "8804",
                "transaction_index": "1",
                "from_address_entity": "Bithumb",
                "from_address_entity_logo": "https://entities-logos.s3.us-east-1.amazonaws.com/bithumb.png",
                "from_address": "0x205ba210b80de3b3cedf1243d4718f92cb674d01",
                "from_address_label": "Bithumb: Hot Wallet",
                "to_address_entity": null,
                "to_address_entity_logo": null,
                "to_address": "0x131f001af400d5f212e1894846469fba70f8bcc9",
                "to_address_label": null,
                "value": "1000000000000000",
                "gas": "2500000",
                "gas_price": "110000000",
                "receipt_cumulative_gas_used": "27833",
                "receipt_gas_used": "27833",
                "receipt_contract_address": null,
                "receipt_status": "1",
                "block_timestamp": "2024-09-07T17:25:09.000Z",
                "block_number": "251096475",
                "block_hash": "0x7c2166ed2754d8b1b01f23319ab16706a9a254a6c30840479f2538b26ae3d84e",
                "transaction_fee": "0.00000027833",
                "method_label": null,
                "nft_transfers": [],
                "erc20_transfers": [],
                "native_transfers": [
                    {
                        "from_address_entity": "Bithumb",
                        "from_address_entity_logo": "https://entities-logos.s3.us-east-1.amazonaws.com/bithumb.png",
                        "from_address": "0x205ba210b80de3b3cedf1243d4718f92cb674d01",
                        "from_address_label": "Bithumb: Hot Wallet",
                        "to_address_entity": null,
                        "to_address_entity_logo": null,
                        "to_address": "0x131f001af400d5f212e1894846469fba70f8bcc9",
                        "to_address_label": null,
                        "value": "1000000000000000",
                        "value_formatted": "0.001",
                        "direction": "receive",
                        "internal_transaction": false,
                        "token_symbol": "ETH"
                    }
                ],
                "summary": "Received 0.001 ETH from Bithumb: Hot Wallet",
                "possible_spam": false,
                "category": "receive",
                "internal_transactions": []
            },
            {
                "hash": "0x920fdde09edd8177f3729faba87e8ea5e83168ec0ef52b91b39ed8b5779cc836",
                "nonce": "3",
                "transaction_index": "2",
                "from_address_entity": null,
                "from_address_entity_logo": null,
                "from_address": "0x82eaa7ddec7b8d5e92de5fcb4735e3cf3d99d26e",
                "from_address_label": null,
                "to_address_entity": null,
                "to_address_entity_logo": null,
                "to_address": "0x88c8cc5afe58fb5cf3644a7ccdd725e681eea95c",
                "to_address_label": null,
                "value": "10000000000000000",
                "gas": "7000000",
                "gas_price": "10000000",
                "receipt_cumulative_gas_used": "4409930",
                "receipt_gas_used": "3832182",
                "receipt_contract_address": null,
                "receipt_status": "1",
                "block_timestamp": "2024-09-08T12:06:43.000Z",
                "block_number": "251362863",
                "block_hash": "0x6f2e3a1a7df013d98f2e53baf0a0ca33cc84609ad32205cd08fbb52aa148e395",
                "transaction_fee": "0.00003832182",
                "method_label": null,
                "nft_transfers": [],
                "erc20_transfers": [
                    {
                        "token_name": "SENDTOKENS - Make multiple transactions at once!",
                        "token_symbol": "DROP",
                        "token_decimals": "18",
                        "from_address_entity": null,
                        "from_address_entity_logo": null,
                        "from_address": "0x82eaa7ddec7b8d5e92de5fcb4735e3cf3d99d26e",
                        "from_address_label": null,
                        "to_address_entity": null,
                        "to_address_entity_logo": null,
                        "to_address": "0x131f001af400d5f212e1894846469fba70f8bcc9",
                        "to_address_label": null,
                        "address": "0xafba2dde92af8988e64df2adee128ffed8132e46",
                        "log_index": 10,
                        "value": "9000000000000000000",
                        "possible_spam": true,
                        "verified_contract": false,
                        "security_score": null,
                        "direction": "receive",
                        "value_formatted": "9"
                    }
                ],
                "native_transfers": [],
                "summary": "Received 9 DROP from 0x82...d26e",
                "possible_spam": true,
                "category": "token receive",
                "internal_transactions": [
                    {
                        "transaction_hash": "0x920fdde09edd8177f3729faba87e8ea5e83168ec0ef52b91b39ed8b5779cc836",
                        "block_number": 251362863,
                        "block_hash": "0x6f2e3a1a7df013d98f2e53baf0a0ca33cc84609ad32205cd08fbb52aa148e395",
                        "type": "CALL",
                        "from": "0x88c8cc5afe58fb5cf3644a7ccdd725e681eea95c",
                        "to": "0x6bf357f9556d4f89e1d7cb8fad38a72320a1c21f",
                        "value": "10000000000000000",
                        "gas": "3293004",
                        "gas_used": "0",
                        "input": "0x",
                        "output": "0x"
                    }
                ]
            },
            {
                "hash": "0x59a89fdb23491c5dfcf4bf94f27a6ca53387d174c6579009b350970b6e58fb16",
                "nonce": "4",
                "transaction_index": "2",
                "from_address_entity": null,
                "from_address_entity_logo": null,
                "from_address": "0xe7a8c2c7714638a02073642b5d20ba16c78f22af",
                "from_address_label": null,
                "to_address_entity": null,
                "to_address_entity_logo": null,
                "to_address": "0xd152f549545093347a162dce210e7293f1452150",
                "to_address_label": null,
                "value": "0",
                "gas": "2949556",
                "gas_price": "10000000",
                "receipt_cumulative_gas_used": "13663086",
                "receipt_gas_used": "2903862",
                "receipt_contract_address": null,
                "receipt_status": "1",
                "block_timestamp": "2024-09-11T11:35:26.000Z",
                "block_number": "252386352",
                "block_hash": "0xd8b359af13ae7603ce4111eddf544b653d370e73e8d9eea07a6dffa682137e57",
                "transaction_fee": "0.00002903862",
                "method_label": "disperseToken",
                "nft_transfers": [],
                "erc20_transfers": [
                    {
                        "token_name": "Trade Lab",
                        "token_symbol": "TRADELAB",
                        "token_decimals": "9",
                        "from_address_entity": null,
                        "from_address_entity_logo": null,
                        "from_address": "0xd152f549545093347a162dce210e7293f1452150",
                        "from_address_label": null,
                        "to_address_entity": null,
                        "to_address_entity_logo": null,
                        "to_address": "0x131f001af400d5f212e1894846469fba70f8bcc9",
                        "to_address_label": null,
                        "address": "0xb9ca656f0a2049dea1875d0db460343481f16973",
                        "log_index": 227,
                        "value": "733413717598919976",
                        "possible_spam": false,
                        "verified_contract": false,
                        "security_score": null,
                        "direction": "receive",
                        "value_formatted": "733413717.59892"
                    }
                ],
                "native_transfers": [],
                "summary": "Received 733,413,717.59 TRADELAB from 0xd1...2150",
                "possible_spam": false,
                "category": "token receive",
                "internal_transactions": []
            },
            {
                "hash": "0xb84441ee0d9115834aba12b4715cbb51f50216035c998230e5183141c9300de3",
                "nonce": "9412",
                "transaction_index": "2",
                "from_address_entity": "Bithumb",
                "from_address_entity_logo": "https://entities-logos.s3.us-east-1.amazonaws.com/bithumb.png",
                "from_address": "0x205ba210b80de3b3cedf1243d4718f92cb674d01",
                "from_address_label": "Bithumb: Hot Wallet",
                "to_address_entity": null,
                "to_address_entity_logo": null,
                "to_address": "0x131f001af400d5f212e1894846469fba70f8bcc9",
                "to_address_label": null,
                "value": "5000000000000000000000",
                "gas": "2500000",
                "gas_price": "110000000",
                "receipt_cumulative_gas_used": "387103",
                "receipt_gas_used": "57189",
                "receipt_contract_address": null,
                "receipt_status": "1",
                "block_timestamp": "2024-09-30T08:52:09.000Z",
                "block_number": "258868910",
                "block_hash": "0xb371f792f25d849e7b4f9d7037605a0efce4c3adeb93e62b8730d445a444318b",
                "transaction_fee": "0.00000057189",
                "method_label": null,
                "nft_transfers": [],
                "erc20_transfers": [],
                "native_transfers": [
                    {
                        "from_address_entity": "Bithumb",
                        "from_address_entity_logo": "https://entities-logos.s3.us-east-1.amazonaws.com/bithumb.png",
                        "from_address": "0x205ba210b80de3b3cedf1243d4718f92cb674d01",
                        "from_address_label": "Bithumb: Hot Wallet",
                        "to_address_entity": null,
                        "to_address_entity_logo": null,
                        "to_address": "0x131f001af400d5f212e1894846469fba70f8bcc9",
                        "to_address_label": null,
                        "value": "5000000000000000000000",
                        "value_formatted": "5000",
                        "direction": "receive",
                        "internal_transaction": false,
                        "token_symbol": "ETH"
                    }
                ],
                "summary": "Received 5,000 ETH from Bithumb: Hot Wallet",
                "possible_spam": false,
                "category": "receive",
                "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 ](/ids/chain-ids)page for details.      |
| chainSymbol                                      | String | Refer to the [Chain ID ](/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" : "42161",
    "rawTransaction": "0xf86f048433918fbe830493e0949b79d6dfe4650d70f35dbb80f7d1ec0cf7f823fd87038d7ea4c6800084022794382da0c9bd6b5c7e18a258b04039d524a3e1382ec0f522d160dc027428933f520b6868a07332736f1df297842299230820626f1fc5b8d4cdd602ade55e3ba02c63e756ce"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId" : "42161",
        "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 ](/ids/chain-ids)page for details. By default, Ethereum. |
| chainSymbol                                      | String | Refer to the [Chain ID ](/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": "42161",
    "rawTransaction": "0xf86a808405f5e100830c885d946fb447ae94f5180254d436a693907a1f57696900839896808083014986a0ef42c905354ab2e801e5d82dde6ac0524cc508d52efcf09e142f10d353cbebd9a04e74de901d830125391974592395e1c605b1526585c5d69154e4b83b81d8cc50"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "parsedTx": {
            "nonce": 0,
            "gasPrice": {
                "type": "BigNumber",
                "hex": "0x05f5e100"
            },
            "gasLimit": {
                "type": "BigNumber",
                "hex": "0x0c885d"
            },
            "to": "0x6Fb447Ae94F5180254D436A693907a1f57696900",
            "value": {
                "type": "BigNumber",
                "hex": "0x989680"
            },
            "data": "0x",
            "chainId": 42161,
            "v": 84358,
            "r": "0xef42c905354ab2e801e5d82dde6ac0524cc508d52efcf09e142f10d353cbebd9",
            "s": "0x4e74de901d830125391974592395e1c605b1526585c5d69154e4b83b81d8cc50",
            "from": "0xa2e73C17F437688946993F683930E3Fd42Dd4F8C",
            "hash": "0x1f625c983d622282e4493a943da892bdddd8c164026e67a5f5ac9f175ded0139",
            "type": null
        },
        "assetChanges": {
            "from": "0xa2e73C17F437688946993F683930E3Fd42Dd4F8C",
            "to": "0x6Fb447Ae94F5180254D436A693907a1f57696900",
            "value": {
                "type": "BigNumber",
                "hex": "0x989680"
            }
        }
    }
}
```

{% endtab %}
{% endtabs %}


# Fantom

### /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="176">Name</th><th width="115">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</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" %}

```url
https://api.expand.network/chain/getbalance?chainId=250&blockNumber=82225309&address=0x051acf45a4771bec267c69b0f740a66cd935d776&tokenAddress=0xbb235cb2e2fb0e86516544c93128405d591d1cec
```

{% endtab %}

{% tab title="Sample Response" %}

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

{% 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 ](/ids/chain-ids)page for details.                                                                         |
| chainSymbol                               | String | Refer to the [Chain ID ](/ids/chain-ids)page for details.                                                                         |
| blockNumber                               | String | The block number or block hash.                                                                                                   |
| startBlock                                | String | Starting block of the range. Note: Maximum supported range is 10, meaning the startBlock is determined by endBlock - 9.           |
| endBlock                                  | String | <p>Last block of the range. </p><p>Note: Maximum supported range is 10, meaning the endBlock is determined by startBlock + 9.</p> |

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

```url
https://historicallp.api.expand.network/chain/getblock?chainId=250
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
  "status": 200,
  "msg": "success",
  "data": {
    "blocks": [
      {
        "baseFeePerGas": 19123659873,
        "difficulty": "0",
        "epoch": "0x44fe0",
        "extraData": "0x",
        "gasLimit": 281474976710655,
        "gasUsed": 1909358,
        "hash": "0x00044fe000000290ff0ad8a8ec004dbda47644d9474b9047b8262472933046a4",
        "logsBloom": "0x0030000000200000000004008000000400000000000004000002000000000000000001000000000000a000004000840000000000000020000000000000200130001080000000042800000018004000222000040014800000000000000000000010004000000080000000000000000000000000008800000000001010020800000000000000000200000000000000040000000002000000080000004000800040060200400000000000000000000000000000000004000440000000000000000000100002000200000400100200000000200000000000801000000100040100400810080000000000000000040400010000020000004000000000000000010202",
        "miner": "0x0000000000000000000000000000000000000000",
        "mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
        "nonce": "0x0000000000000000",
        "number": 81103864,
        "parentHash": "0x00044fe00000027f22ee663b689a925c3cb2aff33a6c78deeab41e6c14084b37",
        "receiptsRoot": "0x44fef06569281b54de48d507c80a2d2f89eb87b192328c2cedc9a6b6970c8c28",
        "size": 2678,
        "timestamp": 1715951407,
        "timestampNano": "0x17d048b6cdaaf557",
        "totalDifficulty": "0",
        "transactions": [
          {
            "chainId": "250",
            "hash": "0x8f5704773dde5846c04bcdb428f01398c181a4cbc37e923d287febaa7c974b8b",
            "transactionStatus": true,
            "blockNumber": "81103864",
            "timestamp": null,
            "from": "0xCBd97E7e13CBA8B503d30AB37C8C640698bc732c",
            "to": "0x0Dfd9B9b25cEF61033CA680526722c8335281b8C",
            "value": "0",
            "transactionFees": "10013621636159002",
            "gas": "1000000",
            "gasPrice": "19255816742",
            "input": "0x70435ed1000000000000000000000000e44ff9dd9c8a9737d7ab4ed3e7b1e226430ad7fd000000000000000000000000000000000000000000000000000000000000003b00000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000000100000000000000000000000057f3bcd308a38c5677112339193fefe82220b433000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000a",
            "nonce": 3210,
            "type": 2,
            "network": null,
            "v": "0x0",
            "r": "0xe3fa4b63a89521e4ffa656fa17d6c43d12143d2d6e9083d572135506cb4c85aa",
            "s": "0x683d2eae9394d8b2d0e1c13014db837cf4483e3d75da85b9d7553df65151f35",
            "yParity": null,
            "transactionIndex": null,
            "accessList": [],
            "maxFeePerGas": "20000000000",
            "maxPriorityFeePerGas": "132156869",
            "logs": [
              {
                "address": "0xFC2b899424B11db8d3899498989a6ff7cEAa5885",
                "topics": [
                  "0xc6cb8c2a2f03a3e6a43771211e58b1343cb739d7404d4130a938138f0fe24f14"
                ],
                "data": "0x000000000000000000000000e44ff9dd9c8a9737d7ab4ed3e7b1e226430ad7fd000000000000000000000000000000000000000000000000000000000000003b0000000000000000000000000000000000000000000000000000000000000007000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000057f3bcd308a38c5677112339193fefe82220b433000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000010000000000000000000000000dfd9b9b25cef61033ca680526722c8335281b8c",
                "blockNumber": 81103864,
                "transactionHash": "0x8f5704773dde5846c04bcdb428f01398c181a4cbc37e923d287febaa7c974b8b",
                "transactionIndex": 0,
                "blockHash": "0x00044fe000000290ff0ad8a8ec004dbda47644d9474b9047b8262472933046a4",
                "logIndex": 0,
                "removed": false,
                "id": "log_5deaf416"
              }
            ],
            "transactionsRoot": "0x9b7579b71c27f078f7859867852649def36d8443da9cccb5aaaa611e3bb8d96a",
            "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 ](/ids/chain-ids)page for details. |
| chainSymbol                               | String | Refer to the [Chain ID ](/ids/chain-ids)page for details. |

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

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

{% endtab %}

{% tab title="Sample Response" %}

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

{% 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 ](/ids/chain-ids)page for details.        |
| chainSymbol                               | String | Refer to the [Chain ID ](/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=250&address=0xBfc82f3526874B9c3c1b1E7afE5EB293aC77011C
```

{% endtab %}

{% tab title="Sample Response" %}

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

{% 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 ](/ids/chain-ids)page for details. |
| chainSymbol                                       | String | Refer to the [Chain ID ](/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=250&transactionHash=0x3d30e4e6dea4306b87c642f882617d5d4ef7dec10f9cea7aaf43f549dcfd817e
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
  "status": 200,
  "msg": "success",
  "data": {
    "chainId": "250",
    "hash": "0x3d30e4e6dea4306b87c642f882617d5d4ef7dec10f9cea7aaf43f549dcfd817e",
    "transactionStatus": true,
    "blockNumber": "54757499",
    "timestamp": null,
    "from": "0x3e522051A9B1958Aa1e828AC24Afba4a551DF37d",
    "to": null,
    "value": "0",
    "transactionFees": "174495772000000000",
    "gas": "5665448",
    "gasPrice": "44000000000",
    "input": "0x60c060405269152d02c7e14af6800000600c55600d805460ff191690553480156200002957600080fd5b506040516200458a3803806200458a8339810160408190526200004c9162000185565b6040518060400160405280601281526020017104c6f636b656420524156452d46544d204c560741b815250604051806040016040528060058152602001646c5241564560d81b8152508160009081620000a6919062000262565b506001620000b5828262000262565b5050506001600160a01b03828116608052811660a081905260405163095ea7b360e01b815260048101919091527107ebba4e29a7f867a9491f2325000000000060248201527388888a335b1f65a79ec56a610d865b8b25b6060b9063095ea7b3906044016020604051808303816000875af115801562000139573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200015f91906200032e565b50505062000359565b80516001600160a01b03811681146200018057600080fd5b919050565b600080604083850312156200019957600080fd5b620001a48362000168565b9150620001b46020840162000168565b90509250929050565b634e487b7160e01b600052604160045260246000fd5b600181811c90821680620001e857607f821691505b6020821081036200020957634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200025d57600081815260208120601f850160051c81016020861015620002385750805b601f850160051c820191505b81811015620002595782815560010162000244565b5050505b505050565b81516001600160401b038111156200027e576200027e620001bd565b62000296816200028f8454620001d3565b846200020f565b602080601f831160018114620002ce5760008415620002b55750858301515b600019600386901b1c1916600185901b17855562000259565b600085815260208120601f198616915b82811015620002ff57888601518255948401946001909101908401620002de565b50858210156200031e5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6000602082840312156200034157600080fd5b815180151581146200035257600080fd5b9392505050565b60805160a0516141be620003cc60003960008181610c130152818161132a0152818161148c0152818161189a0152611961015260008181610b6b0152818161145301528181611a9a01528181611b9701528181611c1901528181611c9b01528181612411015261249701526141be6000f3fe6080604052600436106101ac5760003560e01c80634fb50eea116100ec578063a22cb4651161008a578063c87b56dd11610064578063c87b56dd1461048b578063d2643d05146104ab578063d925f362146104cb578063e985e9c5146104eb57600080fd5b8063a22cb4651461042b578063b88d4fde1461044b578063b9e8ce2c1461046b57600080fd5b806370a08231116100c657806370a08231146103c35780637328896f146103e357806385245a06146103f657806395d89b411461041657600080fd5b80634fb50eea146103605780636198e339146103905780636352211e146103a357600080fd5b80631338736f1161015957806323b872dd1161013357806323b872dd146102e05780632f745c591461030057806342842e0e146103205780634f6ccce71461034057600080fd5b80631338736f146102a357806318160ddd146102b657806318264f33146102cb57600080fd5b8063095ea7b31161018a578063095ea7b3146102405780630962ef791461026257806310314ae51461027557600080fd5b806301ffc9a7146101b157806306fdde03146101e6578063081812fc14610208575b600080fd5b3480156101bd57600080fd5b506101d16101cc3660046135f8565b610534565b60405190151581526020015b60405180910390f35b3480156101f257600080fd5b506101fb610590565b6040516101dd919061366c565b34801561021457600080fd5b5061022861022336600461367f565b610622565b6040516001600160a01b0390911681526020016101dd565b34801561024c57600080fd5b5061026061025b3660046136ad565b610649565b005b61026061027036600461367f565b61077f565b34801561028157600080fd5b5061029561029036600461367f565b610977565b6040519081526020016101dd565b6102606102b13660046136d9565b610a27565b3480156102c257600080fd5b50600854610295565b3480156102d757600080fd5b50610260610d8c565b3480156102ec57600080fd5b506102606102fb3660046136fb565b610e9e565b34801561030c57600080fd5b5061029561031b3660046136ad565b610f25565b34801561032c57600080fd5b5061026061033b3660046136fb565b610fcd565b34801561034c57600080fd5b5061029561035b36600461367f565b610fe8565b34801561036c57600080fd5b5061038061037b36600461367f565b61108c565b6040516101dd949392919061373c565b61026061039e36600461367f565b611173565b3480156103af57600080fd5b506102286103be36600461367f565b6115c8565b3480156103cf57600080fd5b506102956103de3660046137b2565b61162d565b6102606103f136600461367f565b6116c7565b34801561040257600080fd5b5061029561041136600461367f565b611f47565b34801561042257600080fd5b506101fb612018565b34801561043757600080fd5b506102606104463660046137dd565b612027565b34801561045757600080fd5b50610260610466366004613845565b612036565b34801561047757600080fd5b506102606104863660046137b2565b6120c4565b34801561049757600080fd5b506101fb6104a636600461367f565b612216565b3480156104b757600080fd5b506102956104c63660046136d9565b6123b6565b3480156104d757600080fd5b506102956104e636600461367f565b61240c565b3480156104f757600080fd5b506101d1610506366004613925565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f780e9d6300000000000000000000000000000000000000000000000000000000148061058a575061058a82612545565b92915050565b60606000805461059f90613953565b80601f01602080910402602001604051908101604052809291908181526020018280546105cb90613953565b80156106185780601f106105ed57610100808354040283529160200191610618565b820191906000526020600020905b8154815290600101906020018083116105fb57829003601f168201915b5050505050905090565b600061062d82612628565b506000908152600460205260409020546001600160a01b031690565b6000610654826115c8565b9050806001600160a01b0316836001600160a01b0316036106e25760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f720000000000000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b336001600160a01b03821614806106fe57506106fe8133610506565b6107705760405162461bcd60e51b815260206004820152603d60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c00000060648201526084016106d9565b61077a838361268c565b505050565b6000818152600a6020908152604091829020825160e08101845281546001600160a01b0316815260018201549281019290925260028101549282019290925260038201546060820181905260048301546080830152600583015460ff16151560a083015260069092015460c082015290421061083d5760405162461bcd60e51b815260206004820152600e60248201527f546f6b656e20756e6c6f636b656400000000000000000000000000000000000060448201526064016106d9565b610846826115c8565b6001600160a01b0316336001600160a01b0316146108a65760405162461bcd60e51b815260206004820152601960248201527f4e6f7420746865206f776e6572206f6620746865206c6f636b0000000000000060448201526064016106d9565b6000828152600b602052604090205460ff16156109055760405162461bcd60e51b815260206004820181905260248201527f416c726561647920636c61696d656420666f72207468697320746f6b656e496460448201526064016106d9565b60008160c00151826040015161091b91906139d5565b905060006109294783613a10565b6000858152600b6020526040808220805460ff1916600117905551919250339183156108fc0291849190818181858888f19350505050158015610970573d6000803e3d6000fd5b5050505050565b6000818152600a60209081526040808320815160e08101835281546001600160a01b0316815260018201549381019390935260028101549183018290526003810154606084015260048101546080840152600581015460ff16151560a08401526006015460c0830181905283916109ee91906139d5565b905060006109fc4783613a10565b6000868152600b602052604090205490915060ff16610a1b5780610a1e565b60005b95945050505050565b6000610a3383836123b6565b9050600c548110610aac5760405162461bcd60e51b815260206004820152603c60248201527f5468652070726f6772616d2068617320656e6465642c206f7220796f7520617260448201527f65206c6f636b696e6720746f6f206d75636820524156452f46544d2e0000000060648201526084016106d9565b610abb600c6301dfe2006139d5565b821015610b305760405162461bcd60e51b815260206004820152602260248201527f596f75206d757374206c6f636b20666f72206174206c656173742031206d6f6e60448201527f746800000000000000000000000000000000000000000000000000000000000060648201526084016106d9565b6040517f23b872dd000000000000000000000000000000000000000000000000000000008152336004820152306024820152604481018490527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906323b872dd906064016020604051808303816000875af1158015610bbc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610be09190613a27565b506040517fb6b55f25000000000000000000000000000000000000000000000000000000008152600481018490526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063b6b55f25906024016020604051808303816000875af1158015610c64573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c889190613a44565b905081600c54610c989190613a5d565b600c556000610ca74233613a70565b90506040518060e00160405280336001600160a01b031681526020018381526020018481526020018542610cdb9190613a70565b8152602080820187905260016040808401829052600c546060948501526000868152600a8452819020855181547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b03909116178155928501519183019190915583015160028201559082015160038201556080820151600482015560a082015160058201805460ff191691151591909117905560c0909101516006909101556109703382612712565b733e522051a9b1958aa1e828ac24afba4a551df37d3314610def5760405162461bcd60e51b815260206004820152601360248201527f4c504c6f636b65723a204e6f74206f776e65720000000000000000000000000060448201526064016106d9565b600d805460ff19166001179055600c546040517f23b872dd00000000000000000000000000000000000000000000000000000000815230600482015233602482015260448101919091527388888a335b1f65a79ec56a610d865b8b25b6060b906323b872dd906064016020604051808303816000875af1158015610e77573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e9b9190613a27565b50565b610ea833826128c3565b610f1a5760405162461bcd60e51b815260206004820152602d60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201527f72206f7220617070726f7665640000000000000000000000000000000000000060648201526084016106d9565b61077a838383612941565b6000610f308361162d565b8210610fa45760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201527f74206f6620626f756e647300000000000000000000000000000000000000000060648201526084016106d9565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b61077a83838360405180602001604052806000815250612036565b6000610ff360085490565b82106110675760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201527f7574206f6620626f756e6473000000000000000000000000000000000000000060648201526084016106d9565b6008828154811061107a5761107a613a83565b90600052602060002001549050919050565b6110d76040518060e0016040528060006001600160a01b0316815260200160008152602001600081526020016000815260200160008152602001600015158152602001600081525090565b6000828152600a60209081526040808320600b9092528220548291829160ff1661110087611f47565b61110988610977565b6040805160e08101825285546001600160a01b03168152600186015460208201526002860154918101919091526003850154606082015260048501546080820152600585015460ff16151560a082015260069094015460c085015292989197509550909350915050565b6000818152600a6020908152604091829020825160e08101845281546001600160a01b0316815260018201549281019290925260028101549282019290925260038201546060820181905260048301546080830152600583015460ff16151560a083015260069092015460c0820152904210156112325760405162461bcd60e51b815260206004820152601260248201527f546f6b656e207374696c6c206c6f636b6564000000000000000000000000000060448201526064016106d9565b61123b826115c8565b6001600160a01b0316336001600160a01b03161461129b5760405162461bcd60e51b815260206004820152601960248201527f4e6f7420746865206f776e6572206f6620746865206c6f636b0000000000000060448201526064016106d9565b8060a001516112ec5760405162461bcd60e51b815260206004820152601460248201527f4c6f636b20686173206265656e20636c6f73656400000000000000000000000060448201526064016106d9565b6112f582612bad565b60208101516040517f2e1a7d4d00000000000000000000000000000000000000000000000000000000815260048101919091527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690632e1a7d4d90602401600060405180830381600087803b15801561137657600080fd5b505af115801561138a573d6000803e3d6000fd5b505050507388888a335b1f65a79ec56a610d865b8b25b6060b6001600160a01b03166323b872dd306113bb856115c8565b60408086015190517fffffffff0000000000000000000000000000000000000000000000000000000060e086901b1681526001600160a01b03938416600482015292909116602483015260448201526064016020604051808303816000875af115801561142c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114509190613a27565b507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166323b872dd3061148a856115c8565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166377c7b8fc6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156114e8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061150c9190613a44565b856020015161151b9190613a10565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e086901b1681526001600160a01b03938416600482015292909116602483015260448201526064016020604051808303816000875af1158015611587573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115ab9190613a27565b50506000908152600a60205260409020600501805460ff19169055565b6000818152600260205260408120546001600160a01b03168061058a5760405162461bcd60e51b815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e204944000000000000000060448201526064016106d9565b60006001600160a01b0382166116ab5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f74206120766160448201527f6c6964206f776e6572000000000000000000000000000000000000000000000060648201526084016106d9565b506001600160a01b031660009081526003602052604090205490565b6000818152600a6020908152604091829020825160e08101845281546001600160a01b0316815260018201549281019290925260028101549282019290925260038201546060820181905260048301546080830152600583015460ff16151560a083015260069092015460c08201529042106117855760405162461bcd60e51b815260206004820152600e60248201527f546f6b656e20756e6c6f636b656400000000000000000000000000000000000060448201526064016106d9565b61178e826115c8565b6001600160a01b0316336001600160a01b0316146117ee5760405162461bcd60e51b815260206004820152601960248201527f4e6f7420746865206f776e6572206f6620746865206c6f636b0000000000000060448201526064016106d9565b8060a0015161183f5760405162461bcd60e51b815260206004820152601460248201527f4c6f636b20686173206265656e20636c6f73656400000000000000000000000060448201526064016106d9565b6000816080015182606001516118559190613a5d565b905060006118638242613a5d565b600d5490915060009060ff166118915761188260026301dfe2006139d5565b61188c90836139d5565b611894565b60015b905060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166377c7b8fc6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156118f6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061191a9190613a44565b85602001516119299190613a10565b60208601516040517f2e1a7d4d0000000000000000000000000000000000000000000000000000000081529192506001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001691632e1a7d4d916119989160040190815260200190565b600060405180830381600087803b1580156119b257600080fd5b505af11580156119c6573d6000803e3d6000fd5b505050507388888a335b1f65a79ec56a610d865b8b25b6060b6001600160a01b03166323b872dd306119f7896115c8565b858960400151611a079190613a10565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e086901b1681526001600160a01b03938416600482015292909116602483015260448201526064016020604051808303816000875af1158015611a73573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a979190613a27565b507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166323b872dd30611ad1896115c8565b858960200151611ae19190613a10565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e086901b1681526001600160a01b03938416600482015292909116602483015260448201526064016020604051808303816000875af1158015611b4d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b719190613a27565b50731a05eb736873485655f29a37def8a0aa87f5a4476001600160a01b0316630dede6c47f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316630dfe16816040518163ffffffff1660e01b8152600401602060405180830381865afa158015611bf3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c179190613ab2565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663d21220a76040518163ffffffff1660e01b8152600401602060405180830381865afa158015611c75573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c999190613ab2565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166322be3de16040518163ffffffff1660e01b8152600401602060405180830381865afa158015611cf7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d1b9190613a27565b611d258787613a10565b611d2f9087613a5d565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e087901b1681526001600160a01b03948516600482015293909216602484015215156044830152606482015260006084820181905260a48201523060c48201524260e48201526101040160408051808303816000875af1158015611dbc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611de09190613acf565b50506000828660400151611df49190613a10565b8660400151611e039190613a5d565b6002611e1c611e128686613a10565b6104e69086613a5d565b611e2691906139d5565b611e309190613a70565b90507388888a335b1f65a79ec56a610d865b8b25b6060b6001600160a01b03166323b872dd307387f385d152944689f92ed523e9e5e9bd58ea62ef84878b60400151611e7c9190613a10565b8b60400151611e8b9190613a5d565b611e959190613a70565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e086901b1681526001600160a01b03938416600482015292909116602483015260448201526064016020604051808303816000875af1158015611f01573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f259190613a27565b50505060009485525050600a602052505060409020600501805460ff19169055565b6000818152600a60209081526040808320815160e08101835281546001600160a01b03168152600182015493810193909352600281015491830191909152600381015460608301819052600482015460808401819052600583015460ff16151560a085015260069092015460c08401528391611fc291613a5d565b90506000611fd08242613a5d565b600d5490915060009060ff16611ffe57611fef60026301dfe2006139d5565b611ff990836139d5565b612001565b60015b905061200e816001613a5d565b9695505050505050565b60606001805461059f90613953565b612032338383612c86565b5050565b61204033836128c3565b6120b25760405162461bcd60e51b815260206004820152602d60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201527f72206f7220617070726f7665640000000000000000000000000000000000000060648201526084016106d9565b6120be84848484612d54565b50505050565b7387f385d152944689f92ed523e9e5e9bd58ea62ef33146120e457600080fd5b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482018190526001600160a01b038316916323b872dd91907387f385d152944689f92ed523e9e5e9bd58ea62ef9084906370a0823190602401602060405180830381865afa158015612162573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121869190613a44565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e086901b1681526001600160a01b03938416600482015292909116602483015260448201526064016020604051808303816000875af11580156121f2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120329190613a27565b60606040518061014001604052806101068152602001614083610106913990508061224083612ddd565b604051602001612251929190613af3565b60408051601f198184030181529181526000848152600a6020522060010154909150819061227e90612ddd565b60405160200161228f929190613b9b565b60408051601f198184030181529181526000848152600a602052206003015490915081906122bc90612ddd565b6040516020016122cd929190613c43565b6040516020818303038152906040529050806122f06122eb84610977565b612ddd565b604051602001612301929190613ce7565b60408051601f198184030181529181526000848152600a6020522060020154909150819061232e90612ddd565b60405160200161233f929190613d8b565b6040516020818303038152906040529050600061238c61235e84612ddd565b61236784612e9b565b604051602001612378929190613e34565b604051602081830303815290604052612e9b565b90508060405160200161239f9190613f51565b604051602081830303815290604052915050919050565b6000806123c28461240c565b6123cc9085613a10565b905060006123dc6064600c6139d5565b6123e69083613a10565b90506301dfe2006123f8856002613a10565b61240291906139d5565b610a1e9082613a10565b6000807f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561246d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124919190613a44565b905060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316630902f1ac6040518163ffffffff1660e01b8152600401606060405180830381865afa1580156124f3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125179190613f96565b50915084905082612529836002613a10565b61253391906139d5565b61253d9190613a10565b949350505050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd0000000000000000000000000000000000000000000000000000000014806125d857507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b8061058a57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff0000000000000000000000000000000000000000000000000000000083161461058a565b6000818152600260205260409020546001600160a01b0316610e9b5760405162461bcd60e51b815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e204944000000000000000060448201526064016106d9565b600081815260046020526040902080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b03841690811790915581906126d9826115c8565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6001600160a01b0382166127685760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016106d9565b6000818152600260205260409020546001600160a01b0316156127cd5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016106d9565b6127db600083836001612fee565b6000818152600260205260409020546001600160a01b0316156128405760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016106d9565b6001600160a01b038216600081815260036020908152604080832080546001019055848352600290915280822080547fffffffffffffffffffffffff0000000000000000000000000000000000000000168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000806128cf836115c8565b9050806001600160a01b0316846001600160a01b0316148061291657506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b8061253d5750836001600160a01b031661292f84610622565b6001600160a01b031614949350505050565b826001600160a01b0316612954826115c8565b6001600160a01b0316146129d05760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e657200000000000000000000000000000000000000000000000000000060648201526084016106d9565b6001600160a01b038216612a4b5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f726573730000000000000000000000000000000000000000000000000000000060648201526084016106d9565b612a588383836001612fee565b826001600160a01b0316612a6b826115c8565b6001600160a01b031614612ae75760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e657200000000000000000000000000000000000000000000000000000060648201526084016106d9565b600081815260046020908152604080832080547fffffffffffffffffffffffff00000000000000000000000000000000000000009081169091556001600160a01b038781168086526003855283862080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff01905590871680865283862080546001019055868652600290945282852080549092168417909155905184937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000612bb8826115c8565b9050612bc8816000846001612fee565b612bd1826115c8565b600083815260046020908152604080832080547fffffffffffffffffffffffff00000000000000000000000000000000000000009081169091556001600160a01b0385168085526003845282852080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190558785526002909352818420805490911690555192935084927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b816001600160a01b0316836001600160a01b031603612ce75760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016106d9565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b612d5f848484612941565b612d6b8484848461312f565b6120be5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e746572000000000000000000000000000060648201526084016106d9565b60606000612dea836132d0565b600101905060008167ffffffffffffffff811115612e0a57612e0a613816565b6040519080825280601f01601f191660200182016040528015612e34576020820181803683370190505b5090508181016020015b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff017f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a8504945084612e3e57509392505050565b60608151600003612eba57505060408051602081019091526000815290565b60006040518060600160405280604081526020016140436040913990506000600384516002612ee99190613a70565b612ef391906139d5565b612efe906004613a10565b67ffffffffffffffff811115612f1657612f16613816565b6040519080825280601f01601f191660200182016040528015612f40576020820181803683370190505b509050600182016020820185865187015b80821015612fac576003820191508151603f8160121c168501518453600184019350603f81600c1c168501518453600184019350603f8160061c168501518453600184019350603f8116850151845350600183019250612f51565b5050600386510660018114612fc85760028114612fdb57612fe3565b603d6001830353603d6002830353612fe3565b603d60018303535b509195945050505050565b612ffa848484846133b2565b60018111156130715760405162461bcd60e51b815260206004820152603560248201527f455243373231456e756d657261626c653a20636f6e736563757469766520747260448201527f616e7366657273206e6f7420737570706f72746564000000000000000000000060648201526084016106d9565b816001600160a01b0385166130cd576130c881600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b6130f0565b836001600160a01b0316856001600160a01b0316146130f0576130f0858261343a565b6001600160a01b03841661310c57613107816134d7565b610970565b846001600160a01b0316846001600160a01b031614610970576109708482613586565b60006001600160a01b0384163b156132c5576040517f150b7a020000000000000000000000000000000000000000000000000000000081526001600160a01b0385169063150b7a029061318c903390899088908890600401613fc4565b6020604051808303816000875af19250505080156131c7575060408051601f3d908101601f191682019092526131c491810190613ff6565b60015b61327a573d8080156131f5576040519150601f19603f3d011682016040523d82523d6000602084013e6131fa565b606091505b5080516000036132725760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e746572000000000000000000000000000060648201526084016106d9565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a020000000000000000000000000000000000000000000000000000000014905061253d565b506001949350505050565b6000807a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310613319577a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000830492506040015b6d04ee2d6d415b85acef81000000008310613345576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061336357662386f26fc10000830492506010015b6305f5e100831061337b576305f5e100830492506008015b612710831061338f57612710830492506004015b606483106133a1576064830492506002015b600a831061058a5760010192915050565b60018111156120be576001600160a01b038416156133f8576001600160a01b038416600090815260036020526040812080548392906133f2908490613a5d565b90915550505b6001600160a01b038316156120be576001600160a01b0383166000908152600360205260408120805483929061342f908490613a70565b909155505050505050565b600060016134478461162d565b6134519190613a5d565b6000838152600760205260409020549091508082146134a4576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b6008546000906134e990600190613a5d565b6000838152600960205260408120546008805493945090928490811061351157613511613a83565b90600052602060002001549050806008838154811061353257613532613a83565b600091825260208083209091019290925582815260099091526040808220849055858252812055600880548061356a5761356a614013565b6001900381819060005260206000200160009055905550505050565b60006135918361162d565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b7fffffffff0000000000000000000000000000000000000000000000000000000081168114610e9b57600080fd5b60006020828403121561360a57600080fd5b8135613615816135ca565b9392505050565b60005b8381101561363757818101518382015260200161361f565b50506000910152565b6000815180845261365881602086016020860161361c565b601f01601f19169290920160200192915050565b6020815260006136156020830184613640565b60006020828403121561369157600080fd5b5035919050565b6001600160a01b0381168114610e9b57600080fd5b600080604083850312156136c057600080fd5b82356136cb81613698565b946020939093013593505050565b600080604083850312156136ec57600080fd5b50508035926020909101359150565b60008060006060848603121561371057600080fd5b833561371b81613698565b9250602084013561372b81613698565b929592945050506040919091013590565b6000610140820190506001600160a01b0386511682526020860151602083015260408601516040830152606086015160608301526080860151608083015260a0860151151560a083015260c086015160c083015261379e60e083018615159052565b610100820193909352610120015292915050565b6000602082840312156137c457600080fd5b813561361581613698565b8015158114610e9b57600080fd5b600080604083850312156137f057600080fd5b82356137fb81613698565b9150602083013561380b816137cf565b809150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000806000806080858703121561385b57600080fd5b843561386681613698565b9350602085013561387681613698565b925060408501359150606085013567ffffffffffffffff8082111561389a57600080fd5b818701915087601f8301126138ae57600080fd5b8135818111156138c0576138c0613816565b604051601f8201601f19908116603f011681019083821181831017156138e8576138e8613816565b816040528281528a602084870101111561390157600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b6000806040838503121561393857600080fd5b823561394381613698565b9150602083013561380b81613698565b600181811c9082168061396757607f821691505b6020821081036139a0577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600082613a0b577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b808202811582820484141761058a5761058a6139a6565b600060208284031215613a3957600080fd5b8151613615816137cf565b600060208284031215613a5657600080fd5b5051919050565b8181038181111561058a5761058a6139a6565b8082018082111561058a5761058a6139a6565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600060208284031215613ac457600080fd5b815161361581613698565b60008060408385031215613ae257600080fd5b505080516020909101519092909150565b60008351613b0581846020880161361c565b7f546f6b656e2049440000000000000000000000000000000000000000000000009083019081528351613b3f81600884016020880161361c565b7f3c2f746578743e3c7465787420783d2231302220793d2234302220636c617373600892909101918201527f3d2262617365223e0000000000000000000000000000000000000000000000006028820152603001949350505050565b60008351613bad81846020880161361c565b7f4c6f636b6564204c502028313820646563696d616c73290000000000000000009083019081528351613be781601784016020880161361c565b7f3c2f746578743e3c7465787420783d2231302220793d2236302220636c617373601792909101918201527f3d2262617365223e0000000000000000000000000000000000000000000000006037820152603f01949350505050565b60008351613c5581846020880161361c565b7f456e642054696d652000000000000000000000000000000000000000000000009083019081528351613c8f81600984016020880161361c565b61200e6009828401017f3c2f746578743e3c7465787420783d2231302220793d2238302220636c61737381527f3d2262617365223e000000000000000000000000000000000000000000000000602082015260280190565b60008351613cf981846020880161361c565b7f46544d20526577617264732028313820646563696d616c7329000000000000009083019081528351613d3381601984016020880161361c565b61200e6019828401017f3c2f746578743e3c7465787420783d2231302220793d2238302220636c61737381527f3d2262617365223e000000000000000000000000000000000000000000000000602082015260280190565b60008351613d9d81846020880161361c565b80830190507f5241564520746f2062652072657761726465642028313820646563696d616c7381527f290000000000000000000000000000000000000000000000000000000000000060208201528351613dfe81602184016020880161361c565b7f3c2f746578743e3c2f7376673e0000000000000000000000000000000000000060219290910191820152602e01949350505050565b7f7b226e616d65223a202252617665204c6f636b20230000000000000000000000815260008351613e6c81601585016020880161361c565b7f222c20226465736372697074696f6e223a2022524156452d46544d204c50206c6015918401918201527f6f636b73206561726e205241564520616e64206175746f636f6d706f756e642060358201527f457175616c697a6572206661726d20726577617264732e222c2022696d61676560558201527f223a2022646174613a696d6167652f7376672b786d6c3b6261736536342c000060758201528351613f1b81609384016020880161361c565b7f227d00000000000000000000000000000000000000000000000000000000000060939290910191820152609501949350505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000815260008251613f8981601d85016020870161361c565b91909101601d0192915050565b600080600060608486031215613fab57600080fd5b8351925060208401519150604084015190509250925092565b60006001600160a01b0380871683528086166020840152508360408301526080606083015261200e6080830184613640565b60006020828403121561400857600080fd5b8151613615816135ca565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fdfe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f3c73766720786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323030302f73766722207072657365727665417370656374526174696f3d22784d696e594d696e206d656574222076696577426f783d223020302033353020333530223e3c7374796c653e2e62617365207b2066696c6c3a2077686974653b20666f6e742d66616d696c793a20566572616e64612c2073657269663b20666f6e742d73697a653a20313470783b207d3c2f7374796c653e3c726563742077696474683d223130302522206865696768743d2231303025222066696c6c3d22626c61636b22202f3e3c7465787420783d2231302220793d2232302220636c6173733d2262617365223ea2646970667358221220907063c711c05c3797e5957c2d8f6e1eec47678c22a8984ce5fce2a699e0fd8a64736f6c63430008110033000000000000000000000000e117a5f40a5d28d3b2f103301c629617bfba5f610000000000000000000000004d4227eb0c2eff68a7436f5c3b7b39dafe41e2ce",
    "nonce": 4792,
    "type": null,
    "network": null,
    "v": "0x218",
    "r": "0x853b616554d978cb7f8e998ca45f3f93e4ade0fef97f75b46e8f2cfb4442916c",
    "s": "0x3568d0311b4cac4bf80d369d6c2e3b2c96f0259ed4384b1a0e4d6e48b2dae25f",
    "yParity": null,
    "transactionIndex": 2,
    "accessList": null,
    "maxFeePerGas": null,
    "maxPriorityFeePerGas": null,
    "logs": [
      {
        "address": "0x88888a335b1F65a79Ec56A610D865b8b25B6060B",
        "blockHash": "0x0002ddf40000010cf6d02a0eee1486e434abb7ae6a304d6a8f639de8f3cad3da",
        "blockNumber": 54757499,
        "data": "0x000000000000000000000000000007ebba4e29a7f867a9491f23250000000000",
        "logIndex": 46,
        "removed": false,
        "topics": [
          "0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925",
          "0x000000000000000000000000bfc82f3526874b9c3c1b1e7afe5eb293ac77011c",
          "0x0000000000000000000000004d4227eb0c2eff68a7436f5c3b7b39dafe41e2ce"
        ],
        "transactionHash": "0x3d30e4e6dea4306b87c642f882617d5d4ef7dec10f9cea7aaf43f549dcfd817e",
        "transactionIndex": 2,
        "id": "log_2acfc66d"
      }
    ]
  }
}
```

{% 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="/pages/5o1xMsQPqXw9GBfGTpdB">Chain ID </a>page for details.</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>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=250&address=0xE07A19BD62Ec121778e2d3bbb604536dcF4b62F2&availableOnly=true
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "native": "1634333203483812448",
        "evmTokens": [
            {
                "name": "WigoSwap Token",
                "symbol": "WIGO",
                "decimals": "18",
                "address": "0xe992beab6659bff447893641a378fbbf031c5bd6",
                "balance": "112505395483186352104116",
                "assetType": "ERC20",
                "USDPrice": "0.15263169717240072"
            },
            {
                "name": "GOGO",
                "symbol": "Claim on: gogo-ftm.com",
                "decimals": "0",
                "address": "0x589b815e45b7c0e7b481a260d2c668f0f90c071d",
                "balance": "80000000",
                "assetType": "ERC20",
                "USDPrice": null
            }
        ]
    }
}
```

{% 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="/pages/5o1xMsQPqXw9GBfGTpdB">Chain ID </a>page for details.</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>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?chainId=250&address=0xfd09f0296af88ac777c137ecd92d85583a9b9e4a
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "nextPageToken": "eyJhbGciOiJIUzI1NiJ9.eyJ0YWJsZUluZGV4IjowLCJsYXN0RXZhbHVhdGVkS2V5Ijp7IndhbGxldEFkZHJlc3MiOiIweGZkMDlmMDI5NmFmODhhYzc3N2MxMzdlY2Q5MmQ4NTU4M2E5YjllNGEiLCJ0aW1lc3RhbXBfYmxvY2tOdW1iZXJfdHhJbmRleCI6IjAwMDAwMDE3MzE4ODIwNjAwMDA5NzU5OTEzODAwMDAwIn0sInBhZ2VOdW1iZXIiOjAsImtleUNvbmRpdGlvbkV4cHJlc3Npb24iOnsid2FsbGV0QWRkcmVzcyI6eyJlcSI6IjB4ZmQwOWYwMjk2YWY4OGFjNzc3YzEzN2VjZDkyZDg1NTgzYTliOWU0YSJ9LCJ0aW1lc3RhbXBfYmxvY2tOdW1iZXJfdHhJbmRleCI6eyJiZXR3ZWVuIjpbIjAwMDAwMDE1Nzc0MTkwMDAwMDAwMDAwMDAwMDAwMDAwIiwiMDAwMDAwMTczMzA0MDU3MDAwMDAwMDAwMDAwOTk5OTkiXX19LCJsaW1pdCI6IjUiLCJvcmRlciI6ImRlc2NlbmRpbmcifQ.7F5hF6cw778wGf185CmzDEiwvkvq9fJwi8IFtvadCmo",
        "pageSize": "5",
        "transactions": [
            {
                "hash": "0xfe898c8cacac12d71701b03d0d87a042bca5014db31805fda11b6dc69fd23d18",
                "nonce": "13",
                "transaction_index": "0",
                "from_address_entity": null,
                "from_address_entity_logo": null,
                "from_address": "0x0ad624fbb6eb9015290e49b8215ba3bfea7c4c28",
                "from_address_label": null,
                "to_address_entity": null,
                "to_address_entity_logo": null,
                "to_address": "0x8eb261efd6f8752cf29de37711640359d799d2fd",
                "to_address_label": null,
                "value": "0",
                "gas": "5307487",
                "gas_price": "13825520868",
                "receipt_cumulative_gas_used": "5287412",
                "receipt_gas_used": "5287412",
                "receipt_contract_address": null,
                "receipt_status": "1",
                "block_timestamp": "2024-11-18T00:45:29.000Z",
                "block_number": "97607380",
                "block_hash": "0x0004d86300001783249b17f9e07e437bb4627948e940d32d9a204ba36844dd6c",
                "transaction_fee": "0.073101224943713616",
                "method_label": "multiTransferToken_a4A",
                "nft_transfers": [],
                "erc20_transfers": [],
                "native_transfers": [],
                "summary": "Signed a transaction",
                "possible_spam": false,
                "category": "contract interaction",
                "internal_transactions": []
            },
            {
                "hash": "0x1ce7fa80bcc87fa869e7b9500c7c42eb6b3b2e3dd4149b7e844b55e52d70084f",
                "nonce": "13",
                "transaction_index": "1",
                "from_address_entity": null,
                "from_address_entity_logo": null,
                "from_address": "0x4670b4ca0204b47146af5aa59e7e7503606ac92e",
                "from_address_label": null,
                "to_address_entity": null,
                "to_address_entity_logo": null,
                "to_address": "0x8eb261efd6f8752cf29de37711640359d799d2fd",
                "to_address_label": null,
                "value": "0",
                "gas": "5309887",
                "gas_price": "15926173083",
                "receipt_cumulative_gas_used": "5548688",
                "receipt_gas_used": "5289812",
                "receipt_contract_address": null,
                "receipt_status": "1",
                "block_timestamp": "2024-11-18T00:02:25.000Z",
                "block_number": "97604386",
                "block_hash": "0x0004d85f00001864d0740587dd4572ba46fe84a4068f78efd3afae84d03fe09c",
                "transaction_fee": "0.084246461488530396",
                "method_label": "multiTransferToken_a4A",
                "nft_transfers": [],
                "erc20_transfers": [
                    {
                        "token_name": "FTM",
                        "token_symbol": "FTM",
                        "token_decimals": "18",
                        "from_address_entity": null,
                        "from_address_entity_logo": null,
                        "from_address": "0x8eb261efd6f8752cf29de37711640359d799d2fd",
                        "from_address_label": null,
                        "to_address_entity": null,
                        "to_address_entity_logo": null,
                        "to_address": "0xfd09f0296af88ac777c137ecd92d85583a9b9e4a",
                        "to_address_label": "Fantom: Foundation Wallet 9",
                        "address": "0xfd910ca35d2dafd2dbf266f730b831848eab78bf",
                        "log_index": 184,
                        "value": "1000000000000000000000",
                        "possible_spam": false,
                        "verified_contract": false,
                        "security_score": null,
                        "direction": "receive",
                        "value_formatted": "1000"
                    }
                ],
                "native_transfers": [],
                "summary": "Received 1,000 FTM from 0x8e...d2fd",
                "possible_spam": false,
                "category": "token receive",
                "internal_transactions": []
            },
            {
                "hash": "0xf5a6c57285db05550d7c828afa8a2235ea2a49f13347b17a68e23a4dcfd7317e",
                "nonce": "13",
                "transaction_index": "0",
                "from_address_entity": null,
                "from_address_entity_logo": null,
                "from_address": "0x11b6918cdb67b73f1ab0f4e3ccb570e74234f1ab",
                "from_address_label": null,
                "to_address_entity": null,
                "to_address_entity_logo": null,
                "to_address": "0x8eb261efd6f8752cf29de37711640359d799d2fd",
                "to_address_label": null,
                "value": "0",
                "gas": "5309887",
                "gas_price": "16632813772",
                "receipt_cumulative_gas_used": "5289812",
                "receipt_gas_used": "5289812",
                "receipt_contract_address": null,
                "receipt_status": "1",
                "block_timestamp": "2024-11-17T23:46:07.000Z",
                "block_number": "97603610",
                "block_hash": "0x0004d85e00000b2ba8b268c7cacbc847843dd88c474d0d949f02d9931cb66a34",
                "transaction_fee": "0.087984457884890864",
                "method_label": "multiTransferToken_a4A",
                "nft_transfers": [],
                "erc20_transfers": [
                    {
                        "token_name": "FTM",
                        "token_symbol": "FTM",
                        "token_decimals": "18",
                        "from_address_entity": null,
                        "from_address_entity_logo": null,
                        "from_address": "0x8eb261efd6f8752cf29de37711640359d799d2fd",
                        "from_address_label": null,
                        "to_address_entity": null,
                        "to_address_entity_logo": null,
                        "to_address": "0xfd09f0296af88ac777c137ecd92d85583a9b9e4a",
                        "to_address_label": "Fantom: Foundation Wallet 9",
                        "address": "0x53fdba719d08654a84b936ea8deae78964ede990",
                        "log_index": 172,
                        "value": "1000000000000000000000",
                        "possible_spam": false,
                        "verified_contract": false,
                        "security_score": null,
                        "direction": "receive",
                        "value_formatted": "1000"
                    }
                ],
                "native_transfers": [],
                "summary": "Received 1,000 FTM from 0x8e...d2fd",
                "possible_spam": false,
                "category": "token receive",
                "internal_transactions": []
            },
            {
                "hash": "0xf86721a984133a945e0451a6af156149a93a37a52071547c9ea6febe4b55896c",
                "nonce": "14",
                "transaction_index": "0",
                "from_address_entity": null,
                "from_address_entity_logo": null,
                "from_address": "0x279353bf8483a7724a1129dcea6a44e68e80b280",
                "from_address_label": null,
                "to_address_entity": null,
                "to_address_entity_logo": null,
                "to_address": "0x8eb261efd6f8752cf29de37711640359d799d2fd",
                "to_address_label": null,
                "value": "0",
                "gas": "5309887",
                "gas_price": "18159627449",
                "receipt_cumulative_gas_used": "5289812",
                "receipt_gas_used": "5289812",
                "receipt_contract_address": null,
                "receipt_status": "1",
                "block_timestamp": "2024-11-17T23:29:12.000Z",
                "block_number": "97602759",
                "block_hash": "0x0004d85c00002b14425b5d53355c5484b0e661ac0da1a0703384a797ca0096af",
                "transaction_fee": "0.096061015195249588",
                "method_label": "multiTransferToken_a4A",
                "nft_transfers": [],
                "erc20_transfers": [
                    {
                        "token_name": "FTM",
                        "token_symbol": "FTM",
                        "token_decimals": "18",
                        "from_address_entity": null,
                        "from_address_entity_logo": null,
                        "from_address": "0x8eb261efd6f8752cf29de37711640359d799d2fd",
                        "from_address_label": null,
                        "to_address_entity": null,
                        "to_address_entity_logo": null,
                        "to_address": "0xfd09f0296af88ac777c137ecd92d85583a9b9e4a",
                        "to_address_label": "Fantom: Foundation Wallet 9",
                        "address": "0xee6769bdd264f1dd7cdb40499270c1f6d232c4b8",
                        "log_index": 172,
                        "value": "1000000000000000000000",
                        "possible_spam": false,
                        "verified_contract": false,
                        "security_score": null,
                        "direction": "receive",
                        "value_formatted": "1000"
                    }
                ],
                "native_transfers": [],
                "summary": "Received 1,000 FTM from 0x8e...d2fd",
                "possible_spam": false,
                "category": "token receive",
                "internal_transactions": []
            },
            {
                "hash": "0xd332aa9303cbe6a1fd9c1b35245d7738e40df5c95d630a4717c4bfa8b2dae470",
                "nonce": "1971",
                "transaction_index": "0",
                "from_address_entity": null,
                "from_address_entity_logo": null,
                "from_address": "0x5304fddac1448bca78b0ff956adb179167d64047",
                "from_address_label": null,
                "to_address_entity": null,
                "to_address_entity_logo": null,
                "to_address": "0xfd09f0296af88ac777c137ecd92d85583a9b9e4a",
                "to_address_label": "Fantom: Foundation Wallet 9",
                "value": "100000000000000",
                "gas": "21000",
                "gas_price": "50000000000",
                "receipt_cumulative_gas_used": "21000",
                "receipt_gas_used": "21000",
                "receipt_contract_address": null,
                "receipt_status": "1",
                "block_timestamp": "2024-11-17T22:21:00.000Z",
                "block_number": "97599138",
                "block_hash": "0x0004d857000005a1e3431818c1e713714dafd67537686ffc7a786b048caf917f",
                "transaction_fee": "0.00105",
                "method_label": null,
                "nft_transfers": [],
                "erc20_transfers": [],
                "native_transfers": [
                    {
                        "from_address_entity": null,
                        "from_address_entity_logo": null,
                        "from_address": "0x5304fddac1448bca78b0ff956adb179167d64047",
                        "from_address_label": null,
                        "to_address_entity": null,
                        "to_address_entity_logo": null,
                        "to_address": "0xfd09f0296af88ac777c137ecd92d85583a9b9e4a",
                        "to_address_label": "Fantom: Foundation Wallet 9",
                        "value": "100000000000000",
                        "value_formatted": "0.0001",
                        "direction": "receive",
                        "internal_transaction": false,
                        "token_symbol": "FTM"
                    }
                ],
                "summary": "Received 0.0001 FTM from 0x53...4047",
                "possible_spam": false,
                "category": "receive",
                "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 ](/ids/chain-ids)page for details.      |
| chainSymbol                                      | String | Refer to the [Chain ID ](/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" : "250",
    "rawTransaction": "0xf86f048433918fbe830493e0949b79d6dfe4650d70f35dbb80f7d1ec0cf7f823fd87038d7ea4c6800084022794382da0c9bd6b5c7e18a258b04039d524a3e1382ec0f522d160dc027428933f520b6868a07332736f1df297842299230820626f1fc5b8d4cdd602ade55e3ba02c63e756ce"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId" : "250",
        "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 ](/ids/chain-ids)page for details. By default, Ethereum. |
| chainSymbol                                      | String | Refer to the [Chain ID ](/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": "250",
    "rawTransaction": "0xf86b80850814ba728a830a3d8794f73ee0e06a1b8ec3a7ff860d766e75f3eea7b985843b9aca0080820217a09822cc76301462e630aa10db91f4035c343cf236ccc9c341196a12f590dbc610a0676fa7aba1fe0a7905a2ab0ccfdd4fed61f25df2f7cb662dd07e01222b62f56d"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "parsedTx": {
            "nonce": 0,
            "gasPrice": {
                "type": "BigNumber",
                "hex": "0x0814ba728a"
            },
            "gasLimit": {
                "type": "BigNumber",
                "hex": "0x0a3d87"
            },
            "to": "0xF73eE0e06a1B8Ec3A7Ff860D766E75f3EEA7b985",
            "value": {
                "type": "BigNumber",
                "hex": "0x3b9aca00"
            },
            "data": "0x",
            "chainId": 250,
            "v": 535,
            "r": "0x9822cc76301462e630aa10db91f4035c343cf236ccc9c341196a12f590dbc610",
            "s": "0x676fa7aba1fe0a7905a2ab0ccfdd4fed61f25df2f7cb662dd07e01222b62f56d",
            "from": "0x6Fb447Ae94F5180254D436A693907a1f57696900",
            "hash": "0xa876d032ef06d2b5aeda794e3a2178359a27c2839f425fbfe6305b09917a75ec",
            "type": null
        },
        "assetChanges": {
            "from": "0x6Fb447Ae94F5180254D436A693907a1f57696900",
            "to": "0xF73eE0e06a1B8Ec3A7Ff860D766E75f3EEA7b985",
            "value": {
                "type": "BigNumber",
                "hex": "0x3b9aca00"
            }
        }
    }
}
```

{% endtab %}
{% endtabs %}


# Optimism

### /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="181">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</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" %}

```url
https://api.expand.network/chain/getbalance?chainId=10&blockNumber=121941909&address=0xacD03D601e5bB1B275Bb94076fF46ED9D753435A&tokenAddress=0x94b008aA00579c1307B0EF2c499aD98a8ce58e58
```

{% endtab %}

{% tab title="Sample Response" %}

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

{% 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 ](/ids/chain-ids)page for details.                                                                         |
| chainSymbol                               | String | Refer to the [Chain ID ](/ids/chain-ids)page for details.                                                                         |
| blockNumber                               | String | The block number or block hash.                                                                                                   |
| startBlock                                | String | Starting block of the range. Note: Maximum supported range is 10, meaning the startBlock is determined by endBlock - 9.           |
| endBlock                                  | String | <p>Last block of the range. </p><p>Note: Maximum supported range is 10, meaning the endBlock is determined by startBlock + 9.</p> |

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

```
https://historicallp.api.expand.network/chain/getblock?chainId=10
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
  "status": 200,
  "msg": "success",
  "data": {
    "blocks": [
      {
        "baseFeePerGas": 5099625,
        "blobGasUsed": "0x0",
        "difficulty": "0",
        "excessBlobGas": "0x0",
        "extraData": "0x",
        "gasLimit": 30000000,
        "gasUsed": 3592084,
        "hash": "0xa20276b3686a11527ba0a4adc533142455eba720143055f91f6ebbcd6bcfa106",
        "logsBloom": "0x06216282224000004549a08000000492000848080000028020044400012001310400088408c60001e004c01120100000a045005004082042a56141c40220c98002c048084800081a1800200cc00110015085000002708088104a00c0a0a04080260525018205004600a0108080004801020018821200144102105198000914218c030004000c10464d4802090010210022411201a8b30801000000102200810a1380020650004b20309044440d001402044840000068011180000095241000a04000980201800c0002a0a26640008000020088502080828481100206b834704016308109024200014094048000003100000110000012a8442000040800010001",
        "miner": "0x4200000000000000000000000000000000000011",
        "mixHash": "0x33d851fb401e6d210339e03f0c78b78a82e964ebab318d3339559b8df42671a0",
        "nonce": "0x0000000000000000",
        "number": 120176435,
        "parentBeaconBlockRoot": "0x7827f91de909daa000e52825679cbc06dbcf7072b4a8ab68b54cbb6d0dcec42e",
        "parentHash": "0x1fa37c3ac8d773edc1a34db90392209dd1d6db946838ec228e49cfa94e27c1e4",
        "receiptsRoot": "0x01002939a3817612c1358ffe9ad2717cf601b05f92e933317734e3747cabdfd8",
        "size": 9790,
        "timestamp": 1715951647,
        "totalDifficulty": "210470125",
        "transactions": [
          {
            "chainId": "10",
            "hash": "0x42ec283b0645b4baf8d51d12367166d5deee083a17337a10030d16fa1bd3cf01",
            "transactionStatus": true,
            "blockNumber": "120176435",
            "timestamp": null,
            "from": "0xDeaDDEaDDeAdDeAdDEAdDEaddeAddEAdDEAd0001",
            "to": "0x4200000000000000000000000000000000000015",
            "value": "0",
            "transactionFees": "0",
            "gas": "1000000",
            "gasPrice": "0",
            "input": "0x440a5e2000000558000c5fc5000000000000000100000000664757cf00000000012f7ef800000000000000000000000000000000000000000000000000000001af3d359f0000000000000000000000000000000000000000000000000000000000000001e7d237613847583de24917e06316788eb50ffbd5481897a62d33af2d4280acfe0000000000000000000000006887246668a3b87f54deb3b94ba47a6f63f32985",
            "nonce": 14941372,
            "type": 126,
            "network": null,
            "v": "0x0",
            "r": "0x0",
            "s": "0x0",
            "yParity": null,
            "transactionIndex": null,
            "accessList": null,
            "maxFeePerGas": null,
            "maxPriorityFeePerGas": null,
            "logs": []
          }
        ]
      }
    ],
    "transactionsRoot": "0xc779fb506d30f19350f3f70015266c99d9e5da669f448adb0c8d6e00e7145c8c",
    "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 ](/ids/chain-ids)page for details. |
| chainSymbol                               | String | Refer to the [Chain ID ](/ids/chain-ids)page for details. |

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

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

{% endtab %}

{% tab title="Sample Response" %}

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

{% 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 ](/ids/chain-ids)page for details.        |
| chainSymbol                               | String | Refer to the [Chain ID ](/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=10&address=0x5470EA9f962D138229043F903b96E083484A6330
```

{% endtab %}

{% tab title="Sample Response" %}

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

{% 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 ](/ids/chain-ids)page for details. |
| chainSymbol                                       | String | Refer to the [Chain ID ](/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=10&transactionHash=0xda0dd3b42e45d85ddb470cab146bbc957ee0eb5a6c95ab9996b6c3a1868b0082
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
  "status": 200,
  "msg": "success",
  "data": {
    "chainId": "10",
    "hash": "0xda0dd3b42e45d85ddb470cab146bbc957ee0eb5a6c95ab9996b6c3a1868b0082",
    "transactionStatus": true,
    "blockNumber": "71563515",
    "timestamp": null,
    "from": "0x6Af9Fed62bb9011A12cB8AA69e771c1BD0AD988E",
    "to": "0x5470EA9f962D138229043F903b96E083484A6330",
    "value": "0",
    "transactionFees": "155081000000",
    "gas": "164014",
    "gasPrice": "1000000",
    "input": "0xb6b55f25000000000000000000000000000000000000000000000005be07ce1fc37bd490",
    "nonce": 91,
    "type": null,
    "network": null,
    "v": "0x37",
    "r": "0xaa5d462ea82810d8b4a25c9c4bde5f4227129ce76320661e2923d924b887d987",
    "s": "0x60673ae3d96c8128e665a551fa677f922dc7d7e5bf46417ad012810ecd40ff0a",
    "yParity": null,
    "transactionIndex": null,
    "accessList": null,
    "maxFeePerGas": null,
    "maxPriorityFeePerGas": null,
    "logs": [
      {
        "address": "0x8c6f28f2F1A3C87F0f938b96d27520d9751ec8d9",
        "blockHash": "0x023ce51c258329572f4c38e3506f292f5a89d7022d2d2f9a757acd7b77ea5713",
        "blockNumber": 71563515,
        "data": "0x000000000000000000000000000000000000000000000005be07ce1fc37bd490",
        "logIndex": 0,
        "removed": false,
        "topics": [
          "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
          "0x0000000000000000000000006af9fed62bb9011a12cb8aa69e771c1bd0ad988e",
          "0x0000000000000000000000005470ea9f962d138229043f903b96e083484a6330"
        ],
        "transactionHash": "0xda0dd3b42e45d85ddb470cab146bbc957ee0eb5a6c95ab9996b6c3a1868b0082",
        "transactionIndex": 0,
        "id": "log_826bee00"
      },
      {
        "address": "0x5470EA9f962D138229043F903b96E083484A6330",
        "blockHash": "0x023ce51c258329572f4c38e3506f292f5a89d7022d2d2f9a757acd7b77ea5713",
        "blockNumber": 71563515,
        "data": "0x000000000000000000000000000000000000000000000005be07ce1fc37bd490",
        "logIndex": 1,
        "removed": false,
        "topics": [
          "0xe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c",
          "0x0000000000000000000000006af9fed62bb9011a12cb8aa69e771c1bd0ad988e"
        ],
        "transactionHash": "0xda0dd3b42e45d85ddb470cab146bbc957ee0eb5a6c95ab9996b6c3a1868b0082",
        "transactionIndex": 0,
        "id": "log_baae694e"
      }
    ]
  }
}
```

{% 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="/pages/5o1xMsQPqXw9GBfGTpdB">Chain ID </a>page for details.</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>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=10&address=0xDeaDDEaDDeAdDeAdDEAdDEaddeAddEAdDEAd0001&availableOnly=true
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "native": "0",
        "evmTokens": [
            {
                "name": "$FLOKI AIRDROP AT flokicrypto.xyz",
                "symbol": "$FLOKI",
                "decimals": "0",
                "address": "0x0b0556f2604431e78f5aca455c6de70078c681c7",
                "balance": "1",
                "assetType": "ERC1155",
                "tokenId": "0"
            },
            {
                "name": "FLOKI AIRDROP AT floki-crypto.online",
                "symbol": "$FLOKI",
                "decimals": "0",
                "address": "0xba3991734d633e9e6ac71139537518abc50a23f0",
                "balance": "4",
                "assetType": "ERC1155",
                "tokenId": "1"
            },
            {
                "name": "Omnichain Adventures",
                "symbol": "OMNIA",
                "decimals": "0",
                "address": "0xd12999440402d30f69e282d45081999412013844",
                "balance": "1",
                "assetType": "ERC721",
                "tokenId": "3587678"
            }
        ]
    }
}
```

{% 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="/pages/5o1xMsQPqXw9GBfGTpdB">Chain ID </a>page for details.</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>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?pageSize=5&address=0xf4dd9Bc7ae7Ae04502ec85FB9f4EE0463E905b20&chainId=10
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "nextPageToken": "eyJhbGciOiJIUzI1NiJ9.eyJ0YWJsZUluZGV4IjowLCJsYXN0RXZhbHVhdGVkS2V5Ijp7IndhbGxldEFkZHJlc3MiOiIweGY0ZGQ5YmM3YWU3YWUwNDUwMmVjODVmYjlmNGVlMDQ2M2U5MDViMjAiLCJ0aW1lc3RhbXBfYmxvY2tOdW1iZXJfdHhJbmRleCI6IjAwMDAwMDE3MzMwMzUyMTUwMDEyODcxODIxOTAwMDAxIn0sInBhZ2VOdW1iZXIiOjAsImtleUNvbmRpdGlvbkV4cHJlc3Npb24iOnsid2FsbGV0QWRkcmVzcyI6eyJlcSI6IjB4ZjRkZDliYzdhZTdhZTA0NTAyZWM4NWZiOWY0ZWUwNDYzZTkwNWIyMCJ9LCJ0aW1lc3RhbXBfYmxvY2tOdW1iZXJfdHhJbmRleCI6eyJiZXR3ZWVuIjpbIjAwMDAwMDE2MTA2Mzk1MDAwMDAwMDAwMDAwMDAwMDAwIiwiMDAwMDAwMTczMzA0MDY2MzAwMDAwMDAwMDAwOTk5OTkiXX19LCJsaW1pdCI6IjUiLCJvcmRlciI6ImRlc2NlbmRpbmcifQ.m02VvH0dPZ0ruZ-TIQp1CNDoV3bEeAn7oyAI8q5fIIM",
        "pageSize": "5",
        "transactions": [
            {
                "hash": "0x8ac9b1476c03894a4ee9db0dc994b915c0505b871f66a40b8f5fe7b00024f68b",
                "nonce": "18422",
                "transaction_index": "1",
                "from_address_entity": "Kraken",
                "from_address_entity_logo": "https://entities-logos.s3.us-east-1.amazonaws.com/kraken.png",
                "from_address": "0xf4dd9bc7ae7ae04502ec85fb9f4ee0463e905b20",
                "from_address_label": "Kraken: Hot Wallet",
                "to_address_entity": null,
                "to_address_entity_logo": null,
                "to_address": "0xa195ce2f91f28f6e1233d31604f8df9b538925cf",
                "to_address_label": null,
                "value": "52459267700000000",
                "gas": "21000",
                "gas_price": "2000000401",
                "receipt_cumulative_gas_used": "64887",
                "receipt_gas_used": "21000",
                "receipt_contract_address": null,
                "receipt_status": "1",
                "block_timestamp": "2024-12-01T08:03:23.000Z",
                "block_number": "128720713",
                "block_hash": "0xcc96a52e1f6c7a49ee038c9784462eaa4588df49f768f458d4c9995b806ffe98",
                "transaction_fee": "0.000042412136191476",
                "method_label": null,
                "nft_transfers": [],
                "erc20_transfers": [],
                "native_transfers": [
                    {
                        "from_address_entity": "Kraken",
                        "from_address_entity_logo": "https://entities-logos.s3.us-east-1.amazonaws.com/kraken.png",
                        "from_address": "0xf4dd9bc7ae7ae04502ec85fb9f4ee0463e905b20",
                        "from_address_label": "Kraken: Hot Wallet",
                        "to_address_entity": null,
                        "to_address_entity_logo": null,
                        "to_address": "0xa195ce2f91f28f6e1233d31604f8df9b538925cf",
                        "to_address_label": null,
                        "value": "52459267700000000",
                        "value_formatted": "0.0524592677",
                        "direction": "send",
                        "internal_transaction": false,
                        "token_symbol": "ETH"
                    }
                ],
                "summary": "Sent 0.05245 ETH to 0xa1...25cf",
                "possible_spam": false,
                "category": "send",
                "internal_transactions": []
            },
            {
                "hash": "0x33e9ee3137ce2d4a95e227096d5cd65227ecbc6cd757c4b8b84532d7effa8f77",
                "nonce": "1478",
                "transaction_index": "13",
                "from_address_entity": null,
                "from_address_entity_logo": null,
                "from_address": "0xc3a11b747dca056d5ff7c5904e49cdb82d4fa266",
                "from_address_label": null,
                "to_address_entity": null,
                "to_address_entity_logo": null,
                "to_address": "0xaa4269fa8453c8584ed65c350a988172e66f62e4",
                "to_address_label": null,
                "value": "0",
                "gas": "3800000",
                "gas_price": "5000",
                "receipt_cumulative_gas_used": "4296710",
                "receipt_gas_used": "531693",
                "receipt_contract_address": null,
                "receipt_status": "1",
                "block_timestamp": "2024-12-01T07:50:39.000Z",
                "block_number": "128720331",
                "block_hash": "0x81c9dc0d421c92c5d5d3bc846c84616e2bab3a5904f032c26e62b4a15c84666f",
                "transaction_fee": "0.000000962921528016",
                "method_label": null,
                "nft_transfers": [],
                "erc20_transfers": [],
                "native_transfers": [
                    {
                        "from_address_entity": null,
                        "from_address_entity_logo": null,
                        "from_address": "0xa67eca15af7324ce971eaf17e4af31a602d9155b",
                        "from_address_label": null,
                        "to_address_entity": "Kraken",
                        "to_address_entity_logo": "https://entities-logos.s3.us-east-1.amazonaws.com/kraken.png",
                        "to_address": "0xf4dd9bc7ae7ae04502ec85fb9f4ee0463e905b20",
                        "to_address_label": "Kraken: Hot Wallet",
                        "value": "1",
                        "value_formatted": "1e-18",
                        "direction": "receive",
                        "internal_transaction": true,
                        "token_symbol": "ETH"
                    }
                ],
                "summary": "Received 0 ETH from 0xa6...155b",
                "possible_spam": false,
                "category": "receive",
                "internal_transactions": [
                    {
                        "transaction_hash": "0x33e9ee3137ce2d4a95e227096d5cd65227ecbc6cd757c4b8b84532d7effa8f77",
                        "block_number": 128720331,
                        "block_hash": "0x81c9dc0d421c92c5d5d3bc846c84616e2bab3a5904f032c26e62b4a15c84666f",
                        "type": "CALL",
                        "from": "0xaa4269fa8453c8584ed65c350a988172e66f62e4",
                        "to": "0x53a6ab16c50db4a3e5873ffc5ac30c488515dcac",
                        "value": "1",
                        "gas": "2300",
                        "gas_used": "195",
                        "input": "0x",
                        "output": "0x"
                    },
                    {
                        "transaction_hash": "0x33e9ee3137ce2d4a95e227096d5cd65227ecbc6cd757c4b8b84532d7effa8f77",
                        "block_number": 128720331,
                        "block_hash": "0x81c9dc0d421c92c5d5d3bc846c84616e2bab3a5904f032c26e62b4a15c84666f",
                        "type": "CALL",
                        "from": "0xaa4269fa8453c8584ed65c350a988172e66f62e4",
                        "to": "0xa67eca15af7324ce971eaf17e4af31a602d9155b",
                        "value": "1",
                        "gas": "2300",
                        "gas_used": "195",
                        "input": "0x",
                        "output": "0x"
                    },
                    {
                        "transaction_hash": "0x33e9ee3137ce2d4a95e227096d5cd65227ecbc6cd757c4b8b84532d7effa8f77",
                        "block_number": 128720331,
                        "block_hash": "0x81c9dc0d421c92c5d5d3bc846c84616e2bab3a5904f032c26e62b4a15c84666f",
                        "type": "CALL",
                        "from": "0x53a6ab16c50db4a3e5873ffc5ac30c488515dcac",
                        "to": "0x68b547d1bd2459b8f857b6c06e48d5b2f9eabc9a",
                        "value": "1",
                        "gas": "2300",
                        "gas_used": "0",
                        "input": "0x",
                        "output": "0x"
                    },
                    {
                        "transaction_hash": "0x33e9ee3137ce2d4a95e227096d5cd65227ecbc6cd757c4b8b84532d7effa8f77",
                        "block_number": 128720331,
                        "block_hash": "0x81c9dc0d421c92c5d5d3bc846c84616e2bab3a5904f032c26e62b4a15c84666f",
                        "type": "CALL",
                        "from": "0xa67eca15af7324ce971eaf17e4af31a602d9155b",
                        "to": "0xf4dd9bc7ae7ae04502ec85fb9f4ee0463e905b20",
                        "value": "1",
                        "gas": "2300",
                        "gas_used": "0",
                        "input": "0x",
                        "output": "0x"
                    }
                ]
            },
            {
                "hash": "0x717337f6a3bc35a7189e9941802bfb0c6ea1e177a2baf7900b13938cc97b5c20",
                "nonce": "18421",
                "transaction_index": "1",
                "from_address_entity": "Kraken",
                "from_address_entity_logo": "https://entities-logos.s3.us-east-1.amazonaws.com/kraken.png",
                "from_address": "0xf4dd9bc7ae7ae04502ec85fb9f4ee0463e905b20",
                "from_address_label": "Kraken: Hot Wallet",
                "to_address_entity": null,
                "to_address_entity_logo": null,
                "to_address": "0xa6cedb34b194c68518348e1148cc6983bed9155b",
                "to_address_label": null,
                "value": "5000000000000000000",
                "gas": "21000",
                "gas_price": "2000000394",
                "receipt_cumulative_gas_used": "64899",
                "receipt_gas_used": "21000",
                "receipt_contract_address": null,
                "receipt_status": "1",
                "block_timestamp": "2024-12-01T07:48:41.000Z",
                "block_number": "128720272",
                "block_hash": "0xfb6e0d481543358a744e671fe06cf1224dd09d940a628f49a6ed1daf8a7ce759",
                "transaction_fee": "0.000042892479659101",
                "method_label": null,
                "nft_transfers": [],
                "erc20_transfers": [],
                "native_transfers": [
                    {
                        "from_address_entity": "Kraken",
                        "from_address_entity_logo": "https://entities-logos.s3.us-east-1.amazonaws.com/kraken.png",
                        "from_address": "0xf4dd9bc7ae7ae04502ec85fb9f4ee0463e905b20",
                        "from_address_label": "Kraken: Hot Wallet",
                        "to_address_entity": null,
                        "to_address_entity_logo": null,
                        "to_address": "0xa6cedb34b194c68518348e1148cc6983bed9155b",
                        "to_address_label": null,
                        "value": "5000000000000000000",
                        "value_formatted": "5",
                        "direction": "send",
                        "internal_transaction": false,
                        "token_symbol": "ETH"
                    }
                ],
                "summary": "Sent 5 ETH to 0xa6...155b",
                "possible_spam": false,
                "category": "send",
                "internal_transactions": []
            },
            {
                "hash": "0x5f4fd4ff276551e5c434e4f558ab208dddadac53e9807e603116fb8c15f276b4",
                "nonce": "18420",
                "transaction_index": "1",
                "from_address_entity": "Kraken",
                "from_address_entity_logo": "https://entities-logos.s3.us-east-1.amazonaws.com/kraken.png",
                "from_address": "0xf4dd9bc7ae7ae04502ec85fb9f4ee0463e905b20",
                "from_address_label": "Kraken: Hot Wallet",
                "to_address_entity": null,
                "to_address_entity_logo": null,
                "to_address": "0xfd72e6b11c22de5dc9402d5f9e490b163d418e36",
                "to_address_label": null,
                "value": "94548620000000000",
                "gas": "21000",
                "gas_price": "2000000408",
                "receipt_cumulative_gas_used": "64887",
                "receipt_gas_used": "21000",
                "receipt_contract_address": null,
                "receipt_status": "1",
                "block_timestamp": "2024-12-01T06:45:11.000Z",
                "block_number": "128718367",
                "block_hash": "0x912882ba191991f42dcd3e97182299d6e8d94ffeba77ce38868225a5561e7664",
                "transaction_fee": "0.000042882704617581",
                "method_label": null,
                "nft_transfers": [],
                "erc20_transfers": [],
                "native_transfers": [
                    {
                        "from_address_entity": "Kraken",
                        "from_address_entity_logo": "https://entities-logos.s3.us-east-1.amazonaws.com/kraken.png",
                        "from_address": "0xf4dd9bc7ae7ae04502ec85fb9f4ee0463e905b20",
                        "from_address_label": "Kraken: Hot Wallet",
                        "to_address_entity": null,
                        "to_address_entity_logo": null,
                        "to_address": "0xfd72e6b11c22de5dc9402d5f9e490b163d418e36",
                        "to_address_label": null,
                        "value": "94548620000000000",
                        "value_formatted": "0.09454862",
                        "direction": "send",
                        "internal_transaction": false,
                        "token_symbol": "ETH"
                    }
                ],
                "summary": "Sent 0.09454 ETH to 0xfd...8e36",
                "possible_spam": false,
                "category": "send",
                "internal_transactions": []
            },
            {
                "hash": "0x0c0b46baff3d363d96d440fdeefbb81c5c9aaf12615673fc598a416882cfa2f3",
                "nonce": "18419",
                "transaction_index": "1",
                "from_address_entity": "Kraken",
                "from_address_entity_logo": "https://entities-logos.s3.us-east-1.amazonaws.com/kraken.png",
                "from_address": "0xf4dd9bc7ae7ae04502ec85fb9f4ee0463e905b20",
                "from_address_label": "Kraken: Hot Wallet",
                "to_address_entity": null,
                "to_address_entity_logo": null,
                "to_address": "0xfd72e6b11c22de5dc9402d5f9e490b163d418e36",
                "to_address_label": null,
                "value": "2700000000000000",
                "gas": "21000",
                "gas_price": "2000000396",
                "receipt_cumulative_gas_used": "64899",
                "receipt_gas_used": "21000",
                "receipt_contract_address": null,
                "receipt_status": "1",
                "block_timestamp": "2024-12-01T06:40:15.000Z",
                "block_number": "128718219",
                "block_hash": "0x238577495ae83d611600d2c3f2e68dd281e531a028d3b6abacd2f024cdf7d96c",
                "transaction_fee": "0.000043026797681474",
                "method_label": null,
                "nft_transfers": [],
                "erc20_transfers": [],
                "native_transfers": [
                    {
                        "from_address_entity": "Kraken",
                        "from_address_entity_logo": "https://entities-logos.s3.us-east-1.amazonaws.com/kraken.png",
                        "from_address": "0xf4dd9bc7ae7ae04502ec85fb9f4ee0463e905b20",
                        "from_address_label": "Kraken: Hot Wallet",
                        "to_address_entity": null,
                        "to_address_entity_logo": null,
                        "to_address": "0xfd72e6b11c22de5dc9402d5f9e490b163d418e36",
                        "to_address_label": null,
                        "value": "2700000000000000",
                        "value_formatted": "0.0027",
                        "direction": "send",
                        "internal_transaction": false,
                        "token_symbol": "ETH"
                    }
                ],
                "summary": "Sent 0.0027 ETH to 0xfd...8e36",
                "possible_spam": false,
                "category": "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 ](/ids/chain-ids)page for details.      |
| chainSymbol                                      | String | Refer to the [Chain ID ](/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" : "10",
    "rawTransaction": "0xf86f048433918fbe830493e0949b79d6dfe4650d70f35dbb80f7d1ec0cf7f823fd87038d7ea4c6800084022794382da0c9bd6b5c7e18a258b04039d524a3e1382ec0f522d160dc027428933f520b6868a07332736f1df297842299230820626f1fc5b8d4cdd602ade55e3ba02c63e756ce"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId" : "10",
        "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 ](/ids/chain-ids)page for details. By default, Ethereum. |
| chainSymbol                                      | String | Refer to the [Chain ID ](/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": "10",
    "rawTransaction": "0xf86c808401fedd93830d575194a67e9b68c41b0f26184d64c26e0b2b81466e5994888ac7230489e800008038a09055da16d4d23b1d1831ff8c150820a5e48dc931a0682c708b147ffb9db78f95a0037037cd03120d877daf33ae416fe4f14091624da042312a5c080a25752839f8"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "parsedTx": {
            "nonce": 0,
            "gasPrice": {
                "type": "BigNumber",
                "hex": "0x01fedd93"
            },
            "gasLimit": {
                "type": "BigNumber",
                "hex": "0x0d5751"
            },
            "to": "0xa67E9B68c41b0f26184D64C26e0b2B81466E5994",
            "value": {
                "type": "BigNumber",
                "hex": "0x8ac7230489e80000"
            },
            "data": "0x",
            "chainId": 10,
            "v": 56,
            "r": "0x9055da16d4d23b1d1831ff8c150820a5e48dc931a0682c708b147ffb9db78f95",
            "s": "0x037037cd03120d877daf33ae416fe4f14091624da042312a5c080a25752839f8",
            "from": "0xa2e73C17F437688946993F683930E3Fd42Dd4F8C",
            "hash": "0x7616dbfb6f7b9a3d82049be986b913a4b03d264ed5ecc7496cfb6037bb157dde",
            "type": null
        },
        "assetChanges": {
            "from": "0xa2e73C17F437688946993F683930E3Fd42Dd4F8C",
            "to": "0xa67E9B68c41b0f26184D64C26e0b2B81466E5994",
            "value": {
                "type": "BigNumber",
                "hex": "0x8ac7230489e80000"
            }
        }
    }
}
```

{% endtab %}
{% endtabs %}


# Base

### /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="175">Name</th><th width="97">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</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" %}

```url
https://api.expand.network/chain/getbalance?chainId=8453&blockNumber=15351657&address=0x20FE51A9229EEf2cF8Ad9E89d91CAb9312cF3b7A&tokenAddress=0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
```

{% endtab %}

{% tab title="Sample Response" %}

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

{% 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 ](/ids/chain-ids)page for details.                                                                         |
| chainSymbol                               | String | Refer to the [Chain ID ](/ids/chain-ids)page for details.                                                                         |
| startBlock                                | String | Starting block of the range. Note: Maximum supported range is 10, meaning the startBlock is determined by endBlock - 9.           |
| endBlock                                  | String | <p>Last block of the range. </p><p>Note: Maximum supported range is 10, meaning the endBlock is determined by startBlock + 9.</p> |

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

```url
https://historicallp.api.expand.network/chain/getblock?chainId=8453
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
  "status": 200,
  "msg": "success",
  "data": {
    "baseFeePerGas": 52,
    "difficulty": "0",
    "extraData": "0x",
    "gasLimit": 30000000,
    "gasUsed": 918397,
    "hash": "0x97250c54e310eb29a30b7ab4184b1cce9e466e7063b5590d52b73709e0bb230e",
    "logsBloom": "0x00320000000000380000010082000002000002400000000000848000280000100100000000000000040400100400000000000000000420000200000000102000000041108400004800000008000020200000400800000014000000000000000000000200c00002000140000010040000000000000204040000000012000a0000080001000004000100000000000000000400800000200208000800400000000000108010000000010000081080000000000000000000000000000010800000008000000200000000000000004000100000000000042020100001000000000000000008000085408000000010000000800000a000010000001000010400000004",
    "miner": "0x4200000000000000000000000000000000000011",
    "mixHash": "0x9e3ca5a8047da9c040f7b92fd39e6bfd76a6fc08c9f9afd15b3453c206c6ab22",
    "nonce": "0x0000000000000000",
    "number": 6283173,
    "parentHash": "0xed86a845409a882270d4512487b7dafdfe91157da6d1e6c50d738de5a4a3ae92",
    "receiptsRoot": "0x4e6cf0bb0f40be05a6e77c767a7a97186d13f2e5ab2735a958963c231545b043",
    "size": 4031,
    "timestamp": 1699355693,
    "totalDifficulty": "0",
    "transactions": [
      {
        "chainId": "8453",
        "hash": "0xefd80cb6f1e2b08a00ae403b9c07db6722c9dd7e98498c7e8e658a20c28f9b44",
        "transactionStatus": true,
        "blockNumber": "6283173",
        "timestamp": null,
        "from": "0xDeaDDEaDDeAdDeAdDEAdDEaddeAddEAdDEAd0001",
        "to": "0x4200000000000000000000000000000000000015",
        "value": "0",
        "transactionFees": "0",
        "gas": "1000000",
        "gasPrice": "0",
        "input": "0x015d8eb900000000000000000000000000000000000000000000000000000000011a968e00000000000000000000000000000000000000000000000000000000654a1b67000000000000000000000000000000000000000000000000000000054e8dc227ca326b2e75777ac174fe3b26a4253a7251a3941f6baf85dc5876503434ef969000000000000000000000000000000000000000000000000000000000000000050000000000000000000000005050f69a9786f081509234f1a7f4684b5e5b76c900000000000000000000000000000000000000000000000000000000000000bc00000000000000000000000000000000000000000000000000000000000a6fe0",
        "nonce": 6283172,
        "type": 126,
        "network": null,
        "v": "0x0",
        "r": "0x0",
        "s": "0x0",
        "yParity": null,
        "transactionIndex": null,
        "accessList": null,
        "maxFeePerGas": null,
        "maxPriorityFeePerGas": null,
        "logs": []
      }
    ],
    "transactionsRoot": "0xb5bde09f63711b915471936e273ed18b8dc7d6038ce053fe629ae82a66133bff",
    "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 ](/ids/chain-ids)page for details. |
| chainSymbol                               | String | Refer to the [Chain ID ](/ids/chain-ids)page for details. |

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

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

{% endtab %}

{% tab title="Sample Response" %}

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

{% 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 ](/ids/chain-ids)page for details.        |
| chainSymbol                               | String | Refer to the [Chain ID ](/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=8453&address=0xCA6f5B49967B492FEE81cA9C92a63a98903DD965
```

{% endtab %}

{% tab title="Sample Response" %}

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

{% 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 ](/ids/chain-ids)page for details. |
| chainSymbol                                       | String | Refer to the [Chain ID ](/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=8453&transactionHash=0xcf15634c154cb70b8e02268eedd58d4949312414f796ca3296eebe07dc94ffb4
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
  "status": 200,
  "msg": "success",
  "data": {
    "chainId": "8453",
    "hash": "0xcf15634c154cb70b8e02268eedd58d4949312414f796ca3296eebe07dc94ffb4",
    "transactionStatus": true,
    "blockNumber": "6283395",
    "timestamp": null,
    "from": "0x2c40a57BC2E05eBcd00C2c007097f838c7b3a115",
    "to": "0x10d16248bED1E0D0c7cF94fFD99A50c336c7Bcdc",
    "value": "264853642455711",
    "transactionFees": "27221958120",
    "gas": "545832",
    "gasPrice": "58632",
    "input": "0x2d62fc1a000000000000000000000000000000000000000000000000000000000000006a000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000034ac8b7d0000000000000000000000000000000000000000000000000000000034691f45000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000001e00002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000068c7abb8b1c3d1ce467e28265770f3a7ecf3265400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000142c40a57bc2e05ebcd00c2c007097f838c7b3a11500000000000000000000000000000000000000000000000000000000000000000000000000000000000000142c40a57bc2e05ebcd00c2c007097f838c7b3a115000000000000000000000000",
    "nonce": 7,
    "type": 2,
    "network": null,
    "v": "0x1",
    "r": "0xf5468f7b1dd4952216fbceb319e0881b38f9c5bf4ecac0471e21ba83d2e99477",
    "s": "0x3c993a5ff3b1bbb8315abd4550389c98e55048267c046456a5eea5c9df4cbf03",
    "yParity": "0x1",
    "transactionIndex": 4,
    "accessList": [],
    "maxFeePerGas": "58648",
    "maxPriorityFeePerGas": "58570",
    "logs": [
      {
        "address": "0xd9aAEc86B65D86f6A7B5B1b0c42FFA531710b6CA",
        "topics": [
          "0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925",
          "0x0000000000000000000000002c40a57bc2e05ebcd00c2c007097f838c7b3a115",
          "0x00000000000000000000000010d16248bed1e0d0c7cf94ffd99a50c336c7bcdc"
        ],
        "data": "0x0000000000000000000000000000000000000000000000000000000000000000",
        "blockNumber": 6283395,
        "transactionHash": "0xcf15634c154cb70b8e02268eedd58d4949312414f796ca3296eebe07dc94ffb4",
        "transactionIndex": 4,
        "blockHash": "0xfe8efe5b0571ba47ca724c65d3ca69a35fe2c521cd9e726701548e027c4b2493",
        "logIndex": 8,
        "removed": false,
        "id": "log_3d65fdd5"
      },
      {
        "address": "0xd9aAEc86B65D86f6A7B5B1b0c42FFA531710b6CA",
        "topics": [
          "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
          "0x0000000000000000000000002c40a57bc2e05ebcd00c2c007097f838c7b3a115",
          "0x00000000000000000000000010d16248bed1e0d0c7cf94ffd99a50c336c7bcdc"
        ],
        "data": "0x0000000000000000000000000000000000000000000000000000000034ac8b7d",
        "blockNumber": 6283395,
        "transactionHash": "0xcf15634c154cb70b8e02268eedd58d4949312414f796ca3296eebe07dc94ffb4",
        "transactionIndex": 4,
        "blockHash": "0xfe8efe5b0571ba47ca724c65d3ca69a35fe2c521cd9e726701548e027c4b2493",
        "logIndex": 9,
        "removed": false,
        "id": "log_ecc2fe08"
      },
      {
        "address": "0xd9aAEc86B65D86f6A7B5B1b0c42FFA531710b6CA",
        "topics": [
          "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
          "0x00000000000000000000000010d16248bed1e0d0c7cf94ffd99a50c336c7bcdc",
          "0x00000000000000000000000068c7abb8b1c3d1ce467e28265770f3a7ecf32654"
        ],
        "data": "0x0000000000000000000000000000000000000000000000000000000000000000",
        "blockNumber": 6283395,
        "transactionHash": "0xcf15634c154cb70b8e02268eedd58d4949312414f796ca3296eebe07dc94ffb4",
        "transactionIndex": 4,
        "blockHash": "0xfe8efe5b0571ba47ca724c65d3ca69a35fe2c521cd9e726701548e027c4b2493",
        "logIndex": 10,
        "removed": false,
        "id": "log_35fe1ff4"
      },
      {
        "address": "0x4c80E24119CFB836cdF0a6b53dc23F04F7e652CA",
        "topics": [
          "0x34660fc8af304464529f48a778e03d03e4d34bcd5f9b6f0cfbf3cd238c642f7f"
        ],
        "data": "0x000000000000000000000000000000000000000000000000000000000000006a000000000000000000000000000000000000000000000000000000000000000100000000000000000000000010d16248bed1e0d0c7cf94ffd99a50c336c7bcdc0000000000000000000000000000000000000000000000000000000034a474440000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000678f000000000000000000000000000000000000000000000000000000000007afaa0000000000000000000000000000000000000000000000000000000000000000",
        "blockNumber": 6283395,
        "transactionHash": "0xcf15634c154cb70b8e02268eedd58d4949312414f796ca3296eebe07dc94ffb4",
        "transactionIndex": 4,
        "blockHash": "0xfe8efe5b0571ba47ca724c65d3ca69a35fe2c521cd9e726701548e027c4b2493",
        "logIndex": 11,
        "removed": false,
        "id": "log_04e0e7eb"
      },
      {
        "address": "0xd9aAEc86B65D86f6A7B5B1b0c42FFA531710b6CA",
        "topics": [
          "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
          "0x00000000000000000000000010d16248bed1e0d0c7cf94ffd99a50c336c7bcdc",
          "0x0000000000000000000000004c80e24119cfb836cdf0a6b53dc23f04f7e652ca"
        ],
        "data": "0x0000000000000000000000000000000000000000000000000000000034ac8b7d",
        "blockNumber": 6283395,
        "transactionHash": "0xcf15634c154cb70b8e02268eedd58d4949312414f796ca3296eebe07dc94ffb4",
        "transactionIndex": 4,
        "blockHash": "0xfe8efe5b0571ba47ca724c65d3ca69a35fe2c521cd9e726701548e027c4b2493",
        "logIndex": 12,
        "removed": false,
        "id": "log_83b6c61f"
      },
      {
        "address": "0x4c80E24119CFB836cdF0a6b53dc23F04F7e652CA",
        "topics": [
          "0x6939f93e3f21cf1362eb17155b740277de5687dae9a83a85909fd71da95944e7"
        ],
        "data": "0x000000000000000000000000000000000000000000000000000000000000006a00000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000005d8f00000000000000000000000000000000000000000000000000000076387ba3c5",
        "blockNumber": 6283395,
        "transactionHash": "0xcf15634c154cb70b8e02268eedd58d4949312414f796ca3296eebe07dc94ffb4",
        "transactionIndex": 4,
        "blockHash": "0xfe8efe5b0571ba47ca724c65d3ca69a35fe2c521cd9e726701548e027c4b2493",
        "logIndex": 13,
        "removed": false,
        "id": "log_283af9eb"
      },
      {
        "address": "0xcb566e3B6934Fa77258d68ea18E931fa75e1aaAa",
        "topics": [
          "0xdf21c415b78ed2552cc9971249e32a053abce6087a0ae0fbf3f78db5174a3493"
        ],
        "data": "0x0000000000000000000000000000000000000000000000000000cb4c0d4e15a6",
        "blockNumber": 6283395,
        "transactionHash": "0xcf15634c154cb70b8e02268eedd58d4949312414f796ca3296eebe07dc94ffb4",
        "transactionIndex": 4,
        "blockHash": "0xfe8efe5b0571ba47ca724c65d3ca69a35fe2c521cd9e726701548e027c4b2493",
        "logIndex": 14,
        "removed": false,
        "id": "log_8ac52c14"
      },
      {
        "address": "0x38dE71124f7a447a01D67945a51eDcE9FF491251",
        "topics": [
          "0xb0c632f55f1e1b3b2c3d82f41ee4716bb4c00f0f5d84cdafc141581bb8757a4f"
        ],
        "data": "0x0000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000220001000000000000000000000000000000000000000000000000000000000002ab98000000000000000000000000000000000000000000000000000000000000",
        "blockNumber": 6283395,
        "transactionHash": "0xcf15634c154cb70b8e02268eedd58d4949312414f796ca3296eebe07dc94ffb4",
        "transactionIndex": 4,
        "blockHash": "0xfe8efe5b0571ba47ca724c65d3ca69a35fe2c521cd9e726701548e027c4b2493",
        "logIndex": 15,
        "removed": false,
        "id": "log_2633890d"
      },
      {
        "address": "0xD56e4eAb23cb81f43168F9F45211Eb027b9aC7cc",
        "topics": [
          "0x87e46b0a6199bc734632187269a103c05714ee0adae5b28f30723955724f37ef"
        ],
        "data": "0x00000000000000000000000000000000000000000000000000000faffcf2285f",
        "blockNumber": 6283395,
        "transactionHash": "0xcf15634c154cb70b8e02268eedd58d4949312414f796ca3296eebe07dc94ffb4",
        "transactionIndex": 4,
        "blockHash": "0xfe8efe5b0571ba47ca724c65d3ca69a35fe2c521cd9e726701548e027c4b2493",
        "logIndex": 16,
        "removed": false,
        "id": "log_d4bdabd1"
      },
      {
        "address": "0x38dE71124f7a447a01D67945a51eDcE9FF491251",
        "topics": [
          "0xe9bded5f24a4168e4f3bf44e00298c993b22376aad8c58c7dda9718a54cbea82"
        ],
        "data": "0x000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000002540000000000007b6100b8af54be5b6eec24d6bfacf1cce4eaf680a8239398006a9d1b1669c73b033dfe47ae5a0164ab96df25b94400000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005d8f00000000000000000000000000000000000000000000000000000076387ba3c50000000000000000000000000000000000000000000000000000000034a47444000000000000000000000000000000000000000000000000000000000000678f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007afaa0000000000000000000000000000000000000000000000000000000034ac8b7d00000000000000000000000000000000000000000000000000000000000001c0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000142c40a57bc2e05ebcd00c2c007097f838c7b3a1150000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
        "blockNumber": 6283395,
        "transactionHash": "0xcf15634c154cb70b8e02268eedd58d4949312414f796ca3296eebe07dc94ffb4",
        "transactionIndex": 4,
        "blockHash": "0xfe8efe5b0571ba47ca724c65d3ca69a35fe2c521cd9e726701548e027c4b2493",
        "logIndex": 17,
        "removed": false,
        "id": "log_b81b4bc3"
      },
      {
        "address": "0xAF54BE5B6eEc24d6BFACf1cce4eaF680A8239398",
        "topics": [
          "0x8d3ee0df6a4b7e82a7f20a763f1c6826e6176323e655af64f32318827d2112d4"
        ],
        "data": "0x00000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000007b61",
        "blockNumber": 6283395,
        "transactionHash": "0xcf15634c154cb70b8e02268eedd58d4949312414f796ca3296eebe07dc94ffb4",
        "transactionIndex": 4,
        "blockHash": "0xfe8efe5b0571ba47ca724c65d3ca69a35fe2c521cd9e726701548e027c4b2493",
        "logIndex": 18,
        "removed": false,
        "id": "log_683a516c"
      },
      {
        "address": "0x10d16248bED1E0D0c7cF94fFD99A50c336c7Bcdc",
        "topics": [
          "0xe005092a469280dafcad91e38921cc6f96eac91d73413489fd8719634163345e",
          "0x0002000000000000000000000000000000000000000000000000000000000000"
        ],
        "data": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
        "blockNumber": 6283395,
        "transactionHash": "0xcf15634c154cb70b8e02268eedd58d4949312414f796ca3296eebe07dc94ffb4",
        "transactionIndex": 4,
        "blockHash": "0xfe8efe5b0571ba47ca724c65d3ca69a35fe2c521cd9e726701548e027c4b2493",
        "logIndex": 19,
        "removed": false,
        "id": "log_eeaf2cff"
      }
    ]
  }
}
```

{% 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="/pages/5o1xMsQPqXw9GBfGTpdB">Chain ID </a>page for details.</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>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=8453&address=0xA5af143fd6f6093FDcF6D51d3641F08eaa07d53f&availableOnly=true
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "native": "3975672043073686",
        "evmTokens": [
            {
                "name": "The Doge NFT",
                "symbol": "DOG",
                "decimals": "18",
                "address": "0xafb89a09d82fbde58f18ac6437b3fc81724e4df6",
                "balance": "10000000000000000000",
                "assetType": "ERC20",
                "USDPrice": "0.013040102445834898"
            }
        ]
    }
}
```

{% 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="/pages/5o1xMsQPqXw9GBfGTpdB">Chain ID </a>page for details.</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>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?pageSize=5&address=0xF977814e90dA44bFA03b6295A0616a897441aceC&chainId=8453
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "nextPageToken": "eyJhbGciOiJIUzI1NiJ9.eyJ0YWJsZUluZGV4IjowLCJsYXN0RXZhbHVhdGVkS2V5Ijp7IndhbGxldEFkZHJlc3MiOiIweGY5Nzc4MTRlOTBkYTQ0YmZhMDNiNjI5NWEwNjE2YTg5NzQ0MWFjZWMiLCJ0aW1lc3RhbXBfYmxvY2tOdW1iZXJfdHhJbmRleCI6IjAwMDAwMDE3MzI5Nzc4NjkwMDAyMzA5NDI2MTAwMDYzIn0sInBhZ2VOdW1iZXIiOjAsImtleUNvbmRpdGlvbkV4cHJlc3Npb24iOnsid2FsbGV0QWRkcmVzcyI6eyJlcSI6IjB4Zjk3NzgxNGU5MGRhNDRiZmEwM2I2Mjk1YTA2MTZhODk3NDQxYWNlYyJ9LCJ0aW1lc3RhbXBfYmxvY2tOdW1iZXJfdHhJbmRleCI6eyJiZXR3ZWVuIjpbIjAwMDAwMDE2ODY3ODkzNDcwMDAwMDAwMDAwMDAwMDAwIiwiMDAwMDAwMTczMzA0MDc0NTAwMDAwMDAwMDAwOTk5OTkiXX19LCJsaW1pdCI6IjUiLCJvcmRlciI6ImRlc2NlbmRpbmcifQ.YMgDx4OjdzQjN6TslYNrzUqYiKUJjyyn3w4nqUXvINU",
        "pageSize": "5",
        "transactions": [
            {
                "hash": "0xc8f36c00ff0ae6022cee08974abbc2cb0f4c2528566ae02a9ce8c8e019db9229",
                "nonce": "157",
                "transaction_index": "56",
                "from_address_entity": null,
                "from_address_entity_logo": null,
                "from_address": "0xe80ec33a43c5d4b02b56677a0b1590b0dffe7e0d",
                "from_address_label": null,
                "to_address_entity": null,
                "to_address_entity_logo": null,
                "to_address": "0x3a02b900afb60d7b9e54f614acb9682bf3a865b2",
                "to_address_label": null,
                "value": "0",
                "gas": "6203802",
                "gas_price": "38018238",
                "receipt_cumulative_gas_used": "14926055",
                "receipt_gas_used": "6153795",
                "receipt_contract_address": null,
                "receipt_status": "1",
                "block_timestamp": "2024-11-30T17:58:39.000Z",
                "block_number": "23100086",
                "block_hash": "0x01e2f9b98b663680156e1ff5792be3efe16eabff8b1956e47af09bb458f73ced",
                "transaction_fee": "0.000407927698305152",
                "method_label": null,
                "nft_transfers": [],
                "erc20_transfers": [
                    {
                        "token_name": "SIMMI",
                        "token_symbol": "SIMMI",
                        "token_decimals": "8",
                        "from_address_entity": null,
                        "from_address_entity_logo": null,
                        "from_address": "0xec43bb90fe51c9fb1c9fa3e0913c7dd33f4a8cfd",
                        "from_address_label": null,
                        "to_address_entity": null,
                        "to_address_entity_logo": null,
                        "to_address": "0xf977814e90da44bfa03b6295a0616a897441acec",
                        "to_address_label": null,
                        "address": "0x3a02b900afb60d7b9e54f614acb9682bf3a865b2",
                        "log_index": 966,
                        "value": "91007200000000000",
                        "possible_spam": false,
                        "verified_contract": false,
                        "security_score": null,
                        "direction": "receive",
                        "value_formatted": "910072000"
                    }
                ],
                "native_transfers": [],
                "summary": "Received 910,072,000 SIMMI from 0xec...8cfd",
                "possible_spam": false,
                "category": "token receive",
                "internal_transactions": []
            },
            {
                "hash": "0x7620969f76f506e74d41fadc2a28e193fc0e370f171479c2af89e80aa3573e33",
                "nonce": "154",
                "transaction_index": "94",
                "from_address_entity": null,
                "from_address_entity_logo": null,
                "from_address": "0xe80ec33a43c5d4b02b56677a0b1590b0dffe7e0d",
                "from_address_label": null,
                "to_address_entity": null,
                "to_address_entity_logo": null,
                "to_address": "0x3a02b900afb60d7b9e54f614acb9682bf3a865b2",
                "to_address_label": null,
                "value": "0",
                "gas": "4868766",
                "gas_price": "66892072",
                "receipt_cumulative_gas_used": "23762782",
                "receipt_gas_used": "4829271",
                "receipt_contract_address": null,
                "receipt_status": "1",
                "block_timestamp": "2024-11-30T16:00:11.000Z",
                "block_number": "23096532",
                "block_hash": "0x73701d8f063e432eecd2b5527b697957a8b5a2e1e787705cae3ee7afcb29afbc",
                "transaction_fee": "0.001100532770970039",
                "method_label": null,
                "nft_transfers": [],
                "erc20_transfers": [
                    {
                        "token_name": "SIMMI",
                        "token_symbol": "SIMMI",
                        "token_decimals": "8",
                        "from_address_entity": null,
                        "from_address_entity_logo": null,
                        "from_address": "0xec43bb90fe51c9fb1c9fa3e0913c7dd33f4a8cfd",
                        "from_address_label": null,
                        "to_address_entity": null,
                        "to_address_entity_logo": null,
                        "to_address": "0xf977814e90da44bfa03b6295a0616a897441acec",
                        "to_address_label": null,
                        "address": "0x3a02b900afb60d7b9e54f614acb9682bf3a865b2",
                        "log_index": 1298,
                        "value": "103118000000000000",
                        "possible_spam": false,
                        "verified_contract": false,
                        "security_score": null,
                        "direction": "receive",
                        "value_formatted": "1031180000"
                    }
                ],
                "native_transfers": [],
                "summary": "Received 1,031,180,000 SIMMI from 0xec...8cfd",
                "possible_spam": false,
                "category": "token receive",
                "internal_transactions": []
            },
            {
                "hash": "0xe23deb8e7b5732d7565cef064f98791d35eafff62d8d98caa1dacb563300df38",
                "nonce": "116",
                "transaction_index": "67",
                "from_address_entity": null,
                "from_address_entity_logo": null,
                "from_address": "0xe80ec33a43c5d4b02b56677a0b1590b0dffe7e0d",
                "from_address_label": null,
                "to_address_entity": null,
                "to_address_entity_logo": null,
                "to_address": "0x3a02b900afb60d7b9e54f614acb9682bf3a865b2",
                "to_address_label": null,
                "value": "0",
                "gas": "1743852",
                "gas_price": "59185231",
                "receipt_cumulative_gas_used": "12903500",
                "receipt_gas_used": "1728963",
                "receipt_contract_address": null,
                "receipt_status": "1",
                "block_timestamp": "2024-11-30T15:21:19.000Z",
                "block_number": "23095366",
                "block_hash": "0x3cfca9b2ff45a3c008b3220120745a82f5727bd4fc979e68e6463526dafb20bd",
                "transaction_fee": "0.000290034255052147",
                "method_label": null,
                "nft_transfers": [],
                "erc20_transfers": [
                    {
                        "token_name": "SIMMI",
                        "token_symbol": "SIMMI",
                        "token_decimals": "8",
                        "from_address_entity": null,
                        "from_address_entity_logo": null,
                        "from_address": "0xec43bb90fe51c9fb1c9fa3e0913c7dd33f4a8cfd",
                        "from_address_label": null,
                        "to_address_entity": null,
                        "to_address_entity_logo": null,
                        "to_address": "0xf977814e90da44bfa03b6295a0616a897441acec",
                        "to_address_label": null,
                        "address": "0x3a02b900afb60d7b9e54f614acb9682bf3a865b2",
                        "log_index": 388,
                        "value": "118244000000000000",
                        "possible_spam": false,
                        "verified_contract": false,
                        "security_score": null,
                        "direction": "receive",
                        "value_formatted": "1182440000"
                    }
                ],
                "native_transfers": [],
                "summary": "Received 1,182,440,000 SIMMI from 0xec...8cfd",
                "possible_spam": false,
                "category": "token receive",
                "internal_transactions": []
            },
            {
                "hash": "0xcbe72850efc21f0ce259afd6cbd5847fa53154abb39034e14d78cced1eeb6a86",
                "nonce": "105",
                "transaction_index": "59",
                "from_address_entity": null,
                "from_address_entity_logo": null,
                "from_address": "0xe80ec33a43c5d4b02b56677a0b1590b0dffe7e0d",
                "from_address_label": null,
                "to_address_entity": null,
                "to_address_entity_logo": null,
                "to_address": "0x3a02b900afb60d7b9e54f614acb9682bf3a865b2",
                "to_address_label": null,
                "value": "0",
                "gas": "2192525",
                "gas_price": "35377985",
                "receipt_cumulative_gas_used": "11223095",
                "receipt_gas_used": "2174103",
                "receipt_contract_address": null,
                "receipt_status": "1",
                "block_timestamp": "2024-11-30T14:44:37.000Z",
                "block_number": "23094265",
                "block_hash": "0x25719e59a58b0cbc55e768bc4296d538f657f8722361c692049df07c29d2b3f0",
                "transaction_fee": "0.000275900410927471",
                "method_label": null,
                "nft_transfers": [],
                "erc20_transfers": [
                    {
                        "token_name": "SIMMI",
                        "token_symbol": "SIMMI",
                        "token_decimals": "8",
                        "from_address_entity": null,
                        "from_address_entity_logo": null,
                        "from_address": "0xec43bb90fe51c9fb1c9fa3e0913c7dd33f4a8cfd",
                        "from_address_label": null,
                        "to_address_entity": null,
                        "to_address_entity_logo": null,
                        "to_address": "0xf977814e90da44bfa03b6295a0616a897441acec",
                        "to_address_label": null,
                        "address": "0x3a02b900afb60d7b9e54f614acb9682bf3a865b2",
                        "log_index": 536,
                        "value": "118244000000000000",
                        "possible_spam": false,
                        "verified_contract": false,
                        "security_score": null,
                        "direction": "receive",
                        "value_formatted": "1182440000"
                    }
                ],
                "native_transfers": [],
                "summary": "Received 1,182,440,000 SIMMI from 0xec...8cfd",
                "possible_spam": false,
                "category": "token receive",
                "internal_transactions": []
            },
            {
                "hash": "0x7159f4d7a5096837b164d063c86b18f1fe2f5655d73cc5246ec6e39e15b4846a",
                "nonce": "104",
                "transaction_index": "63",
                "from_address_entity": null,
                "from_address_entity_logo": null,
                "from_address": "0xe80ec33a43c5d4b02b56677a0b1590b0dffe7e0d",
                "from_address_label": null,
                "to_address_entity": null,
                "to_address_entity_logo": null,
                "to_address": "0x3a02b900afb60d7b9e54f614acb9682bf3a865b2",
                "to_address_label": null,
                "value": "0",
                "gas": "2192525",
                "gas_price": "35358993",
                "receipt_cumulative_gas_used": "14834078",
                "receipt_gas_used": "2174103",
                "receipt_contract_address": null,
                "receipt_status": "1",
                "block_timestamp": "2024-11-30T14:44:29.000Z",
                "block_number": "23094261",
                "block_hash": "0x08448881039bdad4ef857930f4f78a9877e27ac5e4e326f7704a757cfcbe4ac7",
                "transaction_fee": "0.000275859120363295",
                "method_label": null,
                "nft_transfers": [],
                "erc20_transfers": [
                    {
                        "token_name": "SIMMI",
                        "token_symbol": "SIMMI",
                        "token_decimals": "8",
                        "from_address_entity": null,
                        "from_address_entity_logo": null,
                        "from_address": "0xec43bb90fe51c9fb1c9fa3e0913c7dd33f4a8cfd",
                        "from_address_label": null,
                        "to_address_entity": null,
                        "to_address_entity_logo": null,
                        "to_address": "0xf977814e90da44bfa03b6295a0616a897441acec",
                        "to_address_label": null,
                        "address": "0x3a02b900afb60d7b9e54f614acb9682bf3a865b2",
                        "log_index": 603,
                        "value": "118244000000000000",
                        "possible_spam": false,
                        "verified_contract": false,
                        "security_score": null,
                        "direction": "receive",
                        "value_formatted": "1182440000"
                    }
                ],
                "native_transfers": [],
                "summary": "Received 1,182,440,000 SIMMI from 0xec...8cfd",
                "possible_spam": false,
                "category": "token receive",
                "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 ](/ids/chain-ids)page for details.      |
| chainSymbol                                      | String | Refer to the [Chain ID ](/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": "8453",
    "rawTransaction": "0xf86a80830f4272830a3d8794a67e9b68c41b0f26184d64c26e0b2b81466e5994843b9aca00808302948ca0e073bcaa02ab49f019278be707e3e50433ac7ae6107649a8b1cbdbc368e9482ea05ba36d559c5b70ffa289f90a572adc0863c46fdd067c40c2f37b9ea666fcc8e7"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "8453",
        "transactionHash": "0x2e5309f53a8c11841afc88c12c099e5c5c59271379fa3cc65df863fa18a64a60" 
    }
}
```

{% endtab %}
{% endtabs %}


# zkSync Era

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

| Name                                      | Type   | Description                                                                                                                                 |
| ----------------------------------------- | ------ | ------------------------------------------------------------------------------------------------------------------------------------------- |
| rpc                                       | String | Remote procedural call URL                                                                                                                  |
| chainId<mark style="color:red;">\*</mark> | String | Refer to the [Chain ID ](/ids/chain-ids)page for details.                                                                                   |
| chainSymbol                               | String | Refer to the [Chain ID ](/ids/chain-ids)page for details.                                                                                   |
| blockNumber                               | String | <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> |
| address<mark style="color:red;">\*</mark> | String | The public address to get the balance of.                                                                                                   |
| tokenAddress                              | String | The address of token to get the balance of.                                                                                                 |

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

```url
https://api.expand.network/chain/getbalance?chainId=324&blockNumber=35710825&address=0x5f5BB2b9A16d48541d38E048E94a9CD713bD6Cb7&tokenAddress=0x3355df6D4c9C3035724Fd0e3914dE96A5a83aaf4
```

{% endtab %}

{% tab title="Sample Response" %}

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

{% 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 ](/ids/chain-ids)page for details. |
| chainSymbol                                   | String | Refer to the [Chain ID ](/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=696293&chainId=324
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
  "status": 200,
  "msg": "success",
  "data": {
    "baseFeePerGas": 250000000,
    "difficulty": "0",
    "extraData": "0x",
    "gasLimit": 4294967295,
    "gasUsed": 3273403,
    "hash": "0x978dd7094735b8621254f26a875f020413ef7a498ad5dce79ab322bf5c4e5313",
    "l1BatchNumber": "0x1c05",
    "l1BatchTimestamp": "0x642a40e5",
    "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
    "miner": "0x0000000000000000000000000000000000000000",
    "mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
    "nonce": "0x0000000000000000",
    "number": 696293,
    "parentHash": "0x0019d93c7755306ee4861d6e203fe3bf754fab46c24d74f9a700a46b236c023f",
    "receiptsRoot": "0x0000000000000000000000000000000000000000000000000000000000000000",
    "sealFields": [],
    "size": 0,
    "timestamp": 1680490794,
    "totalDifficulty": "0",
    "transactions": [
      {
        "chainId": "324",
        "hash": "0x638118f1c0ee1ec486d54e3928839380cac1c32952b9938c6ce83ec068bb4552",
        "transactionStatus": true,
        "blockNumber": "696293",
        "timestamp": null,
        "from": "0x4a16466fCE63B2c79e562A35Dad32E9F3cAEF90d",
        "to": "0xD0eA21ba66B67bE636De1EC4bd9696EB8C61e9AA",
        "value": "0",
        "transactionFees": "107598250000000",
        "gas": "764969",
        "gasPrice": "250000000",
        "input": "0x095ea7b30000000000000000000000002da10a1e27bf85cedd8ffb1abbe97e53391c02950000000000000000000000000000000000000000000000001bc16d674ec80000",
        "nonce": 4,
        "type": null,
        "network": null,
        "v": "0x2ab",
        "r": "0x5e405172ff1cbf5b4af2595c15f67e79c7049efd3f990611950c511a10494468",
        "s": "0x78ca1efdb6e3cce11267a9d17de75aee293da3f0406396f3d08a8fc4c2345b8a",
        "yParity": null,
        "transactionIndex": null,
        "accessList": null,
        "maxFeePerGas": "260000000",
        "maxPriorityFeePerGas": "260000000",
        "logs": []
      }
    ],
    "transactionsRoot": "0x0000000000000000000000000000000000000000000000000000000000000000",
    "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 ](/ids/chain-ids)page for details. |
| chainSymbol                               | String | Refer to the [Chain ID ](/ids/chain-ids)page for details. |

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

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

{% endtab %}

{% tab title="Sample Response" %}

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

{% 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 ](/ids/chain-ids)page for details.        |
| chainSymbol                               | String | Refer to the [Chain ID ](/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?address=0x32Fd44bB869620C0EF993754c8a00Be67C464806&chainId=324&index=0
```

{% endtab %}

{% tab title="Sample Response" %}

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

{% 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 ](/ids/chain-ids)page for details. |
| chainSymbol                                       | String | Refer to the [Chain ID ](/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=324&transactionHash=0xe43b77386a5e5bdffaa62b347044cfd28b71947b6c9869046a1df644a3b83bb0
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
  "status": 200,
  "msg": "success",
  "data": {
    "chainId": "324",
    "hash": "0xe43b77386a5e5bdffaa62b347044cfd28b71947b6c9869046a1df644a3b83bb0",
    "transactionStatus": true,
    "blockNumber": "26972503",
    "timestamp": null,
    "from": "0xBf1C2eD425398FD04ecf319BEbd39EC487eEFeDF",
    "to": "0x3355df6D4c9C3035724Fd0e3914dE96A5a83aaf4",
    "value": "0",
    "transactionFees": "47253200000000",
    "gas": "1056669",
    "gasPrice": "100000000",
    "input": "0x095ea7b3000000000000000000000000f8b59f3c3ab33200ec80a8a58b2aa5f5d2a8944cffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",
    "nonce": 50,
    "type": 2,
    "network": null,
    "v": "0x0",
    "r": "0x45f3755db709c047dd9305f891fb44903f1dd6cf7a18747202d97a1b6a07e6bd",
    "s": "0x14f97115c291f73c75ea7d4f5b8d2019fcb33e934c65ab193929075591abc83d",
    "yParity": null,
    "transactionIndex": 25,
    "accessList": null,
    "maxFeePerGas": "135000000",
    "maxPriorityFeePerGas": "0",
    "logs": [
      {
        "address": "0x000000000000000000000000000000000000800A",
        "blockHash": "0x01f0e4321958ad440ccc627214933209614abac4f5534a8f15a13a2a92f97037",
        "blockNumber": 26972503,
        "data": "0x000000000000000000000000000000000000000000000000000081bd5d5a48c0",
        "l1BatchNumber": "0x6b911",
        "logIndex": 136,
        "logType": null,
        "removed": false,
        "topics": [
          "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
          "0x000000000000000000000000bf1c2ed425398fd04ecf319bebd39ec487eefedf",
          "0x0000000000000000000000000000000000000000000000000000000000008001"
        ],
        "transactionHash": "0xe43b77386a5e5bdffaa62b347044cfd28b71947b6c9869046a1df644a3b83bb0",
        "transactionIndex": 25,
        "transactionLogIndex": "0x0",
        "id": "log_d7912a52"
      },
      {
        "address": "0x000000000000000000000000000000000000800A",
        "blockHash": "0x01f0e4321958ad440ccc627214933209614abac4f5534a8f15a13a2a92f97037",
        "blockNumber": 26972503,
        "data": "0x000000000000000000000000000000000000000000000000000021a2df504bc0",
        "l1BatchNumber": "0x6b911",
        "logIndex": 137,
        "logType": null,
        "removed": false,
        "topics": [
          "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
          "0x0000000000000000000000000000000000000000000000000000000000008001",
          "0x000000000000000000000000bf1c2ed425398fd04ecf319bebd39ec487eefedf"
        ],
        "transactionHash": "0xe43b77386a5e5bdffaa62b347044cfd28b71947b6c9869046a1df644a3b83bb0",
        "transactionIndex": 25,
        "transactionLogIndex": "0x1",
        "id": "log_66ae4e73"
      },
      {
        "address": "0x3355df6D4c9C3035724Fd0e3914dE96A5a83aaf4",
        "blockHash": "0x01f0e4321958ad440ccc627214933209614abac4f5534a8f15a13a2a92f97037",
        "blockNumber": 26972503,
        "data": "0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",
        "l1BatchNumber": "0x6b911",
        "logIndex": 138,
        "logType": null,
        "removed": false,
        "topics": [
          "0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925",
          "0x000000000000000000000000bf1c2ed425398fd04ecf319bebd39ec487eefedf",
          "0x000000000000000000000000f8b59f3c3ab33200ec80a8a58b2aa5f5d2a8944c"
        ],
        "transactionHash": "0xe43b77386a5e5bdffaa62b347044cfd28b71947b6c9869046a1df644a3b83bb0",
        "transactionIndex": 25,
        "transactionLogIndex": "0x2",
        "id": "log_e96517f9"
      },
      {
        "address": "0x000000000000000000000000000000000000800A",
        "blockHash": "0x01f0e4321958ad440ccc627214933209614abac4f5534a8f15a13a2a92f97037",
        "blockNumber": 26972503,
        "data": "0x000000000000000000000000000000000000000000000000000035207fd6a900",
        "l1BatchNumber": "0x6b911",
        "logIndex": 139,
        "logType": null,
        "removed": false,
        "topics": [
          "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
          "0x0000000000000000000000000000000000000000000000000000000000008001",
          "0x000000000000000000000000bf1c2ed425398fd04ecf319bebd39ec487eefedf"
        ],
        "transactionHash": "0xe43b77386a5e5bdffaa62b347044cfd28b71947b6c9869046a1df644a3b83bb0",
        "transactionIndex": 25,
        "transactionLogIndex": "0x3",
        "id": "log_350928fb"
      }
    ]
  }
}
```

{% 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 ](/ids/chain-ids)page for details.      |
| chainSymbol                                      | String | Refer to the [Chain ID ](/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
{
    "rawTransaction": "0xf86d0d8405f5e100830927c0946fb447ae94f5180254d436a693907a1f5769690087038d7ea4c680008082027ba0d73a953d53eb64f90c7c91273df70074021ec9d6aa2280ba53527086a5d45f65a0273ee55497b2374af9b244af11a2e5a02f94137385fac51ef51f21908a18ca57",
    "chainId": "324"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "324",
        "transactionHash": "0x7d987e52e0b106a2171919775970089b052857046fbf32137c8c445f10d6d69f" 
    }
}
```

{% 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 ](/ids/chain-ids)page for details. By default, Ethereum. |
| chainSymbol                                      | String | Refer to the [Chain ID ](/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
{
    "rawTransaction": "0xf86d808405f5e100830927c0946fb447ae94f5180254d436a693907a1f5769690087038d7ea4c68000808202aca0535316a857d5c6f59ee228509cf9eb638905250548c7a7effcc6ebff22bca4dea012a9859bf2f663521c9832f1d118de7d548e119b5d9b07ff6d6d349025b3f8b2"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "parsedTx": {
            "nonce": 0,
            "gasPrice": {
                "type": "BigNumber",
                "hex": "0x05f5e100"
            },
            "gasLimit": {
                "type": "BigNumber",
                "hex": "0x0927c0"
            },
            "to": "0x6Fb447Ae94F5180254D436A693907a1f57696900",
            "value": {
                "type": "BigNumber",
                "hex": "0x038d7ea4c68000"
            },
            "data": "0x",
            "chainId": 324,
            "v": 684,
            "r": "0x535316a857d5c6f59ee228509cf9eb638905250548c7a7effcc6ebff22bca4de",
            "s": "0x12a9859bf2f663521c9832f1d118de7d548e119b5d9b07ff6d6d349025b3f8b2",
            "from": "0x56D2208EfD27Fe9C67e3879DeBCe35833B9D4cC7",
            "hash": "0x90521267c0d1e6f72398e1bc1d45552415145126656a385c07494c56832ea3c9",
            "type": null
        },
        "assetChanges": {
            "from": "0x56D2208EfD27Fe9C67e3879DeBCe35833B9D4cC7",
            "to": "0x6Fb447Ae94F5180254D436A693907a1f57696900",
            "value": {
                "type": "BigNumber",
                "hex": "0x038d7ea4c68000"
            }
        }
    }
}
```

{% endtab %}
{% endtabs %}


# 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 %}


# 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 %}


# Kaia

## /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><tr><td>vsCurrencies</td><td>String</td><td>A comma-separated list of currency symbols to convert the amount into, such as 'USD,EUR'. This parameter is optional and allows retrieving values in multiple fiat currencies.</td></tr></tbody></table>

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

```json
https://api.expand.network/chain/getbalance?address=0xb6ab494d9b20ede5e57b42b6d7f058a9c802b0e2&blockNumber=196533060&tokenAddress=0xd077a400968890eacc75cdc901f0356c943e4fdb&timestamp=1759314478&vsCurrencies=inr&chainId=8217
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "balance": "206875000000000",
        "usdPrice": "0.15125935122269693",
        "prices": {
            "usd": [
                {
                    "KAIA": "0.15125935122269693"
                }
            ],
            "inr": [
                {
                    "KAIA": "13.422043908551384"
                }
            ]
        },
        "logoUrl": "https://images.ctfassets.net/hwqnbx905qdp/5ZRKbbTbhbx9qCKeHaAqtd/631d6128cb9dc10726a72874a61e2458/eip155_8217-0x0000000000000000000000000000000000000000.webp",
        "tags": [
            "native"
        ]
    }
}
```

{% 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=196533060&chainId=8217
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "baseFeePerGas": 25000000000,
        "difficulty": "1",
        "extraData": "0x",
        "gasLimit": 999999999999,
        "gasUsed": 244254,
        "hash": "0x7a99bc838822f051801f0ec63d9881a7f7cedf19e01e0e97cbe91c8c3bdb9b6d",
        "logsBloom": "0x001000000084001000000000000002200000000000000000000000024800000000000000000000000000001000000000080010000000000000008000042000000000000000000000000100080010010000000010000000000004000000080020000000000000000000800010000400000002000000000000000000110101000080800000000a0400000400004000080000000000000040004004100000020000020000000000008000000000000000001000000000800840040004000800080000100002080008000000000000000000000000000008000000000000000000000010204180000010100000000000100000000000000000000000000008084000",
        "miner": "0x81513e31072d1cd8ab3B0c5A290e97513f000756",
        "mixHash": "0xc3f26ef24425cb5e1d4cb443d94d5651738794e07576a4dc6e04612c7aaa061f",
        "nonce": "0x0000000000000000",
        "number": 196533060,
        "parentHash": "0xeec0c32654022ed102fc7dcbf7ee9ba030dee4d5dc9313645e8c84ecc42f8047",
        "randomReveal": "0x9072380da070fffccc23509258810f461547e23d80323c2a739d275621e825139036882a34604b6d99d1b607bb075cf5005a88c8c0f720fe984662eca8f387a6d9b5ed8d68f6264e0f23da770b3b62b5ac5de943f12487bc04170b45306c73a4",
        "receiptsRoot": "0x5b43a6f0e693c74d8219ecea259a561681105ccdd5ca7b49f28b375913523bca",
        "size": 4974,
        "timestamp": 1758608738,
        "transactions": [
            {
                "chainId": "8217",
                "hash": "0x28944ae47fe2de68a7d661e0bba453e9ac93201b257710a28723a02b08be58ee",
                "transactionStatus": true,
                "blockNumber": "196533060",
                "timestamp": null,
                "from": "0x33c7C8382421E621E483Dd7Ad3dd74Ac4e93a970",
                "to": "0x0AD835Bc633552d80CDC4f6E411210b517E1397b",
                "value": "0",
                "transactionFees": "2830133625000000",
                "gas": "284085",
                "gasPrice": "27775000000",
                "input": "0x904e912900000000000000000000000000000000cc16157ebf2f4e73b2e9a01dbabb5384000000000000000000000000d077a400968890eacc75cdc901f0356c943e4fdb0000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000bb6db8f00000000000000000000000000000000000000000000000000000000000000010000000000000000000000002d153c234906b37aa73d58465de4cef9ea33feb100000000000000000000000000000000000000000000000000000000000186a0",
                "nonce": 25,
                "type": null,
                "network": null,
                "v": "0x4055",
                "r": "0x6f987805b5657cb79df437606fb4c4ba6b10ebdf5f2dceddad7e140c737db36e",
                "s": "0xac2648833ecbd7862949293d37e176bacf82391bd573d09898bd2d61d843cf2",
                "yParity": null,
                "transactionIndex": null,
                "accessList": null,
                "maxFeePerGas": null,
                "maxPriorityFeePerGas": null,
                "logs": [
                    {
                        "address": "0xd077A400968890Eacc75cdc901F0356c943e4fDb",
                        "topics": [
                            "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
                            "0x00000000000000000000000033c7c8382421e621e483dd7ad3dd74ac4e93a970",
                            "0x0000000000000000000000000ad835bc633552d80cdc4f6e411210b517e1397b"
                        ],
                        "data": "0x00000000000000000000000000000000000000000000000000000000000186a0",
                        "blockNumber": 196533060,
                        "transactionHash": "0x28944ae47fe2de68a7d661e0bba453e9ac93201b257710a28723a02b08be58ee",
                        "transactionIndex": 0,
                        "blockHash": "0x7a99bc838822f051801f0ec63d9881a7f7cedf19e01e0e97cbe91c8c3bdb9b6d",
                        "logIndex": 0,
                        "removed": false,
                        "id": "log_ae71052b"
                    },
                    {
                        "address": "0xd077A400968890Eacc75cdc901F0356c943e4fDb",
                        "topics": [
                            "0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925",
                            "0x00000000000000000000000033c7c8382421e621e483dd7ad3dd74ac4e93a970",
                            "0x0000000000000000000000000ad835bc633552d80cdc4f6e411210b517e1397b"
                        ],
                        "data": "0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffb86faf",
                        "blockNumber": 196533060,
                        "transactionHash": "0x28944ae47fe2de68a7d661e0bba453e9ac93201b257710a28723a02b08be58ee",
                        "transactionIndex": 0,
                        "blockHash": "0x7a99bc838822f051801f0ec63d9881a7f7cedf19e01e0e97cbe91c8c3bdb9b6d",
                        "logIndex": 1,
                        "removed": false,
                        "id": "log_567823ce"
                    },
                    {
                        "address": "0xd077A400968890Eacc75cdc901F0356c943e4fDb",
                        "topics": [
                            "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
                            "0x0000000000000000000000000ad835bc633552d80cdc4f6e411210b517e1397b",
                            "0x0000000000000000000000002d153c234906b37aa73d58465de4cef9ea33feb1"
                        ],
                        "data": "0x00000000000000000000000000000000000000000000000000000000000186a0",
                        "blockNumber": 196533060,
                        "transactionHash": "0x28944ae47fe2de68a7d661e0bba453e9ac93201b257710a28723a02b08be58ee",
                        "transactionIndex": 0,
                        "blockHash": "0x7a99bc838822f051801f0ec63d9881a7f7cedf19e01e0e97cbe91c8c3bdb9b6d",
                        "logIndex": 2,
                        "removed": false,
                        "id": "log_2f50a77b"
                    },
                    {
                        "address": "0x0AD835Bc633552d80CDC4f6E411210b517E1397b",
                        "topics": [
                            "0x639640d80e13a4a583a2a46f45b4c0eb3bead3aedaae97b64bb90605e83d5976",
                            "0x00000000000000000000000000000000cc16157ebf2f4e73b2e9a01dbabb5384"
                        ],
                        "data": "0xd15c68f55d14477cd87ae67b118f552b89e008fb364d42e968fc517a5117b963",
                        "blockNumber": 196533060,
                        "transactionHash": "0x28944ae47fe2de68a7d661e0bba453e9ac93201b257710a28723a02b08be58ee",
                        "transactionIndex": 0,
                        "blockHash": "0x7a99bc838822f051801f0ec63d9881a7f7cedf19e01e0e97cbe91c8c3bdb9b6d",
                        "logIndex": 3,
                        "removed": false,
                        "id": "log_a5bceed0"
                    }
                ]
            },
            {
                "chainId": "8217",
                "hash": "0x706113cbb07cab208611add24e8ad21b010fdac41f47da554ad3c1fb577427aa",
                "transactionStatus": true,
                "blockNumber": "196533060",
                "timestamp": null,
                "from": "0xA9aA1c740bbF47871DAD0c30B0B9c15961148A96",
                "to": "0x9399a2dfAD16F9DB1791f7B4323393F409A8eA1e",
                "value": "0",
                "transactionFees": "2722977675000000",
                "gas": "272511",
                "gasPrice": "27775000000",
                "input": "0xfa6870bd00000000000000000000000000000000ce4474e06c1779b4891124f17a6a8444000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000014a437261d8f720c7222e9c3df41f40b340e512000000000000000000000000d077a400968890eacc75cdc901f0356c943e4fdb0000000000000000000000000000000000000000000000000000000000517b600000000000000000000000000000000000000000000000000000000068d23d740000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000004163a4216b53a0bc10337224070947c155f95569820ce9f85d2e29fee1bff7ca1a6464a54772dbd51756c0031cc98dc3aa40716dc82565ea278805e89788daca5d1c00000000000000000000000000000000000000000000000000000000000000",
                "nonce": 13,
                "type": null,
                "network": null,
                "v": "0x4056",
                "r": "0xfe88357e9220d2c593dd8a23b1eb24f64a93ea644d8092e6ba18a72b9927304b",
                "s": "0x5fdfe81dbbf2ce7e41779f09d1d90bf9f91ba3bde47f262f6a00b1ec0a037d49",
                "yParity": null,
                "transactionIndex": 1,
                "accessList": null,
                "maxFeePerGas": null,
                "maxPriorityFeePerGas": null,
                "logs": [
                    {
                        "address": "0x3482148F07FD33c679979dB3eA0b352C2380F898",
                        "topics": [
                            "0x2cd023a3cb2b5585df437221f807347b0683b2f3c4a562be1f055baafd2e22af",
                            "0x00000000000000000000000000000000ce4474e06c1779b4891124f17a6a8444",
                            "0x000000000000000000000000d077a400968890eacc75cdc901f0356c943e4fdb"
                        ],
                        "data": "0x000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000c",
                        "blockNumber": 196533060,
                        "transactionHash": "0x706113cbb07cab208611add24e8ad21b010fdac41f47da554ad3c1fb577427aa",
                        "transactionIndex": 1,
                        "blockHash": "0x7a99bc838822f051801f0ec63d9881a7f7cedf19e01e0e97cbe91c8c3bdb9b6d",
                        "logIndex": 4,
                        "removed": false,
                        "id": "log_9d32dc4a"
                    },
                    {
                        "address": "0xd077A400968890Eacc75cdc901F0356c943e4fDb",
                        "topics": [
                            "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
                            "0x000000000000000000000000014a437261d8f720c7222e9c3df41f40b340e512",
                            "0x0000000000000000000000009399a2dfad16f9db1791f7b4323393f409a8ea1e"
                        ],
                        "data": "0x0000000000000000000000000000000000000000000000000000000000517b60",
                        "blockNumber": 196533060,
                        "transactionHash": "0x706113cbb07cab208611add24e8ad21b010fdac41f47da554ad3c1fb577427aa",
                        "transactionIndex": 1,
                        "blockHash": "0x7a99bc838822f051801f0ec63d9881a7f7cedf19e01e0e97cbe91c8c3bdb9b6d",
                        "logIndex": 5,
                        "removed": false,
                        "id": "log_d9eb2b8d"
                    },
                    {
                        "address": "0x014a437261D8F720C7222e9C3dF41F40B340e512",
                        "topics": [
                            "0x6cca423c6ffc06e62a0acc433965e074b11c28479b0449250ce3ff65ac9e39fe",
                            "0x000000000000000000000000d077a400968890eacc75cdc901f0356c943e4fdb"
                        ],
                        "data": "0x0000000000000000000000000000000000000000000000000000000000517b60",
                        "blockNumber": 196533060,
                        "transactionHash": "0x706113cbb07cab208611add24e8ad21b010fdac41f47da554ad3c1fb577427aa",
                        "transactionIndex": 1,
                        "blockHash": "0x7a99bc838822f051801f0ec63d9881a7f7cedf19e01e0e97cbe91c8c3bdb9b6d",
                        "logIndex": 6,
                        "removed": false,
                        "id": "log_02614ec1"
                    },
                    {
                        "address": "0xd077A400968890Eacc75cdc901F0356c943e4fDb",
                        "topics": [
                            "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
                            "0x0000000000000000000000009399a2dfad16f9db1791f7b4323393f409a8ea1e",
                            "0x000000000000000000000000a9aa1c740bbf47871dad0c30b0b9c15961148a96"
                        ],
                        "data": "0x0000000000000000000000000000000000000000000000000000000000517b60",
                        "blockNumber": 196533060,
                        "transactionHash": "0x706113cbb07cab208611add24e8ad21b010fdac41f47da554ad3c1fb577427aa",
                        "transactionIndex": 1,
                        "blockHash": "0x7a99bc838822f051801f0ec63d9881a7f7cedf19e01e0e97cbe91c8c3bdb9b6d",
                        "logIndex": 7,
                        "removed": false,
                        "id": "log_8bbc5f87"
                    },
                    {
                        "address": "0x9399a2dfAD16F9DB1791f7B4323393F409A8eA1e",
                        "topics": [
                            "0x91a20618d6d654633e162ed6b2bd1f848a5d60848e71c08971c731eb0b0c2f3e",
                            "0x00000000000000000000000000000000ce4474e06c1779b4891124f17a6a8444",
                            "0x000000000000000000000000d077a400968890eacc75cdc901f0356c943e4fdb"
                        ],
                        "data": "0x000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000014a437261d8f720c7222e9c3df41f40b340e512000000000000000000000000a9aa1c740bbf47871dad0c30b0b9c15961148a960000000000000000000000000000000000000000000000000000000000517b60",
                        "blockNumber": 196533060,
                        "transactionHash": "0x706113cbb07cab208611add24e8ad21b010fdac41f47da554ad3c1fb577427aa",
                        "transactionIndex": 1,
                        "blockHash": "0x7a99bc838822f051801f0ec63d9881a7f7cedf19e01e0e97cbe91c8c3bdb9b6d",
                        "logIndex": 8,
                        "removed": false,
                        "id": "log_3cbe9560"
                    }
                ]
            },
            {
                "chainId": "8217",
                "hash": "0x09696be1c5dc952e5cd7f8fcd9e405a27f403c67e7c533fc9d15be2e6bdce591",
                "transactionStatus": true,
                "blockNumber": "196533060",
                "timestamp": null,
                "from": "0x5531A4D2B4237E87148630c3cB0051999Bb205A9",
                "to": "0xf93B0d3E03422416B787e850C51f7be47ab481E5",
                "value": "0",
                "transactionFees": "1218855000000000",
                "gas": "4300000",
                "gasPrice": "27500000000",
                "input": "0x0f73bcc20000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000b54200000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000002544a000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001aeabf88ecb298eb9fbc28eb9890ec98a4ed95b4ec98814f535429000000000000",
                "nonce": 12684647,
                "type": null,
                "network": null,
                "v": "0x4056",
                "r": "0x12beb0d82eaf92554b157320cb758cc84800d2e9fa700b96c82eb63e6583ac7",
                "s": "0x1ad7de657dd71d0e10d273399a0d1e2b60f909138a89115af61a43177f0de647",
                "yParity": null,
                "transactionIndex": 2,
                "accessList": null,
                "maxFeePerGas": null,
                "maxPriorityFeePerGas": null,
                "logs": [
                    {
                        "address": "0xf93B0d3E03422416B787e850C51f7be47ab481E5",
                        "topics": [
                            "0x23b798d2d48eb64eaa15f6b93414c84032fada9b76ade5854af0acadd57d7065",
                            "0xbcff12704be84695bcae04bed99f28737805bc5e5507d16a4d005393724d1a65",
                            "0x000000000000000000000000000000000000000000000000000000000000b542"
                        ],
                        "data": "0x0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000001aeabf88ecb298eb9fbc28eb9890ec98a4ed95b4ec98814f535429000000000000",
                        "blockNumber": 196533060,
                        "transactionHash": "0x09696be1c5dc952e5cd7f8fcd9e405a27f403c67e7c533fc9d15be2e6bdce591",
                        "transactionIndex": 2,
                        "blockHash": "0x7a99bc838822f051801f0ec63d9881a7f7cedf19e01e0e97cbe91c8c3bdb9b6d",
                        "logIndex": 9,
                        "removed": false,
                        "id": "log_179c294f"
                    }
                ]
            }
        ],
        "transactionsRoot": "0xd4211b960ca418c138c16b8b209b714f4e835f9a11b87bf27a0fab03e87dec3c",
        "uncles": []
    }
}
```

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

| Name                                      | Type   | Description                                                                                                               |
| ----------------------------------------- | ------ | ------------------------------------------------------------------------------------------------------------------------- |
| rpc                                       | String | Remote procedural call URL.                                                                                               |
| chainId                                   | 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 | Public addess of the user.                                                                                                |
| tokens                                    | String | Comma-separated value of ERC-20 tokens to get value of. Maximum 10 at a time.                                             |
| <p>assetType</p><p></p>                   | String | `fungible`/`nonFungible` standard choice. By default, `all`.                                                              |
| <p>timestamp</p><p></p><p></p>            | String | The Timestamp of the block number up to which the balances will be fetched. Note-Only applicable for assetType `fungible` |
| <p>blockNumber</p><p></p><p></p>          | String | The block number up to which the balances will be fetched. Note-Only applicable for assetType `fungible`                  |

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

```json5
https://api.expand.network/chain/portfolio?address=0x56b4b18f6293252fc5eec4e5df1915f7218d04fc&chainId=8217&availableOnly=false
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "native": "583980967286324075259711",
        "evmTokens": [
            {
                "name": "WETH",
                "symbol": "WETH",
                "decimals": "18",
                "address": "0x55acee547df909cf844e32dd66ee55a6f81dc71b",
                "balance": "2616533160461554494",
                "assetType": "ERC20",
                "USDPrice": "3957.588421654",
                "logoUrl": "https://images.ctfassets.net/hwqnbx905qdp/5wYtjebgyENWzA1C7dFp0t/c52bad629966e6e185967828e1af76bf/eip155_8217-0x55acee547df909cf844e32dd66ee55a6f81dc71b.webp",
                "tags": null
            },
            {
                "name": "Tether USD",
                "symbol": "USDT",
                "decimals": "6",
                "address": "0x9025095263d1e548dc890a7589a4c78038ac40ab",
                "balance": "25457960354",
                "assetType": "ERC20",
                "USDPrice": "1.0003938084",
                "logoUrl": "https://images.ctfassets.net/hwqnbx905qdp/6gHHp1dKMN94clQB2BZxWt/b1acaba653bb940969555c2bf2541ab8/eip155_8217-0x9025095263d1e548dc890a7589a4c78038ac40ab.webp",
                "tags": [
                    "stablecoin"
                ]
            },
            {
                "name": "Bridged USDC (Stargate)",
                "symbol": "USDC.e",
                "decimals": "6",
                "address": "0xE2053BCf56D2030d2470Fb454574237cF9ee3D4B",
                "balance": "10936326509",
                "assetType": "ERC20",
                "USDPrice": "0.9995869005",
                "logoUrl": "https://images.ctfassets.net/hwqnbx905qdp/2oDlk4TXbiI0SR6ElCehUW/5191562ed123a8b94b966a15a5b9fa4d/eip155_8217-0xE2053BCf56D2030d2470Fb454574237cF9ee3D4B.webp",
                "tags": [
                    "stablecoin"
                ]
            }
        ]
    }
}
```

{% 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?chainId=8217&transactionHash=0x7a4259d9e5add14229e3d9607a740e7eb178f649ee8c9c8201fa05545ffd9141
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "8217",
        "hash": "0x7a4259d9e5add14229e3d9607a740e7eb178f649ee8c9c8201fa05545ffd9141",
        "transactionStatus": true,
        "blockNumber": "196533119",
        "timestamp": null,
        "from": "0xb6ab494d9b20edE5E57b42b6D7f058A9c802B0e2",
        "to": "0x23bEd69b2EdF057DD3D6dB8b6990AB9792eB43eC",
        "value": "0",
        "transactionFees": "1793125000000000",
        "gas": "71725",
        "gasPrice": "25000000000",
        "input": "0xb856c49200000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001",
        "nonce": 0,
        "type": 2,
        "network": null,
        "v": "0x0",
        "r": "0x4776b0e5636e26a128006d6cfcb4054efd4152365a5f6ddbe07f0d7170234a37",
        "s": "0x4f8f4b040e34b822c0d4adc6bf68ceea2dc88ebea901b0954f586c1a2f276a7b",
        "yParity": null,
        "transactionIndex": 5,
        "accessList": [],
        "maxFeePerGas": "25000000000",
        "maxPriorityFeePerGas": "25000000000",
        "logs": [
            {
                "address": "0x23bEd69b2EdF057DD3D6dB8b6990AB9792eB43eC",
                "topics": [
                    "0x1cda624e8d4498808db987403eac202d4c03ddb3477ac5b96cd9fb05c1cce6a3"
                ],
                "data": "0x000000000000000000000000b6ab494d9b20ede5e57b42b6d7f058a9c802b0e20000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001",
                "blockNumber": 196533119,
                "transactionHash": "0x7a4259d9e5add14229e3d9607a740e7eb178f649ee8c9c8201fa05545ffd9141",
                "transactionIndex": 5,
                "blockHash": "0x7d0a0a468be4128081107ceb08055966f0ed8947e973f8912fb5afda6abc80f5",
                "logIndex": 0,
                "removed": false,
                "id": "log_fd860e0b"
            }
        ]
    }
}
```

{% 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=8217
```

{% endtab %}

{% tab title="Sample Response" %}

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

{% 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=0xb6ab494d9b20ede5e57b42b6d7f058a9c802b0e2&index=0&chainId=8217
```

{% 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": "0xf8ab8085066720b30082c8c69455acee547df909cf844e32dd66ee55a6f81dc71b80b844a9059cbb0000000000000000000000007d18db7c02029f4cd817085dfbc78d9c22c442900000000000000000000000000000000000000000000000000000000000000001824056a055fcf5b72b7c84e37f17f975ba400db7d9f87da09912254472436df8a898be98a014e4a31af18cb8dca5e96f3fb0a12f32451feae3ad09af4ac28511cf770af01e",
    "chainId": "8217"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "parsedTx": {
            "nonce": 0,
            "gasPrice": {
                "type": "BigNumber",
                "hex": "0x066720b300"
            },
            "gasLimit": {
                "type": "BigNumber",
                "hex": "0xc8c6"
            },
            "to": "0x55Acee547DF909CF844e32DD66eE55a6F81dC71b",
            "value": {
                "type": "BigNumber",
                "hex": "0x00"
            },
            "data": "0xa9059cbb0000000000000000000000007d18db7c02029f4cd817085dfbc78d9c22c442900000000000000000000000000000000000000000000000000000000000000001",
            "chainId": 8217,
            "v": 16470,
            "r": "0x55fcf5b72b7c84e37f17f975ba400db7d9f87da09912254472436df8a898be98",
            "s": "0x14e4a31af18cb8dca5e96f3fb0a12f32451feae3ad09af4ac28511cf770af01e",
            "from": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
            "hash": "0xb49757ac7683d44060e5d19b3f7a73a8457d8a32a00c7e33b5018bf0f9c303b7",
            "type": null
        },
        "assetChanges": {
            "from": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
            "to": "0x55Acee547DF909CF844e32DD66eE55a6F81dC71b",
            "value": {
                "type": "BigNumber",
                "hex": "0x00"
            }
        }
    }
}
```

{% 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": "0xf8ab8085066720b30082c8c69455acee547df909cf844e32dd66ee55a6f81dc71b80b844a9059cbb0000000000000000000000007d18db7c02029f4cd817085dfbc78d9c22c442900000000000000000000000000000000000000000000000000000000000000001824056a055fcf5b72b7c84e37f17f975ba400db7d9f87da09912254472436df8a898be98a014e4a31af18cb8dca5e96f3fb0a12f32451feae3ad09af4ac28511cf770af01e",
    "chainId": "8217"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "8217",
        "transactionHash": "0x7a4259d9e5add14229e3d9607a740e7eb178f649ee8c9c8201fa05"
    }
}

```

{% endtab %}
{% endtabs %}


# Non-EVM based chains

Following are the NON-EVM chains integrated with expand.network at present:-

* Tron
* Solana
* Near
* Algorand
* Aptos
* Sui
* Starknet
* TON
* Stellar (including Stellar RWA)
* XRP Ledger (including XRP RWA)
* [Cosmos Hub](/integrations/blockchains/non-evm-based-chains/cosmos-hub)
* [Stacks](/integrations/blockchains/non-evm-based-chains/stacks)
* [Bitcoin](/integrations/blockchains/non-evm-based-chains/bitcoin)


# Tron

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

| Name                                      | Type   | Description                                               |
| ----------------------------------------- | ------ | --------------------------------------------------------- |
| rpc                                       | String | Remote procedural call URL                                |
| chainId<mark style="color:red;">\*</mark> | String | Refer to the [Chain ID ](/ids/chain-ids)page for details. |
| chainSymbol                               | String | Refer to the [Chain ID ](/ids/chain-ids)page for details. |
| address<mark style="color:red;">\*</mark> | String | The public address to get the balance of.                 |
| tokenAddress                              | String | The address of token to get the balance of.               |

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

```url
https://api.expand.network/chain/getbalance/?address=TSgdbpW9UcUpMkyb3E3SuY8f3DJn4nYbux&chainId=1000
```

{% endtab %}

{% tab title="Sample Response" %}

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

{% 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 ](/ids/chain-ids)page for details. |
| chainSymbol                                   | String | Refer to the [Chain ID ](/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=48208733&chainId=1000
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "difficulty": null,
        "gasLimit": null,
        "gasUsed": null,
        "hash": "eca6c09ca08c8d0dddc1d09de5ac266ca200f2e236ca66f368fffe301e1827b0",
        "miner": "4114f2c09d3de3fe82a71960da65d4935a30b24e1f",
        "nonce": null,
        "size": null,
        "totalDifficulty": null,
        "transactions": [
            {
                "ret": [
                    {
                        "contractRet": "SUCCESS"
                    }
                ],
                "signature": [
                    "8e523c5a79d2232ea15bf63dab09a2adf10d75a88d0b1c04b7167106789e35635c6a71fc02f84b33aa881de91c1b50d8bc10b7113bc4ab151277395b3f141dc401"
                ],
                "txID": "30adceb49a8490f67896d9c9c7d6a0ddb6c2ef01239b550afbdc53f35e05204b",
                "raw_data": {
                    "contract": [
                        {
                            "parameter": {
                                "value": {
                                    "amount": 3,
                                    "owner_address": "4174d6b16fffe751fa24a3b8191261cf90ea430375",
                                    "to_address": "41c626d897457111e3bfc1541029eb9cce2709a89b"
                                },
                                "type_url": "type.googleapis.com/protocol.TransferContract"
                            },
                            "type": "TransferContract"
                        }
                    ],
                    "ref_block_bytes": "9b49",
                    "ref_block_hash": "39e7bbee118cadac",
                    "expiration": 1675226820000,
                    "fee_limit": 10,
                    "timestamp": 1675226763375
                },
                "raw_data_hex": "0a029b49220839e7bbee118cadac40a0dbb2dae0305a65080112610a2d747970652e676f6f676c65617069732e636f6d2f70726f746f636f6c2e5472616e73666572436f6e747261637412300a154174d6b16fffe751fa24a3b8191261cf90ea430375121541c626d897457111e3bfc1541029eb9cce2709a89b180370efa0afdae03090010a"
            },
            {
                "ret": [
                    {
                        "contractRet": "SUCCESS"
                    }
                ],
                "signature": [
                    "af956f79c6f558798bef8232feb300429bb1bc791da1589383b27b84beca06925947db6817b617cd92e214bac8ce4dbfd54c0aefb4ec408db0ad682709fc189201"
                ],
                "txID": "a63c688a237a50a44f2dab2c9b22ac17b54511a5b5ff6c25037885d231c67de9",
                "raw_data": {
                    "contract": [
                        {
                            "parameter": {
                                "value": {
                                    "data": "b6e405ef000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001c000000000000000000000000000000000000000000000000000000000000002800000000000000000000000000000000000000000000000000000000000000340000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000004c0000000000000000000000000000000000000000000000000000000000000058000000000000000000000000000000000000000000000000000000000000006400000000000000000000000000000000000000000000000000000000000000005000000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000005000000000000000000000000c69f3ede17ce98ee9dcb4d1f8b2850790253a63700000000000000000000000063b9f3f8616233aad5b35f7e48b828af2bfc1e9f000000000000000000000000c69f3ede17ce98ee9dcb4d1f8b2850790253a637000000000000000000000000c69f3ede17ce98ee9dcb4d1f8b2850790253a637000000000000000000000000697542ce1786ee6cd01096b47e637d1ccd311f2700000000000000000000000000000000000000000000000000000000000000050000000000000000000000000000000000000000000000000000000000004f3a00000000000000000000000000000000000000000000000000000000000043b1000000000000000000000000000000000000000000000000000000000000445d00000000000000000000000000000000000000000000000000000000000045890000000000000000000000000000000000000000000000000000000000004593000000000000000000000000000000000000000000000000000000000000000500000000000000000000000000000000000000000000000000000000634ff41c0000000000000000000000000000000000000000000000000000000063508f800000000000000000000000000000000000000000000000000000000063508f800000000000000000000000000000000000000000000000000000000063508f800000000000000000000000000000000000000000000000000000000063508f80000000000000000000000000000000000000000000000000000000000000000500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000500000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000c7ec0000000000000000000000000000000000000000000000000000000000000064000000000000000000000000000000000000000000000000000000000000006e0000000000000000000000000000000000000000000000000000000000000082000000000000000000000000000000000000000000000000000000000000000500000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000500000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000a",
                                    "owner_address": "416764e69712991cd2193c07a790f035d3a73af2a7",
                                    "contract_address": "411fe7a0d8f7ace1f4486d473cd7294740ee0510cd"
                                },
                                "type_url": "type.googleapis.com/protocol.TriggerSmartContract"
                            },
                            "type": "TriggerSmartContract"
                        }
                    ],
                    "ref_block_bytes": "9b49",
                    "ref_block_hash": "39e7bbee118cadac",
                    "expiration": 1675226820000,
                    "fee_limit": 500000000,
                    "timestamp": 1675226762181
                },
                "raw_data_hex": "0a029b49220839e7bbee118cadac40a0dbb2dae0305af00e081f12eb0e0a31747970652e676f6f676c65617069732e636f6d2f70726f746f636f6c2e54726967676572536d617274436f6e747261637412b50e0a15416764e69712991cd2193c07a790f035d3a73af2a71215411fe7a0d8f7ace1f4486d473cd7294740ee0510cd22840eb6e405ef000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001c000000000000000000000000000000000000000000000000000000000000002800000000000000000000000000000000000000000000000000000000000000340000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000004c0000000000000000000000000000000000000000000000000000000000000058000000000000000000000000000000000000000000000000000000000000006400000000000000000000000000000000000000000000000000000000000000005000000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000005000000000000000000000000c69f3ede17ce98ee9dcb4d1f8b2850790253a63700000000000000000000000063b9f3f8616233aad5b35f7e48b828af2bfc1e9f000000000000000000000000c69f3ede17ce98ee9dcb4d1f8b2850790253a637000000000000000000000000c69f3ede17ce98ee9dcb4d1f8b2850790253a637000000000000000000000000697542ce1786ee6cd01096b47e637d1ccd311f2700000000000000000000000000000000000000000000000000000000000000050000000000000000000000000000000000000000000000000000000000004f3a00000000000000000000000000000000000000000000000000000000000043b1000000000000000000000000000000000000000000000000000000000000445d00000000000000000000000000000000000000000000000000000000000045890000000000000000000000000000000000000000000000000000000000004593000000000000000000000000000000000000000000000000000000000000000500000000000000000000000000000000000000000000000000000000634ff41c0000000000000000000000000000000000000000000000000000000063508f800000000000000000000000000000000000000000000000000000000063508f800000000000000000000000000000000000000000000000000000000063508f800000000000000000000000000000000000000000000000000000000063508f80000000000000000000000000000000000000000000000000000000000000000500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000500000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000c7ec0000000000000000000000000000000000000000000000000000000000000064000000000000000000000000000000000000000000000000000000000000006e0000000000000000000000000000000000000000000000000000000000000082000000000000000000000000000000000000000000000000000000000000000500000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000500000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000a70c597afdae030900180cab5ee01"
            }
        ],
        "transactionsRoot": null,
        "uncles": null
    }
}
```

{% 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 ](/ids/chain-ids)page for details. |
| chainSymbol                                       | String | Refer to the [Chain ID ](/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=1000&transactionHash=b13e765c34a70c735c273d7e24b1fd467fd399e5bec8e816709839cfcbf34f3a
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "hash": "b13e765c34a70c735c273d7e24b1fd467fd399e5bec8e816709839cfcbf34f3a",
        "transactionStatus": "SUCCESS",
        "blockNumber": null,
        "timestamp": 1675231016887,
        "from": {
            "tronAddress": "TMkK9G2KfKoVPycYTC9C5D7oU5wn8tu3w5",
            "hexAddress": "4181313a7d9ea7ab0b7c7372019150ec3197008e6f"
        },
        "to": {},
        "transactionFees": null,
        "gas": null,
        "gasPrice": null,
        "input": "0a02a0d322082def2f21354f1ac440d0adb6dce0305a6e080c12680a34747970652e676f6f676c65617069732e636f6d2f70726f746f636f6c2e556e667265657a6542616c616e6365436f6e747261637412300a154181313a7d9ea7ab0b7c7372019150ec3197008e6f50017a1541b68942ddb8108d0201caab6efebbc14d0c7e22c8280370b7efb2dce030",
        "nonce": null,
        "network": null
    }
}
```

{% 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                                                |
| ------------------------------------------------ | ------ | ---------------------------------------------------------- |
| chainId<mark style="color:red;">\*</mark>        | String | Refer to the [Chain ID ](/ids/chain-ids)page for details.  |
| chainSymbol                                      | String | Refer to the [Chain ID ](/ids/chain-ids)page for details.  |
| rawTransaction<mark style="color:red;">\*</mark> | String | The encoded transaction, obtained from signed transaction. |
| rpc                                              | String | Remote procedural call URL.                                |

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

```json
{
    "chainId": "1000",
    "rawTransaction": "0a020add22086c2763abadf9ed2940c8d5deea822e5a65080112610a2d747970652e676f6f676c65617069732e636f6d2f70726f746f636f6c2e5472616e73666572436f6e747261637412300a15418840e6c55b9ada326d211d818c34a994aeced808121541d3136787e667d1e055d2cd5db4b5f6c880563049186470ac89dbea822e"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1000",
        "transactionHash": "8735e61e3be580a2d707dbddab35900a57609608285c344c89577002922f990a"
    }
}
```

{% endtab %}
{% endtabs %}


# Solana

{% hint style="info" %}
**Versioned Transactions:** Expand now supports both versioned and legacy transactions, allowing users to access all the enhanced functionality versioned transactions offers
{% endhint %}

## /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="172">Name</th><th width="117">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</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>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></tbody></table>

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

```url
https://api.expand.network/chain/getbalance?address=7STPYcDtmhgsg2XbyB7PwnNXwWkWKxc8gzycHmT32PXr&chainId=900
```

{% endtab %}

{% tab title="Sample Response" %}

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

{% 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="160">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</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=48208733&chainId=900
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "difficulty": null,
        "gasLimit": null,
        "gasUsed": null,
        "hash": "6ZR4pNgiDnHGBBHB3mE9x9bnyxg7kzD1yhxbYXyhvwSH",
        "miner": null,
        "nonce": null,
        "number": 48208733,
        "parentHash": "9tvBefL3pS8ybJjQwXRZCAbn8qZZRk3A6cxvrWBoZJ2Z",
        "size": null,
        "timestamp": 1605085817,
        "totalDifficulty": null,
        "transactions": [
            {
                "meta": {
                    "err": null,
                    "fee": 5000,
                    "innerInstructions": [],
                    "loadedAddresses": {
                        "readonly": [],
                        "writable": []
                    },
                    "logMessages": [
                        "Call BPF program EUqojwWA2rd19FZrzeBncJsm38Jm1hEhE3zsmX3bRc2o",
                        "BPF program consumed 2640 of 200000 units",
                        "BPF program EUqojwWA2rd19FZrzeBncJsm38Jm1hEhE3zsmX3bRc2o success"
                    ],
                    "postBalances": [
                        22390653493680,
                        23357760,
                        3591360,
                        7299063360,
                        1554418560,
                        1
                    ],
                    "postTokenBalances": [],
                    "preBalances": [
                        22390653498680,
                        23357760,
                        3591360,
                        7299063360,
                        1554418560,
                        1
                    ],
                    "preTokenBalances": [],
                    "rewards": [],
                    "status": {
                        "Ok": null
                    }
                },
                "transaction": {
                    "message": {
                        "header": {
                            "numReadonlySignedAccounts": 0,
                            "numReadonlyUnsignedAccounts": 2,
                            "numRequiredSignatures": 1
                        },
                        "accountKeys": [
                            "D5Qh6N6UXVTifvebzqPHdHCeuQXWvoTx6eSZ9TEas661",
                            "2fTzeukxn72rBLKfJpL5sNcRxAQcHPbq3HHp2swZPjCv",
                            "FQbCNSVH3RgosCPB4CJRstkLh5hXkvuXzAjQzT11oMYo",
                            "CiGy4cBqRi7EdU8pmfvqx8TpjqVua7K8Ke8zo9nhhg1E",
                            "EUqojwWA2rd19FZrzeBncJsm38Jm1hEhE3zsmX3bRc2o",
                            "11111111111111111111111111111111"
                        ],
                        "recentBlockhash": "Bzn13YwS1jQgd25FwQiF7eeMCwqmPsnkGZtaH664TXyB",
                        "instructions": [
                            {
                                "accounts": [
                                    1,
                                    2,
                                    3,
                                    2,
                                    2
                                ],
                                "data": "12VeXEVoV",
                                "programIdIndex": 4
                            },
                            {
                                "accounts": [
                                    0,
                                    0
                                ],
                                "data": "3Bxs463y57eAuzS3",
                                "programIdIndex": 5
                            }
                        ],
                        "indexToProgramIds": {}
                    },
                    "signatures": [
                        "5kQPso2etarC45fv6c412CphbPXH6sDq12n57f353BNqdV8DGDgPvRKzZpQwQLCVdvTaqWZrEFbBn83wH9PQ2Y6n"
                    ]
                }
            }
        ],
        "transactionsRoot": null,
        "uncles": null
    }
}
```

{% 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="192">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</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" %}

```url
https://api.expand.network/chain/gettransaction?chainId=900&transactionHash=Kth19WQW3AwhL4xz4Dko68eiNCwBQ65pXV6Wbm2Fwjx37pTD8DFNfk6Ga6FCQ9MthrwWybLyPDdwUEjEexaoLup
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "hash": "Kth19WQW3AwhL4xz4Dko68eiNCwBQ65pXV6Wbm2Fwjx37pTD8DFNfk6Ga6FCQ9MthrwWybLyPDdwUEjEexaoLup",
        "transactionStatus": null,
        "blockNumber": 175446089,
        "timestamp": 1675234161,
        "from": "AGaSHpDpyveuLyiaocNXMMFCf1LCBBynyaKMJkL8AKK4",
        "to": "3vxLXJqLqF3JG5TCbYycbKWRBbCJQLxQmBGCkyqEEefL",
        "value": "0",
        "transactionFees": 5000,
        "gas": null,
        "gasPrice": null,
        "input": "null6mJFQCt94hG4CKNYKgVcwk2tyD9N3TUNEqiQRCfTJYmtTs3i8M7RHq",
        "nonce": null,
        "network": null
    }
}
```

{% 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="/pages/5o1xMsQPqXw9GBfGTpdB">Chain ID </a>page for details.</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>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></tbody></table>

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

```url
https://historicallp.api.expand.network/chain/getusertransactions?chainId=900&address=5Q544fKrFoe6tsEbD7S8EmxGTJYAKtTVhAW5Q5pge4j1&pageSize=1
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "transactions": [
            {
                "blockTime": 1734931589,
                "meta": {
                    "computeUnitsConsumed": 139570,
                    "err": null,
                    "fee": 105000,
                    "innerInstructions": [
                        {
                            "index": 0,
                            "instructions": [
                                {
                                    "parsed": {
                                        "info": {
                                            "lamports": 1392000,
                                            "newAccount": "EJZGDqomYD2TEkBrFK3qzogEZVX96a7TyYUEhpA6eQqN",
                                            "owner": "BrdgN2RPzEMWF96ZbnnJaUtQDQx7VRXYaHHbYCBvceWB",
                                            "source": "RRbvsvJHLJe8Gynex6FbWTZruturMV2iLrEP5Ma9SdB",
                                            "space": 72
                                        },
                                        "type": "createAccount"
                                    },
                                    "program": "system",
                                    "programId": "11111111111111111111111111111111",
                                    "stackHeight": 2
                                },
                                {
                                    "parsed": {
                                        "info": {
                                            "amount": "998500",
                                            "authority": "7DyZQw3iV5zhHssnNA6Nopi5zc8NGLbYjHMcaok6NN66",
                                            "destination": "E3qXryYDHgCnPWapgRU3TRfXDd3KsG1m9LnitUqkvuqr",
                                            "source": "G6Qo3WW7RbWpSmACAocTBVgx6JW5kgRpUhABphEoDMfP"
                                        },
                                        "type": "transfer"
                                    },
                                    "program": "spl-token",
                                    "programId": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA",
                                    "stackHeight": 2
                                }
                            ]
                        }
                    ],
                    "logMessages": [
                        "Program BrdgN2RPzEMWF96ZbnnJaUtQDQx7VRXYaHHbYCBvceWB invoke [1]",
                        "Program log: Instruction: ReceiveAndSwap",
                        "Program 11111111111111111111111111111111 invoke [2]",
                        "Program 11111111111111111111111111111111 success",
                        "Program log: Hash 010466989f7fa631f49188e2d87a83210b040c2953c834cb4fa84cad7ae5441e",
                        "Program log: Add rewards 1500",
                        "Program log: Receive amount: 998500",
                        "Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA invoke [2]",
                        "Program log: Instruction: Transfer",
                        "Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA consumed 4645 of 368233 compute units",
                        "Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA success",
                        "Program BrdgN2RPzEMWF96ZbnnJaUtQDQx7VRXYaHHbYCBvceWB consumed 139270 of 500000 compute units",
                        "Program BrdgN2RPzEMWF96ZbnnJaUtQDQx7VRXYaHHbYCBvceWB success",
                        "Program ComputeBudget111111111111111111111111111111 invoke [1]",
                        "Program ComputeBudget111111111111111111111111111111 success",
                        "Program ComputeBudget111111111111111111111111111111 invoke [1]",
                        "Program ComputeBudget111111111111111111111111111111 success"
                    ],
                    "postBalances": [
                        6530832359,
                        9489403,
                        1392000,
                        2039280,
                        1141440,
                        1224960,
                        1,
                        1802740,
                        2039380,
                        322384746841,
                        67137858741,
                        1231920,
                        4625869600,
                        934087680,
                        1,
                        1141440
                    ],
                    "postTokenBalances": [
                        {
                            "accountIndex": 3,
                            "mint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
                            "owner": "FbXAffyRzZFSM8zRY7yWmCk99pGCUWGS5eoSnywYLhhJ",
                            "programId": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA",
                            "uiTokenAmount": {
                                "amount": "1003278",
                                "decimals": 6,
                                "uiAmount": 1.003278,
                                "uiAmountString": "1.003278"
                            }
                        },
                        {
                            "accountIndex": 8,
                            "mint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
                            "owner": "7DyZQw3iV5zhHssnNA6Nopi5zc8NGLbYjHMcaok6NN66",
                            "programId": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA",
                            "uiTokenAmount": {
                                "amount": "4823094013324",
                                "decimals": 6,
                                "uiAmount": 4823094.013324,
                                "uiAmountString": "4823094.013324"
                            }
                        }
                    ],
                    "preBalances": [
                        6532329359,
                        9489403,
                        0,
                        2039280,
                        1141440,
                        1224960,
                        1,
                        1802740,
                        2039380,
                        322384746841,
                        67137858741,
                        1231920,
                        4625869600,
                        934087680,
                        1,
                        1141440
                    ],
                    "preTokenBalances": [
                        {
                            "accountIndex": 3,
                            "mint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
                            "owner": "FbXAffyRzZFSM8zRY7yWmCk99pGCUWGS5eoSnywYLhhJ",
                            "programId": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA",
                            "uiTokenAmount": {
                                "amount": "4778",
                                "decimals": 6,
                                "uiAmount": 0.004778,
                                "uiAmountString": "0.004778"
                            }
                        },
                        {
                            "accountIndex": 8,
                            "mint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
                            "owner": "7DyZQw3iV5zhHssnNA6Nopi5zc8NGLbYjHMcaok6NN66",
                            "programId": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA",
                            "uiTokenAmount": {
                                "amount": "4823095011824",
                                "decimals": 6,
                                "uiAmount": 4823095.011824,
                                "uiAmountString": "4823095.011824"
                            }
                        }
                    ],
                    "rewards": [],
                    "status": {
                        "Ok": null
                    }
                },
                "slot": 309237379,
                "transaction": {
                    "message": {
                        "accountKeys": [
                            {
                                "pubkey": "RRbvsvJHLJe8Gynex6FbWTZruturMV2iLrEP5Ma9SdB",
                                "signer": true,
                                "source": "transaction",
                                "writable": true
                            },
                            {
                                "pubkey": "FbXAffyRzZFSM8zRY7yWmCk99pGCUWGS5eoSnywYLhhJ",
                                "signer": false,
                                "source": "transaction",
                                "writable": true
                            },
                            {
                                "pubkey": "EJZGDqomYD2TEkBrFK3qzogEZVX96a7TyYUEhpA6eQqN",
                                "signer": false,
                                "source": "transaction",
                                "writable": true
                            },
                            {
                                "pubkey": "E3qXryYDHgCnPWapgRU3TRfXDd3KsG1m9LnitUqkvuqr",
                                "signer": false,
                                "source": "transaction",
                                "writable": true
                            },
                            {
                                "pubkey": "BrdgN2RPzEMWF96ZbnnJaUtQDQx7VRXYaHHbYCBvceWB",
                                "signer": false,
                                "source": "transaction",
                                "writable": false
                            },
                            {
                                "pubkey": "7DJmPDouXrVgzrcSiAVW9y7mHEqay5LvvAFNSeS1bhAi",
                                "signer": false,
                                "source": "transaction",
                                "writable": false
                            },
                            {
                                "pubkey": "ComputeBudget111111111111111111111111111111",
                                "signer": false,
                                "source": "transaction",
                                "writable": false
                            },
                            {
                                "pubkey": "5NQbhSDg4TKVvq7z3PTbqSzAiHwB7amxmxqkViQnyVnZ",
                                "signer": false,
                                "source": "lookupTable",
                                "writable": true
                            },
                            {
                                "pubkey": "G6Qo3WW7RbWpSmACAocTBVgx6JW5kgRpUhABphEoDMfP",
                                "signer": false,
                                "source": "lookupTable",
                                "writable": true
                            },
                            {
                                "pubkey": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
                                "signer": false,
                                "source": "lookupTable",
                                "writable": false
                            },
                            {
                                "pubkey": "EroEBUxixXh3pZ53u4xRbyRjRBifsiZuHChDQXQ7eMrn",
                                "signer": false,
                                "source": "lookupTable",
                                "writable": false
                            },
                            {
                                "pubkey": "9oftRo8jHB79iR4wEcSjQ9eCUaiAcxV4N1MstyyxzAq3",
                                "signer": false,
                                "source": "lookupTable",
                                "writable": false
                            },
                            {
                                "pubkey": "7DyZQw3iV5zhHssnNA6Nopi5zc8NGLbYjHMcaok6NN66",
                                "signer": false,
                                "source": "lookupTable",
                                "writable": false
                            },
                            {
                                "pubkey": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA",
                                "signer": false,
                                "source": "lookupTable",
                                "writable": false
                            },
                            {
                                "pubkey": "11111111111111111111111111111111",
                                "signer": false,
                                "source": "lookupTable",
                                "writable": false
                            },
                            {
                                "pubkey": "AMsgYtqR3EXKfsz6Rj2cKnrYGwooaSk7BQGeyVBB5yjS",
                                "signer": false,
                                "source": "lookupTable",
                                "writable": false
                            }
                        ],
                        "addressTableLookups": [
                            {
                                "accountKey": "2JcBAEVnAwVo4u8d61iqgHPrzZuugur7cVTjWubsVLHj",
                                "readonlyIndexes": [
                                    0,
                                    1,
                                    25,
                                    11,
                                    12,
                                    13,
                                    3
                                ],
                                "writableIndexes": [
                                    6,
                                    7
                                ]
                            }
                        ],
                        "instructions": [
                            {
                                "accounts": [
                                    "FbXAffyRzZFSM8zRY7yWmCk99pGCUWGS5eoSnywYLhhJ",
                                    "RRbvsvJHLJe8Gynex6FbWTZruturMV2iLrEP5Ma9SdB",
                                    "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
                                    "EroEBUxixXh3pZ53u4xRbyRjRBifsiZuHChDQXQ7eMrn",
                                    "5NQbhSDg4TKVvq7z3PTbqSzAiHwB7amxmxqkViQnyVnZ",
                                    "G6Qo3WW7RbWpSmACAocTBVgx6JW5kgRpUhABphEoDMfP",
                                    "7DJmPDouXrVgzrcSiAVW9y7mHEqay5LvvAFNSeS1bhAi",
                                    "EJZGDqomYD2TEkBrFK3qzogEZVX96a7TyYUEhpA6eQqN",
                                    "9oftRo8jHB79iR4wEcSjQ9eCUaiAcxV4N1MstyyxzAq3",
                                    "E3qXryYDHgCnPWapgRU3TRfXDd3KsG1m9LnitUqkvuqr",
                                    "7DyZQw3iV5zhHssnNA6Nopi5zc8NGLbYjHMcaok6NN66",
                                    "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA",
                                    "11111111111111111111111111111111",
                                    "AMsgYtqR3EXKfsz6Rj2cKnrYGwooaSk7BQGeyVBB5yjS"
                                ],
                                "data": "h55jkgWiYsEg4fsAKUwzot75ZSkDmud6K9yG5km8ReG8qeXoQpnDbjyjSZ7iCT774LpybpKvGcbgaNUr64VddsocQwzn9D3sVKXEqgyTc2Ltw8df8hy97bPT97cg3Uqwgbyg6d1V9qW5o8h9niSzLBsGQds8yoeWF6rJBxwJYWM34HZ4xodLoyzCdpTPJspe26nBSHCWhagAa4gJNs",
                                "programId": "BrdgN2RPzEMWF96ZbnnJaUtQDQx7VRXYaHHbYCBvceWB",
                                "stackHeight": null
                            },
                            {
                                "accounts": [],
                                "data": "EvSMNP",
                                "programId": "ComputeBudget111111111111111111111111111111",
                                "stackHeight": null
                            },
                            {
                                "accounts": [],
                                "data": "3QAwFKa3MJAs",
                                "programId": "ComputeBudget111111111111111111111111111111",
                                "stackHeight": null
                            }
                        ],
                        "recentBlockhash": "D7tT5dfVnjZotnGEuFHhH1BKDQWyp2hnSYXTxoRTVfNR"
                    },
                    "signatures": [
                        "3cR55zNxwfocNpezbN8uqY5Kyr2wevJW9AYZGeTWffvoMJgsCUi26wkTx1aXMGsGeYtjByrHn8D8cWHKXLox2RaH"
                    ]
                },
                "version": 0
            }
        ],
        "nextPageToken": "3cR55zNxwfocNpezbN8uqY5Kyr2wevJW9AYZGeTWffvoMJgsCUi26wkTx1aXMGsGeYtjByrHn8D8cWHKXLox2RaH",
        "pageSize": 1
    }
}
```

{% endtab %}
{% endtabs %}

## **/**&#x70;ortfolio

Get the comprehensive information about the assets/ tokens owned by a user.

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

#### Query Parameters

<table><thead><tr><th width="157">Name</th><th width="99">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</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>Public addess of the user.</td></tr><tr><td>tokens</td><td>String</td><td>Comma-separated value of tokens to get value of. Maximum 10 at a time.</td></tr><tr><td>availableOnly</td><td>Boolean</td><td>By default, true. <br>If true, tokens with balance > 0 will be listed.</td></tr><tr><td>pageToken</td><td>String</td><td><p>The page number that the user wants to fetch. </p><p><em>Available at the end of the response.</em></p></td></tr><tr><td>assetType</td><td>String</td><td>Type of the asset. <br>Either "fungible" or "nonFungible". By default, "all".</td></tr></tbody></table>

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

```url
https://api.expand.network/chain/portfolio?chainId=900&address=CGUA416Urx9YrRZKgadyGrsuUi3JwzVo4RbfQK1JpW9S&availableOnly=true&assetType=fungible&pageToken=1
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "native": "6003167868",
        "splBalances": [
            {
                "name": "Blaze",
                "symbol": "BLZE",
                "assetType": "FungibleToken",
                "balance": "4105202188334",
                "address": "BLZEEuZUBVqFhj8adcCFPJvPVCiCyVmh3hkJMrU8KuJA",
                "decimals": "9",
                "USDPrice": "0.0029989965"
            },
            {
                "name": "Saga-drop.com $SAGA AIRDROP",
                "symbol": "SAGA",
                "assetType": "FungibleToken",
                "balance": "44",
                "address": "73RF9z3CZCkviSBb5xwpcHUfdEcRGPUzaHnvUsnqegdC",
                "decimals": "0",
                "USDPrice": "NA"
            },
            {
                "name": "Saga-drop.com $SAGA AIRDROP",
                "symbol": "SAGA",
                "assetType": "FungibleToken",
                "balance": "27",
                "address": "64a5pKqPAHxHoB64ChCvV2kb2di45Ry33tcTPc4PBham",
                "decimals": "0",
                "USDPrice": "NA"
            },
            {
                "name": "memevipz.com 🎁 Airdrop",
                "symbol": "MEMEDROP",
                "assetType": "FungibleAsset",
                "balance": "87019539",
                "address": "4v3WvznZbvc8sXgykx1Us8mtQr3fGBH2vf3EMG6Xjs2E",
                "decimals": "0",
                "USDPrice": "NA"
            }
        ]
    }
}
```

{% endtab %}
{% endtabs %}

## **/**&#x67;etstakepositions

This endpoint retrieves information about staked native asset positions for a specified address, including the total staked amount across all validators as well as the individual positions staked with each validator.

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

#### Query Parameters

<table><thead><tr><th width="180">Name</th><th width="99">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</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>Public addess of the user.</td></tr><tr><td>validatorAddress</td><td>String</td><td>Address of Validator</td></tr></tbody></table>

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

```url
https://api.expand.network/chain/getstakepositions?address=FbXAffyRzZFSM8zRY7yWmCk99pGCUWGS5eoSnywYLhhJ&chainId=900
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
  "status": 200,
  "msg": "success",
  "data": {
    "totalStake": "732688",
    "activeStake": "732688",
    "stakePositions": [
      {
        "stake": "732688",
        "staker": "FbXAffyRzZFSM8zRY7yWmCk99pGCUWGS5eoSnywYLhhJ",
        "withdrawer": "FbXAffyRzZFSM8zRY7yWmCk99pGCUWGS5eoSnywYLhhJ",
        "validator": "J2nUHEAgZFRyuJbFjdqPrAa9gyWDuc7hErtDQHPhsYRp",
        "rentExemptReserve": "2282880",
        "activationEpoch": "694",
        "deactivationEpoch": "18446744073709552000"
      }
    ]
  }
}
```

{% endtab %}
{% endtabs %}

## **/sendtransaction**

Send transaction on the chain.

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

#### Request Body

<table><thead><tr><th width="170">Name</th><th width="100">Type</th><th>Description</th></tr></thead><tbody><tr><td>chainId<mark style="color:red;">*</mark></td><td>Integer</td><td>Refer to the <a href="/pages/5o1xMsQPqXw9GBfGTpdB">Chain ID </a>page for details. </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 encoded transaction, obtained from signed transaction.</td></tr><tr><td>rpc</td><td>String</td><td>Remote procedural call URL.</td></tr></tbody></table>

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

```json
{
    "chainId": "900",
    "rawTransaction": "AZ+tnha8KkJHUhonuRhExKKi/iUVxLPzSWUFg0I9jA8qnzI+VeF/srAbjCC1yRXZkSFIAiL674Ym3nQXknMYCwABAAEDjRyE59XRrMagBCI1SF13/RwKCo1S07RveObs+BVA09415JpoPP9KKUdrIVusGR4UYoAZhh30KfDMN9gGEun3ygAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAZ0TH7GcLvfxR7z5m2gBeRh/PWkqISy7hwhr2FsIs19oBAgIAAQwCAAAAAOH1BQAAAAA="
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "900",
        "transactionHash": "XLtvQ1Lr8RxVSD4YB4ptkY3XpB9UcCGktfhfBU4XNxQBwayuZ21BuFpa8vTm9q7i1eB5TsuQNVfAgndbZ5sXord"
    }
}
```

{% 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="99">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": "900",
    "rawTransaction": "AZANUOpAHOdEZSKG5HuXe1QZ90kX2VULfpMIc7xpp/GoUYFWJ4CsaNokyrNa0u5qcfEdJI244WL5SZqZt1meEQoBAAECP0Qyw9NtTa7gVBomcZX4zRuYuCee7NvzTKGbbvggCLAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAJ/CPjp2H4E3Y6Q3Sa1S+36peOFuNhP226cr6lgpMpGWAQECAAAMAgAAAID2SuHHAi0V"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "parsedTx": {
            "recentBlockhash": "Bkdcaqq3yx8wNovuZEALhYrndAtcSNhw1SqqE3FxYg1K",
            "feePayer": "5FxzzbvHSoa9WH4VrMChdp23CcacCpbfpmgKxMFYXJVM",
            "nonceInfo": null,
            "instructions": [
                {
                    "keys": [
                        {
                            "pubkey": "5FxzzbvHSoa9WH4VrMChdp23CcacCpbfpmgKxMFYXJVM",
                            "isSigner": true,
                            "isWritable": true
                        },
                        {
                            "pubkey": "5FxzzbvHSoa9WH4VrMChdp23CcacCpbfpmgKxMFYXJVM",
                            "isSigner": true,
                            "isWritable": true
                        }
                    ],
                    "programId": "11111111111111111111111111111111",
                    "data": [
                        2,
                        0,
                        0,
                        0,
                        128,
                        246,
                        74,
                        225,
                        199,
                        2,
                        45,
                        21
                    ]
                }
            ],
            "signers": [
                "5FxzzbvHSoa9WH4VrMChdp23CcacCpbfpmgKxMFYXJVM"
            ]
        }
    }
}
```

{% endtab %}
{% endtabs %}


# Near

<details>

<summary>Supported Mainnnet Tokens for Portfolio Endpoint</summary>

1. Name: **SWEAT** \
   Address: token.sweat
2. Name: **Aurora** \
   Address: aaaaaa20d9e0e2461697782ef11675f668207961.factory.bridge.near
3. Name: **USN** \
   Address: usn
4. Name: **Realis** \
   Address: token.v1.realisnetwork.near
5. Name: **LiNEAR** \
   Address: linear-protocol.near
6. Name: **USD Coin** \
   Address: a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48.factory.bridge.near
7. Name: **Tether USD** \
   Address: usdt.tether-token.near
8. Name: **Wrapped NEAR fungible token** \
   Address: wrap.near
9. Name: **Ref Finance Token** \
   Address: token.v2.ref-finance.near
10. Name: **Tether USD** \
    Address: dac17f958d2ee523a2206206994597c13d831ec7.factory.bridge.near
11. Name: **Staked NEAR** \
    Address: meta-pool.near
12. Name: **Ether** \
    Address: aurora
13. Name: **Octopus Network Token** \
    Address: f5cfbc74057c610c8ef151a439252680ac68c6dc.factory.bridge.near
14. Name: **Dai Stablecoin** \
    Address: 6b175474e89094c44da98b954eedeac495271d0f.factory.bridge.near
15. Name: **Wrapped BTC** \
    Address: 2260fac5e5542a773aa44fbcfedf7c193bc2c599.factory.bridge.near
16. Name: **Meta Token** \
    Address: meta-token.near
17. Name: **Aurigami Token** \
    Address: 1ab43204a195a0fd37edec621482afd3792ef90b.factory.bridge.near
18. Name: **Pulse** \
    Address: 52a047ee205701895ee06a375492490ec9c597ce.factory.bridge.near
19. Name: **PembRock** \
    Address: token.pembrock.near
20. Name: **SeatlabNFT** \
    Address: token.stlb.near
21. Name: **Burrow Token** \
    Address: token.burrow\.near
22. Name: **Wootrade Network** \
    Address: 4691937a7508860f876c9c0a2a617e7d9e945d4b.factory.bridge.near
23. Name: **HAPI** \
    Address: d9c2d319cd7e6177336b0a9c93c21cb48d84fb54.factory.bridge.near
24. Name: **PARAS** \
    Address: token.paras.near
25. Name: **Skyward Finance Token** \
    Address: token.skyward.near
26. Name: **NearPad Token** \
    Address: ea7cc765ebc94c4805e3bff28d7e4ae48d06468a.factory.bridge.near
27. Name: **Flux Token** \
    Address: 3ea8ea4237344c9931214796d9417af1a1180770.factory.bridge.near
28. Name: **YouMinter** \
    Address: e99de844ef3ef72806cf006224ef3b813e82662f.factory.bridge.near
29. Name: **Frax Share** \
    Address: 3432b6a60d23ca0dfca7761b7ab56459d9c964d0.factory.bridge.near
30. Name: **NEKO** \
    Address: ftv2.nekotoken.near
31. Name: **ABR** \
    Address: abr.a11bd.near
32. Name: **Bastion** \
    Address: 059a1f1dea1020297588c316ffc30a58a1a0d4a2.factory.bridge.near
33. Name: **Celo** \
    Address: celo.token.a11bd.near
34. Name: **Stader** \
    Address: 30d20208d987713f46dfd34ef128bb16c404d10f.factory.bridge.near
35. Name: **Wrapped Ether** \
    Address: c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2.factory.bridge.near
36. Name: **1MILNFT** \
    Address: a4ef4b0b23c1fc81d3f9ecf93510e64f58a4a016.factory.bridge.near
37. Name: **Solana** \
    Address: sol.token.a11bd.near
38. Name: **marma j token** \
    Address: marmaj.tkn.near
39. Name: **Chronicle** \
    Address: 06a00715e6f92210af9d7680b584931faf71a833.factory.bridge.near
40. Name: **Huobi BTC** \
    Address: 0316eb71485b0ab14103307bf65a021042c6d380.factory.bridge.near
41. Name: **Frax** \
    Address: 853d955acef822db058eb8505911ed77f175b99e.factory.bridge.near
42. Name: **BlocksquareToken** \
    Address: 509a38b7a1cc0dcd83aa9d06214663d9ec7c7f4a.factory.bridge.near
43. Name: **DODO bird** \
    Address: 43dfc4159d86f3a37a5a4b3d4580b888ad7d4ddd.factory.bridge.near
44. Name: **Celo Dollar** \
    Address: cusd.token.a11bd.near
45. Name: **Basic Attention Token** \
    Address: 0d8775f648430679a709e98d2b0cb6250d2887ef.factory.bridge.near
46. Name: **CRO** \
    Address: a0b73e1ff0b80914ab6fe0444e65848c4c34450b.factory.bridge.near
47. Name: **Crafting Finance** \
    Address: 508df5aa4746be37b5b6a69684dfd8bdc322219d.factory.bridge.near
48. Name: **moda** \
    Address: 1117ac6ad6cdf1a3bc543bad3b133724620522d5.factory.bridge.near
49. Name: **Uniswap**\
    Address: 1f9840a85d5af5bf1d1762f925bdaddc4201f984.factory.bridge.near
50. Name: **Scamfari** \
    Address: 8353b92201f19b4812eee32efd325f7ede123718.factory.bridge.near

</details>

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

| Name                                        | Type   | Description                                               |
| ------------------------------------------- | ------ | --------------------------------------------------------- |
| rpc                                         | String | Remote procedural call URL                                |
| chainId<mark style="color:red;">\*</mark>   | String | Refer to the [Chain ID ](/ids/chain-ids)page for details. |
| chainSymbol                                 | String | Refer to the [Chain ID ](/ids/chain-ids)page for details. |
| address<mark style="color:red;">\*</mark>   | String | The public address to get the balance of.                 |
| tokenAddress                                | String | The address of token to get the balance of.               |
| networkId<mark style="color:red;">\*</mark> | String | Contains the network Id (testnet or mainnet).             |

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

```url
https://api.expand.network/chain/getbalance/?address=app.nearcrowd.near&chainId=1200
```

{% endtab %}

{% tab title="Sample Response" %}

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

{% 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 ](/ids/chain-ids)page for details. |
| chainSymbol                                   | String | Refer to the [Chain ID ](/ids/chain-ids)page for details. |
| blockNumber<mark style="color:red;">\*</mark> | String | The block number or block hash.                           |
| networkId                                     | String | Contains the network Id (testnet or mainnet).             |

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

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

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "difficulty": null,
        "gasLimit": null,
        "gasUsed": "100000000",
        "hash": "EH2EUAcfQuVtwgjbSy1cYSWxTqnuoE6hB7Qs3yUkwtTi",
        "miner": null,
        "nonce": null,
        "number": "48208733",
        "parentHash": "A4DPUSm6WCm34LTRLHrmVdVDobC37PjHqACd2srWGXeQ",
        "size": null,
        "timestamp": 1632130984114315800,
        "totalDifficulty": null,
        "transactions": [
            {
                "balance_burnt": "4794491933184300000000",
                "chunk_hash": "J4SbJiazEWAHnNLHTEq6FvCQbfNP2zoQjeUXDhJ7sDPz",
                "encoded_length": 3630,
                "encoded_merkle_root": "CegYTGt7DA7RTmAAvH7Vr4ZLdzocMXN4AYzZPmcp7P1m",
                "gas_limit": 1000000000000000,
                "gas_used": 64561954584952,
                "height_created": 48208733,
                "height_included": 48208733,
                "outcome_root": "81Ces8UVPcU2KqHJs3Pa3vJWgHZDyh8stsUfrPYRY3jo",
                "outgoing_receipts_root": "Fq3y8c1vT5E6erZL6VwNegmcbXMUsozfychmFDhiHpie",
                "prev_block_hash": "A4DPUSm6WCm34LTRLHrmVdVDobC37PjHqACd2srWGXeQ",
                "prev_state_root": "2MLkUCQj4sHVGuVTqwKgTh47Q1fsGSXBc2RSopEUzFx2",
                "rent_paid": "0",
                "shard_id": 0,
                "signature": "ed25519:35FPeXGCemZeajdr1D99LGFAibHZNpGQY5LPt5N3aAYxT3xqZyTSJ6S8CxTvRqxMBGnrDz7WALVLcksmdjkrHNvh",
                "tx_root": "6RyWHXk3ygrJTWUvF1BC955Fo2oC1HXKZJKp6daXFSes",
                "validator_proposals": [],
                "validator_reward": "0"
            }
        ],
        "transactionsRoot": "HDgRo5ZfnEW49HbYK6FrVzovDKvxDnexTvsNHmKtkXT2",
        "uncles": null
    }
}
```

{% 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 ](/ids/chain-ids)page for details. |
| chainSymbol                                       | String | Refer to the [Chain ID ](/ids/chain-ids)page for details. |
| transactionHash<mark style="color:red;">\*</mark> | String | The transaction Hash.                                     |
| networkId<mark style="color:red;">\*</mark>       | String | Contains the network Id (testnet or mainnet).             |

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

```url
https://api.expand.network/chain/gettransaction?chainId=1200&transactionHash=28CYUY3Jcmjjy19rx5x4GUp7kWKSuxgTuzsnm6WbjqgR
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "hash": "28CYUY3Jcmjjy19rx5x4GUp7kWKSuxgTuzsnm6WbjqgR",
        "blockNumber": "D2rC8zK6JkFDXuewMH3g15S71whhjJ6arr6ATHLXGQUF",
        "timestamp": null,
        "from": "app.nearcrowd.near",
        "to": "app.nearcrowd.near",
        "value": null,
        "transactionFees": 2428517994378,
        "gas": null,
        "gasPrice": null,
        "input": [
            {
                "FunctionCall": {
                    "args": "eyJ0YXNrX29yZGluYWwiOjEsImlzX2hvbmV5cG90IjpmYWxzZSwiaG9uZXlwb3RfcHJlaW1hZ2UiOlsxMDQsOTksMTAzLDExMCwxMTMsMTA4LDExMiwxMTEsMTA4LDExOCwxMDYsOTgsMTE5LDExNSwxMjEsMTE5XSwidGFza19wcmVpbWFnZSI6WzcwLDU3LDIwMSwxMjQsMTE0LDI0NSwxMjQsMTk1LDE5MiwxOTYsMzAsMjM5LDIyMCw0NywxODgsNTQsMTIxLDk1LDM2LDIxMywxNzEsMTI5LDEwMCw1MSwxODMsNjQsMjgsMTI2LDExNSwxMjEsMjQxLDEzNl19",
                    "deposit": "0",
                    "gas": 200000000000000,
                    "method_name": "challenge"
                }
            }
        ],
        "network": null
    }
}
```

{% endtab %}
{% endtabs %}

### /portfolio

Get the comprehensive information about the assets/ tokens owned by a user.

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

#### Query Parameters

| Name                                      | Type    | Description                                                                   |
| ----------------------------------------- | ------- | ----------------------------------------------------------------------------- |
| rpc                                       | String  | Remote procedural call URL.                                                   |
| chainId                                   | String  | Refer to the [Chain ID ](/ids/chain-ids)page for details.                     |
| chainSymbol                               | String  | Refer to the [Chain ID ](/ids/chain-ids)page for details.                     |
| address<mark style="color:red;">\*</mark> | String  | Public addess of the user.                                                    |
| tokens                                    | String  | Comma-separated value of tokens to get value of. Maximum 10 at a time.        |
| availableOnly                             | Boolean | <p>By default, true. <br>If true, tokens with balance > 0 will be listed.</p> |

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

```url
https://api.expand.network/chain/portfolio?chainId=1200&address=spin.sweat&availableOnly=true
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "native": "657102532292146469652654940",
        "nep141": [
            {
                "name": "SWEAT",
                "symbol": "SWEAT",
                "address": "token.sweat",
                "balance": "4478246379997954161168780",
                "USDPrice": "0.009696888755975658"
            }
        ]
    }
}
```

{% endtab %}
{% endtabs %}

### **/**&#x67;etstakepositions

This endpoint retrieves information about staked native asset positions for a specified address, including the total staked amount across all validators as well as the individual positions staked with each validator.

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

#### Query Parameters

<table><thead><tr><th width="180">Name</th><th width="99">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</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>Public addess of the user.</td></tr><tr><td>validatorAddress</td><td>String</td><td>Address of Validator</td></tr></tbody></table>

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

```url
https://api.expand.network/chain/getstakepositions?address=5d405172e96927a7a6de6ec95c3879345a47b3c0cf6d97653d76c61f5c1262b9&chainId=1200&validatorAddress=astro-stakers.poolv1.near
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "activeStake": "2.902585808691909e+25",
        "stakePositions": [
            {
                "stake": "2.902585808691909e+25",
                "staker": "5d405172e96927a7a6de6ec95c3879345a47b3c0cf6d97653d76c61f5c1262b9",
                "withdrawer": "5d405172e96927a7a6de6ec95c3879345a47b3c0cf6d97653d76c61f5c1262b9",
                "validator": "astro-stakers.poolv1.near"
            }
        ]
    }
}
```

{% 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                                                |
| ------------------------------------------------ | ------- | ---------------------------------------------------------- |
| chainId<mark style="color:red;">\*</mark>        | Integer | Refer to the [Chain ID ](/ids/chain-ids)page for details.  |
| chainSymbol                                      | String  | Refer to the [Chain ID ](/ids/chain-ids)page for details.  |
| rawTransaction<mark style="color:red;">\*</mark> | String  | The encoded transaction, obtained from signed transaction. |
| rpc                                              | String  | Remote procedural call URL.                                |

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

```json
{
    "chainId": "1200",
    "rawTransaction": "FAAAAG1hZGh1dXV1dXV1ci50ZXN0bmV0AEkY3+wQ0vYMKdwUWiNMqpXqdeiHfeC+xzYEoSqBUbe8TokHDDheAAAUAAAAbXl0ZXN0bWFkaHVyLnRlc3RuZXQgoucUF/0pEF1+QF3rfhesMNR8DoSo9kOwUtA8jxglZgEAAAADAABAvYtbk2tsAAAAAAAAAADmi3KGo3Rw3x4pIwf/oub5d1VdfIcrgeEOgOBRs9qnXm3zZ4UQzheNJZ3om271QiMXw0hK/lFQMEWtKGOK8Z0A"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1200",
        "transactionHash": "FVgzzKafnM8FT6y3r86s2nDCyYbiqkEsFrZ6371b3uxs"
    }
}
```

{% 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<mark style="color:red;">\*</mark>        | String | Refer to the [Chain ID ](/ids/chain-ids)page for details. By default, Ethereum. |
| chainSymbol                                      | String | Refer to the [Chain ID ](/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": "1200",
    "rawTransaction": "EQAAAGhrMTY0NjQ1NS50ZXN0bmV0AI5NZ/HOf9Z3lhnFXWzGKLlpQquoZ0koM9NwA6pyady3wVPUJFiBAAARAAAAaGsxNjQ2NDU1LnRlc3RuZXRRcSU8anY2BbU3Hdp6nFc800OP06VcXt9Y6zi7bNKS6wEAAAADAADoiQQjx4oAAAAAAAAAAACFkU6wouNgPzyGby4Ab7qs8YLUuTmgLVoihNVoUp/pNTyZT/5TC6ozr2tAIfbMxmrAEzqpxqZFEgd/p0U+zfoC"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "parsedTx": {
            "transaction": {
                "signerId": "hk1646455.testnet",
                "publicKey": {
                    "keyType": 0,
                    "data": {
                        "0": 142,
                        "1": 77,
                        "2": 103,
                        "3": 241,
                        "4": 206,
                        "5": 127,
                        "6": 214,
                        "7": 119,
                        "8": 150,
                        "9": 25,
                        "10": 197,
                        "11": 93,
                        "12": 108,
                        "13": 198,
                        "14": 40,
                        "15": 185,
                        "16": 105,
                        "17": 66,
                        "18": 171,
                        "19": 168,
                        "20": 103,
                        "21": 73,
                        "22": 40,
                        "23": 51,
                        "24": 211,
                        "25": 112,
                        "26": 3,
                        "27": 170,
                        "28": 114,
                        "29": 105,
                        "30": 220,
                        "31": 183
                    }
                },
                "nonce": "815824d453c1",
                "receiverId": "hk1646455.testnet",
                "blockHash": {
                    "0": 81,
                    "1": 113,
                    "2": 37,
                    "3": 60,
                    "4": 106,
                    "5": 118,
                    "6": 54,
                    "7": 5,
                    "8": 181,
                    "9": 55,
                    "10": 29,
                    "11": 218,
                    "12": 122,
                    "13": 156,
                    "14": 87,
                    "15": 60,
                    "16": 211,
                    "17": 67,
                    "18": 143,
                    "19": 211,
                    "20": 165,
                    "21": 92,
                    "22": 94,
                    "23": 223,
                    "24": 88,
                    "25": 235,
                    "26": 56,
                    "27": 187,
                    "28": 108,
                    "29": 210,
                    "30": 146,
                    "31": 235
                },
                "actions": [
                    {
                        "transfer": {
                            "deposit": "8ac7230489e80000"
                        },
                        "enum": "transfer"
                    }
                ]
            },
            "signature": {
                "keyType": 0,
                "data": {
                    "0": 133,
                    "1": 145,
                    "2": 78,
                    "3": 176,
                    "4": 162,
                    "5": 227,
                    "6": 96,
                    "7": 63,
                    "8": 60,
                    "9": 134,
                    "10": 111,
                    "11": 46,
                    "12": 0,
                    "13": 111,
                    "14": 186,
                    "15": 172,
                    "16": 241,
                    "17": 130,
                    "18": 212,
                    "19": 185,
                    "20": 57,
                    "21": 160,
                    "22": 45,
                    "23": 90,
                    "24": 34,
                    "25": 132,
                    "26": 213,
                    "27": 104,
                    "28": 82,
                    "29": 159,
                    "30": 233,
                    "31": 53,
                    "32": 60,
                    "33": 153,
                    "34": 79,
                    "35": 254,
                    "36": 83,
                    "37": 11,
                    "38": 170,
                    "39": 51,
                    "40": 175,
                    "41": 107,
                    "42": 64,
                    "43": 33,
                    "44": 246,
                    "45": 204,
                    "46": 198,
                    "47": 106,
                    "48": 192,
                    "49": 19,
                    "50": 58,
                    "51": 169,
                    "52": 198,
                    "53": 166,
                    "54": 69,
                    "55": 18,
                    "56": 7,
                    "57": 127,
                    "58": 167,
                    "59": 69,
                    "60": 62,
                    "61": 205,
                    "62": 250,
                    "63": 2
                }
            }
        }
    }
}
```

{% endtab %}
{% endtabs %}


# Algorand

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

| Name                                      | Type   | Description                                               |
| ----------------------------------------- | ------ | --------------------------------------------------------- |
| rpc                                       | String | Remote procedural call URL.                               |
| chainId<mark style="color:red;">\*</mark> | String | Refer to the [Chain ID ](/ids/chain-ids)page for details. |
| chainSymbol                               | String | Refer to the [Chain ID ](/ids/chain-ids)page for details. |
| address<mark style="color:red;">\*</mark> | String | The public address to get the balance of.                 |
| tokenAddress                              | String | The address of token to get the balance of.               |

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

```url
https://api.expand.network/chain/getbalance/?address=ZW3ISEHZUHPO7OZGMKLKIIMKVICOUDRCERI454I3DB2BH52HGLSO67W754&chainId=1300
```

{% endtab %}

{% tab title="Sample Response" %}

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

{% 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 ](/ids/chain-ids)page for details. |
| chainSymbol                                   | String | Refer to the [Chain ID ](/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=26664056&connectionType=idx&chainId=1300
```

{% endtab %}

{% tab title="Sample Response" %}

```json

{
    "status": 200,
    "msg": "success",
    "data": {
        "difficulty": null,
        "gasLimit": null,
        "gasUsed": 27000000,
        "hash": null,
        "miner": null,
        "nonce": null,
        "number": "26664056",
        "parentHash": "3KYSrPgi16Cl3iLu3r+GaeZkBBrgNFbMB60jsrJtTdI=",
        "size": null,
        "timestamp": 1675224169,
        "totalDifficulty": null,
        "transactions": [
            {
                "asset-transfer-transaction": {
                    "amount": 0,
                    "asset-id": 27165954,
                    "close-amount": 0,
                    "receiver": "UWGOC45RXKERIWFF2Z6LR4VHSEDDHLRH7YLZQGS7WCZN5OSNZZLEDGWZ7A"
                },
                "close-rewards": 0,
                "closing-amount": 0,
                "confirmed-round": 26664056,
                "fee": 1000,
                "first-valid": 26664053,
                "genesis-hash": "wGHE2Pwdvd7S12BL5FaOP20EGYesN73ktiC1qzkkit8=",
                "genesis-id": "mainnet-v1.0",
                "id": "HRTJZJMTW5R3T7FJCBK433WWA6DACPEFRRLTFQO2NVDPYNYZLYMQ",
                "intra-round-offset": 0,
                "last-valid": 26665053,
                "note": "eyJzZW5zb3JJZCI6ICJQVzpLQV8wMTcwMzciLCAic3RyZWFtcyI6IDY2LCAiZGF0YSI6ICJzdmdNMmlETW5hblFmVjhhZWM0bGhJejJHcERPTEJWUHBzYmFFelBFQWd5K1VRN29hVFdCSnZzQkdxWU1RWHlINGpyUW94emxKNjE5LzN4dy8zbnpZTEEzWm9nOHhtWGNlRzBKV0o3V1h6ZXRLY0RNWi9sR1hmK005cDNxQXlWTlR5MXY0OUhrSjhyd1hzUmI1dCtHbFlIbFh5WW1ubGJtRUFlOFQrbExrcjRHNWpTTG1HRWR1M28xS3RDMGM5dzQyamlFSnR4eGNTdUtGaXdQekNOUGVUZW5OOGJjcTZNNThGbWpKRHIwS1MzbkxzbTk4SG1SdjNQYlB6Q0Q0Wk1BdmVOdWNMY2oxRXM3bFhzSjVVMkZBQXlsOFM3a0tYeitPZkJsbUZ2UW5xa0RKZ1lWeS9WbUtEM2dHOVM5MXYrWDZSQTJzOGN5ZVBpSVN5aVFwdFVPSzUvTWFtdzFvWVFIWW5PV29SdmpUYWFhaHB1RTErZm1teGdOTWszTzNVRTRlcm9pbU82cmR0MTNNM0VYQnQ1TmJ1ZnpqbTVwV0EyNGtHYXdNQ2dhUGN0dVd3dGl4M1RzTVd5bExmeTNZR05LSklQbkk1SkwxaHUrcVFjME9tSjNQam52N2tvM01LalFUT3ZiTjY3MDBISVU0VjM4VzBLNWJzU3hJM3ZNVFdlZTFxZWhONEoyU3poU1V1MmNKOHhNZ1JnRk0yTTY2dll4cVozbnhDM3drbFc5eTkxNXFjdzV6Sk1YL0J2ekdvbklqSHhCVTZzKzVOdVozd2lVeHpLZk1WSjhlaXVQYW16U2F4YVpnaFA4USswZVRudzdtSklkRmo5MnpuT0ptT3EvRDUzdklzbjlUY1Y3aS85bVAzZ01WaEE4NXJrS0hoUXV1N3JFWW9JK2szWDVPVW9CR0dTN2lpQllsUUgwaVdkR3lWdUdxT2JCVG55TXpBUEpKNXVyR3MzUHhPTXVpNkNwT3BDSW8vZ3RhYXJTUVFyc2RkTDhqL09nbzYvOU5hU0tNQmp2VS9zMmRFbzJLV2pROWY2Zk1YYmFSMEhnRE8yU2RZMEd5MWdKQkw3ZjNxUFAvWXIrMUNTckpQaFZQVFJaIn0=",
                "receiver-rewards": 0,
                "round-time": 1675224169,
                "sender": "ZW3ISEHZUHPO7OZGMKLKIIMKVICOUDRCERI454I3DB2BH52HGLSO67W754",
                "sender-rewards": 0,
                "signature": {
                    "sig": "Tx1z6WIErcxvKsmNxF3rviQsd/NYEcDKQUiMF7CaGM2F2vL2Pbu1K7iFMIyr+Thhmk8bzRE9UgGLZxrViI5pBQ=="
                },
                "tx-type": "axfer"
            },
            {
                "asset-transfer-transaction": {
                    "amount": 0,
                    "asset-id": 27165954,
                    "close-amount": 0,
                    "receiver": "POJOKVRKPJHAHQAT2PMAJOL6CJNEVOWNVE72AAIGG7KC6IMDFH2UMM74TU"
                },
                "close-rewards": 0,
                "closing-amount": 0,
                "confirmed-round": 26664056,
                "fee": 1000,
                "first-valid": 26664054,
                "genesis-hash": "wGHE2Pwdvd7S12BL5FaOP20EGYesN73ktiC1qzkkit8=",
                "genesis-id": "mainnet-v1.0",
                "id": "YLD22S73XUSJUK5CPIH6JSX7LC3G7IHHNEDKIWZN6MCUKFQA227Q",
                "intra-round-offset": 1,
                "last-valid": 26665054,
                "note": "gaZzdHJpbmfaAex1RUJQRzlHbFdlV1VDTmpqY3hRaFhJVC9YaWN2cVRKdHozRWtxQmlnZzc1cWQzZzFSbnBvUzBjMFIyVTVZVXRGU2k5V1JuVlNURVZEWTBZd1RqSlFaR05NY2tNMlJUZ3JTVWhxTHk5UmRTdENhMmwzYVVwTFRuQmtUREJuTTNoWFYxZElValJqYlZZcldYbGxhMVJvVURWUFpXdHFaRTlhT0dsbFJXOVljM0E0TkRkVWRrNTNLekowUlhwdk1sUjVURVk1VjFoVFpVZFNNa1JqT1d0cU5qZFRiREZZY21kTFltSkJSV1F3UWs5TE5rTjZZM0ZqYkV0UWNtdFRiemxTUjNSNEx6QnFVREptUVZwQldscHRXakp0ZFRWalowODNMMHRrWWswMFJGTTVNbEJWVVVoSFJsUTNUVWc0VWxKWldqSjFTR1F6ZWtaTVdsWlNTSEY1WjBscFVXb3hhRWQxT1V0RWRrVmFhRGw2V1dsV2Mwa3haV3hPZWtwdFRVZDVXRm81VmpFdlZEQnJVRFpMWkhSdmFGVlRWalZQU25GQlpIQlNURE5yVWtwU2RXTjZPRVI0UkZwbFExaERjemhVTVVOYU0wSllWVGhFWW5WTldERnJXRTFYY1VGWmVYZFpkVVZuVTJ0eGJ6MD0=",
                "receiver-rewards": 0,
                "round-time": 1675224169,
                "sender": "ZW3ISEHZUHPO7OZGMKLKIIMKVICOUDRCERI454I3DB2BH52HGLSO67W754",
                "sender-rewards": 0,
                "signature": {
                    "sig": "1+TS0ZcGT7TozpTm23t4heNOF2PyWCg42ucoulDVMYM8vI0vylFTTzn4jIxSbcKMnuxje9R8LGy364zz++eJBg=="
                },
                "tx-type": "axfer"
            }
        ],
        "transactionsRoot": null,
        "uncles": null
    }
}
```

{% 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 ](/ids/chain-ids)page for details. |
| chainSymbol                                       | String | Refer to the [Chain ID ](/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=1300&transactionHash=OLCUTSEF6VXYQDBFWF4HRYMZSIWBX6KGK6Z4LZ6ENXKOFQRVNT7Q&connectionType=idx
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "hash": "OLCUTSEF6VXYQDBFWF4HRYMZSIWBX6KGK6Z4LZ6ENXKOFQRVNT7Q",
        "transactionStatus": null,
        "blockNumber": 26668118,
        "timestamp": null,
        "from": "ZW3ISEHZUHPO7OZGMKLKIIMKVICOUDRCERI454I3DB2BH52HGLSO67W754",
        "to": null,
        "value": null,
        "transactionFees": 1000,
        "gas": null,
        "gasPrice": null,
        "input": null,
        "nonce": null,
        "network": null
    }
}
```

{% 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                                                |
| ------------------------------------------------ | ------ | ---------------------------------------------------------- |
| chainId<mark style="color:red;">\*</mark>        | String | Refer to the [Chain ID ](/ids/chain-ids)page for details.  |
| chainSymbol                                      | String | Refer to the [Chain ID ](/ids/chain-ids)page for details.  |
| rawTransaction<mark style="color:red;">\*</mark> | String | The encoded transaction, obtained from signed transaction. |
| rpc                                              | String | Remote procedural call URL.                                |

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

```json
{
    "chainId": "1300",
    "rawTransaction": "gqNzaWfEQHCJiluAOitZ4EQDDP1qmUbVH5frkxy2KOkqmwoYdtENZAR5f55OKoBMQnBerWQkO8JK6HiC4byawVK42P6/5A+jdHhuiaNhbXTOAAGGoKNmZWXOAAPE2KJmds4Bol3zo2dlbqx0ZXN0bmV0LXYxLjCiZ2jEIEhjtRiks8hOyBDyLU8QgcsPcfBZp6wg3sYvf3DlCToiomx2zgGiYdujcmN2xCCbP4KhZktlDSi+r3y5BkT69HDy4Vj+osSH1D1G8hvgBqNzbmTEIIvCk9AJ+SgmkphoJpj7tvaD379lxCgYbXggKeLOaMCWpHR5cGWjcGF5"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1300",
        "transactionHash": "7MK6WLKFBPC323ATSEKNEKUTQZ23TCCM75SJNSFAHEM65GYJ5ANQ"
    }
}
```

{% endtab %}
{% endtabs %}


# Aptos

### /getbalance

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

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

#### Query Parameters

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

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

```url
https://api.expand.network/chain/getbalance?address=0xccd1f5fae72dfe1f2f41c425e77170e2c3aef3d1e7f9f301453806bfbf565177&chainId=1400
```

{% endtab %}

{% tab title="Sample Response" %}

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

{% 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 ](/ids/chain-ids)page for details. |
| chainSymbol                                   | String | Refer to the [Chain ID ](/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=47654752&chainId=1400
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "difficulty": null,
        "gasLimit": null,
        "gasUsed": null,
        "hash": "0xc177dd30b5e2e68e6f8a80469a82c447f8786afc1341a11183ad570f0112affe",
        "miner": null,
        "nonce": null,
        "number": "47654752",
        "parentHash": null,
        "size": null,
        "timestamp": "1681636026911155",
        "totalDifficulty": null,
        "transactions": [
            {
                "version": "122660455",
                "hash": "0xe2ae82c6c29ea7ab9aa66bdb8d9153a188b653498fefa0e51347419a3e79efed",
                "state_change_hash": "0x47b9b8f124d155c55c396ac6047909312106186646738c12f150f3721f928fbc",
                "event_root_hash": "0x3abbe8ac0d24cf244d33ff1242113abcccabc5724d1517f5ad0b38877ac4d630",
                "state_checkpoint_hash": null,
                "gas_used": "0",
                "success": true,
                "vm_status": "Executed successfully",
                "accumulator_root_hash": "0xbe2434630c973a72e4b61c1bf4f18b6357352e0da1939f51f1b3f466f6705329",
                "changes": [
                    {
                        "address": "0x1",
                        "state_key_hash": "0x5ddf404c60e96e9485beafcabb95609fed8e38e941a725cae4dcec8296fb32d7",
                        "data": {
                            "type": "0x1::block::BlockResource",
                            "data": {
                                "epoch_interval": "7200000000",
                                "height": "47654752",
                                "new_block_events": {
                                    "counter": "47654753",
                                    "guid": {
                                        "id": {
                                            "addr": "0x1",
                                            "creation_num": "3"
                                        }
                                    }
                                },
                                "update_epoch_interval_events": {
                                    "counter": "0",
                                    "guid": {
                                        "id": {
                                            "addr": "0x1",
                                            "creation_num": "4"
                                        }
                                    }
                                }
                            }
                        },
                        "type": "write_resource"
                    },
                    {
                        "address": "0x1",
                        "state_key_hash": "0x8048c954221814b04533a9f0a9946c3a8d472ac62df5accb9f47c097e256e8b6",
                        "data": {
                            "type": "0x1::stake::ValidatorPerformance",
                            "data": {
                                "validators": [
                                    {
                                        "failed_proposals": "0",
                                        "successful_proposals": "10"
                                    }
                                ]
                            }
                        },
                        "type": "write_resource"
                    },
                    {
                        "address": "0x1",
                        "state_key_hash": "0x7b1615bf012d3c94223f3f76287ee2f7bdf31d364071128b256aeff0841b626d",
                        "data": {
                            "type": "0x1::timestamp::CurrentTimeMicroseconds",
                            "data": {
                                "microseconds": "1681636026911155"
                            }
                        },
                        "type": "write_resource"
                    }
                ],
                "id": "0xc177dd30b5e2e68e6f8a80469a82c447f8786afc1341a11183ad570f0112affe",
                "epoch": "2231",
                "round": "11072",
                "events": [
                    {
                        "guid": {
                            "creation_number": "3",
                            "account_address": "0x1"
                        },
                        "sequence_number": "47654752",
                        "type": "0x1::block::NewBlockEvent",
                        "data": {
                            "epoch": "2231",
                            "failed_proposer_indices": [],
                            "hash": "0xc177dd30b5e2e68e6f8a80469a82c447f8786afc1341a11183ad570f0112affe",
                            "height": "47654752",
                            "previous_block_votes_bitvec": "0x81ff97eeff69ef7e8fe5bdff7c",
                            "proposer": "0xb4a4f1ef8b0702d85547dc444571a473f736e1205a86db36dad13815ad9bbbf6",
                            "round": "11072",
                            "time_microseconds": "1681636026911155"
                        }
                    }
                ],
                "previous_block_votes_bitvec": [
                    129,
                    255,
                    151,
                    238,
                    255,
                    105,
                    239,
                    126,
                    143,
                    229,
                    189,
                    255,
                    124
                ],
                "proposer": "0xb4a4f1ef8b0702d85547dc444571a473f736e1205a86db36dad13815ad9bbbf6",
                "failed_proposer_indices": [],
                "timestamp": "1681636026911155",
                "type": "block_metadata_transaction"
            }
        ]
    }
}
```

{% 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 ](/ids/chain-ids)page for details. |
| chainSymbol                                       | String | Refer to the [Chain ID ](/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=1400&transactionHash=0xe2532049fca2c58bab4f32778469f8b4de47e15fed0de40e0c24eb2be226c82d
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "hash": "0xe2532049fca2c58bab4f32778469f8b4de47e15fed0de40e0c24eb2be226c82d",
        "transactionStatus": true,
        "timestamp": "1687506074530639",
        "from": "0x7ea47ff5231ccc1fa81bd90fc8367d7bdb8e25daa2b8294dff93715420ab5ba3",
        "to": null,
        "value": null,
        "transactionFees": "323",
        "gas": "200000",
        "gasPrice": "100",
        "input": null,
        "nonce": null,
        "network": null
    }
}
```

{% 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="/pages/5o1xMsQPqXw9GBfGTpdB">Chain ID </a>page for details.</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>address<mark style="color:red;">*</mark></td><td>String</td><td>The public address of the user.</td></tr><tr><td>pageSize</td><td>String</td><td>The page size. <br>By Default 30 and Max 100</td></tr><tr><td>pageToken</td><td>String</td><td>The page token or page number</td></tr><tr><td>sortOrder</td><td>String</td><td>The transaction sorting order.<br>asc or desc.<br>By default, desc.</td></tr></tbody></table>

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

```url
https://historicallp.api.expand.network/chain/getusertransactions?chainId=1400&address=0xdf5b1f3305301245bf8d629cb0e193c49ad90fb12ed412bb6e4c2eba221a1c43&pageToken=2&sortOrder=desc&pageSize=30
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "totalPages": "165926",
        "currentPage": "2",
        "transactions": [
            {
                "version": "2545137957",
                "hash": "0x7d81cfc8234ebfba8fdbf624b9ed4a0d9959e49265f9a12de324f08bb5592e6c",
                "state_change_hash": "0x7bf3bbd782cef78dbfc73fdeb6d32105c1b500dfaee00767e301d8e1b2fbd539",
                "event_root_hash": "0x5b00633969394263f1a54519aa7a9ad85a75a2bc6d5b9786cbf42476841aa332",
                "state_checkpoint_hash": null,
                "gas_used": "16",
                "success": true,
                "vm_status": "Executed successfully",
                "accumulator_root_hash": "0xb4f9b97aabbe5a1e204b249a9ad4f3ed2621079c2f53409d0ef27f26e0e55898",
                "changes": [
                    {
                        "address": "0x7558b46813454b5ae58b49b4c183c7d643ebf9793e89377ae84d640e52bf7a42",
                        "state_key_hash": "0x1f22a8f69fb4ff5f6494cc44f18d4672b48e27d307d809adb131af582a47f626",
                        "data": {
                            "type": "0x1::fungible_asset::FungibleStore",
                            "data": {
                                "balance": "0",
                                "frozen": false,
                                "metadata": {
                                    "inner": "0xbae207659db88bea0cbead6da0ed00aac12edcdda169e591cd41c94180b46f3b"
                                }
                            }
                        },
                        "type": "write_resource"
                    },
                    {
                        "address": "0x7558b46813454b5ae58b49b4c183c7d643ebf9793e89377ae84d640e52bf7a42",
                        "state_key_hash": "0x1f22a8f69fb4ff5f6494cc44f18d4672b48e27d307d809adb131af582a47f626",
                        "data": {
                            "type": "0x1::object::ObjectCore",
                            "data": {
                                "allow_ungated_transfer": false,
                                "guid_creation_num": "1125899906842625",
                                "owner": "0xdf5b1f3305301245bf8d629cb0e193c49ad90fb12ed412bb6e4c2eba221a1c43",
                                "transfer_events": {
                                    "counter": "0",
                                    "guid": {
                                        "id": {
                                            "addr": "0x7558b46813454b5ae58b49b4c183c7d643ebf9793e89377ae84d640e52bf7a42",
                                            "creation_num": "1125899906842624"
                                        }
                                    }
                                }
                            }
                        },
                        "type": "write_resource"
                    },
                    {
                        "address": "0x7558b46813454b5ae58b49b4c183c7d643ebf9793e89377ae84d640e52bf7a42",
                        "state_key_hash": "0x1f22a8f69fb4ff5f6494cc44f18d4672b48e27d307d809adb131af582a47f626",
                        "data": {
                            "type": "0x1::object::Untransferable",
                            "data": {
                                "dummy_field": false
                            }
                        },
                        "type": "write_resource"
                    },
                    {
                        "address": "0xcd62a4687c6e227de4b4b2c077793615ed584bd0cf120ad028ec98c5e1d7d04e",
                        "state_key_hash": "0x648f00722680b73d26901cd791995cee83b4fba2eff85cffb53f2b734af6e505",
                        "data": {
                            "type": "0x1::fungible_asset::FungibleStore",
                            "data": {
                                "balance": "5453111475",
                                "frozen": false,
                                "metadata": {
                                    "inner": "0xbae207659db88bea0cbead6da0ed00aac12edcdda169e591cd41c94180b46f3b"
                                }
                            }
                        },
                        "type": "write_resource"
                    },
                    {
                        "address": "0xcd62a4687c6e227de4b4b2c077793615ed584bd0cf120ad028ec98c5e1d7d04e",
                        "state_key_hash": "0x648f00722680b73d26901cd791995cee83b4fba2eff85cffb53f2b734af6e505",
                        "data": {
                            "type": "0x1::object::ObjectCore",
                            "data": {
                                "allow_ungated_transfer": false,
                                "guid_creation_num": "1125899906842625",
                                "owner": "0xe31f10af9feab4259ef092d478180dd5cf64be43032a840597ab93ae13208a5e",
                                "transfer_events": {
                                    "counter": "0",
                                    "guid": {
                                        "id": {
                                            "addr": "0xcd62a4687c6e227de4b4b2c077793615ed584bd0cf120ad028ec98c5e1d7d04e",
                                            "creation_num": "1125899906842624"
                                        }
                                    }
                                }
                            }
                        },
                        "type": "write_resource"
                    },
                    {
                        "address": "0xcd62a4687c6e227de4b4b2c077793615ed584bd0cf120ad028ec98c5e1d7d04e",
                        "state_key_hash": "0x648f00722680b73d26901cd791995cee83b4fba2eff85cffb53f2b734af6e505",
                        "data": {
                            "type": "0x1::object::Untransferable",
                            "data": {
                                "dummy_field": false
                            }
                        },
                        "type": "write_resource"
                    },
                    {
                        "address": "0xdf5b1f3305301245bf8d629cb0e193c49ad90fb12ed412bb6e4c2eba221a1c43",
                        "state_key_hash": "0x225dc453b6f2359a4fc3d36a17985d46f60c4f714c5d38b59dc805e08f0a2db6",
                        "data": {
                            "type": "0x1::coin::CoinStore<0x1::aptos_coin::AptosCoin>",
                            "data": {
                                "coin": {
                                    "value": "20796419478"
                                },
                                "deposit_events": {
                                    "counter": "99020",
                                    "guid": {
                                        "id": {
                                            "addr": "0xdf5b1f3305301245bf8d629cb0e193c49ad90fb12ed412bb6e4c2eba221a1c43",
                                            "creation_num": "2"
                                        }
                                    }
                                },
                                "frozen": false,
                                "withdraw_events": {
                                    "counter": "138203",
                                    "guid": {
                                        "id": {
                                            "addr": "0xdf5b1f3305301245bf8d629cb0e193c49ad90fb12ed412bb6e4c2eba221a1c43",
                                            "creation_num": "3"
                                        }
                                    }
                                }
                            }
                        },
                        "type": "write_resource"
                    },
                    {
                        "address": "0xdf5b1f3305301245bf8d629cb0e193c49ad90fb12ed412bb6e4c2eba221a1c43",
                        "state_key_hash": "0x1a99836dc88b7339049bcdbd0f2c3a50e1a078cc1eeb58d46a2ba6b055c7baad",
                        "data": {
                            "type": "0x1::account::Account",
                            "data": {
                                "authentication_key": "0xdf5b1f3305301245bf8d629cb0e193c49ad90fb12ed412bb6e4c2eba221a1c43",
                                "coin_register_events": {
                                    "counter": "2",
                                    "guid": {
                                        "id": {
                                            "addr": "0xdf5b1f3305301245bf8d629cb0e193c49ad90fb12ed412bb6e4c2eba221a1c43",
                                            "creation_num": "0"
                                        }
                                    }
                                },
                                "guid_creation_num": "6",
                                "key_rotation_events": {
                                    "counter": "0",
                                    "guid": {
                                        "id": {
                                            "addr": "0xdf5b1f3305301245bf8d629cb0e193c49ad90fb12ed412bb6e4c2eba221a1c43",
                                            "creation_num": "1"
                                        }
                                    }
                                },
                                "rotation_capability_offer": {
                                    "for": {
                                        "vec": []
                                    }
                                },
                                "sequence_number": "165925",
                                "signer_capability_offer": {
                                    "for": {
                                        "vec": []
                                    }
                                }
                            }
                        },
                        "type": "write_resource"
                    },
                    {
                        "state_key_hash": "0x6e4b28d40f98a106a65163530924c0dcb40c1349d3aa915d108b4d6cfc1ddb19",
                        "handle": "0x1b854694ae746cdbd8d44186ca4929b2b337df21d1c74633be19b2710552fdca",
                        "key": "0x0619dc29a0aac8fa146714058e8dd6d2d0f3bdf5f6331907bf91f3acd81e6935",
                        "value": "0x09634b8f953797010000000000000000",
                        "data": null,
                        "type": "write_table_item"
                    }
                ],
                "sender": "0xdf5b1f3305301245bf8d629cb0e193c49ad90fb12ed412bb6e4c2eba221a1c43",
                "sequence_number": "165924",
                "max_gas_amount": "8000",
                "gas_unit_price": "100",
                "expiration_timestamp_secs": "1743438740",
                "payload": {
                    "function": "0x1::primary_fungible_store::transfer",
                    "type_arguments": [
                        "0x1::fungible_asset::Metadata"
                    ],
                    "arguments": [
                        {
                            "inner": "0xbae207659db88bea0cbead6da0ed00aac12edcdda169e591cd41c94180b46f3b"
                        },
                        "0xe31f10af9feab4259ef092d478180dd5cf64be43032a840597ab93ae13208a5e",
                        "2558998256"
                    ],
                    "type": "entry_function_payload"
                },
                "signature": {
                    "public_key": "0x806fb260a1679724a345f417c83f9148b8dd5c7eb7d76e497103f217b1ce25a4",
                    "signature": "0xa0ea1a9da83ebae4b0af6b95e17f9502c97ca1000f319f2d6a2985573a58e4039e1cc66ae18cb43ec34306f3513c3f4e230a758081d6aab2cdedd003f50b580e",
                    "type": "ed25519_signature"
                },
                "events": [
                    {
                        "guid": {
                            "creation_number": "0",
                            "account_address": "0x0"
                        },
                        "sequence_number": "0",
                        "type": "0x1::fungible_asset::Withdraw",
                        "data": {
                            "amount": "2558998256",
                            "store": "0x7558b46813454b5ae58b49b4c183c7d643ebf9793e89377ae84d640e52bf7a42"
                        }
                    },
                    {
                        "guid": {
                            "creation_number": "0",
                            "account_address": "0x0"
                        },
                        "sequence_number": "0",
                        "type": "0xe5c5befe31ce06bc1f2fd31210988aac08af6d821b039935557a6f14c03471be::stablecoin::Withdraw",
                        "data": {
                            "amount": "2558998256",
                            "store": "0x7558b46813454b5ae58b49b4c183c7d643ebf9793e89377ae84d640e52bf7a42",
                            "store_owner": "0xdf5b1f3305301245bf8d629cb0e193c49ad90fb12ed412bb6e4c2eba221a1c43"
                        }
                    },
                    {
                        "guid": {
                            "creation_number": "0",
                            "account_address": "0x0"
                        },
                        "sequence_number": "0",
                        "type": "0x1::fungible_asset::Deposit",
                        "data": {
                            "amount": "2558998256",
                            "store": "0xcd62a4687c6e227de4b4b2c077793615ed584bd0cf120ad028ec98c5e1d7d04e"
                        }
                    },
                    {
                        "guid": {
                            "creation_number": "0",
                            "account_address": "0x0"
                        },
                        "sequence_number": "0",
                        "type": "0xe5c5befe31ce06bc1f2fd31210988aac08af6d821b039935557a6f14c03471be::stablecoin::Deposit",
                        "data": {
                            "amount": "2558998256",
                            "store": "0xcd62a4687c6e227de4b4b2c077793615ed584bd0cf120ad028ec98c5e1d7d04e",
                            "store_owner": "0xe31f10af9feab4259ef092d478180dd5cf64be43032a840597ab93ae13208a5e"
                        }
                    },
                    {
                        "guid": {
                            "creation_number": "0",
                            "account_address": "0x0"
                        },
                        "sequence_number": "0",
                        "type": "0x1::transaction_fee::FeeStatement",
                        "data": {
                            "execution_gas_units": "8",
                            "io_gas_units": "9",
                            "storage_fee_octas": "0",
                            "storage_fee_refund_octas": "0",
                            "total_charge_gas_units": "16"
                        }
                    }
                ],
                "timestamp": "1743435140748297",
                "type": "user_transaction"
            }
        ]
    }
}
```

{% 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 ](/ids/chain-ids)page for details. |
| chainSymbol                               | String | Refer to the [Chain ID ](/ids/chain-ids)page for details. |

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

```url
https://api.expand.network/chain/getgasprice?chainSymbol=APT
```

{% endtab %}

{% tab title="Sample Response" %}

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

{% endtab %}
{% endtabs %}

### /registercoin

Get the current gas price from the network.

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

#### Request Body

| Name                                           | Type   | Description                                               |
| ---------------------------------------------- | ------ | --------------------------------------------------------- |
| rpc                                            | String | Remote procedural call URL.                               |
| from<mark style="color:red;">\*</mark>         | String | User wallet address                                       |
| chainId                                        | String | Refer to the [Chain ID ](/ids/chain-ids)page for details. |
| tokenAddress<mark style="color:red;">\*</mark> | String | Token address of token                                    |

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

```url
{
    "from": "0x1c3266eca38df87026255884192b5979eac24cf0dac7a33cfa7af0d27651fb4c",
    "tokenAddress": "0x96baeee6d7a4a8cd712144d1225cfcb6c26d0c6fefd463bd77a878e4526c7411::hair_coin::HairCoin",
    "chainId":"1400"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1400",
        "from": "0x1c3266eca38df87026255884192b5979eac24cf0dac7a33cfa7af0d27651fb4c",
        "to": "0x1c3266eca38df87026255884192b5979eac24cf0dac7a33cfa7af0d27651fb4c",
        "data": "0x1c3266eca38df87026255884192b5979eac24cf0dac7a33cfa7af0d27651fb4cdde40000000000000200000000000000000000000000000000000000000000000000000000000000010d6170746f735f6163636f756e740e7472616e736665725f636f696e73010796baeee6d7a4a8cd712144d1225cfcb6c26d0c6fefd463bd77a878e4526c741109686169725f636f696e0848616972436f696e0002201c3266eca38df87026255884192b5979eac24cf0dac7a33cfa7af0d27651fb4c080000000000000000400d03000000000064000000000000000967a768000000000100"
    }
}
```

{% 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                                                |
| ------------------------------------------------ | ------ | ---------------------------------------------------------- |
| chainId<mark style="color:red;">\*</mark>        | String | Refer to the [Chain ID ](/ids/chain-ids)page for details.  |
| chainSymbol                                      | String | Refer to the [Chain ID ](/ids/chain-ids)page for details.  |
| rawTransaction<mark style="color:red;">\*</mark> | String | The encoded transaction, obtained from signed transaction. |
| rpc                                              | String | Remote procedural call URL.                                |

{% hint style="info" %}
**Good to know:** While signing the transaction with our SDK, please ensure you have passed the correct sequence numbe&#x72;**(the sequence number of last transaction+1).**
{% endhint %}

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

```json
{   
    "chainId": "1400",
    "rawTransaction": "gDjn3zwy3kvqbul7NgB81Ce5fZ9B1y3L508UwTV2ZVIeAAAAAAAAAAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQRjb2luCHRyYW5zZmVyAQcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQphcHRvc19jb2luCUFwdG9zQ29pbgACIM0mOLBts6prchQV2uykOl5NrjQrmdPLAJGO04eAMDw7CExLTAAAAAAA6AMAAAAAAABkAAAAAAAAABFtiWQAAAAAAgAgjhPwSNdxs13Zr3j92aNnTHzkrsJJzIh51gi/xKNaUw9AeqtnqL1X6gXm6GcPhf9jiO6ma+YOYhOGFh8F1XGMQg8IxOFBDVF2g1EToVMUSfUEzvdZk/AzgwZB8yTHoZjVDA=="
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1400",
        "transactionHash": "0x0df58478f17d3e94a1f033ee981ef7c34bd34f8e2ae4572915062a3575f8bbe2"
    }
}
```

{% endtab %}
{% endtabs %}


# Sui

Note: Supported version - Node v18+

### /getsuibalance

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

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

#### Query Parameters

| Name                                      | Type   | Description                                                                                                                                 |
| ----------------------------------------- | ------ | ------------------------------------------------------------------------------------------------------------------------------------------- |
| rpc                                       | String | Remote procedural call URL                                                                                                                  |
| chainId<mark style="color:red;">\*</mark> | String | Refer to the [Chain ID ](/ids/chain-ids)page for details.                                                                                   |
| chainSymbol                               | String | Refer to the [Chain ID ](/ids/chain-ids)page for details.                                                                                   |
| blockNumber                               | String | <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> |
| address<mark style="color:red;">\*</mark> | String | The public address to get the balance of.                                                                                                   |
| tokenAddress                              | String | The address of token to get the balance of.                                                                                                 |

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

```url
https://historicallp.api.expand.network/chain/getsuibalance?chainId=101&address=0x160d7516429e4b5c6e593ab4b5c162484b4719961f5411f1ad48670278334eec&blockNumber=34214422
```

{% endtab %}

{% tab title="Sample Response" %}

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

{% 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 ](/ids/chain-ids)page for details. |
| chainSymbol                                   | String | Refer to the [Chain ID ](/ids/chain-ids)page for details. |
| blockNumber<mark style="color:red;">\*</mark> | String | The block(Checkpoint) number or block hash.               |

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

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

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "difficulty": null,
        "gasLimit": null,
        "gasUsed": {
            "computationFee": "319667546316",
            "storageFee": "1667423348400",
            "storageRebate": "1188416311632",
            "nonRefundableStorageFee": "12004205168"
        },
        "hash": "gZArqpuwddYeuxyK582fs5tTYeagBw6NBU1RD314hzC",
        "miner": null,
        "nonce": null,
        "number": "4925305",
        "parentHash": "8cFaKwc7s52Mt8csDbcqRizCTXGzRLFFkUf8cpw7pb2D",
        "size": null,
        "timestamp": "1686567354670",
        "totalDifficulty": null,
        "transactions": [
            "8SoUvGSix7Ds3qnLRh2Pe2dGHPsnMWM6wv7j8g2XBBs8",
            "8zEWsQkgTdFtqzeGu6aBUgDe6Hysqdfv7LEhDxt4so8p",
            "C8j1ZR3immv3a6bGRUwFnEZ8SNd794nKFL4acLu4pg1C",
            "CaYL9Vg57rHSwsgaHhT8WoXXDfftcozbtaKiJVgk7qA7",
            "Fkm8avKi2qxeTS8aDKeohyn4DT1psoC8Et8jPEXQuxhS",
            "GECi5Pe5MNgUzPSUcwDp1CcBxUiHiZegs4LPvRb21wTU",
            "JAznEFvDf3Wm3C8uyPi1kNEBJcj88x4HgfyPATUUjEGz"
        ],
        "transactionsRoot": null,
        "uncles": null
    }
}
```

{% 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 ](/ids/chain-ids)page for details. |
| chainSymbol                               | String | Refer to the [Chain ID ](/ids/chain-ids)page for details. |

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

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

{% endtab %}

{% tab title="Sample Response" %}

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

{% 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 ](/ids/chain-ids)page for details. |
| chainSymbol                               | String | Refer to the [Chain ID ](/ids/chain-ids)page for details. |
| address<mark style="color:red;">\*</mark> | String | Object Id whose storage is needed.                        |

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

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

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "data": {
            "data": {
                "objectId": "0x2c0c60250556852f3391645418c3a1939557ef3f86197bfd8d5f08e42bf8a562",
                "version": "5832321",
                "digest": "4U8VJLHhmwcSLQKZ4E94i3LpVkfTEgqTs2JvJnaHjAWE",
                "type": "0x2::coin::Coin<0x2::sui::SUI>",
                "owner": {
                    "AddressOwner": "0x4e6c09c10308e273b01f9be9f4eebc4cd47408156dcf580036946ca17468efbd"
                },
                "previousTransaction": "BTA1oPx1mxoh8eE7abaZjn68661kmK5HR778Xh5wnDhV",
                "content": {
                    "dataType": "moveObject",
                    "type": "0x2::coin::Coin<0x2::sui::SUI>",
                    "hasPublicTransfer": true,
                    "fields": {
                        "balance": "3247896304",
                        "id": {
                            "id": "0x2c0c60250556852f3391645418c3a1939557ef3f86197bfd8d5f08e42bf8a562"
                        }
                    }
                }
            }
        }
    }
}
```

{% 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 ](/ids/chain-ids)page for details. |
| chainSymbol                                       | String | Refer to the [Chain ID ](/ids/chain-ids)page for details. |
| transactionHash<mark style="color:red;">\*</mark> | String | The transaction(digest) hash.                             |

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

```url
https://api.expand.network/chain/gettransaction?chainId=101&transactionHash=fcT9BaBGgRXHo2ngJAVAPACnYVUPtu1qAmUqLACNGZ2
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "hash": "fcT9BaBGgRXHo2ngJAVAPACnYVUPtu1qAmUqLACNGZ2",
        "transactionStatus": "success",
        "blockNumber": "5851982",
        "timestamp": "1687511099697",
        "from": "0x3171f5feed9f73a6ce73764c8c713816c8ad02b3cd2c72bfb46421bee417f488",
        "to": null,
        "value": null,
        "transactionFees": {
            "computationFee": "820000",
            "storageFee": "8048400",
            "storageRebate": "6568452",
            "nonRefundableStorageFee": "66348"
        },
        "gas": {
            "payment": [
                {
                    "objectId": "0xe68aa8790c973b9b56de6082570aa24a6b07827e11e8d7c76de36c8a55f7e1a2",
                    "version": 5752185,
                    "digest": "DUGMzaGpSsQHS5DvcZmCTFupJxRWEmjm1H3YcCyNRv4p"
                }
            ],
            "owner": "0x1d632d46ff70491033fefc4e6398dceaa4943dcf62512b4d57378b5ab703bc5e",
            "price": "820",
            "budget": "10000000"
        },
        "gasPrice": 820,
        "input": [
            {
                "type": "object",
                "objectType": "sharedObject",
                "objectId": "0xa12497d95f761a3d7337e1f690c4dbbee5bc6fa52302a97d10249e856062aee5",
                "initialSharedVersion": "4338970",
                "mutable": true
            }
        ],
        "nonce": null,
        "network": null
    }
}
```

{% 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 ](/ids/chain-ids)page for details.      |
| chainSymbol                                      | String | Refer to the [Chain ID ](/ids/chain-ids)page for details.      |
| rawTransaction<mark style="color:red;">\*</mark> | String | The encoded transaction, obtained from the signed transaction. |
| signature<mark style="color:red;">\*</mark>      | String | Signature, received after signing the transaction.             |

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

```json
{
    "chainId": "101",
    "rawTransaction": "AAACAAjoAwAAAAAAAAAgjoLsljoRhNzWIhv109/7Y5u+3rE+m3cIAS6+9fY1CV0CAgABAQAAAQEDAAAAAAEBAHU9KMxqJHko4cO7vudRc1fUWhlgTsWqhC49Sd/RqeJ3AWLHsjiaUXCf24QTPngz4YscltY7WXx8EEvwMWY3bQi2EgAAAAAAAAAgAnvVen24ygZdxuPGTP5c0y9v4Q6gBEBrVZToO1VwKO91PSjMaiR5KOHDu77nUXNX1FoZYE7FqoQuPUnf0anid+gDAAAAAAAAEJAtAAAAAAAA",
    "signature": "AIZ7D4E4VKOy2biUd2O7Wayjjj+voVX1fUtX7Hx5Ga/twHIZ1BbfMrMoPDLIWU774K0199NZXrFIw+aILTTj7Q5Dii+a4T1FLWxQvLizpwhD6VXBW4qPG0vYYOJ2O0GuhQ=="
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "101",
        "transactionHash": "67yEnYvTfkNnKPtxrLfYomhWoi5cH7XCPbVQtjJ3UAW9" 
    }
}
```

{% endtab %}
{% endtabs %}


# Starknet

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

| Name                                      | Type   | Description                                               |
| ----------------------------------------- | ------ | --------------------------------------------------------- |
| rpc                                       | String | Remote procedural call URL                                |
| chainId<mark style="color:red;">\*</mark> | String | Refer to the [Chain ID ](/ids/chain-ids)page for details. |
| chainSymbol                               | String | Refer to the [Chain ID ](/ids/chain-ids)page for details. |
| address<mark style="color:red;">\*</mark> | String | The public address to get the balance of.                 |
| tokenAddress                              | String | The address of token to get the balance of.               |

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

```url
https://api.expand.network/chain/getbalance/?address=0x002eb24d4fda7c0e4473c091da3bc0b2dfd1622d3d8334d0f5e921587aaeb01f&chainId=400
```

{% endtab %}

{% tab title="Sample Response" %}

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

{% 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 ](/ids/chain-ids)page for details. |
| chainSymbol                                   | String | Refer to the [Chain ID ](/ids/chain-ids)page for details. |
| blockNumber<mark style="color:red;">\*</mark> | String | The block number or block hash.                           |

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

```
https://historicallp.api.expand.network/chain/getblock?chainId=400&blockNumber=164639
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "difficulty": null,
        "gasLimit": null,
        "gasUsed": null,
        "hash": "0x4ab1311e8211aac585ea106f54a38fda9d6d9f82df3c12d6768475bb47daa7a",
        "miner": null,
        "nonce": null,
        "number": "164639",
        "parentHash": "0x64ff22f43e22bee32e857b2dd59c389b6bd451cb53404b631602d2c8077cc03",
        "size": null,
        "timestamp": "1692600243",
        "totalDifficulty": null,
        "transactions": [
            {
                "calldata": [
                    "0x2",
                    "0x23c72abdf49dffc85ae3ede714f2168ad384cc67d08524732acea90df325",
                    "0x219209e083275171774dab1df80982e9df2096516f06319c5c6d71ae0a8480c",
                    "0x5d5495a5d59cdc0f45ca6dbefda525866910eb800530d47e75cc7a3b2becc87",
                    "0x64e5aa92"
                ],
                "max_fee": "0x29ceb1c7616e4",
                "nonce": "0x45",
                "sender_address": "0x5d5495a5d59cdc0f45ca6dbefda525866910eb800530d47e75cc7a3b2becc87",
                "signature": [
                    "0x65b5b3bf40d98a50c1c8419f731fc560ca91419e22cc817c79c581d6a8bd2a9",
                    "0x6a35a25f9e123029f8f8e235d9a1559dba46b358f71951615dda91de636cbc6"
                ],
                "transaction_hash": "0x5c750d63ca77fc87c8770e7c95d06feb6cf6518f2538804eb9d9328f71c2101",
                "type": "INVOKE",
                "version": "0x1"
            }            
        ],
        "transactionsRoot": null,
        "uncles": null
    }
}
```

{% 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 ](/ids/chain-ids)page for details.        |
| chainSymbol                               | String | Refer to the [Chain ID ](/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?address=0x02d6150113d899d8c9de05990974c115dd532bc4dbc71bde85210410b9b30ae5&chainId=400
```

{% endtab %}

{% tab title="Sample Response" %}

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

{% 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 ](/ids/chain-ids)page for details. |
| chainSymbol                                       | String | Refer to the [Chain ID ](/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?transactionHash=0x03916ca8924008be74ccdaebf8214704ebec30b2ca433dd29a4a7ebe91ab9243&chainId=400
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "hash": "0x03916ca8924008be74ccdaebf8214704ebec30b2ca433dd29a4a7ebe91ab9243",
        "transactionStatus": "ACCEPTED_ON_L2",
        "blockNumber": 164636,
        "timestamp": null,
        "from": "0x7b1c654512354ef5447f8646ac20af60111f015612a57b1bfac21dee33b4907",
        "to": null,
        "value": null,
        "transactionFees": "182195480376306",
        "gas": "274000000000000",
        "gasPrice": null,
        "input": null,
        "nonce": "26",
        "network": null
    }
}
```

{% 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 ](/ids/chain-ids)page for details.      |
| chainSymbol                                      | String | Refer to the [Chain ID ](/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": "400",
    "rawTransaction": "eyJpbnZva2VfdHJhbnNhY3Rpb24iOnsic2VuZGVyX2FkZHJlc3MiOiIweDAyNzM1ZTYwZjAzNDZhODgyNzYzNjI5MDIyMGU5OTUxMTdjYzE0MjgwNTQzZDVjZDVjOGQ1NDRkNzMzNGJlZjgiLCJjYWxsZGF0YSI6WyIweDEiLCIweDQ5ZDM2NTcwZDRlNDZmNDhlOTk2NzRiZDNmY2M4NDY0NGRkZDZiOTZmN2M3NDFiMTU2MmI4MmY5ZTAwNGRjNyIsIjB4ODNhZmQzZjRjYWVkYzZlZWJmNDQyNDZmZTU0ZTM4Yzk1ZTMxNzlhNWVjOWVhODE3NDBlY2E1YjQ4MmQxMmUiLCIweDAiLCIweDMiLCIweDMiLCIweDQ3ZGU0YTBhNjg1NTdmMzhiNzU0ZTZkODc1YWNkNDk3MmNiZDJiMjIyZGU5YmEzMmY0Y2UwOTAyYTMwODlmZiIsIjB4MjA4NTcxIiwiMHgwIl0sInR5cGUiOiJJTlZPS0UiLCJtYXhfZmVlIjoiMHg1MWViODViOWFiNSIsInZlcnNpb24iOiIweDEiLCJzaWduYXR1cmUiOlsiMHg0NTc4MjhmYzU5NTBiY2NkNWYwMjhjNjU5ZjI0ODZlZWU0ZDZkMmQ5NDcxMGI0NTZhNjYyYzBkZGJmZjkwOWIiLCIweDk1NjQxMDYzMWM3ZGVkOWZmNTIwNGE3ODVhNWY0NjhiMDNjYTQ5YjU1ZTgxMzZiMGNkNDFhNmRkYjExNzdmIl0sIm5vbmNlIjoiMHgyYSJ9fQ=="
}
```

{% endtab %}

{% tab title="Sample Response" %}

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

{% endtab %}
{% endtabs %}


# TON

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

| Name                                      | Type   | Description                                               |
| ----------------------------------------- | ------ | --------------------------------------------------------- |
| rpc                                       | String | Remote procedural call URL                                |
| chainId<mark style="color:red;">\*</mark> | String | Refer to the [Chain ID ](/ids/chain-ids)page for details. |
| chainSymbol                               | String | Refer to the [Chain ID ](/ids/chain-ids)page for details. |
| address<mark style="color:red;">\*</mark> | String | The public address to get the balance of.                 |
| tokenAddress                              | String | The address of token to get the balance of.               |

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

```url
https://api.expand.network/chain/getbalance/?address=UQAxmMo2wxu_yQTySoV7u7-Con2csmcBloW0CrflBCQEr-7R&chainId=1100
```

{% endtab %}

{% tab title="Sample Response" %}

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

{% 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 ](/ids/chain-ids)page for details. |
| chainSymbol                                   | String | Refer to the [Chain ID ](/ids/chain-ids)page for details. |
| blockNumber<mark style="color:red;">\*</mark> | String | The block(sequence) number.                               |

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

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

{% endtab %}

{% tab title="Sample Response" %}

```json
{
  "status": 200,
  "msg": "success",
  "data": {
    "shards": [
      {
        "workchain": -1,
        "seqno": 37530079,
        "shard": "-9223372036854775808",
        "rootHash": "lzfewtlwNxzWAM2zwXXDDTwdQLopMh+gbVTTSWn84+M=",
        "fileHash": "gbj4ltNQ/I+uzMKdda6HjAzEEV338aNN6OSRSyN+TNo=",
        "transactions": [
          {
            "account": "Ef8zMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM0vF",
            "lt": "46117591000001",
            "hex": "cc351b1a06dbb2786081e46c20ae374dea3e3d8069020a5caaef085adcfb40b2",
            "transactionHash": "zDUbGgbbsnhggeRsIK43Teo+PYBpAgpcqu8IWtz7QLI="
          },
          {
            "account": "Ef8zMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM0vF",
            "lt": "46117591000002",
            "hex": "5044b5c128f592b20a74d2d35e90de7ba12eadc13333bb5d51d3a2265494ce36",
            "transactionHash": "UES1wSj1krIKdNLTXpDee6EurcEzM7tdUdOiJlSUzjY="
          },
          {
            "account": "Ef9VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVbxn",
            "lt": "46117591000003",
            "hex": "a434d5bb171a630afa7e1c6556ffb3d5f2325b4ea17d2dd46c9aca77ddac036b",
            "transactionHash": "pDTVuxcaYwr6fhxlVv+z1fIyW06hfS3UbJrKd92sA2s="
          }
        ]
      }
    ]
  }
}
```

{% 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 ](/ids/chain-ids)page for details. |
| chainSymbol                               | String | Refer to the [Chain ID ](/ids/chain-ids)page for details. |

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

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

{% endtab %}

{% tab title="Sample Response" %}

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

{% 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 ](/ids/chain-ids)page for details. |
| chainSymbol                                       | String | Refer to the [Chain ID ](/ids/chain-ids)page for details. |
| transactionHash<mark style="color:red;">\*</mark> | String | The transaction(digest) hash.                             |
| address<mark style="color:red;">\*</mark>         | String | Sender's public address.                                  |

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

```url
https://api.expand.network/chain/gettransaction?chainId=1100&transactionHash=whPbUe52HoCgrmkd9n1DpEmPC00rt5IqMb0NxdsjJec&address=UQAxmMo2wxu_yQTySoV7u7-Con2csmcBloW0CrflBCQEr-7R
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "@type": "raw.transaction",
        "address": {
            "@type": "accountAddress",
            "account_address": "EQAxmMo2wxu_yQTySoV7u7-Con2csmcBloW0CrflBCQEr7MU"
        },
        "utime": 1707378056,
        "data": "te6cckECBwEAAaQAA7VzGYyjbDG7/JBPJKhXu7v4KifZyyZwGWhbQKt+UEJASvAAAoc6sapEOtKW9AAdZAcbY46vM/ezW4lAeTLXpAsgL2TzT+x1uW2wAAKHIDIuADZcSFiAABRh5/1oAQIDAQGgBACCcmg71vLS+ZR3K7oq8Ku7shAhrC5E1x4q4buP3YBxyUZiyJ9ah8PG0skx0/zqz2Am0tDouaGuy3fgOaxRurkruAsCFwyINMjD0JAYYePjEQUGANVIAPFLwHy4w4LZWhR+6u+SLQ0K7iJqOaEEMnHS76yXRXljAAxmMo2wxu/yQTySoV7u7+Con2csmcBloW0CrflBCQErzD0JAAYUWGAAAFDnVjVIhMuJCxAAAAAANDSQMzk3tpA0Mrawtzo0QACcQHvoD6AAAAAAAAAAAB0AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFvAAAAAAAAAAAAAAAABLUUtpEnlC4z33SeGHxRhIq/htUa7i3D8ghbwxhQTn44E/NZboQ==",
        "transaction_id": {
            "@type": "internal.transactionId",
            "lt": "44477257000003",
            "hash": "HgLzLs1zrDiXTIEyLZG9LiKDoMVI/tfDZkn/8C0fA6A="
        },
        "fee": "999403",
        "storage_fee": "8403",
        "other_fee": "991000",
        "in_msg": {
            "@type": "raw.message",
            "source": "EQB4peA-XGHBbK0KP3V3yRaGhXcRNRzQghk46XfWS6K8sZn4",
            "destination": "EQAxmMo2wxu_yQTySoV7u7-Con2csmcBloW0CrflBCQEr7MU",
            "value": "1000000",
            "fwd_fee": "666672",
            "ihr_fee": "0",
            "created_lt": "44477257000002",
            "body_hash": "ZZQlYDzGKugPE21+I1c4bkJeaSpQoXGEHT4g6dEyJTE=",
            "msg_data": {
                "@type": "msg.dataText",
                "text": "aGkgZnJvbSBoZW1hbnRo"
            },
            "message": "Hello from expand.network"
        },
        "out_msgs": []
    }
}
```

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

| Name                                      | Type   | Description                                                       |
| ----------------------------------------- | ------ | ----------------------------------------------------------------- |
| rpc                                       | String | Remote procedural call URL.                                       |
| chainId                                   | String | Refer to the [Chain ID ](/ids/chain-ids)page for details.         |
| chainSymbol                               | String | Refer to the [Chain ID ](/ids/chain-ids)page for details.         |
| address<mark style="color:red;">\*</mark> | String | The public address of the user.                                   |
| limit                                     | String | <p>Maximum number of transactions in response. <br>Maximum: 5</p> |

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

```url
https://historicallp.api.expand.network/chain/getusertransactions?address=UQBmgNkHklxoS8WMjirAAuOkNNBZboTDWrjWORNA1Xv9EmRx&chainId=1100
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
  "status": 200,
  "msg": "success",
  "data": {
    "transactions": [
      {
        "@type": "raw.transaction",
        "address": {
          "@type": "accountAddress",
          "account_address": "EQBmgNkHklxoS8WMjirAAuOkNNBZboTDWrjWORNA1Xv9Ejm0"
        },
        "utime": 1714125058,
        "data": "te6cckECDAEAAwsAA7V2aA2QeSXGhLxYyOKsAC46Q00FluhMNauNY5E0DVe/0SAAAp8anhuoHRdrIfFGBWgJ0ujAJxaKJOm0ZMRehMSrUNJo94f6lKdQAAKfGiXx8DZit5AgADRlI2xoAQIDAgHgBAUAgnKNGWWE6qfORKwBzZkE3SbweVQTfssTCSXUd8ZS3azWqh0ZfkoBrB2WlXhhLDE+Pm1oC82fiMh2fu+ktRjwLyVrAg8MX0YYoYYEQAoLAeGIAM0Bsg8kuNCXixkcVYAFx0hpoLLdCYa1caxyJoGq9/okBfEp7mJ7p3/xL9HlN5+w0ib1jvNNsvB+ySMlgZibad1GFzLh0q1PUGBoe5ieue9BbsVLRENoj1IFe3ZeBryPOBlNTRi7MVvRUAAA3aAAHAYBAd8HAdViAAioWoxZMTVqjEz8xEP8QSW4AyorIq+/8UCfgJNM0gMPpgjz0AAAAAAAAAAAAAAAAAAAD4p+pQAaM4c3aZHJSy0F4AgA7zuZAqJxsqAciTilI8/iTnGEeq62piAAHtRKd6wOcJwQOThwAwkBsWgAzQGyDyS40JeLGRxVgAXHSGmgst0JhrVxrHImgar3+iUABFQtRiyYmrVGJn5iIf4gktwBlRWRV9/4oE/ASaZpAYfTBHnoAAYSYDQAAFPjU8N1BMxW8gTACAFtD4p+pQAaM4c3aZHJSy0F4AgA7zuZAqJxsqAciTilI8/iTnGEeq62piAAHtRKd6wOcJwQOThwAwkAmyWThWGAE/MfYd8/locz2KCBc6ZRFQsTITW89oBO3rJtNvV4fE1MAhOHaL8RABmgNkHklxoS8WMjirAAuOkNNBZboTDWrjWORNA1Xv9EkACdQZ2DE4gAAAAAAAAAABEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIABvyYbkEEwSYBgAAAAAAAIAAAAAAAO5PNSg+1BpnnaqhnojBcWdZ+wqfccJ/fUK1KOen//8pEDQNxwaDoEu",
        "transaction_id": {
          "@type": "internal.transactionId",
          "lt": "46117914000001",
          "hash": "8R5O0EmQPx7SfGNG8hC0/OeGII229QD23BqDZFUU9nA="
        },
        "fee": "3296125",
        "storage_fee": "125",
        "other_fee": "3296000",
        "in_msg": {
          "@type": "raw.message",
          "source": "",
          "destination": "EQBmgNkHklxoS8WMjirAAuOkNNBZboTDWrjWORNA1Xv9Ejm0",
          "value": "0",
          "fwd_fee": "0",
          "ihr_fee": "0",
          "created_lt": "0",
          "body_hash": "tGDq3Y4mgE4kxnExg+qCjK7/qmpYnK+RWGu0RzIYW/Q=",
          "msg_data": {
            "@type": "msg.dataRaw",
            "body": "te6cckECAwEAAQ8AAZy+JT3MT3Tv/iX6PKbz9hpE3rHeabZeD9kkZLAzE207qMLmXDpVqeoMDQ9zE9c96C3YqWiIbRHqQK9uy8DXkecDKamjF2YreioAABu0AAMBAdViAAioWoxZMTVqjEz8xEP8QSW4AyorIq+/8UCfgJNM0gMPpgjz0AAAAAAAAAAAAAAAAAAAD4p+pQAaM4c3aZHJSy0F4AgA7zuZAqJxsqAciTilI8/iTnGEeq62piAAHtRKd6wOcJwQOThwAwIAmyWThWGAE/MfYd8/locz2KCBc6ZRFQsTITW89oBO3rJtNvV4fE1MAhOHaL8RABmgNkHklxoS8WMjirAAuOkNNBZboTDWrjWORNA1Xv9EkOY8aAY=",
            "init_state": ""
          },
          "message": "viU9zE907/4l+jym8/YaRN6x3mm2Xg/ZJGSwMxNtO6jC5lw6VanqDA0PcxPXPegt2KloiG0R6kCv\nbsvA15HnAympoxdmK3oqAAAbtAAD\n"
        },
        "out_msgs": [
          {
            "@type": "raw.message",
            "source": "EQBmgNkHklxoS8WMjirAAuOkNNBZboTDWrjWORNA1Xv9Ejm0",
            "destination": "EQARULUYsmJq1RiZ-YiH-IJLcAZUVkVff-KBPwEmmaQGH6aC",
            "value": "3240000000",
            "fwd_fee": "602138",
            "ihr_fee": "0",
            "created_lt": "46117914000002",
            "body_hash": "qT1itc3NrlKqjJjCe4ZZVysIaR8THuAhj4o3Z0had/0=",
            "msg_data": {
              "@type": "msg.dataRaw",
              "body": "te6cckEBAgEAigABbQ+KfqUAGjOHN2mRyUstBeAIAO87mQKicbKgHIk4pSPP4k5xhHqutqYgAB7USnesDnCcEDk4cAMBAJslk4VhgBPzH2HfP5aHM9iggXOmURULEyE1vPaATt6ybTb1eHxNTAITh2i/EQAZoDZB5JcaEvFjI4qwALjpDTQWW6Ew1q41jkTQNV7/RJBPnect",
              "init_state": ""
            },
            "message": "D4p+pQAaM4c3aZHJSy0F4AgA7zuZAqJxsqAciTilI8/iTnGEeq62piAAHtRKd6wOcJwQOThwAg==\n"
          }
        ]
      }
    ]
  }
}
```

{% endtab %}
{% endtabs %}

### /portfolio

Get the comprehensive information about the assets/ tokens owned by a user.

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

#### Query Parameters

| Name                                      | Type    | Description                                                                   |
| ----------------------------------------- | ------- | ----------------------------------------------------------------------------- |
| rpc                                       | String  | Remote procedural call URL.                                                   |
| chainId                                   | String  | Refer to the [Chain ID ](/ids/chain-ids)page for details.                     |
| chainSymbol                               | String  | Refer to the [Chain ID ](/ids/chain-ids)page for details.                     |
| address<mark style="color:red;">\*</mark> | String  | Public addess of the user.                                                    |
| tokens                                    | String  | Comma-separated value of tokens to get value of. Maximum 10 at a time.        |
| availableOnly                             | Boolean | <p>By default, true. <br>If true, tokens with balance > 0 will be listed.</p> |

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

```url
https://api.expand.network/chain/portfolio?chainId=1100&address=UQAxmMo2wxu_yQTySoV7u7-Con2csmcBloW0CrflBCQEr-7R
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "native": "496234820",
        "jettons": [
            {
                "name": "GAGARIN",
                "symbol": "GGR",
                "address": "EQDetcmWrfHLPRPVh3LoFvwso0zsjFnpmmXTKWj7s1ycNgu2",
                "balance": "0",
                "USDPrice": "0.09126314435356501"
            },
            {
                "name": "WEMIX",
                "symbol": "oWEMIX",
                "address": "EQCf7Nb341dxOE3N0jimngRxGEV8T3zo-eU2EZVs_nchNhhZ",
                "balance": "0",
                "USDPrice": "NA"
            },
            {
                "name": "Mantle",
                "symbol": "jMNT",
                "address": "EQAEuikLQVh2lDMrV99nTHqFL_TXEyCEJ1xKMuPT60tfvdps",
                "balance": "0",
                "USDPrice": "0.7233562122618723"
            }
        ]
    }
}
```

{% endtab %}
{% endtabs %}

### **/**&#x67;etstakepositions

This endpoint fetches the TON staking balance of the address using TON-listed apps and Nominator pool.

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

#### Query Parameters

<table><thead><tr><th width="180">Name</th><th width="99">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</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>Public addess of the user.</td></tr></tbody></table>

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

```url
https://api.expand.network/chain/getstakepositions?address=UQB4JObGeYc-wG2nxsmbzBVfICAm_BoAFAQk-iJGm7jEdw44&chainId=1100
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
  "status": 200,
  "msg": "success",
  "data": {
    "activeStake": "3019411596649599",
    "stakePositions": [
      {
        "pool": "Bemo liquid staking",
        "balance": "719225507420430"
      },
      {
        "pool": "Nominator Pools",
        "balance": "2300186089229169"
      }
    ]
  }
}
```

{% endtab %}
{% endtabs %}


# Cosmos Hub

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

| Name                                      | Type   | Description                                               |
| ----------------------------------------- | ------ | --------------------------------------------------------- |
| rpc                                       | String | Remote procedural call URL                                |
| chainId<mark style="color:red;">\*</mark> | String | Refer to the [Chain ID ](/ids/chain-ids)page for details. |
| chainSymbol                               | String | Refer to the [Chain ID ](/ids/chain-ids)page for details. |
| address<mark style="color:red;">\*</mark> | String | The public address to get the balance of.                 |
| tokenAddress                              | String | The address of token to get the balance of.               |

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

```url
https://api.expand.network/chain/getbalance?chainId=cosmoshub-4&address=cosmos1y626ufdwxw4pfcst9nt82882zru6nhlvuvvj6t&tokenAddress=ibc%2F6B8A3F5C2AD51CD6171FA41A7E8C35AD594AB69226438DB94450436EA57B3A89
```

{% endtab %}

{% tab title="Sample Response" %}

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

{% 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 ](/ids/chain-ids)page for details. |
| chainSymbol                                   | String | Refer to the [Chain ID ](/ids/chain-ids)page for details. |
| blockNumber<mark style="color:red;">\*</mark> | String | The block(sequence) number.                               |

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

```url
https://historicallp.api.expand.network/chain/getblock?chainId=cosmoshub-4&blockNumber=21099500
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "difficulty": null,
        "gasLimit": null,
        "gasUsed": null,
        "hash": "CF1F630BB22B3948DBA75EFBF38FFED80B786A76CA786C5BD1B3765A0F0C4390",
        "miner": null,
        "nonce": null,
        "number": "21099500",
        "parentHash": null,
        "size": null,
        "timestamp": "1719819078",
        "totalDifficulty": null,
        "transactions": [
            {
                "body": {
                    "messages": [
                        {
                            "typeUrl": "/cosmos.staking.v1beta1.MsgDelegate",
                            "value": {
                                "0": 10,
                                "1": 45,
                                "2": 99,
                                "3": 111,
                                "4": 115,
                                "5": 109,
                                "6": 111,
                                "7": 115,
                                "8": 49,
                                "9": 48,
                                "10": 48,
                                "11": 115,
                                "12": 54,
                                "13": 102,
                                "14": 122,
                                "15": 116,
                                "16": 55,
                                "17": 107,
                                "18": 102,
                                "19": 53,
                                "20": 104,
                                "21": 104,
                                "22": 117,
                                "23": 109,
                                "24": 118,
                                "25": 119,
                                "26": 106,
                                "27": 120,
                                "28": 107,
                                "29": 121,
                                "30": 121,
                                "31": 122,
                                "32": 116,
                                "33": 121,
                                "34": 55,
                                "35": 119,
                                "36": 102,
                                "37": 109,
                                "38": 99,
                                "39": 110,
                                "40": 112,
                                "41": 97,
                                "42": 99,
                                "43": 112,
                                "44": 120,
                                "45": 110,
                                "46": 55,
                                "47": 18,
                                "48": 52,
                                "49": 99,
                                "50": 111,
                                "51": 115,
                                "52": 109,
                                "53": 111,
                                "54": 115,
                                "55": 118,
                                "56": 97,
                                "57": 108,
                                "58": 111,
                                "59": 112,
                                "60": 101,
                                "61": 114,
                                "62": 49,
                                "63": 119,
                                "64": 108,
                                "65": 97,
                                "66": 103,
                                "67": 117,
                                "68": 99,
                                "69": 120,
                                "70": 100,
                                "71": 120,
                                "72": 118,
                                "73": 115,
                                "74": 109,
                                "75": 118,
                                "76": 106,
                                "77": 54,
                                "78": 51,
                                "79": 51,
                                "80": 48,
                                "81": 56,
                                "82": 54,
                                "83": 52,
                                "84": 120,
                                "85": 56,
                                "86": 113,
                                "87": 51,
                                "88": 118,
                                "89": 120,
                                "90": 122,
                                "91": 52,
                                "92": 120,
                                "93": 48,
                                "94": 50,
                                "95": 114,
                                "96": 109,
                                "97": 118,
                                "98": 109,
                                "99": 115,
                                "100": 117,
                                "101": 26,
                                "102": 17,
                                "103": 10,
                                "104": 5,
                                "105": 117,
                                "106": 97,
                                "107": 116,
                                "108": 111,
                                "109": 109,
                                "110": 18,
                                "111": 8,
                                "112": 49,
                                "113": 51,
                                "114": 55,
                                "115": 48,
                                "116": 48,
                                "117": 48,
                                "118": 48,
                                "119": 48
                            }
                        }
                    ],
                    "memo": "",
                    "timeoutHeight": "BIGINT::0",
                    "extensionOptions": [],
                    "nonCriticalExtensionOptions": []
                },
                "authInfo": {
                    "signerInfos": [
                        {
                            "publicKey": {
                                "typeUrl": "/cosmos.crypto.secp256k1.PubKey",
                                "value": {
                                    "0": 10,
                                    "1": 33,
                                    "2": 2,
                                    "3": 203,
                                    "4": 250,
                                    "5": 70,
                                    "6": 99,
                                    "7": 23,
                                    "8": 42,
                                    "9": 187,
                                    "10": 199,
                                    "11": 47,
                                    "12": 197,
                                    "13": 157,
                                    "14": 250,
                                    "15": 102,
                                    "16": 101,
                                    "17": 198,
                                    "18": 8,
                                    "19": 120,
                                    "20": 28,
                                    "21": 110,
                                    "22": 250,
                                    "23": 18,
                                    "24": 140,
                                    "25": 158,
                                    "26": 162,
                                    "27": 19,
                                    "28": 130,
                                    "29": 239,
                                    "30": 32,
                                    "31": 222,
                                    "32": 118,
                                    "33": 187,
                                    "34": 193
                                }
                            },
                            "modeInfo": {
                                "single": {
                                    "mode": 127
                                }
                            },
                            "sequence": "BIGINT::1"
                        }
                    ],
                    "fee": {
                        "amount": [
                            {
                                "denom": "uatom",
                                "amount": "20605"
                            }
                        ],
                        "gasLimit": "BIGINT::824168",
                        "payer": "",
                        "granter": ""
                    }
                },
                "signatures": [
                    {
                        "0": 73,
                        "1": 144,
                        "2": 72,
                        "3": 62,
                        "4": 37,
                        "5": 158,
                        "6": 127,
                        "7": 82,
                        "8": 249,
                        "9": 142,
                        "10": 206,
                        "11": 30,
                        "12": 243,
                        "13": 231,
                        "14": 73,
                        "15": 93,
                        "16": 224,
                        "17": 112,
                        "18": 111,
                        "19": 44,
                        "20": 183,
                        "21": 237,
                        "22": 225,
                        "23": 148,
                        "24": 175,
                        "25": 191,
                        "26": 178,
                        "27": 183,
                        "28": 23,
                        "29": 146,
                        "30": 16,
                        "31": 226,
                        "32": 79,
                        "33": 212,
                        "34": 101,
                        "35": 86,
                        "36": 206,
                        "37": 118,
                        "38": 104,
                        "39": 182,
                        "40": 97,
                        "41": 3,
                        "42": 178,
                        "43": 82,
                        "44": 38,
                        "45": 131,
                        "46": 103,
                        "47": 32,
                        "48": 101,
                        "49": 208,
                        "50": 174,
                        "51": 138,
                        "52": 84,
                        "53": 105,
                        "54": 170,
                        "55": 45,
                        "56": 27,
                        "57": 158,
                        "58": 77,
                        "59": 16,
                        "60": 63,
                        "61": 189,
                        "62": 150,
                        "63": 151
                    }
                ]
            },
            {
                "body": {
                    "messages": [
                        {
                            "typeUrl": "/cosmos.gov.v1beta1.MsgVote",
                            "value": {
                                "0": 8,
                                "1": 167,
                                "2": 7,
                                "3": 18,
                                "4": 45,
                                "5": 99,
                                "6": 111,
                                "7": 115,
                                "8": 109,
                                "9": 111,
                                "10": 115,
                                "11": 49,
                                "12": 119,
                                "13": 54,
                                "14": 122,
                                "15": 117,
                                "16": 97,
                                "17": 54,
                                "18": 101,
                                "19": 103,
                                "20": 107,
                                "21": 55,
                                "22": 51,
                                "23": 104,
                                "24": 113,
                                "25": 99,
                                "26": 118,
                                "27": 113,
                                "28": 53,
                                "29": 119,
                                "30": 108,
                                "31": 104,
                                "32": 110,
                                "33": 116,
                                "34": 57,
                                "35": 118,
                                "36": 104,
                                "37": 52,
                                "38": 113,
                                "39": 57,
                                "40": 48,
                                "41": 53,
                                "42": 101,
                                "43": 53,
                                "44": 110,
                                "45": 55,
                                "46": 50,
                                "47": 102,
                                "48": 99,
                                "49": 102,
                                "50": 24,
                                "51": 1
                            }
                        }
                    ],
                    "memo": "",
                    "timeoutHeight": "BIGINT::0",
                    "extensionOptions": [],
                    "nonCriticalExtensionOptions": []
                },
                "authInfo": {
                    "signerInfos": [
                        {
                            "publicKey": {
                                "typeUrl": "/cosmos.crypto.secp256k1.PubKey",
                                "value": {
                                    "0": 10,
                                    "1": 33,
                                    "2": 2,
                                    "3": 78,
                                    "4": 207,
                                    "5": 181,
                                    "6": 222,
                                    "7": 20,
                                    "8": 97,
                                    "9": 203,
                                    "10": 27,
                                    "11": 248,
                                    "12": 6,
                                    "13": 158,
                                    "14": 130,
                                    "15": 63,
                                    "16": 91,
                                    "17": 208,
                                    "18": 166,
                                    "19": 130,
                                    "20": 182,
                                    "21": 185,
                                    "22": 75,
                                    "23": 218,
                                    "24": 101,
                                    "25": 158,
                                    "26": 39,
                                    "27": 218,
                                    "28": 92,
                                    "29": 69,
                                    "30": 15,
                                    "31": 206,
                                    "32": 13,
                                    "33": 246,
                                    "34": 221
                                }
                            },
                            "modeInfo": {
                                "single": {
                                    "mode": 127
                                }
                            },
                            "sequence": "BIGINT::39"
                        }
                    ],
                    "fee": {
                        "amount": [
                            {
                                "denom": "uatom",
                                "amount": "313"
                            }
                        ],
                        "gasLimit": "BIGINT::62516",
                        "payer": "",
                        "granter": ""
                    }
                },
                "signatures": [
                    {
                        "0": 90,
                        "1": 212,
                        "2": 190,
                        "3": 119,
                        "4": 20,
                        "5": 75,
                        "6": 27,
                        "7": 24,
                        "8": 144,
                        "9": 51,
                        "10": 79,
                        "11": 135,
                        "12": 60,
                        "13": 42,
                        "14": 1,
                        "15": 98,
                        "16": 202,
                        "17": 129,
                        "18": 52,
                        "19": 52,
                        "20": 255,
                        "21": 129,
                        "22": 92,
                        "23": 160,
                        "24": 40,
                        "25": 235,
                        "26": 160,
                        "27": 221,
                        "28": 86,
                        "29": 58,
                        "30": 126,
                        "31": 168,
                        "32": 15,
                        "33": 22,
                        "34": 42,
                        "35": 246,
                        "36": 180,
                        "37": 141,
                        "38": 35,
                        "39": 164,
                        "40": 186,
                        "41": 132,
                        "42": 100,
                        "43": 26,
                        "44": 198,
                        "45": 123,
                        "46": 2,
                        "47": 160,
                        "48": 138,
                        "49": 141,
                        "50": 42,
                        "51": 181,
                        "52": 72,
                        "53": 46,
                        "54": 183,
                        "55": 76,
                        "56": 96,
                        "57": 183,
                        "58": 106,
                        "59": 109,
                        "60": 191,
                        "61": 150,
                        "62": 229,
                        "63": 51
                    }
                ]
            },
            {
                "body": {
                    "messages": [
                        {
                            "typeUrl": "/cosmos.staking.v1beta1.MsgDelegate",
                            "value": {
                                "0": 10,
                                "1": 45,
                                "2": 99,
                                "3": 111,
                                "4": 115,
                                "5": 109,
                                "6": 111,
                                "7": 115,
                                "8": 49,
                                "9": 114,
                                "10": 100,
                                "11": 54,
                                "12": 100,
                                "13": 55,
                                "14": 97,
                                "15": 117,
                                "16": 116,
                                "17": 117,
                                "18": 57,
                                "19": 103,
                                "20": 52,
                                "21": 57,
                                "22": 56,
                                "23": 106,
                                "24": 99,
                                "25": 106,
                                "26": 120,
                                "27": 48,
                                "28": 119,
                                "29": 97,
                                "30": 113,
                                "31": 53,
                                "32": 54,
                                "33": 110,
                                "34": 57,
                                "35": 51,
                                "36": 106,
                                "37": 103,
                                "38": 121,
                                "39": 99,
                                "40": 104,
                                "41": 56,
                                "42": 52,
                                "43": 56,
                                "44": 120,
                                "45": 51,
                                "46": 55,
                                "47": 18,
                                "48": 52,
                                "49": 99,
                                "50": 111,
                                "51": 115,
                                "52": 109,
                                "53": 111,
                                "54": 115,
                                "55": 118,
                                "56": 97,
                                "57": 108,
                                "58": 111,
                                "59": 112,
                                "60": 101,
                                "61": 114,
                                "62": 49,
                                "63": 116,
                                "64": 101,
                                "65": 56,
                                "66": 110,
                                "67": 120,
                                "68": 112,
                                "69": 99,
                                "70": 50,
                                "71": 109,
                                "72": 121,
                                "73": 106,
                                "74": 102,
                                "75": 114,
                                "76": 104,
                                "77": 97,
                                "78": 116,
                                "79": 121,
                                "80": 48,
                                "81": 100,
                                "82": 110,
                                "83": 122,
                                "84": 100,
                                "85": 104,
                                "86": 115,
                                "87": 53,
                                "88": 97,
                                "89": 104,
                                "90": 100,
                                "91": 104,
                                "92": 53,
                                "93": 97,
                                "94": 103,
                                "95": 122,
                                "96": 117,
                                "97": 121,
                                "98": 109,
                                "99": 57,
                                "100": 118,
                                "101": 26,
                                "102": 17,
                                "103": 10,
                                "104": 5,
                                "105": 117,
                                "106": 97,
                                "107": 116,
                                "108": 111,
                                "109": 109,
                                "110": 18,
                                "111": 8,
                                "112": 49,
                                "113": 52,
                                "114": 51,
                                "115": 48,
                                "116": 48,
                                "117": 48,
                                "118": 48,
                                "119": 48
                            }
                        }
                    ],
                    "memo": "",
                    "timeoutHeight": "BIGINT::0",
                    "extensionOptions": [],
                    "nonCriticalExtensionOptions": []
                },
                "authInfo": {
                    "signerInfos": [
                        {
                            "publicKey": {
                                "typeUrl": "/cosmos.crypto.secp256k1.PubKey",
                                "value": {
                                    "0": 10,
                                    "1": 33,
                                    "2": 2,
                                    "3": 136,
                                    "4": 83,
                                    "5": 57,
                                    "6": 190,
                                    "7": 170,
                                    "8": 82,
                                    "9": 218,
                                    "10": 127,
                                    "11": 93,
                                    "12": 170,
                                    "13": 222,
                                    "14": 248,
                                    "15": 66,
                                    "16": 77,
                                    "17": 119,
                                    "18": 193,
                                    "19": 164,
                                    "20": 138,
                                    "21": 90,
                                    "22": 45,
                                    "23": 73,
                                    "24": 173,
                                    "25": 196,
                                    "26": 175,
                                    "27": 181,
                                    "28": 81,
                                    "29": 214,
                                    "30": 116,
                                    "31": 146,
                                    "32": 61,
                                    "33": 95,
                                    "34": 228
                                }
                            },
                            "modeInfo": {
                                "single": {
                                    "mode": 127
                                }
                            },
                            "sequence": "BIGINT::1"
                        }
                    ],
                    "fee": {
                        "amount": [
                            {
                                "denom": "uatom",
                                "amount": "20723"
                            }
                        ],
                        "gasLimit": "BIGINT::828899",
                        "payer": "",
                        "granter": ""
                    }
                },
                "signatures": [
                    {
                        "0": 236,
                        "1": 169,
                        "2": 93,
                        "3": 242,
                        "4": 227,
                        "5": 130,
                        "6": 142,
                        "7": 41,
                        "8": 229,
                        "9": 158,
                        "10": 70,
                        "11": 109,
                        "12": 97,
                        "13": 68,
                        "14": 210,
                        "15": 28,
                        "16": 121,
                        "17": 229,
                        "18": 43,
                        "19": 7,
                        "20": 117,
                        "21": 78,
                        "22": 63,
                        "23": 245,
                        "24": 40,
                        "25": 213,
                        "26": 104,
                        "27": 11,
                        "28": 66,
                        "29": 17,
                        "30": 18,
                        "31": 196,
                        "32": 123,
                        "33": 92,
                        "34": 228,
                        "35": 207,
                        "36": 193,
                        "37": 201,
                        "38": 239,
                        "39": 245,
                        "40": 113,
                        "41": 89,
                        "42": 210,
                        "43": 228,
                        "44": 234,
                        "45": 166,
                        "46": 105,
                        "47": 12,
                        "48": 36,
                        "49": 117,
                        "50": 96,
                        "51": 75,
                        "52": 63,
                        "53": 61,
                        "54": 208,
                        "55": 55,
                        "56": 12,
                        "57": 169,
                        "58": 184,
                        "59": 235,
                        "60": 46,
                        "61": 222,
                        "62": 151,
                        "63": 194
                    }
                ]
            },
            {
                "body": {
                    "messages": [
                        {
                            "typeUrl": "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward",
                            "value": {
                                "0": 10,
                                "1": 45,
                                "2": 99,
                                "3": 111,
                                "4": 115,
                                "5": 109,
                                "6": 111,
                                "7": 115,
                                "8": 49,
                                "9": 54,
                                "10": 55,
                                "11": 101,
                                "12": 113,
                                "13": 120,
                                "14": 122,
                                "15": 110,
                                "16": 120,
                                "17": 117,
                                "18": 54,
                                "19": 99,
                                "20": 97,
                                "21": 51,
                                "22": 110,
                                "23": 107,
                                "24": 51,
                                "25": 120,
                                "26": 110,
                                "27": 48,
                                "28": 97,
                                "29": 102,
                                "30": 55,
                                "31": 119,
                                "32": 122,
                                "33": 115,
                                "34": 51,
                                "35": 120,
                                "36": 113,
                                "37": 106,
                                "38": 101,
                                "39": 53,
                                "40": 101,
                                "41": 122,
                                "42": 56,
                                "43": 122,
                                "44": 104,
                                "45": 101,
                                "46": 113,
                                "47": 18,
                                "48": 52,
                                "49": 99,
                                "50": 111,
                                "51": 115,
                                "52": 109,
                                "53": 111,
                                "54": 115,
                                "55": 118,
                                "56": 97,
                                "57": 108,
                                "58": 111,
                                "59": 112,
                                "60": 101,
                                "61": 114,
                                "62": 49,
                                "63": 104,
                                "64": 109,
                                "65": 100,
                                "66": 53,
                                "67": 51,
                                "68": 53,
                                "69": 102,
                                "70": 54,
                                "71": 57,
                                "72": 116,
                                "73": 51,
                                "74": 120,
                                "75": 50,
                                "76": 54,
                                "77": 50,
                                "78": 109,
                                "79": 54,
                                "80": 115,
                                "81": 57,
                                "82": 119,
                                "83": 99,
                                "84": 54,
                                "85": 106,
                                "86": 100,
                                "87": 48,
                                "88": 100,
                                "89": 109,
                                "90": 101,
                                "91": 108,
                                "92": 50,
                                "93": 122,
                                "94": 101,
                                "95": 118,
                                "96": 104,
                                "97": 121,
                                "98": 117,
                                "99": 104,
                                "100": 109
                            }
                        }
                    ],
                    "memo": "",
                    "timeoutHeight": "BIGINT::0",
                    "extensionOptions": [],
                    "nonCriticalExtensionOptions": []
                },
                "authInfo": {
                    "signerInfos": [
                        {
                            "publicKey": {
                                "typeUrl": "/cosmos.crypto.secp256k1.PubKey",
                                "value": {
                                    "0": 10,
                                    "1": 33,
                                    "2": 2,
                                    "3": 97,
                                    "4": 9,
                                    "5": 95,
                                    "6": 251,
                                    "7": 253,
                                    "8": 109,
                                    "9": 140,
                                    "10": 186,
                                    "11": 60,
                                    "12": 197,
                                    "13": 87,
                                    "14": 64,
                                    "15": 13,
                                    "16": 13,
                                    "17": 76,
                                    "18": 214,
                                    "19": 227,
                                    "20": 42,
                                    "21": 201,
                                    "22": 16,
                                    "23": 58,
                                    "24": 236,
                                    "25": 15,
                                    "26": 119,
                                    "27": 145,
                                    "28": 152,
                                    "29": 169,
                                    "30": 16,
                                    "31": 6,
                                    "32": 136,
                                    "33": 49,
                                    "34": 230
                                }
                            },
                            "modeInfo": {
                                "single": {
                                    "mode": 127
                                }
                            },
                            "sequence": "BIGINT::92"
                        }
                    ],
                    "fee": {
                        "amount": [
                            {
                                "denom": "uatom",
                                "amount": "19915"
                            }
                        ],
                        "gasLimit": "BIGINT::796597",
                        "payer": "",
                        "granter": ""
                    }
                },
                "signatures": [
                    {
                        "0": 229,
                        "1": 200,
                        "2": 144,
                        "3": 131,
                        "4": 245,
                        "5": 132,
                        "6": 101,
                        "7": 181,
                        "8": 152,
                        "9": 230,
                        "10": 172,
                        "11": 143,
                        "12": 20,
                        "13": 62,
                        "14": 152,
                        "15": 33,
                        "16": 15,
                        "17": 251,
                        "18": 242,
                        "19": 4,
                        "20": 19,
                        "21": 241,
                        "22": 193,
                        "23": 252,
                        "24": 177,
                        "25": 166,
                        "26": 151,
                        "27": 239,
                        "28": 66,
                        "29": 239,
                        "30": 137,
                        "31": 83,
                        "32": 10,
                        "33": 54,
                        "34": 104,
                        "35": 224,
                        "36": 1,
                        "37": 93,
                        "38": 76,
                        "39": 253,
                        "40": 114,
                        "41": 24,
                        "42": 56,
                        "43": 248,
                        "44": 116,
                        "45": 173,
                        "46": 23,
                        "47": 104,
                        "48": 86,
                        "49": 76,
                        "50": 252,
                        "51": 36,
                        "52": 137,
                        "53": 5,
                        "54": 179,
                        "55": 136,
                        "56": 206,
                        "57": 42,
                        "58": 219,
                        "59": 189,
                        "60": 188,
                        "61": 135,
                        "62": 7,
                        "63": 70
                    }
                ]
            }
        ],
        "transactionsRoot": null,
        "uncles": null
    }
}
```

{% 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 ](/ids/chain-ids)page for details. |
| chainSymbol                               | String | Refer to the [Chain ID ](/ids/chain-ids)page for details. |

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

```url
https://api.expand.network/chain/getgasprice?chainId=cosmoshub-4
```

{% endtab %}

{% tab title="Sample Response" %}

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

{% 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 ](/ids/chain-ids)page for details. |
| chainSymbol                                       | String | Refer to the [Chain ID ](/ids/chain-ids)page for details. |
| transactionHash<mark style="color:red;">\*</mark> | String | The transaction(digest) hash.                             |

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

```url
https://api.expand.network/chain/gettransaction?chainId=cosmoshub-4&transactionHash=E38DE34FDC6B56114B3A573B9477B8DD137E54C30158095FFA74043C546CA0CB
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "hash": "E38DE34FDC6B56114B3A573B9477B8DD137E54C30158095FFA74043C546CA0CB",
        "transactionStatus": true,
        "blockNumber": "21099499",
        "timestamp": "1719819072",
        "from": "cosmos1uryv4pr5pmsd23nqtdu8mgfn3wdtjrh26uu7g6",
        "to": "cosmosvaloper1tflk30mq5vgqjdly92kkhhq3raev2hnz6eete3",
        "value": null,
        "transactionFees": "22352",
        "gas": "617485",
        "gasPrice": null,
        "input": null,
        "nonce": null,
        "network": null
    }
}
```

{% endtab %}
{% endtabs %}

### **/sendtransaction**

Send transaction on the chain.

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

#### Request Body

<table><thead><tr><th width="170">Name</th><th width="100">Type</th><th>Description</th></tr></thead><tbody><tr><td>chainId<mark style="color:red;">*</mark></td><td>Integer</td><td>Refer to the <a href="/pages/5o1xMsQPqXw9GBfGTpdB">Chain ID </a>page for details. </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 encoded transaction, obtained from signed transaction.</td></tr><tr><td>rpc</td><td>String</td><td>Remote procedural call URL.</td></tr></tbody></table>

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

```json
{
    "chainId": "theta-testnet-001",
    "rawTransaction": "CpgBCo0BChwvY29zbW9zLmJhbmsudjFiZXRhMS5Nc2dTZW5kEm0KLWNvc21vczFxeDJncnBoZTZ1dWZxM3JxMGZzM3ZoOGdtdzIybG1lOHdqMzdtaBItY29zbW9zMW1neHl3cXdmZGFqd3E4ZjNxNXlhN2QzeXF3NXpnM3BkdGpzZjNmGg0KBXVhdG9tEgQxMDAwEgZleHBhbmQSZQpOCkYKHy9jb3Ntb3MuY3J5cHRvLnNlY3AyNTZrMS5QdWJLZXkSIwohApraG5qZnTAs0tDIihf5CldeidTZYfGCgLHNFm6onCQ9EgQKAggBEhMKDQoFdWF0b20SBDEwMDAQwJoMGkCDAcaABMk2FrxMkFQ9+KZ/QNEop8ZSp9o6iHza0i4XkVN0jihHiggSGPwnZV3/Q/964L8veP1cj9v+CT0IjQEu"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "transactionHash": "BFA09B71DCABDE1A99D57F48A4CAFE6C584A64435E2564FFDA0A7D7376715057"
    }
}
```

{% 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="99">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": "theta-testnet-001",
    "rawTransaction": "CpsBCpABChwvY29zbW9zLmJhbmsudjFiZXRhMS5Nc2dTZW5kEnAKLWNvc21vczFxeDJncnBoZTZ1dWZxM3JxMGZzM3ZoOGdtdzIybG1lOHdqMzdtaBItY29zbW9zMW1neHl3cXdmZGFqd3E4ZjNxNXlhN2QzeXF3NXpnM3BkdGpzZjNmGhAKBXVhdG9tEgcxMDAwMDAwEgZleHBhbmQSZQpOCkYKHy9jb3Ntb3MuY3J5cHRvLnNlY3AyNTZrMS5QdWJLZXkSIwohApraG5qZnTAs0tDIihf5CldeidTZYfGCgLHNFm6onCQ9EgQKAggBEhMKDQoFdWF0b20SBDEwMDAQwJoMGkBu/TGatdiaz4YwUmVgsbUYYV5PJTcjR6HLPIH1A9vOrkn0wWQtqqWSHU5tqi3SGpK1sOw0qQhHhlBN7Az2tue3"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "parsedTx": {
            "body": {
                "messages": [
                    {
                        "typeUrl": "/cosmos.bank.v1beta1.MsgSend",
                        "value": {
                            "0": 10,
                            "1": 45,
                            "2": 99,
                            "3": 111,
                            "4": 115,
                            "5": 109,
                            "6": 111,
                            "7": 115,
                            "8": 49,
                            "9": 113,
                            "10": 120,
                            "11": 50,
                            "12": 103,
                            "13": 114,
                            "14": 112,
                            "15": 104,
                            "16": 101,
                            "17": 54,
                            "18": 117,
                            "19": 117,
                            "20": 102,
                            "21": 113,
                            "22": 51,
                            "23": 114,
                            "24": 113,
                            "25": 48,
                            "26": 102,
                            "27": 115,
                            "28": 51,
                            "29": 118,
                            "30": 104,
                            "31": 56,
                            "32": 103,
                            "33": 109,
                            "34": 119,
                            "35": 50,
                            "36": 50,
                            "37": 108,
                            "38": 109,
                            "39": 101,
                            "40": 56,
                            "41": 119,
                            "42": 106,
                            "43": 51,
                            "44": 55,
                            "45": 109,
                            "46": 104,
                            "47": 18,
                            "48": 45,
                            "49": 99,
                            "50": 111,
                            "51": 115,
                            "52": 109,
                            "53": 111,
                            "54": 115,
                            "55": 49,
                            "56": 109,
                            "57": 103,
                            "58": 120,
                            "59": 121,
                            "60": 119,
                            "61": 113,
                            "62": 119,
                            "63": 102,
                            "64": 100,
                            "65": 97,
                            "66": 106,
                            "67": 119,
                            "68": 113,
                            "69": 56,
                            "70": 102,
                            "71": 51,
                            "72": 113,
                            "73": 53,
                            "74": 121,
                            "75": 97,
                            "76": 55,
                            "77": 100,
                            "78": 51,
                            "79": 121,
                            "80": 113,
                            "81": 119,
                            "82": 53,
                            "83": 122,
                            "84": 103,
                            "85": 51,
                            "86": 112,
                            "87": 100,
                            "88": 116,
                            "89": 106,
                            "90": 115,
                            "91": 102,
                            "92": 51,
                            "93": 102,
                            "94": 26,
                            "95": 16,
                            "96": 10,
                            "97": 5,
                            "98": 117,
                            "99": 97,
                            "100": 116,
                            "101": 111,
                            "102": 109,
                            "103": 18,
                            "104": 7,
                            "105": 49,
                            "106": 48,
                            "107": 48,
                            "108": 48,
                            "109": 48,
                            "110": 48,
                            "111": 48
                        }
                    }
                ],
                "memo": "expand",
                "timeoutHeight": "BIGINT::0",
                "extensionOptions": [],
                "nonCriticalExtensionOptions": []
            },
            "authInfo": {
                "signerInfos": [
                    {
                        "publicKey": {
                            "typeUrl": "/cosmos.crypto.secp256k1.PubKey",
                            "value": {
                                "0": 10,
                                "1": 33,
                                "2": 2,
                                "3": 154,
                                "4": 218,
                                "5": 27,
                                "6": 154,
                                "7": 153,
                                "8": 157,
                                "9": 48,
                                "10": 44,
                                "11": 210,
                                "12": 208,
                                "13": 200,
                                "14": 138,
                                "15": 23,
                                "16": 249,
                                "17": 10,
                                "18": 87,
                                "19": 94,
                                "20": 137,
                                "21": 212,
                                "22": 217,
                                "23": 97,
                                "24": 241,
                                "25": 130,
                                "26": 128,
                                "27": 177,
                                "28": 205,
                                "29": 22,
                                "30": 110,
                                "31": 168,
                                "32": 156,
                                "33": 36,
                                "34": 61
                            }
                        },
                        "modeInfo": {
                            "single": {
                                "mode": 1
                            }
                        },
                        "sequence": "BIGINT::0"
                    }
                ],
                "fee": {
                    "amount": [
                        {
                            "denom": "uatom",
                            "amount": "1000"
                        }
                    ],
                    "gasLimit": "BIGINT::200000",
                    "payer": "",
                    "granter": ""
                }
            },
            "signatures": [
                {
                    "0": 110,
                    "1": 253,
                    "2": 49,
                    "3": 154,
                    "4": 181,
                    "5": 216,
                    "6": 154,
                    "7": 207,
                    "8": 134,
                    "9": 48,
                    "10": 82,
                    "11": 101,
                    "12": 96,
                    "13": 177,
                    "14": 181,
                    "15": 24,
                    "16": 97,
                    "17": 94,
                    "18": 79,
                    "19": 37,
                    "20": 55,
                    "21": 35,
                    "22": 71,
                    "23": 161,
                    "24": 203,
                    "25": 60,
                    "26": 129,
                    "27": 245,
                    "28": 3,
                    "29": 219,
                    "30": 206,
                    "31": 174,
                    "32": 73,
                    "33": 244,
                    "34": 193,
                    "35": 100,
                    "36": 45,
                    "37": 170,
                    "38": 165,
                    "39": 146,
                    "40": 29,
                    "41": 78,
                    "42": 109,
                    "43": 170,
                    "44": 45,
                    "45": 210,
                    "46": 26,
                    "47": 146,
                    "48": 181,
                    "49": 176,
                    "50": 236,
                    "51": 52,
                    "52": 169,
                    "53": 8,
                    "54": 71,
                    "55": 134,
                    "56": 80,
                    "57": 77,
                    "58": 236,
                    "59": 12,
                    "60": 246,
                    "61": 182,
                    "62": 231,
                    "63": 183
                }
            ]
        }
    }
}
```

{% endtab %}
{% endtabs %}


# Osmosis

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

| Name                                      | Type   | Description                                               |
| ----------------------------------------- | ------ | --------------------------------------------------------- |
| rpc                                       | String | Remote procedural call URL                                |
| chainId<mark style="color:red;">\*</mark> | String | Refer to the [Chain ID ](/ids/chain-ids)page for details. |
| chainSymbol                               | String | Refer to the [Chain ID ](/ids/chain-ids)page for details. |
| address<mark style="color:red;">\*</mark> | String | The public address to get the balance of.                 |
| tokenAddress                              | String | The address of token to get the balance of.               |

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

```url
https://api.expand.network/chain/getbalance?chainId=osmosis-1&address=osmo1sjllsnramtg3ewxqwwrwjxfgc4n4ef9u8slkgw
```

{% endtab %}

{% tab title="Sample Response" %}

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

{% 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 ](/ids/chain-ids)page for details. |
| chainSymbol                                   | String | Refer to the [Chain ID ](/ids/chain-ids)page for details. |
| blockNumber<mark style="color:red;">\*</mark> | String | The block(sequence) number.                               |

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

```url
https://historicallp.api.expand.network/chain/getblock?chainId=osmosis-1&blockNumber=23318268
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "difficulty": null,
        "gasLimit": null,
        "gasUsed": null,
        "hash": "C640D4A87C99FFD0A8630BE0B7CB38701B93393CEFB7C2DA01CFA033427EDCE8",
        "miner": null,
        "nonce": null,
        "number": "23318268",
        "parentHash": null,
        "size": null,
        "timestamp": "1730526452",
        "totalDifficulty": null,
        "transactions": [
            {
                "body": {
                    "messages": [
                        {
                            "typeUrl": "/ibc.core.client.v1.MsgUpdateClient",
                            "value": "ChIwNy10ZW5kZXJtaW50LTMyNDgSxCgKJi9pYmMubGlnaHRjbGllbnRzLnRlbmRlcm1pbnQudjEuSGVhZGVyEpkoCq8QCpIDCgIICxIJc3RyYXRvcy0xGOWt4gIiDAjt+Za5BhD5+8izASpICiAngSBWAD7OZonbTvPqG4MA51ef15GpquCCwI3+CfUVSxIkCAESIAlGP2cPhnsLshNUJNJZIL7dIKuV3iswr2mBYHCeo4E/MiB5s++zz7dM0VslFeXi2LZJb0IY/zWqk1I0dpuFxWEX5jog47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFVCIPLQjhr+MgpcKPiK4Lzr/U3/BWZo/cHfSNVVY9qaJ7PzSiDy0I4a/jIKXCj4iuC86/1N/wVmaP3B30jVVWPamiez81IgtMYST4HKyJ4C6y9qcLJhD+hPYGQSmrbo2YlmigS3SxRaIJW9Wd/hVzUwPQ89jMTlc3qkHtdoi27fAHc8xIPIbIUeYiDA23dp4pCL0fz+rpzsMaDnUXHXKEpIKRJwsL34fbmpTWog47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFVyFAdAK2fK8a+nXcGsh5NN18N901dxEpcNCOWt4gIaSAog5+y6cJOXQscPXzbi2xdY7mfhFUz+fu+HL7qXn3LcbMYSJAgBEiBVEjvTCVT8ZZJRoxq8oHJuttPj5HNszbtHrOsn923RaSJnCAISFAqhcUP79qpV4VdUi4eq2+2lAx/AGgsI8/mWuQYQipToTCJAX/XOUceVxM0BDhY3CKzxj2F0EeK9mH/ptdgGcSRVPfU2IYToPI8ESICbfZ8VoYqSyuiO35fJuoFSMC82cai2BCIPCAEaCwiAkrjDmP7///8BImgIAhIUB0ArZ8rxr6ddwayHk03Xw33TV3EaDAjz+Za5BhDj2YKEASJAia5h6O1PYf0TUPMobMeoFAnGyTgU65bQARkjG61VgpNYv4mQxYM4yCQP7FayBvSE/OW9kCthCNDEFN+c0tH5DSJoCAISFGMEXelPTKwWrSwcxxzT2quWSxXaGgwI8/mWuQYQlNW1gwEiQKjijtg4CycKQpOXBaipJ8t24R9AuCtX7326DgBIXy/17oAGmlXUbnVRUcZ5RQnxmJhN0fMHPLE0Etg+dDD+bwEiDwgBGgsIgJK4w5j+////ASJnCAISFISSib1doWvBNZn8rrfwAWAN9D4pGgsI8/mWuQYQm7b2RSJAcw9OqrQLuPCLTWVRFL4HeMbbXD/UvcD1D6hT9KZlF5EePiZqkVsqp0ZcXdby8k/ULVw3RvXmnIF8/CRWLtDPCCJnCAISFFLi1Ogl61e4MrE/WGJ8/+kGCjy+GgsI8/mWuQYQwdT0USJAivLDVf5jxw/80qWDhpMR98LQKeHTdEgLZgVZM/BCRZYFEI6F0j6dp9OdGOlwsT5MhVSFB9c5UwB4FCHX5lhfAiJnCAISFOY3BvAtH269avfhM1GMOoJAhHa7GgsI8/mWuQYQ3bHzaSJAlJQ1Ajdr/3rEDPXfBgfaU8lsdReBOAmNvhKrJyWEpkSCGV6D+cUs7zPXZIunW99mjY7SS3xWmkzMQh3L5g/TBCIPCAEaCwiAkrjDmP7///8BImcIAhIUw+BRW8Ms1SM9B7kJutB713zSbOwaCwjz+Za5BhCPrtJHIkAdftshse2M0iGrKEEag8V1O68HY1j+LcBE1xWtq5VA9O/1K/IHLhZuFi0fbB5I+/sDiu4JZX5/WEBqlWjR1RcBImcIAhIUiOR1rOgFu0Hkjdc7K+1F0ztCm70aCwjz+Za5BhDNjIpSIkCRtiMdV6cBVIrarXThA6hySxc1CCSHUUmZ2Z6l4ueIajK2IBUhMDSk2J436rF5axgf/zKBEnv2FNX2PJ9ZD8QAImcIAhIUlJA2AYZBlh8zaZWfaa9tbmO6H10aCwjz+Za5BhCUtahSIkBsRDsqGXL8kW9pl2jFIM9p8n7HEmJNYCnlf9bT9kV7pJdsugo91OntCOkqiDjFkMaLRFeioTecWVuRTJmyIXEOImcIAhIUJr7GWH5C4WbnoLVJbNxz+eLbj7saCwjz+Za5BhCR68NrIkCaseQfnLG2/8EqDvDYI42375H03qHWsm+lC7joiPCq079Rbcf6ZvICN4E5RbvPKr2YBLls1WI/Wn0twhfir4EPIg8IARoLCICSuMOY/v///wEiDwgBGgsIgJK4w5j+////ASIPCAEaCwiAkrjDmP7///8BImcIAhIU3ebatKoY/I8jzqzQg3WGbmmxCvIaCwjz+Za5BhCinPxOIkDEMwQCFtHTT0yYow3tS+JzGHVTdPHVnOxEsKJXYHUtPdFNozE088BVBLu/PjO7XmlWcVYc0Lt9xmr3JCJExZcNIg8IARoLCICSuMOY/v///wEiZwgCEhRiQVz22vxi36nMk+LdxmWGPHjRuxoLCPP5lrkGELjTsV0iQLQGyYWIHDvEQ0C7xQDCCKeZjQeV+2SrQOR/zFKirAjroK5MPzGXGwOJ4AZAmIyS/g7IYnr2PGNk08UwQJWgmwAiDwgBGgsIgJK4w5j+////ASJnCAISFEwHd2WN53sUp6mXhapUwtmwxvReGgsI8/mWuQYQoqyuUCJAvJL0H9HP5M8C1tl+TZRR2Jv2/UPhKaOetRLN8M39FFzHIpZYdCGhgBesHtWsR7XcXGpDG6ZilAsbHtczx3HJCSJnCAISFMl/qF2WfY8rCRpSpv/GvBE4VCWfGgsI8/mWuQYQwLnMXSJAOkiR7y3+A2AGjTb1Aw3GDU3GM3WhqY0bjzXbWMH0EQKGRPvgZsq7o+eYGfUrS0J3zMXfh0dgfIohaco3yiItARLsCwpAChQKoXFD+/aqVeFXVIuHqtvtpQMfwBIiCiA0iH7JtAWgcOI13XfctzBRiOYbFHwhO1r/YbWClyr8BRjnxI33CQpAChRt84iFbBDFbYrcZlYS+bssJGztFxIiCiDhU1awvWDW0XFN00Xc9wPn/QvdZbiDS8ypJ1bsXlDlgBj4/MbcBQpAChQHQCtnyvGvp13BrIeTTdfDfdNXcRIiCiA+sW8fgpgO0lgpAgrua+cR+wxOJ8PwSFje/Aimu7ks/xjMje66BQpAChRjBF3pT0ysFq0sHMcc09qrlksV2hIiCiAvuXGwUld9s7OaSBbnaGAn8ILDvebSXrlV9aDr4r0hbhi6poKtBQpAChSaOPph0ENWjVzhOoBxOg5MwkO39hIiCiAx8ph9sRg36ZuFvzWZsG2m3tMZofrCC+a7PVeSayDsjhitj9PVAwpAChSEkom9XaFrwTWZ/K638AFgDfQ+KRIiCiCGFGIZ6BEa/WRA/IqI6cMuq7qaaVrtLHjAQKNh6IbFyhjG98HTAwpAChRS4tToJetXuDKxP1hifP/pBgo8vhIiCiA5LToJD4MCzjg3wapssjT7m+nA9q4hbnIijIx0pA9fvBjzl9+oAwpAChTmNwbwLR9uvWr34TNRjDqCQIR2uxIiCiDXIPS2VswD1s3Ga52Y1s85DAJyLxpf8WSmfHfB2oXhCBix7aORAwpAChTp29O2XyEgl/pWTCtZbG7fO1mIERIiCiDxHKcq1BZV2d4zudZHk7U9Pr7vwvtUSq1VixfAW88vBhjSkOvuAgpAChTD4FFbwyzVIz0HuQm60HvXfNJs7BIiCiDVIuHH3paCTWCSv1jXF3jfe1dvbwkHnoVzZO2ghT9XAxi47tjQAgpAChSI5HWs6AW7QeSN1zsr7UXTO0KbvRIiCiC8JfyzMR8Jkb3UnD1cgZvBQEeumsGwK02vw55rijS52BjP08yIAgpAChSUkDYBhkGWHzNplZ9pr21uY7ofXRIiCiCIlXmiDzgEdyKvVUAWIiOcytAWlYcQxso+qTKy6RYutBi24+S+AQpAChQmvsZYfkLhZuegtUls3HP54tuPuxIiCiCf5APjeGJKYgfIWgEKhwi0Ca1xqHeCfRWum/svnvQY5xigpNeXAQpAChQR1sBJdIrZN5YyJUW9Hrceuq5ZuBIiCiBwvaAfCGvHGhM1KNUUsDuljXlAwGIMnK6UqCtjKIkD+xibs82VAQo/ChR/FvU1HacNPIvpz9VQyUr0m8i1shIiCiCTVLE5f6kmJG04XTATAQ/mUkYIR9hl6v5NxD1HA4Z+Ihjo4pRgCj8KFHVANxh1DmLikYmndfxRlgx/q+g4EiIKIBAMMf7UuoZjMKolcQZsdRKTa65EhdSxCI0rKAS7vrsmGMPS0F8KPwoU3ebatKoY/I8jzqzQg3WGbmmxCvISIgogAXz5uhd4CXE+RtZvC3QhxcG/KxGJEzBlHuxcv2jIcugYoOi/Ugo/ChRz2h/TgJTX/CMbeKJohTjeR4mBjBIiCiByOZbe2jf9cRz4x7/RypCj4rx2xCmF7bpwoiiJVagVnBi3/+kkCj8KFGJBXPba/GLfqcyT4t3GZYY8eNG7EiIKIFlSp3+ekovyXgd0ccpqiV+/GI/wrFb3RBISRC81MFzfGNLqyx4KPwoU0w5YTHeqVqPzAew+5k7n0nv5uEISIgogf9rmZEHvKONsb0dn84o3IsqR1cI82VqFkDNyMe0w1ZIYp5zZGQo/ChRMB3dljed7FKepl4WqVMLZsMb0XhIiCiCGq63qNsVp+EMxbL1HuJldBXRm60P3ZFib4eSHwNvx7BjjiooPCj8KFMl/qF2WfY8rCRpSpv/GvBE4VCWfEiIKIJM1V9L6QxQN6fjtHqWPKiuqeaqjEn1fh5AAXh4ptiGdGMCX7wkSQAoUB0ArZ8rxr6ddwayHk03Xw33TV3ESIgogPrFvH4KYDtJYKQIK7mvnEfsMTifD8EhY3vwIpru5LP8YzI3uugUY5NWk2zYaBwgBEP2q4gIi7AsKQAoUCqFxQ/v2qlXhV1SLh6rb7aUDH8ASIgogNIh+ybQFoHDiNd133LcwUYjmGxR8ITta/2G1gpcq/AUY58SN9wkKQAoUbfOIhWwQxW2K3GZWEvm7LCRs7RcSIgog4VNWsL1g1tFxTdNF3PcD5/0L3WW4g0vMqSdW7F5Q5YAY+PzG3AUKQAoUB0ArZ8rxr6ddwayHk03Xw33TV3ESIgogPrFvH4KYDtJYKQIK7mvnEfsMTifD8EhY3vwIpru5LP8YzI3uugUKQAoUYwRd6U9MrBatLBzHHNPaq5ZLFdoSIgogL7lxsFJXfbOzmkgW52hgJ/CCw73m0l65VfWg6+K9IW4YuqaCrQUKQAoUmjj6YdBDVo1c4TqAcToOTMJDt/YSIgogMfKYfbEYN+mbhb81mbBtpt7TGaH6wgvmuz1Xkmsg7I4YrY/T1QMKQAoUhJKJvV2ha8E1mfyut/ABYA30PikSIgoghhRiGegRGv1kQPyKiOnDLqu6mmla7Sx4wECjYeiGxcoYxvfB0wMKQAoUUuLU6CXrV7gysT9YYnz/6QYKPL4SIgogOS06CQ+DAs44N8GqbLI0+5vpwPauIW5yIoyMdKQPX7wY85ffqAMKQAoU5jcG8C0fbr1q9+EzUYw6gkCEdrsSIgog1yD0tlbMA9bNxmudmNbPOQwCci8aX/Fkpnx3wdqF4QgYse2jkQMKQAoU6dvTtl8hIJf6VkwrWWxu3ztZiBESIgog8RynKtQWVdneM7nWR5O1PT6+78L7VEqtVYsXwFvPLwYY0pDr7gIKQAoUw+BRW8Ms1SM9B7kJutB713zSbOwSIgog1SLhx96Wgk1gkr9Y1xd433tXb28JB56Fc2TtoIU/VwMYuO7Y0AIKQAoUiOR1rOgFu0Hkjdc7K+1F0ztCm70SIgogvCX8szEfCZG91Jw9XIGbwUBHrprBsCtNr8Oea4o0udgYz9PMiAIKQAoUlJA2AYZBlh8zaZWfaa9tbmO6H10SIgogiJV5og84BHcir1VAFiIjnMrQFpWHEMbKPqkysukWLrQYtuPkvgEKQAoUJr7GWH5C4WbnoLVJbNxz+eLbj7sSIgogn+QD43hiSmIHyFoBCocItAmtcah3gn0Vrpv7L570GOcYoKTXlwEKQAoUEdbASXSK2TeWMiVFvR63HrquWbgSIgogcL2gHwhrxxoTNSjVFLA7pY15QMBiDJyulKgrYyiJA/sYm7PNlQEKPwoUfxb1NR2nDTyL6c/VUMlK9JvItbISIgogk1SxOX+pJiRtOF0wEwEP5lJGCEfYZer+TcQ9RwOGfiIY6OKUYAo/ChR1QDcYdQ5i4pGJp3X8UZYMf6voOBIiCiAQDDH+1LqGYzCqJXEGbHUSk2uuRIXUsQiNKygEu767JhjD0tBfCj8KFN3m2rSqGPyPI86s0IN1hm5psQryEiIKIAF8+boXeAlxPkbWbwt0IcXBvysRiRMwZR7sXL9oyHLoGKDov1IKPwoUc9of04CU1/wjG3iiaIU43keJgYwSIgogcjmW3to3/XEc+Me/0cqQo+K8dsQphe26cKIoiVWoFZwYt//pJAo/ChRiQVz22vxi36nMk+LdxmWGPHjRuxIiCiBZUqd/npKL8l4HdHHKaolfvxiP8KxW90QSEkQvNTBc3xjS6sseCj8KFNMOWEx3qlaj8wHsPuZO59J7+bhCEiIKIH/a5mRB7yjjbG9HZ/OKNyLKkdXCPNlahZAzcjHtMNWSGKec2RkKPwoUTAd3ZY3nexSnqZeFqlTC2bDG9F4SIgoghqut6jbFafhDMWy9R7iZXQV0ZutD92RYm+Hkh8Db8ewY44qKDwo/ChTJf6hdln2PKwkaUqb/xrwROFQlnxIiCiCTNVfS+kMUDen47R6ljyorqnmqoxJ9X4eQAF4eKbYhnRjAl+8JEkAKFMPgUVvDLNUjPQe5CbrQe9d80mzsEiIKINUi4cfeloJNYJK/WNcXeN97V29vCQeehXNk7aCFP1cDGLju2NACGOTVpNs2Gitvc21vMWg3Y2NzbTQ4cWU1bGdxa2hmeXYzOGd0M3I4YTJydTJybmNjOHdj"
                        },
                        {
                            "typeUrl": "/ibc.core.channel.v1.MsgRecvPacket",
                            "value": "CtkBCEkSCHRyYW5zZmVyGgljaGFubmVsLTEiCHRyYW5zZmVyKg1jaGFubmVsLTgxMDE2Mp0BeyJhbW91bnQiOiI4ODAwOTc4MzYyNTQ0MDAwMDAwMCIsImRlbm9tIjoid2VpIiwicmVjZWl2ZXIiOiJvc21vMXU0cHdobGd1eWt3ZWczaGxlc2NwZThjdzZlZHY3MHZua3E1emx2Iiwic2VuZGVyIjoic3QxNjdhOGhkZGVsemR6c2ZjdzhlMzBqbGQyajRybnJ3N2Q4NnFyd3gifToHCAEQhp+PCxLQBgrMBArJBAo6Y29tbWl0bWVudHMvcG9ydHMvdHJhbnNmZXIvY2hhbm5lbHMvY2hhbm5lbC0xL3NlcXVlbmNlcy83MxIggZ8QaswIiDWFj8wTul0YwOEqzlDBZNdIvldbGi+rCW8aDggBGAEgASoGAALI28QFIiwIARIoAgTI28QFIKyhQicjThY0V/1/co3ecM5F0lgActYwkfJILIE3ULt4ICIuCAESBwQGyNvEBSAaISDRj3vSOxK2jpCEx41SlNj2Y51/13CVwj8yTcmdYUwrACIuCAESBwYMyNvEBSAaISC+0+j7opclxpkZ60yed3F4csInANasoiU4HbPMujx+LiIuCAESBwgUyNvEBSAaISC0nbbKkRW7iYEObWPFy/JlXKUEZVqrVByTWUVYGOSr8CIuCAESBwoqyNvEBSAaISC5fU+357wbwS2Aiz7uQxpdceBcBi8UR1HHxsNENJYz8iIvCAESCA6MAcjbxAUgGiEggJeWTGHBkGkr7t8DpOe1gdIdiDW7WfFSAEjNC7snN4EiLQgBEikS7API28QFIKBKFbjNvGFq8uVwweLuxIIpISNI9axCc/YxlNTAlIBZICItCAESKRS+B8jbxAUge3sskJSYD57ZKxgL+J7WiDEdPVzTYm7Ia7NHtOXmHGogIi0IARIpFrgSyNvEBSDhPTcbeM+PIWbSwvFrGlYwNVN2m7vEJovd+ZF1GQlNGSAiLQgBEikY6h7I28QFICKtkhg5HE7ALyvPfg0rcfJQBSzYXm0LrK8+LQ9kKmmFIAr+AQr7AQoDaWJjEiC4RH8jmv8/RRnABTKpUO5SbVrxcaOSp7HeiuIVABd3pRoJCAEYASABKgEAIicIARIBARogxQXA/UixzytlYZ8SsxROGcYLTmtiUl7pNr6T0EFiPr8iJwgBEgEBGiB6/tdSu5HLgbhIdlVFDSpTo/vybAsXcIRWIKwKFUUF3yIlCAESIQHLwdY96LU9qrTKj0kLtZITZtIwTRrhX/7mt2r2kyRlSCIlCAESIQHn3rT6EQjat5MGPvJ1uLYkfq6O0ysPTzOMQMJvJx7hyyInCAESAQEaIOU5aAmAfnP6zU/UtRaBq4+sLUFX8FhCFzVaVbonE2BrGgcIARDlreICIitvc21vMWg3Y2NzbTQ4cWU1bGdxa2hmeXYzOGd0M3I4YTJydTJybmNjOHdj"
                        }
                    ],
                    "memo": "hermes 1.10.3 (https://hermes.informal.systems)",
                    "timeoutHeight": "BIGINT::0",
                    "extensionOptions": [],
                    "nonCriticalExtensionOptions": []
                },
                "authInfo": {
                    "signerInfos": [
                        {
                            "publicKey": {
                                "typeUrl": "/cosmos.crypto.secp256k1.PubKey",
                                "value": "CiECW3odwFMZhcnvdMRPgYSZdmhypAjbRNYum/t2NRYLfVU="
                            },
                            "modeInfo": {
                                "single": {
                                    "mode": 1
                                }
                            },
                            "sequence": "BIGINT::73"
                        }
                    ],
                    "fee": {
                        "amount": [
                            {
                                "denom": "uosmo",
                                "amount": "1559"
                            }
                        ],
                        "gasLimit": "BIGINT::566625",
                        "payer": "",
                        "granter": ""
                    }
                },
                "signatures": [
                    "AlHW4QiHMPlZDc9cclWPzzFTbDabHBJUZ/ic1zjkoDp7MeZnWEyiw208p/7FrVSaE0OrVA1fqtKqch5XG9y3+w=="
                ]
            },
            {
                "body": {
                    "messages": [
                        {
                            "typeUrl": "/ibc.applications.transfer.v1.MsgTransfer",
                            "value": "Cgh0cmFuc2ZlchIKY2hhbm5lbC01MRpTCkRpYmMvRDgwNUYxREE1MEQzMUI5NkU0MjgyQzFENDE4MUVEREZCMUE0NEE1OThCRkY1NjY2RjRCNDNFNEI4QkVBOTVBNRILMzI0NDIwMDAwMDAiK29zbW8xMnY1OTNqMGpqZTdneDR2ZndjcXIyMm5sZHJldGo5d2drbnVmcHIqK2JjbmExMnY1OTNqMGpqZTdneDR2ZndjcXIyMm5sZHJldGo5d2d5Y2xjbHIyBwgBENf36gc="
                        }
                    ],
                    "memo": "FE",
                    "timeoutHeight": "BIGINT::23318338",
                    "extensionOptions": [],
                    "nonCriticalExtensionOptions": []
                },
                "authInfo": {
                    "signerInfos": [
                        {
                            "publicKey": {
                                "typeUrl": "/cosmos.crypto.secp256k1.PubKey",
                                "value": "CiECRDgL5960SEPHP9yVE87G3hBP8Q0OTS+FrjXj0DLLq3Q="
                            },
                            "modeInfo": {
                                "single": {
                                    "mode": 127
                                }
                            },
                            "sequence": "BIGINT::20738"
                        }
                    ],
                    "fee": {
                        "amount": [
                            {
                                "denom": "uosmo",
                                "amount": "766"
                            }
                        ],
                        "gasLimit": "BIGINT::306299",
                        "payer": "",
                        "granter": ""
                    }
                },
                "signatures": [
                    "udM4pqO0XAcGrID/LNfNUk5KVR5PDWZvyte/VLWDiAsyE+BteWBkj6Ta1BgOhDuLu1YRxLLkGPb/Moen3oi4qg=="
                ]
            }
        ],
        "transactionsRoot": null,
        "uncles": null
    }
}
```

{% 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 ](/ids/chain-ids)page for details. |
| chainSymbol                               | String | Refer to the [Chain ID ](/ids/chain-ids)page for details. |

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

```url
https://api.expand.network/chain/getgasprice?chainId=osmosis-1
```

{% endtab %}

{% tab title="Sample Response" %}

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

{% 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 ](/ids/chain-ids)page for details. |
| chainSymbol                                       | String | Refer to the [Chain ID ](/ids/chain-ids)page for details. |
| transactionHash<mark style="color:red;">\*</mark> | String | The transaction(digest) hash.                             |

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

```url
https://api.expand.network/chain/gettransaction?chainId=osmosis-1&transactionHash=011B8922E83E37C1D105EDB164C75F082D400202F909AB4F85DC1AB7D94DE615
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "hash": "011B8922E83E37C1D105EDB164C75F082D400202F909AB4F85DC1AB7D94DE615",
        "transactionStatus": true,
        "blockNumber": "23318605",
        "timestamp": "1730526983",
        "from": "osmo10fel6un2ajkr00zjjge3uqyv94v29y6nv3p2nc",
        "to": "9188907",
        "value": null,
        "msgs": [
            {
                "positionId": "9188907",
                "sender": "osmo10fel6un2ajkr00zjjge3uqyv94v29y6nv3p2nc",
                "amount0": "718855",
                "amount1": "3012828",
                "tokenMinAmount0": "1",
                "tokenMinAmount1": "1"
            }
        ],
        "transactionFees": "2945",
        "gas": "988923",
        "gasPrice": null,
        "input": null,
        "nonce": null,
        "network": null
    }
}
```

{% endtab %}
{% endtabs %}

## /portfolio

#### Get the comprehensive information about the assets/ tokens owned by a user.

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

#### Query Parameters

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

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

```url
https://api.expand.network/chain/portfolio?chainId=osmosis-1&address=osmo1c3ljch9dfw5kf52nfwpxd2zmj2ese7agnx0p9tenkrryasrle5sqf3ftpg
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": [
        {
            "denom": "factory/osmo1f5vfcph2dvfeqcqkhetwv75fda69z7e5c2dldm3kvgj23crkv6wqcn47a0/umilkTIA",
            "amount": "35171081956",
            "symbol": "milkTIA",
            "assetType": "sdk.coin"
        },
        {
            "denom": "factory/osmo1z0qrq605sjgcqpylfl4aa6s90x738j7m58wyatt0tdzflg2ha26q67k743/wbtc",
            "amount": "1003141805",
            "symbol": "WBTC",
            "assetType": "sdk.coin"
        },
        {
            "denom": "ibc/1480B8FD20AD5FCAE81EA87584D269547DD4D436843C1D20F15E00EB64743EF4",
            "amount": "182390105757",
            "symbol": "AKT",
            "assetType": "ics20"
        },
        {
            "denom": "ibc/27394FB092D2ECCD56123C74F36E4C1F926001CEADA9CA97EA622B25F41E5EB2",
            "amount": "68690880573",
            "symbol": "ATOM",
            "assetType": "sdk.coin"
        },
        {
            "denom": "ibc/2F21E6D4271DE3F561F20A02CD541DAF7405B1E9CB3B9B07E3C2AC7D8A4338A5",
            "amount": "11951328817392458861",
            "symbol": "wstETH",
            "assetType": "ics20"
        },
        {
            "denom": "ibc/498A0751C798A0D9A389AA3691123DADA57DAA4FE165D5C75894505B876BA6E4",
            "amount": "2818549781520",
            "symbol": "USDC",
            "assetType": "ics20"
        },
        {
            "denom": "ibc/4ABBEF4C8926DDDB320AE5188CFD63267ABBCEFC0583E4AE05D6E5AA2401DDAB",
            "amount": "217034306434",
            "symbol": "USDT.kava",
            "assetType": "ics20"
        },
        {
            "denom": "ibc/64BA6E31FE887D66C6F8F31C7B1A80C7CA179239677B4088BB55F5EA07DBE273",
            "amount": "24598869714343245115021",
            "symbol": "INJ",
            "assetType": "ics20"
        },
        {
            "denom": "ibc/698350B8A61D575025F3ED13E9AC9C0F45C89DEFE92F76D5838F1D3C1A7FF7C9",
            "amount": "432871116",
            "symbol": "stTIA",
            "assetType": "ics20"
        },
        {
            "denom": "ibc/831F0B1BBB1D08A2B75311892876D71565478C532967545476DF4C2D7492E48C",
            "amount": "67462936907396945513770",
            "symbol": "DYDX",
            "assetType": "ics20"
        },
        {
            "denom": "ibc/903A61A498756EA560B85A85132D3AEE21B5DEDD41213725D22ABF276EA6945E",
            "amount": "112076442426",
            "symbol": "AXL",
            "assetType": "ics20"
        },
        {
            "denom": "ibc/980E82A9F8E7CA8CD480F4577E73682A6D3855A267D1831485D7EBEF0E7A6C2C",
            "amount": "3208131235234249612256",
            "symbol": "stDYDX",
            "assetType": "ics20"
        },
        {
            "denom": "ibc/C140AFD542AE77BD7DCC83F13FDD8C5E5BB8C4929785E6EC2F4C636F98F17901",
            "amount": "13780913392",
            "symbol": "stATOM",
            "assetType": "ics20"
        },
        {
            "denom": "ibc/D1542AA8762DB13087D8364F3EA6509FD6F009A34F00426AF9E4F9FA85CBBF1F",
            "amount": "2303455676",
            "symbol": "WBTC.eth.axl",
            "assetType": "ics20"
        },
        {
            "denom": "ibc/D176154B0C63D1F9C6DCFB4F70349EBF2E2B5A87A05902F57A6AE92B863E9AEC",
            "amount": "275842099655",
            "symbol": "stOSMO",
            "assetType": "ics20"
        },
        {
            "denom": "ibc/D189335C6E4A68B513C10AB227BF1C1D38C746766278BA3EEB4FB14124F1D858",
            "amount": "98371143418",
            "symbol": "USDC.eth.axl",
            "assetType": "ics20"
        },
        {
            "denom": "ibc/D79E7D83AB399BFFF93433E54FAA480C191248FC556924A2A8351AE2638B3877",
            "amount": "42606981504",
            "symbol": "TIA",
            "assetType": "ics20"
        },
        {
            "denom": "ibc/EA1D43981D5C9A1C4AAEA9C23BB1D4FA126BA9BC7020A25E0AE4AA841EA25DC5",
            "amount": "480713281433019596856",
            "symbol": "ETH.axl",
            "assetType": "ics20"
        },
        {
            "denom": "uosmo",
            "amount": "2364147133127",
            "symbol": "OSMO",
            "assetType": "sdk.coin"
        }
    ]
}
```

{% endtab %}
{% endtabs %}

## /**sendtransaction**

Send transaction on the chain.

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

#### Request Body

<table><thead><tr><th width="170">Name</th><th width="100">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>Integer</td><td>Refer to the <a href="/pages/5o1xMsQPqXw9GBfGTpdB">Chain ID </a>page for details. </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 encoded transaction, obtained from signed transaction.</td></tr></tbody></table>

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

```json
{
  "chainId": "osmo-test-5",
  "rawTransaction": "CpQBCokBChwvY29zbW9zLmJhbmsudjFiZXRhMS5Nc2dTZW5kEmkKK29zbW8xcXgyZ3JwaGU2dXVmcTNycTBmczN2aDhnbXcyMmxtZTh4Znp3ZDkSK29zbW8xbHkydGpuOXA0MHdqdXV2YXF2bjJ4NWhsdXdjZ2U0ZWZ2cTRkNDUaDQoFdW9zbW8SBDEwMDASBmV4cGFuZBJmCk4KRgofL2Nvc21vcy5jcnlwdG8uc2VjcDI1NmsxLlB1YktleRIjCiECmtobmpmdMCzS0MiKF/kKV16J1Nlh8YKAsc0WbqicJD0SBAoCCAESFAoOCgV1b3NtbxIFMTAwMDAQwJoMGkD1tkxby+wrNEjNjHRtjiEL73qxIpIlayytBV9GmnhARy61SgIrLE0TCTAoDzxD/PV9gLIDbvpFQdwEzjYhSk7n"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "transactionHash": "E182A3093ADF97EC85109AB6F02C19D22F8B57EAC676F6FD21E935BCCB916EF9"
    }
}
```

{% 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="99">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": "osmo-test-5",
  "rawTransaction": "CpQBCokBChwvY29zbW9zLmJhbmsudjFiZXRhMS5Nc2dTZW5kEmkKK29zbW8xcXgyZ3JwaGU2dXVmcTNycTBmczN2aDhnbXcyMmxtZTh4Znp3ZDkSK29zbW8xbHkydGpuOXA0MHdqdXV2YXF2bjJ4NWhsdXdjZ2U0ZWZ2cTRkNDUaDQoFdW9zbW8SBDEwMDASBmV4cGFuZBJmCk4KRgofL2Nvc21vcy5jcnlwdG8uc2VjcDI1NmsxLlB1YktleRIjCiECmtobmpmdMCzS0MiKF/kKV16J1Nlh8YKAsc0WbqicJD0SBAoCCAESFAoOCgV1b3NtbxIFMTAwMDAQwJoMGkD1tkxby+wrNEjNjHRtjiEL73qxIpIlayytBV9GmnhARy61SgIrLE0TCTAoDzxD/PV9gLIDbvpFQdwEzjYhSk7n"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "parsedTx": {
            "body": {
                "messages": [
                    {
                        "typeUrl": "/cosmos.bank.v1beta1.MsgSend",
                        "value": "Citvc21vMXF4MmdycGhlNnV1ZnEzcnEwZnMzdmg4Z213MjJsbWU4eGZ6d2Q5Eitvc21vMWx5MnRqbjlwNDB3anV1dmFxdm4yeDVobHV3Y2dlNGVmdnE0ZDQ1Gg0KBXVvc21vEgQxMDAw"
                    }
                ],
                "memo": "expand",
                "timeoutHeight": "BIGINT::0",
                "extensionOptions": [],
                "nonCriticalExtensionOptions": []
            },
            "authInfo": {
                "signerInfos": [
                    {
                        "publicKey": {
                            "typeUrl": "/cosmos.crypto.secp256k1.PubKey",
                            "value": "CiECmtobmpmdMCzS0MiKF/kKV16J1Nlh8YKAsc0WbqicJD0="
                        },
                        "modeInfo": {
                            "single": {
                                "mode": 1
                            }
                        },
                        "sequence": "BIGINT::0"
                    }
                ],
                "fee": {
                    "amount": [
                        {
                            "denom": "uosmo",
                            "amount": "10000"
                        }
                    ],
                    "gasLimit": "BIGINT::200000",
                    "payer": "",
                    "granter": ""
                }
            },
            "signatures": [
                "9bZMW8vsKzRIzYx0bY4hC+96sSKSJWssrQVfRpp4QEcutUoCKyxNEwkwKA88Q/z1fYCyA276RUHcBM42IUpO5w=="
            ]
        }
    }
}
```

{% endtab %}
{% endtabs %}


# Stacks

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

| Name                                      | Type   | Description                                               |
| ----------------------------------------- | ------ | --------------------------------------------------------- |
| rpc                                       | String | Remote procedural call URL                                |
| chainId<mark style="color:red;">\*</mark> | String | Refer to the [Chain ID ](/ids/chain-ids)page for details. |
| chainSymbol                               | String | Refer to the [Chain ID ](/ids/chain-ids)page for details. |
| address<mark style="color:red;">\*</mark> | String | The public address to get the balance of.                 |
| tokenAddress                              | String | The address of token to get the balance of.               |

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

```url
https://api.expand.network/chain/getbalance?chainId=1700&address=SM3WXM7T41Q3WD7A1JW9RW31VHG2PA9PJTQCMPBX7&tokenAddress=SM26NBC8SFHNW4P1Y4DFH27974P56WN86C92HPEHH.token-lqstx
```

{% endtab %}

{% tab title="Sample Response" %}

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

{% 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 ](/ids/chain-ids)page for details. |
| chainSymbol                                   | String | Refer to the [Chain ID ](/ids/chain-ids)page for details. |
| blockNumber<mark style="color:red;">\*</mark> | String | The block(sequence) number.                               |

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

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

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "difficulty": null,
        "gasLimit": null,
        "gasUsed": null,
        "hash": "0x9ea404d144a3d8c47b16429a6828f7a7b1063533216dc0661ef77f1982363f6b",
        "minerTxHash": "0x61154515a29546cb867dfa2d905e29f81b1590be5e5abc5d2d96970204269ff9",
        "nonce": null,
        "number": "100",
        "parentHash": "0xcb7494fe1de2f3337ebc10af81a4cf9d249e6fc74a6221fe0c6f42c937a4a424",
        "size": null,
        "timestamp": "1610725524",
        "totalDifficulty": null,
        "transactionsRoot": null,
        "uncles": null,
        "transactions": [
            {
                "hash": "0x0429af694679c329ba6a7ec0e0c540148b99e720db286589df2b07844c459e62",
                "transactionStatus": true,
                "blockNumber": "100",
                "timestamp": "1610725524",
                "from": "SP1K6JR0GSPSV0JJJS8RRCE3NJN8AZNG09M5SDXWK",
                "to": null,
                "value": null,
                "transactionType": "token_transfer",
                "gas": null,
                "gasPrice": "180",
                "input": null,
                "nonce": "0",
                "network": null,
                "events": [],
                "postConditions": [],
                "txResult": {
                    "hex": "0x0703",
                    "repr": "(ok true)"
                },
                "executionCostReadCount": "0",
                "executionCostReadLength": "0",
                "executionCostRuntime": "0",
                "executionCostWriteCount": "0",
                "executionCostWriteLength": "0"
            },
            {
                "hash": "0x350a207e00756a50527216c19682540d46318785efedcec07804ebbd1b28c8ba",
                "transactionStatus": true,
                "blockNumber": "100",
                "timestamp": "1610725524",
                "from": "SP9C7V5JW26R7J8978A4HCSG88EAZAMJPY8N5ZMF",
                "to": null,
                "value": null,
                "transactionType": "token_transfer",
                "gas": null,
                "gasPrice": "180",
                "input": null,
                "nonce": "0",
                "network": null,
                "events": [],
                "postConditions": [],
                "txResult": {
                    "hex": "0x0703",
                    "repr": "(ok true)"
                },
                "executionCostReadCount": "0",
                "executionCostReadLength": "0",
                "executionCostRuntime": "0",
                "executionCostWriteCount": "0",
                "executionCostWriteLength": "0"
            },
            {
                "hash": "0x10426e8c03a47cf9fc43186d62816c9742e3d1bd03292128104efa550ef793cd",
                "transactionStatus": true,
                "blockNumber": "100",
                "timestamp": "1610725524",
                "from": "SPG66ARWXBGT0YMDF4ZB5H8BDD4TXT25JT4C5SMT",
                "to": null,
                "value": null,
                "transactionType": "token_transfer",
                "gas": null,
                "gasPrice": "180",
                "input": null,
                "nonce": "0",
                "network": null,
                "events": [],
                "postConditions": [],
                "txResult": {
                    "hex": "0x0703",
                    "repr": "(ok true)"
                },
                "executionCostReadCount": "0",
                "executionCostReadLength": "0",
                "executionCostRuntime": "0",
                "executionCostWriteCount": "0",
                "executionCostWriteLength": "0"
            },
            {
                "hash": "0x2632ee0489174c5e2900b33f0c40dda2c1abcf6f41bb0aa91441e678c4478ea3",
                "transactionStatus": true,
                "blockNumber": "100",
                "timestamp": "1610725524",
                "from": "SP317FECCMCENV0DFS201863VX9Z63C4AY1B98QDV",
                "to": null,
                "value": null,
                "transactionType": "token_transfer",
                "gas": null,
                "gasPrice": "180",
                "input": null,
                "nonce": "0",
                "network": null,
                "events": [],
                "postConditions": [],
                "txResult": {
                    "hex": "0x0703",
                    "repr": "(ok true)"
                },
                "executionCostReadCount": "0",
                "executionCostReadLength": "0",
                "executionCostRuntime": "0",
                "executionCostWriteCount": "0",
                "executionCostWriteLength": "0"
            },
            {
                "hash": "0x40cc710da89eb8a45a25a1711dcaecb30a204d34384b766a124131b88584ad44",
                "transactionStatus": true,
                "blockNumber": "100",
                "timestamp": "1610725524",
                "from": "SP30KBFSX10DTBQA21M95HYGP52GNR63PB15YSR05",
                "to": null,
                "value": null,
                "transactionType": "token_transfer",
                "gas": null,
                "gasPrice": "180",
                "input": null,
                "nonce": "0",
                "network": null,
                "events": [],
                "postConditions": [],
                "txResult": {
                    "hex": "0x0703",
                    "repr": "(ok true)"
                },
                "executionCostReadCount": "0",
                "executionCostReadLength": "0",
                "executionCostRuntime": "0",
                "executionCostWriteCount": "0",
                "executionCostWriteLength": "0"
            },
            {
                "hash": "0x03265908fab756c416da83b577c34f31aa4d6585835a6a29aa8c1b4bd76da264",
                "transactionStatus": true,
                "blockNumber": "100",
                "timestamp": "1610725524",
                "from": "SP2K4AZ2VQ0MVFE5BADR6S39R35HR8WQHT8YN00VB",
                "to": null,
                "value": null,
                "transactionType": "token_transfer",
                "gas": null,
                "gasPrice": "180",
                "input": null,
                "nonce": "1",
                "network": null,
                "events": [],
                "postConditions": [],
                "txResult": {
                    "hex": "0x0703",
                    "repr": "(ok true)"
                },
                "executionCostReadCount": "0",
                "executionCostReadLength": "0",
                "executionCostRuntime": "0",
                "executionCostWriteCount": "0",
                "executionCostWriteLength": "0"
            },
            {
                "hash": "0x8ea66d8f99d5e944e11d26f0c175aac2e5b285eb887d8402a386357a5f7bdc60",
                "transactionStatus": true,
                "blockNumber": "100",
                "timestamp": "1610725524",
                "from": "SP288T0CW3ASHGKBAVNS40H5EQZEGKKBXXEEGJT9D",
                "to": null,
                "value": null,
                "transactionType": "token_transfer",
                "gas": null,
                "gasPrice": "180",
                "input": null,
                "nonce": "0",
                "network": null,
                "events": [],
                "postConditions": [],
                "txResult": {
                    "hex": "0x0703",
                    "repr": "(ok true)"
                },
                "executionCostReadCount": "0",
                "executionCostReadLength": "0",
                "executionCostRuntime": "0",
                "executionCostWriteCount": "0",
                "executionCostWriteLength": "0"
            },
            {
                "hash": "0x9eb3830c8a285360902b715223017ba2cf9a0d0dd12f023a50b09cd98b38efee",
                "transactionStatus": true,
                "blockNumber": "100",
                "timestamp": "1610725524",
                "from": "SP2YM984GR1ARRE54R2XM8FVMM7N3SJ4CB39GCHVK",
                "to": null,
                "value": null,
                "transactionType": "token_transfer",
                "gas": null,
                "gasPrice": "180",
                "input": null,
                "nonce": "0",
                "network": null,
                "events": [],
                "postConditions": [],
                "txResult": {
                    "hex": "0x0703",
                    "repr": "(ok true)"
                },
                "executionCostReadCount": "0",
                "executionCostReadLength": "0",
                "executionCostRuntime": "0",
                "executionCostWriteCount": "0",
                "executionCostWriteLength": "0"
            },
            {
                "hash": "0x76901f23e486881a855d44c58ea2e9632066d93742e0b63de0b7b6aebfb78c58",
                "transactionStatus": true,
                "blockNumber": "100",
                "timestamp": "1610725524",
                "from": "SP2M36ZHHA851F0M476121TR25KCF80AJY28ZCWMF",
                "to": null,
                "value": null,
                "transactionType": "token_transfer",
                "gas": null,
                "gasPrice": "180",
                "input": null,
                "nonce": "0",
                "network": null,
                "events": [],
                "postConditions": [],
                "txResult": {
                    "hex": "0x0703",
                    "repr": "(ok true)"
                },
                "executionCostReadCount": "0",
                "executionCostReadLength": "0",
                "executionCostRuntime": "0",
                "executionCostWriteCount": "0",
                "executionCostWriteLength": "0"
            },
            {
                "hash": "0xbec21826bb3d913807c3a959862971f71d9e2216d2c9ef27e9020cb13b4b4081",
                "transactionStatus": true,
                "blockNumber": "100",
                "timestamp": "1610725524",
                "from": "SP210ZT05ZDJZPE74CGMC69PDXHMZYNH49PYYB3M8",
                "to": null,
                "value": null,
                "transactionType": "token_transfer",
                "gas": null,
                "gasPrice": "180",
                "input": null,
                "nonce": "0",
                "network": null,
                "events": [],
                "postConditions": [],
                "txResult": {
                    "hex": "0x0703",
                    "repr": "(ok true)"
                },
                "executionCostReadCount": "0",
                "executionCostReadLength": "0",
                "executionCostRuntime": "0",
                "executionCostWriteCount": "0",
                "executionCostWriteLength": "0"
            },
            {
                "hash": "0x8b04a35bbe65f466f8007f31060988e069fefe33824b306ae11acc9fd0c8eb64",
                "transactionStatus": true,
                "blockNumber": "100",
                "timestamp": "1610725524",
                "from": "SPCF6AKJ60E9CFNCJA3QA6VKQKTBJTJ3J928CVP1",
                "to": null,
                "value": null,
                "transactionType": "token_transfer",
                "gas": null,
                "gasPrice": "180",
                "input": null,
                "nonce": "0",
                "network": null,
                "events": [],
                "postConditions": [],
                "txResult": {
                    "hex": "0x0703",
                    "repr": "(ok true)"
                },
                "executionCostReadCount": "0",
                "executionCostReadLength": "0",
                "executionCostRuntime": "0",
                "executionCostWriteCount": "0",
                "executionCostWriteLength": "0"
            },
            {
                "hash": "0x9e4b46ac1345cb52ecbcbf7db05f670366332ba48ba7362dd1340e67a82b964a",
                "transactionStatus": true,
                "blockNumber": "100",
                "timestamp": "1610725524",
                "from": "SPW76E0RFSWNDCAGMJE40CYJTN8KHEEC3G3B5TT9",
                "to": null,
                "value": null,
                "transactionType": "token_transfer",
                "gas": null,
                "gasPrice": "180",
                "input": null,
                "nonce": "0",
                "network": null,
                "events": [],
                "postConditions": [],
                "txResult": {
                    "hex": "0x0703",
                    "repr": "(ok true)"
                },
                "executionCostReadCount": "0",
                "executionCostReadLength": "0",
                "executionCostRuntime": "0",
                "executionCostWriteCount": "0",
                "executionCostWriteLength": "0"
            },
            {
                "hash": "0x06a145e6fb0a67863b5f650850ede330ef198b1da08e14e7ef46c475afdbcbd9",
                "transactionStatus": true,
                "blockNumber": "100",
                "timestamp": "1610725524",
                "from": "SP2Z427R89YK48ADM3ECZ3FK70JR74MBHCBD75TQ8",
                "to": null,
                "value": null,
                "transactionType": "token_transfer",
                "gas": null,
                "gasPrice": "180",
                "input": null,
                "nonce": "0",
                "network": null,
                "events": [],
                "postConditions": [],
                "txResult": {
                    "hex": "0x0703",
                    "repr": "(ok true)"
                },
                "executionCostReadCount": "0",
                "executionCostReadLength": "0",
                "executionCostRuntime": "0",
                "executionCostWriteCount": "0",
                "executionCostWriteLength": "0"
            },
            {
                "hash": "0xca22fe6c83baad5a8600cd0229bca8cae5a4b7b1676999b4af02e50108abe842",
                "transactionStatus": true,
                "blockNumber": "100",
                "timestamp": "1610725524",
                "from": "SP3ZYH7NGGZFM85M30F2B5NAXJWKBWG4VT7TYX2R4",
                "to": null,
                "value": null,
                "transactionType": "token_transfer",
                "gas": null,
                "gasPrice": "180",
                "input": null,
                "nonce": "0",
                "network": null,
                "events": [],
                "postConditions": [],
                "txResult": {
                    "hex": "0x0703",
                    "repr": "(ok true)"
                },
                "executionCostReadCount": "0",
                "executionCostReadLength": "0",
                "executionCostRuntime": "0",
                "executionCostWriteCount": "0",
                "executionCostWriteLength": "0"
            },
            {
                "hash": "0xbac8d2318f37e6e8a4ab4178004ab7e7349d0ca1672499f081505d0b48a577ea",
                "transactionStatus": true,
                "blockNumber": "100",
                "timestamp": "1610725524",
                "from": "SPT9EB61301T35AT40TFTCHG79201FK60Q83QKHQ",
                "to": null,
                "value": null,
                "transactionType": "token_transfer",
                "gas": null,
                "gasPrice": "180",
                "input": null,
                "nonce": "0",
                "network": null,
                "events": [],
                "postConditions": [],
                "txResult": {
                    "hex": "0x0703",
                    "repr": "(ok true)"
                },
                "executionCostReadCount": "0",
                "executionCostReadLength": "0",
                "executionCostRuntime": "0",
                "executionCostWriteCount": "0",
                "executionCostWriteLength": "0"
            },
            {
                "hash": "0xfea7db4902c34c192e2125fc9d3f1a4823397955d349037fd21dd39dac11cd55",
                "transactionStatus": true,
                "blockNumber": "100",
                "timestamp": "1610725524",
                "from": "SP137NZXD0BM4DM875ZH2HGDNPEBP6KW18RFXQ9W3",
                "to": null,
                "value": null,
                "transactionType": "coinbase",
                "gas": null,
                "gasPrice": "0",
                "input": null,
                "nonce": "16",
                "network": null,
                "events": [],
                "postConditions": [],
                "txResult": {
                    "hex": "0x0703",
                    "repr": "(ok true)"
                },
                "executionCostReadCount": "0",
                "executionCostReadLength": "0",
                "executionCostRuntime": "0",
                "executionCostWriteCount": "0",
                "executionCostWriteLength": "0"
            },
            {
                "hash": "0xc259761a2c7435388a283d15d989f4ec5e8dac7994d0599862009ae95d988fc4",
                "transactionStatus": true,
                "blockNumber": "100",
                "timestamp": "1610725524",
                "from": "SP2PKB8RZT1T9S3FG68XNYVGZ61NCGRTKS0F439W5",
                "to": null,
                "value": null,
                "transactionType": "token_transfer",
                "gas": null,
                "gasPrice": "180",
                "input": null,
                "nonce": "0",
                "network": null,
                "events": [],
                "postConditions": [],
                "txResult": {
                    "hex": "0x0703",
                    "repr": "(ok true)"
                },
                "executionCostReadCount": "0",
                "executionCostReadLength": "0",
                "executionCostRuntime": "0",
                "executionCostWriteCount": "0",
                "executionCostWriteLength": "0"
            },
            {
                "hash": "0x042f4f54ae21f5b7ba26cd791f552100ecb85cf77b5cc73f477194e512873110",
                "transactionStatus": true,
                "blockNumber": "100",
                "timestamp": "1610725524",
                "from": "SP2TDVRM0BMD7ZQMCSTYRFPR91TG3VXT5GAV1VCPV",
                "to": null,
                "value": null,
                "transactionType": "token_transfer",
                "gas": null,
                "gasPrice": "180",
                "input": null,
                "nonce": "0",
                "network": null,
                "events": [],
                "postConditions": [],
                "txResult": {
                    "hex": "0x0703",
                    "repr": "(ok true)"
                },
                "executionCostReadCount": "0",
                "executionCostReadLength": "0",
                "executionCostRuntime": "0",
                "executionCostWriteCount": "0",
                "executionCostWriteLength": "0"
            }
        ],
        "executionCostReadCount": "0",
        "executionCostReadLength": "0",
        "executionCostRuntime": "0",
        "executionCostWriteCount": "0",
        "executionCostWriteLength": "0"
    }
}
```

{% 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 ](/ids/chain-ids)page for details. |
| chainSymbol                               | String | Refer to the [Chain ID ](/ids/chain-ids)page for details. |

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

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

{% endtab %}

{% tab title="Sample Response" %}

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

{% 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 ](/ids/chain-ids)page for details. |
| chainSymbol                                       | String | Refer to the [Chain ID ](/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=1700&transactionHash=0x0a411719e3bfde95f9e227a2d7f8fac3d6c646b1e6cc186db0e2838a2c6cd9c0
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "hash": "0x0a411719e3bfde95f9e227a2d7f8fac3d6c646b1e6cc186db0e2838a2c6cd9c0",
        "transactionStatus": true,
        "blockNumber": "69057",
        "timestamp": "1658776389",
        "from": "SP2E787TXF0F50QF2GNSR11176Q19GE9AW3AA2NV3",
        "to": "SP000000000000000000002Q6VF78.bns",
        "value": null,
        "transactionType": "contract_call",
        "gas": null,
        "gasPrice": "10000",
        "input": null,
        "nonce": "0",
        "network": null,
        "contractCall": {
            "contract_id": "SP000000000000000000002Q6VF78.bns",
            "function_name": "name-preorder",
            "function_signature": "(define-public (name-preorder (hashed-salted-fqn (buff 20)) (stx-to-burn uint)))",
            "function_args": [
                {
                    "hex": "0x0200000014c707a319fa0b3b082553b8b662ef30cc9d2126fa",
                    "repr": "0xc707a319fa0b3b082553b8b662ef30cc9d2126fa",
                    "name": "hashed-salted-fqn",
                    "type": "(buff 20)"
                },
                {
                    "hex": "0x01000000000000000000000000001e8480",
                    "repr": "u2000000",
                    "name": "stx-to-burn",
                    "type": "uint"
                }
            ]
        },
        "events": [
            {
                "event_index": 0,
                "event_type": "stx_asset",
                "tx_id": "0x0a411719e3bfde95f9e227a2d7f8fac3d6c646b1e6cc186db0e2838a2c6cd9c0",
                "asset": {
                    "asset_event_type": "burn",
                    "sender": "SP2E787TXF0F50QF2GNSR11176Q19GE9AW3AA2NV3",
                    "recipient": "",
                    "amount": "2000000"
                }
            }
        ],
        "postConditions": [
            {
                "principal": {
                    "type_id": "principal_standard",
                    "address": "SP2E787TXF0F50QF2GNSR11176Q19GE9AW3AA2NV3"
                },
                "condition_code": "sent_equal_to",
                "amount": "2000000",
                "type": "stx"
            }
        ],
        "txResult": {
            "hex": "0x070100000000000000000000000000010e51",
            "repr": "(ok u69201)"
        },
        "executionCostReadCount": "8",
        "executionCostReadLength": "41871",
        "executionCostRuntime": "41871",
        "executionCostWriteCount": "41871",
        "executionCostWriteLength": "149"
    }
}
```

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

| Name                                      | Type   | Description                                                   |
| ----------------------------------------- | ------ | ------------------------------------------------------------- |
| rpc                                       | String | Remote procedural call URL.                                   |
| chainId                                   | String | Refer to the [Chain ID ](/ids/chain-ids)page for details.     |
| chainSymbol                               | String | Refer to the [Chain ID ](/ids/chain-ids)page for details.     |
| address<mark style="color:red;">\*</mark> | String | The public address of the user.                               |
| sortOrder                                 | String | The transaction sorting order. asc or desc. By default, desc. |
| pageToken                                 | String | Page number                                                   |

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

```url
https://historicallp.api.expand.network/chain/getusertransactions?chainId=1700&address=SP8J8NZDN88QPS1PBA85R474QYS590HPRP34TEWM&sortOrder=desc&pageToken=162
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "totalPages": "162",
        "currentPage": "162",
        "transactions": [
            {
                "hash": "0xbc690088335aa5feb223b189bf09c731da41f81281b789090bb531fe265ca5e1",
                "transactionStatus": true,
                "blockNumber": "153118",
                "timestamp": "1717799334",
                "from": "SP8J8NZDN88QPS1PBA85R474QYS590HPRP34TEWM",
                "to": "SP8J8NZDN88QPS1PBA85R474QYS590HPRP34TEWM.hic-1",
                "value": "31105",
                "transactionType": "contract_call",
                "gas": null,
                "gasPrice": "31105",
                "input": null,
                "nonce": "43",
                "network": null,
                "contractCall": {
                    "contract_id": "SP8J8NZDN88QPS1PBA85R474QYS590HPRP34TEWM.hic-1",
                    "function_name": "hic",
                    "function_signature": "",
                    "function_args": [
                        {
                            "hex": "0x0200000018112457edaa117b64365a905c10e4bfb2548236c565010101",
                            "repr": "0x112457edaa117b64365a905c10e4bfb2548236c565010101",
                            "name": "",
                            "type": "(buff 24)"
                        }
                    ]
                },
                "events": {
                    "stx": {
                        "transfer": 0,
                        "mint": 0,
                        "burn": 0
                    },
                    "ft": {
                        "transfer": 0,
                        "mint": 0,
                        "burn": 0
                    },
                    "nft": {
                        "transfer": 0,
                        "mint": 0,
                        "burn": 0
                    }
                },
                "postConditions": [],
                "txResult": {
                    "hex": "0x070c000000020272630c000000060163010000000000000000000000000000000d01640100000000000000000000000ba43b7400016904016f0100000000000000000000000005c99005026f78010000000000000000000000002069f2d70170010000000000000000000000000000000002727308010000000000000000000000000041326d",
                    "repr": "(ok (tuple (rc (tuple (c u13) (d u50000000000) (i false) (o u97095685) (ox u543814359) (p u0))) (rs (err u4272749))))"
                },
                "executionCostReadCount": "1333",
                "executionCostReadLength": "526980",
                "executionCostRuntime": "526980",
                "executionCostWriteCount": "526980",
                "executionCostWriteLength": "1556"
            },
            {
                "hash": "0x78cd1ad4357b26e0c7c3944df788994961dc202a43f98e249fd42105b3a4c596",
                "transactionStatus": true,
                "blockNumber": "153116",
                "timestamp": "1717798909",
                "from": "SP8J8NZDN88QPS1PBA85R474QYS590HPRP34TEWM",
                "to": "SP8J8NZDN88QPS1PBA85R474QYS590HPRP34TEWM.hic-1",
                "value": "31105",
                "transactionType": "contract_call",
                "gas": null,
                "gasPrice": "31105",
                "input": null,
                "nonce": "42",
                "network": null,
                "contractCall": {
                    "contract_id": "SP8J8NZDN88QPS1PBA85R474QYS590HPRP34TEWM.hic-1",
                    "function_name": "hic",
                    "function_signature": "",
                    "function_args": [
                        {
                            "hex": "0x0200000018112457edaa117b64365a905c10e4bfb2548236c565010101",
                            "repr": "0x112457edaa117b64365a905c10e4bfb2548236c565010101",
                            "name": "",
                            "type": "(buff 24)"
                        }
                    ]
                },
                "events": {
                    "stx": {
                        "transfer": 0,
                        "mint": 0,
                        "burn": 0
                    },
                    "ft": {
                        "transfer": 0,
                        "mint": 0,
                        "burn": 0
                    },
                    "nft": {
                        "transfer": 0,
                        "mint": 0,
                        "burn": 0
                    }
                },
                "postConditions": [],
                "txResult": {
                    "hex": "0x070c000000020272630c000000060163010000000000000000000000000000000d016401000000000000000000000006fc23ac00016904016f0100000000000000000000000005cf46f4026f780100000000000000000000000015a28bec017001000000000000000000000000000000000272730801000000000000000000000000004e6b84",
                    "repr": "(ok (tuple (rc (tuple (c u13) (d u30000000000) (i false) (o u97470196) (ox u362974188) (p u0))) (rs (err u5139332))))"
                },
                "executionCostReadCount": "1333",
                "executionCostReadLength": "526980",
                "executionCostRuntime": "526980",
                "executionCostWriteCount": "526980",
                "executionCostWriteLength": "1556"
            },
            {
                "hash": "0xa98f2b2097ce4fd0cf53fd5895d21ae6052c92e26e1d65d4bea20858458c5c89",
                "transactionStatus": true,
                "blockNumber": "153114",
                "timestamp": "1717796656",
                "from": "SP8J8NZDN88QPS1PBA85R474QYS590HPRP34TEWM",
                "to": "SP8J8NZDN88QPS1PBA85R474QYS590HPRP34TEWM.hic-1",
                "value": "31105",
                "transactionType": "contract_call",
                "gas": null,
                "gasPrice": "31105",
                "input": null,
                "nonce": "41",
                "network": null,
                "contractCall": {
                    "contract_id": "SP8J8NZDN88QPS1PBA85R474QYS590HPRP34TEWM.hic-1",
                    "function_name": "hic",
                    "function_signature": "",
                    "function_args": [
                        {
                            "hex": "0x0200000018112457edaa117b64365a905c10e4bfb2548236c565010101",
                            "repr": "0x112457edaa117b64365a905c10e4bfb2548236c565010101",
                            "name": "",
                            "type": "(buff 24)"
                        }
                    ]
                },
                "events": {
                    "stx": {
                        "transfer": 0,
                        "mint": 0,
                        "burn": 0
                    },
                    "ft": {
                        "transfer": 0,
                        "mint": 0,
                        "burn": 0
                    },
                    "nft": {
                        "transfer": 0,
                        "mint": 0,
                        "burn": 0
                    }
                },
                "postConditions": [],
                "txResult": {
                    "hex": "0x070c000000020272630c000000060163010000000000000000000000000000000d016401000000000000000000000004a817c800016904016f0100000000000000000000000005da76e9026f78010000000000000000000000000879121501700100000000000000000000000000000000027273080100000000000000000000000000664729",
                    "repr": "(ok (tuple (rc (tuple (c u13) (d u20000000000) (i false) (o u98203369) (ox u142152213) (p u0))) (rs (err u6702889))))"
                },
                "executionCostReadCount": "1335",
                "executionCostReadLength": "527000",
                "executionCostRuntime": "527000",
                "executionCostWriteCount": "527000",
                "executionCostWriteLength": "1556"
            },
            {
                "hash": "0x8d2d6672c7954d399aed1ba29f7be90dbc931d20d33b29ce057f68ecbea534e7",
                "transactionStatus": true,
                "blockNumber": "153112",
                "timestamp": "1717794693",
                "from": "SP8J8NZDN88QPS1PBA85R474QYS590HPRP34TEWM",
                "to": "SP8J8NZDN88QPS1PBA85R474QYS590HPRP34TEWM.hic-1",
                "value": "31105",
                "transactionType": "contract_call",
                "gas": null,
                "gasPrice": "31105",
                "input": null,
                "nonce": "40",
                "network": null,
                "contractCall": {
                    "contract_id": "SP8J8NZDN88QPS1PBA85R474QYS590HPRP34TEWM.hic-1",
                    "function_name": "hic",
                    "function_signature": "",
                    "function_args": [
                        {
                            "hex": "0x0200000018112457edaa117b64365a905c10e4bfb2548236c565010101",
                            "repr": "0x112457edaa117b64365a905c10e4bfb2548236c565010101",
                            "name": "",
                            "type": "(buff 24)"
                        }
                    ]
                },
                "events": {
                    "stx": {
                        "transfer": 0,
                        "mint": 0,
                        "burn": 0
                    },
                    "ft": {
                        "transfer": 0,
                        "mint": 0,
                        "burn": 0
                    },
                    "nft": {
                        "transfer": 0,
                        "mint": 0,
                        "burn": 0
                    }
                },
                "postConditions": [],
                "txResult": {
                    "hex": "0x070c000000020272630c000000060163010000000000000000000000000000000d016401000000000000000000000006fc23ac00016904016f0100000000000000000000000005ce9583026f78010000000000000000000000001672ee86017001000000000000000000000000000000000272730801000000000000000000000000004eeca7",
                    "repr": "(ok (tuple (rc (tuple (c u13) (d u30000000000) (i false) (o u97424771) (ox u376630918) (p u0))) (rs (err u5172391))))"
                },
                "executionCostReadCount": "1333",
                "executionCostReadLength": "526980",
                "executionCostRuntime": "526980",
                "executionCostWriteCount": "526980",
                "executionCostWriteLength": "1556"
            },
            {
                "hash": "0x9a429402c97dd7bf8e5c7c1c811bab1636205861a0b58e88399e15d181f31d82",
                "transactionStatus": true,
                "blockNumber": "153109",
                "timestamp": "1717793450",
                "from": "SP8J8NZDN88QPS1PBA85R474QYS590HPRP34TEWM",
                "to": "SP8J8NZDN88QPS1PBA85R474QYS590HPRP34TEWM.hic-1",
                "value": "31105",
                "transactionType": "contract_call",
                "gas": null,
                "gasPrice": "31105",
                "input": null,
                "nonce": "39",
                "network": null,
                "contractCall": {
                    "contract_id": "SP8J8NZDN88QPS1PBA85R474QYS590HPRP34TEWM.hic-1",
                    "function_name": "hic",
                    "function_signature": "",
                    "function_args": [
                        {
                            "hex": "0x0200000018112457edaa117b64365a905c10e4bfb2548236c565010101",
                            "repr": "0x112457edaa117b64365a905c10e4bfb2548236c565010101",
                            "name": "",
                            "type": "(buff 24)"
                        }
                    ]
                },
                "events": {
                    "stx": {
                        "transfer": 0,
                        "mint": 0,
                        "burn": 0
                    },
                    "ft": {
                        "transfer": 0,
                        "mint": 0,
                        "burn": 0
                    },
                    "nft": {
                        "transfer": 0,
                        "mint": 0,
                        "burn": 0
                    }
                },
                "postConditions": [],
                "txResult": {
                    "hex": "0x070c000000020272630c000000060163010000000000000000000000000000000d01640100000000000000000000000ba43b7400016904016f0100000000000000000000000005bf970a026f780100000000000000000000000034a5fec70170010000000000000000000000000000000002727308010000000000000000000000000030d4a0",
                    "repr": "(ok (tuple (rc (tuple (c u13) (d u50000000000) (i false) (o u96442122) (ox u883293895) (p u0))) (rs (err u3200160))))"
                },
                "executionCostReadCount": "1333",
                "executionCostReadLength": "526980",
                "executionCostRuntime": "526980",
                "executionCostWriteCount": "526980",
                "executionCostWriteLength": "1556"
            },
            {
                "hash": "0x714c6d4859091a1da3e99c2191116a001d7eb7bff60fe7becaa820db0456e4ef",
                "transactionStatus": true,
                "blockNumber": "153102",
                "timestamp": "1717788501",
                "from": "SP8J8NZDN88QPS1PBA85R474QYS590HPRP34TEWM",
                "to": "SP8J8NZDN88QPS1PBA85R474QYS590HPRP34TEWM.hic-1",
                "value": "31105",
                "transactionType": "contract_call",
                "gas": null,
                "gasPrice": "31105",
                "input": null,
                "nonce": "38",
                "network": null,
                "contractCall": {
                    "contract_id": "SP8J8NZDN88QPS1PBA85R474QYS590HPRP34TEWM.hic-1",
                    "function_name": "hic",
                    "function_signature": "",
                    "function_args": [
                        {
                            "hex": "0x0200000018112457edaa117b64365a905c10e4bfb2548236c565010101",
                            "repr": "0x112457edaa117b64365a905c10e4bfb2548236c565010101",
                            "name": "",
                            "type": "(buff 24)"
                        }
                    ]
                },
                "events": {
                    "stx": {
                        "transfer": 0,
                        "mint": 0,
                        "burn": 0
                    },
                    "ft": {
                        "transfer": 0,
                        "mint": 0,
                        "burn": 0
                    },
                    "nft": {
                        "transfer": 0,
                        "mint": 0,
                        "burn": 0
                    }
                },
                "postConditions": [],
                "txResult": {
                    "hex": "0x070c000000020272630c000000060163010000000000000000000000000000000d01640100000000000000000000000ba43b7400016904016f0100000000000000000000000005cb268b026f78010000000000000000000000001d223a9a017001000000000000000000000000000000000272730801000000000000000000000000003f0eac",
                    "repr": "(ok (tuple (rc (tuple (c u13) (d u50000000000) (i false) (o u97199755) (ox u488782490) (p u0))) (rs (err u4132524))))"
                },
                "executionCostReadCount": "1333",
                "executionCostReadLength": "526980",
                "executionCostRuntime": "526980",
                "executionCostWriteCount": "526980",
                "executionCostWriteLength": "1556"
            },
            {
                "hash": "0xafaa9799da230351e22c797af29c8dc74bbaa760aa8322d861d7e8fbe48a675a",
                "transactionStatus": true,
                "blockNumber": "153101",
                "timestamp": "1717787534",
                "from": "SP8J8NZDN88QPS1PBA85R474QYS590HPRP34TEWM",
                "to": "SP8J8NZDN88QPS1PBA85R474QYS590HPRP34TEWM.hic-1",
                "value": "31105",
                "transactionType": "contract_call",
                "gas": null,
                "gasPrice": "31105",
                "input": null,
                "nonce": "37",
                "network": null,
                "contractCall": {
                    "contract_id": "SP8J8NZDN88QPS1PBA85R474QYS590HPRP34TEWM.hic-1",
                    "function_name": "hic",
                    "function_signature": "",
                    "function_args": [
                        {
                            "hex": "0x0200000018112457edaa117b64365a905c10e4bfb2548236c565010101",
                            "repr": "0x112457edaa117b64365a905c10e4bfb2548236c565010101",
                            "name": "",
                            "type": "(buff 24)"
                        }
                    ]
                },
                "events": {
                    "stx": {
                        "transfer": 0,
                        "mint": 0,
                        "burn": 0
                    },
                    "ft": {
                        "transfer": 0,
                        "mint": 0,
                        "burn": 0
                    },
                    "nft": {
                        "transfer": 0,
                        "mint": 0,
                        "burn": 0
                    }
                },
                "postConditions": [],
                "txResult": {
                    "hex": "0x070c000000020272630c000000060163010000000000000000000000000000000001640100000000000000000000000000000000016903016f0100000000000000000000000000000000026f78010000000000000000000000000000000001700100000000000000000000000000000000027273070100000000000000000000000000000000",
                    "repr": "(ok (tuple (rc (tuple (c u0) (d u0) (i true) (o u0) (ox u0) (p u0))) (rs (ok u0))))"
                },
                "executionCostReadCount": "65",
                "executionCostReadLength": "293922",
                "executionCostRuntime": "293922",
                "executionCostWriteCount": "293922",
                "executionCostWriteLength": "0"
            },
            {
                "hash": "0x1b473fd451625015c7b76aa51114155772d4ec26bacce8929ecda3c3fbc3692c",
                "transactionStatus": true,
                "blockNumber": "153101",
                "timestamp": "1717787534",
                "from": "SP8J8NZDN88QPS1PBA85R474QYS590HPRP34TEWM",
                "to": "SP8J8NZDN88QPS1PBA85R474QYS590HPRP34TEWM.hic-1",
                "value": "31105",
                "transactionType": "contract_call",
                "gas": null,
                "gasPrice": "31105",
                "input": null,
                "nonce": "36",
                "network": null,
                "contractCall": {
                    "contract_id": "SP8J8NZDN88QPS1PBA85R474QYS590HPRP34TEWM.hic-1",
                    "function_name": "hic",
                    "function_signature": "",
                    "function_args": [
                        {
                            "hex": "0x0200000018112457edaa117b64365a905c10e4bfb2548236c565010101",
                            "repr": "0x112457edaa117b64365a905c10e4bfb2548236c565010101",
                            "name": "",
                            "type": "(buff 24)"
                        }
                    ]
                },
                "events": {
                    "stx": {
                        "transfer": 0,
                        "mint": 0,
                        "burn": 0
                    },
                    "ft": {
                        "transfer": 0,
                        "mint": 0,
                        "burn": 0
                    },
                    "nft": {
                        "transfer": 0,
                        "mint": 0,
                        "burn": 0
                    }
                },
                "postConditions": [],
                "txResult": {
                    "hex": "0x070c000000020272630c000000060163010000000000000000000000000000000001640100000000000000000000000000000000016903016f0100000000000000000000000000000000026f78010000000000000000000000000000000001700100000000000000000000000000000000027273070100000000000000000000000000000000",
                    "repr": "(ok (tuple (rc (tuple (c u0) (d u0) (i true) (o u0) (ox u0) (p u0))) (rs (ok u0))))"
                },
                "executionCostReadCount": "65",
                "executionCostReadLength": "293922",
                "executionCostRuntime": "293922",
                "executionCostWriteCount": "293922",
                "executionCostWriteLength": "0"
            },
            {
                "hash": "0x40ed59233441036f3fabb8b65d3d8ea82f5b97b925845b88ed8337104ac39ee2",
                "transactionStatus": true,
                "blockNumber": "153101",
                "timestamp": "1717787534",
                "from": "SP8J8NZDN88QPS1PBA85R474QYS590HPRP34TEWM",
                "to": "SP8J8NZDN88QPS1PBA85R474QYS590HPRP34TEWM.hic-1",
                "value": "31105",
                "transactionType": "contract_call",
                "gas": null,
                "gasPrice": "31105",
                "input": null,
                "nonce": "35",
                "network": null,
                "contractCall": {
                    "contract_id": "SP8J8NZDN88QPS1PBA85R474QYS590HPRP34TEWM.hic-1",
                    "function_name": "hic",
                    "function_signature": "",
                    "function_args": [
                        {
                            "hex": "0x0200000018112457edaa117b64365a905c10e4bfb2548236c565010101",
                            "repr": "0x112457edaa117b64365a905c10e4bfb2548236c565010101",
                            "name": "",
                            "type": "(buff 24)"
                        }
                    ]
                },
                "events": {
                    "stx": {
                        "transfer": 0,
                        "mint": 0,
                        "burn": 0
                    },
                    "ft": {
                        "transfer": 0,
                        "mint": 0,
                        "burn": 0
                    },
                    "nft": {
                        "transfer": 0,
                        "mint": 0,
                        "burn": 0
                    }
                },
                "postConditions": [],
                "txResult": {
                    "hex": "0x070c000000020272630c000000060163010000000000000000000000000000000001640100000000000000000000000000000000016903016f0100000000000000000000000000000000026f78010000000000000000000000000000000001700100000000000000000000000000000000027273070100000000000000000000000000000000",
                    "repr": "(ok (tuple (rc (tuple (c u0) (d u0) (i true) (o u0) (ox u0) (p u0))) (rs (ok u0))))"
                },
                "executionCostReadCount": "65",
                "executionCostReadLength": "293922",
                "executionCostRuntime": "293922",
                "executionCostWriteCount": "293922",
                "executionCostWriteLength": "0"
            },
            {
                "hash": "0x7617d9fb73a9aa4a004ba2f7a7750280942a2395ffa33793d5135ffeee61fcaf",
                "transactionStatus": true,
                "blockNumber": "153101",
                "timestamp": "1717787534",
                "from": "SP8J8NZDN88QPS1PBA85R474QYS590HPRP34TEWM",
                "to": "SP8J8NZDN88QPS1PBA85R474QYS590HPRP34TEWM.hic-1",
                "value": "100461206",
                "transactionType": "contract_call",
                "gas": null,
                "gasPrice": "31105",
                "input": null,
                "nonce": "34",
                "network": null,
                "contractCall": {
                    "contract_id": "SP8J8NZDN88QPS1PBA85R474QYS590HPRP34TEWM.hic-1",
                    "function_name": "hic",
                    "function_signature": "",
                    "function_args": [
                        {
                            "hex": "0x0200000018112457edaa117b64365a905c10e4bfb2548236c565010101",
                            "repr": "0x112457edaa117b64365a905c10e4bfb2548236c565010101",
                            "name": "",
                            "type": "(buff 24)"
                        }
                    ]
                },
                "events": {
                    "stx": {
                        "transfer": 2,
                        "mint": 0,
                        "burn": 0
                    },
                    "ft": {
                        "transfer": 4,
                        "mint": 0,
                        "burn": 0
                    },
                    "nft": {
                        "transfer": 0,
                        "mint": 0,
                        "burn": 0
                    }
                },
                "postConditions": [],
                "txResult": {
                    "hex": "0x070c000000020272630c000000060163010000000000000000000000000000000c016401000000000000000000000002540be400016904016f0100000000000000000000000005db36c2026f780100000000000000000000000002bfbec801700100000000000000000000000000000000027273070100000000000000000000000000070996",
                    "repr": "(ok (tuple (rc (tuple (c u12) (d u10000000000) (i false) (o u98252482) (ox u46120648) (p u0))) (rs (ok u461206))))"
                },
                "executionCostReadCount": "209",
                "executionCostReadLength": "533564",
                "executionCostRuntime": "533564",
                "executionCostWriteCount": "533564",
                "executionCostWriteLength": "1597"
            },
            {
                "hash": "0x73780bd0f83fbc311e1ffc04c749bde2d810dead18a66a5f3895a810dba67a16",
                "transactionStatus": true,
                "blockNumber": "153101",
                "timestamp": "1717787534",
                "from": "SP8J8NZDN88QPS1PBA85R474QYS590HPRP34TEWM",
                "to": "SP8J8NZDN88QPS1PBA85R474QYS590HPRP34TEWM.hic-1",
                "value": "31105",
                "transactionType": "contract_call",
                "gas": null,
                "gasPrice": "31105",
                "input": null,
                "nonce": "33",
                "network": null,
                "contractCall": {
                    "contract_id": "SP8J8NZDN88QPS1PBA85R474QYS590HPRP34TEWM.hic-1",
                    "function_name": "hic",
                    "function_signature": "",
                    "function_args": [
                        {
                            "hex": "0x0200000018112457edaa117b64365a905c10e4bfb2548236c565010101",
                            "repr": "0x112457edaa117b64365a905c10e4bfb2548236c565010101",
                            "name": "",
                            "type": "(buff 24)"
                        }
                    ]
                },
                "events": {
                    "stx": {
                        "transfer": 0,
                        "mint": 0,
                        "burn": 0
                    },
                    "ft": {
                        "transfer": 0,
                        "mint": 0,
                        "burn": 0
                    },
                    "nft": {
                        "transfer": 0,
                        "mint": 0,
                        "burn": 0
                    }
                },
                "postConditions": [],
                "txResult": {
                    "hex": "0x070c000000020272630c000000060163010000000000000000000000000000000d01640100000000000000000000000ba43b7400016904016f0100000000000000000000000005c45ba1026f78010000000000000000000000002ae6c70201700100000000000000000000000000000000027273080100000000000000000000000000314887",
                    "repr": "(ok (tuple (rc (tuple (c u13) (d u50000000000) (i false) (o u96754593) (ox u719767298) (p u0))) (rs (err u3229831))))"
                },
                "executionCostReadCount": "1335",
                "executionCostReadLength": "527000",
                "executionCostRuntime": "527000",
                "executionCostWriteCount": "527000",
                "executionCostWriteLength": "1556"
            },
            {
                "hash": "0xc74e31d5e4230d7970a5a771344c77480f8bcb3a2de4eaf29d8d4553754c9631",
                "transactionStatus": true,
                "blockNumber": "153098",
                "timestamp": "1717785124",
                "from": "SP8J8NZDN88QPS1PBA85R474QYS590HPRP34TEWM",
                "to": "SP8J8NZDN88QPS1PBA85R474QYS590HPRP34TEWM.hic-1",
                "value": "31105",
                "transactionType": "contract_call",
                "gas": null,
                "gasPrice": "31105",
                "input": null,
                "nonce": "32",
                "network": null,
                "contractCall": {
                    "contract_id": "SP8J8NZDN88QPS1PBA85R474QYS590HPRP34TEWM.hic-1",
                    "function_name": "hic",
                    "function_signature": "",
                    "function_args": [
                        {
                            "hex": "0x0200000018112457edaa117b64365a905c10e4bfb2548236c565010101",
                            "repr": "0x112457edaa117b64365a905c10e4bfb2548236c565010101",
                            "name": "",
                            "type": "(buff 24)"
                        }
                    ]
                },
                "events": {
                    "stx": {
                        "transfer": 0,
                        "mint": 0,
                        "burn": 0
                    },
                    "ft": {
                        "transfer": 0,
                        "mint": 0,
                        "burn": 0
                    },
                    "nft": {
                        "transfer": 0,
                        "mint": 0,
                        "burn": 0
                    }
                },
                "postConditions": [],
                "txResult": {
                    "hex": "0x070c000000020272630c000000060163010000000000000000000000000000000001640100000000000000000000000000000000016903016f0100000000000000000000000000000000026f78010000000000000000000000000000000001700100000000000000000000000000000000027273070100000000000000000000000000000000",
                    "repr": "(ok (tuple (rc (tuple (c u0) (d u0) (i true) (o u0) (ox u0) (p u0))) (rs (ok u0))))"
                },
                "executionCostReadCount": "65",
                "executionCostReadLength": "293922",
                "executionCostRuntime": "293922",
                "executionCostWriteCount": "293922",
                "executionCostWriteLength": "0"
            },
            {
                "hash": "0xf0228c9757756daea4e7368dde80d8173a263d5a34896c5ff637e396a7976333",
                "transactionStatus": true,
                "blockNumber": "153098",
                "timestamp": "1717785124",
                "from": "SP8J8NZDN88QPS1PBA85R474QYS590HPRP34TEWM",
                "to": "SP8J8NZDN88QPS1PBA85R474QYS590HPRP34TEWM.hic-1",
                "value": "31105",
                "transactionType": "contract_call",
                "gas": null,
                "gasPrice": "31105",
                "input": null,
                "nonce": "31",
                "network": null,
                "contractCall": {
                    "contract_id": "SP8J8NZDN88QPS1PBA85R474QYS590HPRP34TEWM.hic-1",
                    "function_name": "hic",
                    "function_signature": "",
                    "function_args": [
                        {
                            "hex": "0x0200000018112457edaa117b64365a905c10e4bfb2548236c565010101",
                            "repr": "0x112457edaa117b64365a905c10e4bfb2548236c565010101",
                            "name": "",
                            "type": "(buff 24)"
                        }
                    ]
                },
                "events": {
                    "stx": {
                        "transfer": 0,
                        "mint": 0,
                        "burn": 0
                    },
                    "ft": {
                        "transfer": 0,
                        "mint": 0,
                        "burn": 0
                    },
                    "nft": {
                        "transfer": 0,
                        "mint": 0,
                        "burn": 0
                    }
                },
                "postConditions": [],
                "txResult": {
                    "hex": "0x070c000000020272630c000000060163010000000000000000000000000000000d0164010000000000000000000000104c533c00016904016f0100000000000000000000000005ba3f9e026f78010000000000000000000000004264d3e301700100000000000000000000000000000000027273080100000000000000000000000000164aa1",
                    "repr": "(ok (tuple (rc (tuple (c u13) (d u70000000000) (i false) (o u96092062) (ox u1113904099) (p u0))) (rs (err u1460897))))"
                },
                "executionCostReadCount": "1333",
                "executionCostReadLength": "526980",
                "executionCostRuntime": "526980",
                "executionCostWriteCount": "526980",
                "executionCostWriteLength": "1556"
            },
            {
                "hash": "0xb583e1102472f383284f82b89713a56cb92c78195c6a8f5cce100811dc7a2ade",
                "transactionStatus": true,
                "blockNumber": "153097",
                "timestamp": "1717784731",
                "from": "SP8J8NZDN88QPS1PBA85R474QYS590HPRP34TEWM",
                "to": "SP8J8NZDN88QPS1PBA85R474QYS590HPRP34TEWM.hic-1",
                "value": "31105",
                "transactionType": "contract_call",
                "gas": null,
                "gasPrice": "31105",
                "input": null,
                "nonce": "30",
                "network": null,
                "contractCall": {
                    "contract_id": "SP8J8NZDN88QPS1PBA85R474QYS590HPRP34TEWM.hic-1",
                    "function_name": "hic",
                    "function_signature": "",
                    "function_args": [
                        {
                            "hex": "0x0200000018112457edaa117b64365a905c10e4bfb2548236c565010101",
                            "repr": "0x112457edaa117b64365a905c10e4bfb2548236c565010101",
                            "name": "",
                            "type": "(buff 24)"
                        }
                    ]
                },
                "events": {
                    "stx": {
                        "transfer": 0,
                        "mint": 0,
                        "burn": 0
                    },
                    "ft": {
                        "transfer": 0,
                        "mint": 0,
                        "burn": 0
                    },
                    "nft": {
                        "transfer": 0,
                        "mint": 0,
                        "burn": 0
                    }
                },
                "postConditions": [],
                "txResult": {
                    "hex": "0x070c000000020272630c000000060163010000000000000000000000000000000d0164010000000000000000000000104c533c00016904016f0100000000000000000000000005b3a9d7026f78010000000000000000000000005505327c017001000000000000000000000000000000000272730801000000000000000000000000000216ab",
                    "repr": "(ok (tuple (rc (tuple (c u13) (d u70000000000) (i false) (o u95660503) (ox u1426403964) (p u0))) (rs (err u136875))))"
                },
                "executionCostReadCount": "1333",
                "executionCostReadLength": "526980",
                "executionCostRuntime": "526980",
                "executionCostWriteCount": "526980",
                "executionCostWriteLength": "1556"
            },
            {
                "hash": "0x4328500bb407e807627e47c43daf7f11ed2e6d2bdb7053953cac62bf8d19f812",
                "transactionStatus": true,
                "blockNumber": "153096",
                "timestamp": "1717783629",
                "from": "SP8J8NZDN88QPS1PBA85R474QYS590HPRP34TEWM",
                "to": "SP8J8NZDN88QPS1PBA85R474QYS590HPRP34TEWM.hic-1",
                "value": "31105",
                "transactionType": "contract_call",
                "gas": null,
                "gasPrice": "31105",
                "input": null,
                "nonce": "29",
                "network": null,
                "contractCall": {
                    "contract_id": "SP8J8NZDN88QPS1PBA85R474QYS590HPRP34TEWM.hic-1",
                    "function_name": "hic",
                    "function_signature": "",
                    "function_args": [
                        {
                            "hex": "0x0200000018112457edaa117b64365a905c10e4bfb2548236c565010101",
                            "repr": "0x112457edaa117b64365a905c10e4bfb2548236c565010101",
                            "name": "",
                            "type": "(buff 24)"
                        }
                    ]
                },
                "events": {
                    "stx": {
                        "transfer": 0,
                        "mint": 0,
                        "burn": 0
                    },
                    "ft": {
                        "transfer": 0,
                        "mint": 0,
                        "burn": 0
                    },
                    "nft": {
                        "transfer": 0,
                        "mint": 0,
                        "burn": 0
                    }
                },
                "postConditions": [],
                "txResult": {
                    "hex": "0x070c000000020272630c000000060163010000000000000000000000000000000001640100000000000000000000000000000000016903016f0100000000000000000000000000000000026f78010000000000000000000000000000000001700100000000000000000000000000000000027273070100000000000000000000000000000000",
                    "repr": "(ok (tuple (rc (tuple (c u0) (d u0) (i true) (o u0) (ox u0) (p u0))) (rs (ok u0))))"
                },
                "executionCostReadCount": "65",
                "executionCostReadLength": "293922",
                "executionCostRuntime": "293922",
                "executionCostWriteCount": "293922",
                "executionCostWriteLength": "0"
            },
            {
                "hash": "0x22e9a177de50cd1ae9c94a6d08001c2127eb30dae77e698f1ef498383e73a474",
                "transactionStatus": true,
                "blockNumber": "153096",
                "timestamp": "1717783629",
                "from": "SP8J8NZDN88QPS1PBA85R474QYS590HPRP34TEWM",
                "to": "SP8J8NZDN88QPS1PBA85R474QYS590HPRP34TEWM.hic-1",
                "value": "31105",
                "transactionType": "contract_call",
                "gas": null,
                "gasPrice": "31105",
                "input": null,
                "nonce": "28",
                "network": null,
                "contractCall": {
                    "contract_id": "SP8J8NZDN88QPS1PBA85R474QYS590HPRP34TEWM.hic-1",
                    "function_name": "hic",
                    "function_signature": "",
                    "function_args": [
                        {
                            "hex": "0x0200000018112457edaa117b64365a905c10e4bfb2548236c565010101",
                            "repr": "0x112457edaa117b64365a905c10e4bfb2548236c565010101",
                            "name": "",
                            "type": "(buff 24)"
                        }
                    ]
                },
                "events": {
                    "stx": {
                        "transfer": 0,
                        "mint": 0,
                        "burn": 0
                    },
                    "ft": {
                        "transfer": 0,
                        "mint": 0,
                        "burn": 0
                    },
                    "nft": {
                        "transfer": 0,
                        "mint": 0,
                        "burn": 0
                    }
                },
                "postConditions": [],
                "txResult": {
                    "hex": "0x070c000000020272630c000000060163010000000000000000000000000000000d016401000000000000000000000006fc23ac00016904016f0100000000000000000000000005d0efc8026f78010000000000000000000000001327b2e2017001000000000000000000000000000000000272730801000000000000000000000000003cd024",
                    "repr": "(ok (tuple (rc (tuple (c u13) (d u30000000000) (i false) (o u97578952) (ox u321368802) (p u0))) (rs (err u3985444))))"
                },
                "executionCostReadCount": "1333",
                "executionCostReadLength": "526980",
                "executionCostRuntime": "526980",
                "executionCostWriteCount": "526980",
                "executionCostWriteLength": "1556"
            },
            {
                "hash": "0x0563b64754534139af286d8f708f39ef9dbfd5982c1219be5ccda7615a3fdfd5",
                "transactionStatus": true,
                "blockNumber": "153095",
                "timestamp": "1717782670",
                "from": "SP8J8NZDN88QPS1PBA85R474QYS590HPRP34TEWM",
                "to": "SP2VCQJGH7PHP2DJK7Z0V48AGBHQAW3R3ZW1QF4N.borrow-helper-v1-3",
                "value": "100000",
                "transactionType": "contract_call",
                "gas": null,
                "gasPrice": "70000",
                "input": null,
                "nonce": "27",
                "network": null,
                "contractCall": {
                    "contract_id": "SP2VCQJGH7PHP2DJK7Z0V48AGBHQAW3R3ZW1QF4N.borrow-helper-v1-3",
                    "function_name": "borrow",
                    "function_signature": "",
                    "function_args": [
                        {
                            "hex": "0x061605b65e5089ed1b09b299fe0d910a82e37570781f0e706f6f6c2d302d72657365727665",
                            "repr": "'SP2VCQJGH7PHP2DJK7Z0V48AGBHQAW3R3ZW1QF4N.pool-0-reserve",
                            "name": "",
                            "type": "principal"
                        },
                        {
                            "hex": "0x061605b65e5089ed1b09b299fe0d910a82e37570781f0f7374782d6f7261636c652d76312d33",
                            "repr": "'SP2VCQJGH7PHP2DJK7Z0V48AGBHQAW3R3ZW1QF4N.stx-oracle-v1-3",
                            "name": "",
                            "type": "principal"
                        },
                        {
                            "hex": "0x061605b65e5089ed1b09b299fe0d910a82e37570781f0477737478",
                            "repr": "'SP2VCQJGH7PHP2DJK7Z0V48AGBHQAW3R3ZW1QF4N.wstx",
                            "name": "",
                            "type": "principal"
                        },
                        {
                            "hex": "0x061605b65e5089ed1b09b299fe0d910a82e37570781f0c7a777374782d76312d322d31",
                            "repr": "'SP2VCQJGH7PHP2DJK7Z0V48AGBHQAW3R3ZW1QF4N.zwstx-v1-2-1",
                            "name": "",
                            "type": "principal"
                        },
                        {
                            "hex": "0x0b000000040c000000030561737365740616099fb88926d82f30b2f40eaf3ee423cb725bdb3b0b73747374782d746f6b656e086c702d746f6b656e061605b65e5089ed1b09b299fe0d910a82e37570781f0b7a73747374782d76312d32066f7261636c65061605b65e5089ed1b09b299fe0d910a82e37570781f1173747374782d6f7261636c652d76312d340c000000030561737365740616fc2fe628b1da502c1b5eb3d08727ee6022503b5a0c746f6b656e2d616575736463086c702d746f6b656e061605b65e5089ed1b09b299fe0d910a82e37570781f0c7a6165757364632d76312d32066f7261636c65061605b65e5089ed1b09b299fe0d910a82e37570781f126165757364632d6f7261636c652d76312d300c00000003056173736574061605b65e5089ed1b09b299fe0d910a82e37570781f0477737478086c702d746f6b656e061605b65e5089ed1b09b299fe0d910a82e37570781f0c7a777374782d76312d322d31066f7261636c65061605b65e5089ed1b09b299fe0d910a82e37570781f0f7374782d6f7261636c652d76312d330c000000030561737365740616982f3ec112a5f5928a5c96a914bd733793b896a50e61726b6164696b6f2d746f6b656e086c702d746f6b656e061605b65e5089ed1b09b299fe0d910a82e37570781f0a7a64696b6f2d76312d32066f7261636c65061605b65e5089ed1b09b299fe0d910a82e37570781f1064696b6f2d6f7261636c652d76312d31",
                            "repr": "(list (tuple (asset 'SP4SZE494VC2YC5JYG7AYFQ44F5Q4PYV7DVMDPBG.ststx-token) (lp-token 'SP2VCQJGH7PHP2DJK7Z0V48AGBHQAW3R3ZW1QF4N.zststx-v1-2) (oracle 'SP2VCQJGH7PHP2DJK7Z0V48AGBHQAW3R3ZW1QF4N.ststx-oracle-v1-4)) (tuple (asset 'SP3Y2ZSH8P7D50B0VBTSX11S7XSG24M1VB9YFQA4K.token-aeusdc) (lp-token 'SP2VCQJGH7PHP2DJK7Z0V48AGBHQAW3R3ZW1QF4N.zaeusdc-v1-2) (oracle 'SP2VCQJGH7PHP2DJK7Z0V48AGBHQAW3R3ZW1QF4N.aeusdc-oracle-v1-0)) (tuple (asset 'SP2VCQJGH7PHP2DJK7Z0V48AGBHQAW3R3ZW1QF4N.wstx) (lp-token 'SP2VCQJGH7PHP2DJK7Z0V48AGBHQAW3R3ZW1QF4N.zwstx-v1-2-1) (oracle 'SP2VCQJGH7PHP2DJK7Z0V48AGBHQAW3R3ZW1QF4N.stx-oracle-v1-3)) (tuple (asset 'SP2C2YFP12AJZB4MABJBAJ55XECVS7E4PMMZ89YZR.arkadiko-token) (lp-token 'SP2VCQJGH7PHP2DJK7Z0V48AGBHQAW3R3ZW1QF4N.zdiko-v1-2) (oracle 'SP2VCQJGH7PHP2DJK7Z0V48AGBHQAW3R3ZW1QF4N.diko-oracle-v1-1)))",
                            "name": "",
                            "type": "(list 4 (tuple (asset principal) (lp-token principal) (oracle principal)))"
                        },
                        {
                            "hex": "0x01000000000000000000000000000186a0",
                            "repr": "u100000",
                            "name": "",
                            "type": "uint"
                        },
                        {
                            "hex": "0x061605b65e5089ed1b09b299fe0d910a82e37570781f0f666565732d63616c63756c61746f72",
                            "repr": "'SP2VCQJGH7PHP2DJK7Z0V48AGBHQAW3R3ZW1QF4N.fees-calculator",
                            "name": "",
                            "type": "principal"
                        },
                        {
                            "hex": "0x0100000000000000000000000000000000",
                            "repr": "u0",
                            "name": "",
                            "type": "uint"
                        },
                        {
                            "hex": "0x0516112457edaa117b64365a905c10e4bfb2548236c5",
                            "repr": "'SP8J8NZDN88QPS1PBA85R474QYS590HPRP34TEWM",
                            "name": "",
                            "type": "principal"
                        }
                    ]
                },
                "events": {
                    "stx": {
                        "transfer": 1,
                        "mint": 0,
                        "burn": 0
                    },
                    "ft": {
                        "transfer": 0,
                        "mint": 0,
                        "burn": 0
                    },
                    "nft": {
                        "transfer": 0,
                        "mint": 0,
                        "burn": 0
                    }
                },
                "postConditions": [
                    {
                        "principal": {
                            "type_id": "principal_contract",
                            "address": "SP2VCQJGH7PHP2DJK7Z0V48AGBHQAW3R3ZW1QF4N",
                            "contract_name": "pool-vault"
                        },
                        "condition_code": "sent_equal_to",
                        "amount": "100000",
                        "type": "stx"
                    }
                ],
                "txResult": {
                    "hex": "0x0703",
                    "repr": "(ok true)"
                },
                "executionCostReadCount": "494",
                "executionCostReadLength": "2535711",
                "executionCostRuntime": "2535711",
                "executionCostWriteCount": "2535711",
                "executionCostWriteLength": "3334"
            },
            {
                "hash": "0x61f7dee4ae2ed862937a76fc9854d4b1d16b9e3b244de2ea62036d80977e7a00",
                "transactionStatus": true,
                "blockNumber": "153092",
                "timestamp": "1717780883",
                "from": "SP8J8NZDN88QPS1PBA85R474QYS590HPRP34TEWM",
                "to": "SP2VCQJGH7PHP2DJK7Z0V48AGBHQAW3R3ZW1QF4N.borrow-helper-v1-3",
                "value": "570000",
                "transactionType": "contract_call",
                "gas": null,
                "gasPrice": "70000",
                "input": null,
                "nonce": "26",
                "network": null,
                "contractCall": {
                    "contract_id": "SP2VCQJGH7PHP2DJK7Z0V48AGBHQAW3R3ZW1QF4N.borrow-helper-v1-3",
                    "function_name": "supply",
                    "function_signature": "",
                    "function_args": [
                        {
                            "hex": "0x061605b65e5089ed1b09b299fe0d910a82e37570781f0c7a777374782d76312d322d31",
                            "repr": "'SP2VCQJGH7PHP2DJK7Z0V48AGBHQAW3R3ZW1QF4N.zwstx-v1-2-1",
                            "name": "",
                            "type": "principal"
                        },
                        {
                            "hex": "0x061605b65e5089ed1b09b299fe0d910a82e37570781f0e706f6f6c2d302d72657365727665",
                            "repr": "'SP2VCQJGH7PHP2DJK7Z0V48AGBHQAW3R3ZW1QF4N.pool-0-reserve",
                            "name": "",
                            "type": "principal"
                        },
                        {
                            "hex": "0x061605b65e5089ed1b09b299fe0d910a82e37570781f0477737478",
                            "repr": "'SP2VCQJGH7PHP2DJK7Z0V48AGBHQAW3R3ZW1QF4N.wstx",
                            "name": "",
                            "type": "principal"
                        },
                        {
                            "hex": "0x010000000000000000000000000007a120",
                            "repr": "u500000",
                            "name": "",
                            "type": "uint"
                        },
                        {
                            "hex": "0x0516112457edaa117b64365a905c10e4bfb2548236c5",
                            "repr": "'SP8J8NZDN88QPS1PBA85R474QYS590HPRP34TEWM",
                            "name": "",
                            "type": "principal"
                        },
                        {
                            "hex": "0x09",
                            "repr": "none",
                            "name": "",
                            "type": "(optional UnknownType)"
                        }
                    ]
                },
                "events": {
                    "stx": {
                        "transfer": 1,
                        "mint": 0,
                        "burn": 0
                    },
                    "ft": {
                        "transfer": 0,
                        "mint": 1,
                        "burn": 0
                    },
                    "nft": {
                        "transfer": 0,
                        "mint": 0,
                        "burn": 0
                    }
                },
                "postConditions": [
                    {
                        "principal": {
                            "type_id": "principal_standard",
                            "address": "SP8J8NZDN88QPS1PBA85R474QYS590HPRP34TEWM"
                        },
                        "condition_code": "sent_equal_to",
                        "amount": "500000",
                        "type": "stx"
                    }
                ],
                "txResult": {
                    "hex": "0x0703",
                    "repr": "(ok true)"
                },
                "executionCostReadCount": "353",
                "executionCostReadLength": "1918994",
                "executionCostRuntime": "1918994",
                "executionCostWriteCount": "1918994",
                "executionCostWriteLength": "3451"
            },
            {
                "hash": "0x8e25e1c9634649253afbf4a25b7e7b199ed2ff7a884958318e3340719a6bf66f",
                "transactionStatus": true,
                "blockNumber": "153089",
                "timestamp": "1717779724",
                "from": "SP8J8NZDN88QPS1PBA85R474QYS590HPRP34TEWM",
                "to": "SP8J8NZDN88QPS1PBA85R474QYS590HPRP34TEWM.hic-1",
                "value": "31105",
                "transactionType": "contract_call",
                "gas": null,
                "gasPrice": "31105",
                "input": null,
                "nonce": "25",
                "network": null,
                "contractCall": {
                    "contract_id": "SP8J8NZDN88QPS1PBA85R474QYS590HPRP34TEWM.hic-1",
                    "function_name": "hic",
                    "function_signature": "",
                    "function_args": [
                        {
                            "hex": "0x0200000018112457edaa117b64365a905c10e4bfb2548236c565010101",
                            "repr": "0x112457edaa117b64365a905c10e4bfb2548236c565010101",
                            "name": "",
                            "type": "(buff 24)"
                        }
                    ]
                },
                "events": {
                    "stx": {
                        "transfer": 0,
                        "mint": 0,
                        "burn": 0
                    },
                    "ft": {
                        "transfer": 0,
                        "mint": 0,
                        "burn": 0
                    },
                    "nft": {
                        "transfer": 0,
                        "mint": 0,
                        "burn": 0
                    }
                },
                "postConditions": [],
                "txResult": {
                    "hex": "0x070c000000020272630c000000060163010000000000000000000000000000000d01640100000000000000000000000ba43b7400016904016f0100000000000000000000000005cc143c026f780100000000000000000000000019d3d40c01700100000000000000000000000000000000027273080100000000000000000000000000336096",
                    "repr": "(ok (tuple (rc (tuple (c u13) (d u50000000000) (i false) (o u97260604) (ox u433312780) (p u0))) (rs (err u3367062))))"
                },
                "executionCostReadCount": "1333",
                "executionCostReadLength": "526980",
                "executionCostRuntime": "526980",
                "executionCostWriteCount": "526980",
                "executionCostWriteLength": "1556"
            },
            {
                "hash": "0x651fa82c5339793af2f809f39fca070a0b91fd1d7e61b0139a8ef6de6c96fff6",
                "transactionStatus": true,
                "blockNumber": "153085",
                "timestamp": "1717775269",
                "from": "SP8J8NZDN88QPS1PBA85R474QYS590HPRP34TEWM",
                "to": "SP8J8NZDN88QPS1PBA85R474QYS590HPRP34TEWM.hic-1",
                "value": "31105",
                "transactionType": "contract_call",
                "gas": null,
                "gasPrice": "31105",
                "input": null,
                "nonce": "24",
                "network": null,
                "contractCall": {
                    "contract_id": "SP8J8NZDN88QPS1PBA85R474QYS590HPRP34TEWM.hic-1",
                    "function_name": "hic",
                    "function_signature": "",
                    "function_args": [
                        {
                            "hex": "0x0200000018112457edaa117b64365a905c10e4bfb2548236c565010101",
                            "repr": "0x112457edaa117b64365a905c10e4bfb2548236c565010101",
                            "name": "",
                            "type": "(buff 24)"
                        }
                    ]
                },
                "events": {
                    "stx": {
                        "transfer": 0,
                        "mint": 0,
                        "burn": 0
                    },
                    "ft": {
                        "transfer": 0,
                        "mint": 0,
                        "burn": 0
                    },
                    "nft": {
                        "transfer": 0,
                        "mint": 0,
                        "burn": 0
                    }
                },
                "postConditions": [],
                "txResult": {
                    "hex": "0x070c000000020272630c000000060163010000000000000000000000000000000d016401000000000000000000000004a817c800016904016f0100000000000000000000000005d96042026f78010000000000000000000000000916bfab017001000000000000000000000000000000000272730801000000000000000000000000004f555d",
                    "repr": "(ok (tuple (rc (tuple (c u13) (d u20000000000) (i false) (o u98132034) (ox u152485803) (p u0))) (rs (err u5199197))))"
                },
                "executionCostReadCount": "1333",
                "executionCostReadLength": "526980",
                "executionCostRuntime": "526980",
                "executionCostWriteCount": "526980",
                "executionCostWriteLength": "1556"
            },
            {
                "hash": "0x189a65bcad8fa4db8a38291d3ce95c3fa8f5c257b6d9bfa79e41b00f7e311a6a",
                "transactionStatus": true,
                "blockNumber": "153080",
                "timestamp": "1717771785",
                "from": "SP8J8NZDN88QPS1PBA85R474QYS590HPRP34TEWM",
                "to": "SP8J8NZDN88QPS1PBA85R474QYS590HPRP34TEWM.hic-1",
                "value": "31105",
                "transactionType": "contract_call",
                "gas": null,
                "gasPrice": "31105",
                "input": null,
                "nonce": "23",
                "network": null,
                "contractCall": {
                    "contract_id": "SP8J8NZDN88QPS1PBA85R474QYS590HPRP34TEWM.hic-1",
                    "function_name": "hic",
                    "function_signature": "",
                    "function_args": [
                        {
                            "hex": "0x0200000018112457edaa117b64365a905c10e4bfb2548236c565010101",
                            "repr": "0x112457edaa117b64365a905c10e4bfb2548236c565010101",
                            "name": "",
                            "type": "(buff 24)"
                        }
                    ]
                },
                "events": {
                    "stx": {
                        "transfer": 0,
                        "mint": 0,
                        "burn": 0
                    },
                    "ft": {
                        "transfer": 0,
                        "mint": 0,
                        "burn": 0
                    },
                    "nft": {
                        "transfer": 0,
                        "mint": 0,
                        "burn": 0
                    }
                },
                "postConditions": [],
                "txResult": {
                    "hex": "0x070c000000020272630c000000060163010000000000000000000000000000000d01640100000000000000000000000ba43b7400016904016f0100000000000000000000000005c5aaa6026f78010000000000000000000000002694d2950170010000000000000000000000000000000002727308010000000000000000000000000027eb5b",
                    "repr": "(ok (tuple (rc (tuple (c u13) (d u50000000000) (i false) (o u96840358) (ox u647287445) (p u0))) (rs (err u2616155))))"
                },
                "executionCostReadCount": "1333",
                "executionCostReadLength": "526980",
                "executionCostRuntime": "526980",
                "executionCostWriteCount": "526980",
                "executionCostWriteLength": "1556"
            },
            {
                "hash": "0x27f0e38904019d08d8eb2a0456c9113ec771ebcf726b38af413540d07f1096c9",
                "transactionStatus": true,
                "blockNumber": "153077",
                "timestamp": "1717769660",
                "from": "SP8J8NZDN88QPS1PBA85R474QYS590HPRP34TEWM",
                "to": "SP8J8NZDN88QPS1PBA85R474QYS590HPRP34TEWM.hic-1",
                "value": "199859754",
                "transactionType": "contract_call",
                "gas": null,
                "gasPrice": "31105",
                "input": null,
                "nonce": "22",
                "network": null,
                "contractCall": {
                    "contract_id": "SP8J8NZDN88QPS1PBA85R474QYS590HPRP34TEWM.hic-1",
                    "function_name": "hic",
                    "function_signature": "",
                    "function_args": [
                        {
                            "hex": "0x0200000018112457edaa117b64365a905c10e4bfb2548236c565010101",
                            "repr": "0x112457edaa117b64365a905c10e4bfb2548236c565010101",
                            "name": "",
                            "type": "(buff 24)"
                        }
                    ]
                },
                "events": {
                    "stx": {
                        "transfer": 2,
                        "mint": 0,
                        "burn": 0
                    },
                    "ft": {
                        "transfer": 6,
                        "mint": 1,
                        "burn": 0
                    },
                    "nft": {
                        "transfer": 0,
                        "mint": 0,
                        "burn": 0
                    }
                },
                "postConditions": [],
                "txResult": {
                    "hex": "0x070c000000020272630c000000060163010000000000000000000000000000000d0164010000000000000000000000104c533c00016904016f0100000000000000000000000005aee6d5026f780100000000000000000000000060b058540170010000000000000000000000000000000002727307010000000000000000000000000007ab1a",
                    "repr": "(ok (tuple (rc (tuple (c u13) (d u70000000000) (i false) (o u95348437) (ox u1622169684) (p u0))) (rs (ok u502554))))"
                },
                "executionCostReadCount": "1333",
                "executionCostReadLength": "526998",
                "executionCostRuntime": "526998",
                "executionCostWriteCount": "526998",
                "executionCostWriteLength": "1536"
            },
            {
                "hash": "0x239053bcff8f6dbafbcc156caf5ba4a6ca1202c52b6d3c7f13d6dd4d44ef3ead",
                "transactionStatus": true,
                "blockNumber": "153076",
                "timestamp": "1717769510",
                "from": "SP8J8NZDN88QPS1PBA85R474QYS590HPRP34TEWM",
                "to": "SP8J8NZDN88QPS1PBA85R474QYS590HPRP34TEWM.hic-1",
                "value": "31105",
                "transactionType": "contract_call",
                "gas": null,
                "gasPrice": "31105",
                "input": null,
                "nonce": "21",
                "network": null,
                "contractCall": {
                    "contract_id": "SP8J8NZDN88QPS1PBA85R474QYS590HPRP34TEWM.hic-1",
                    "function_name": "hic",
                    "function_signature": "",
                    "function_args": [
                        {
                            "hex": "0x0200000018112457edaa117b64365a905c10e4bfb2548236c565010101",
                            "repr": "0x112457edaa117b64365a905c10e4bfb2548236c565010101",
                            "name": "",
                            "type": "(buff 24)"
                        }
                    ]
                },
                "events": {
                    "stx": {
                        "transfer": 0,
                        "mint": 0,
                        "burn": 0
                    },
                    "ft": {
                        "transfer": 0,
                        "mint": 0,
                        "burn": 0
                    },
                    "nft": {
                        "transfer": 0,
                        "mint": 0,
                        "burn": 0
                    }
                },
                "postConditions": [],
                "txResult": {
                    "hex": "0x070c000000020272630c000000060163010000000000000000000000000000000d01640100000000000000000000000ba43b7400016904016f0100000000000000000000000005c55007026f7801000000000000000000000000270796c301700100000000000000000000000000000000027273080100000000000000000000000000256f20",
                    "repr": "(ok (tuple (rc (tuple (c u13) (d u50000000000) (i false) (o u96817159) (ox u654808771) (p u0))) (rs (err u2453280))))"
                },
                "executionCostReadCount": "1335",
                "executionCostReadLength": "527000",
                "executionCostRuntime": "527000",
                "executionCostWriteCount": "527000",
                "executionCostWriteLength": "1556"
            },
            {
                "hash": "0xfa53225a5afd114193e0f5278eee230d3df577ad3a0beb72b4796312b6446216",
                "transactionStatus": true,
                "blockNumber": "153072",
                "timestamp": "1717767361",
                "from": "SP8J8NZDN88QPS1PBA85R474QYS590HPRP34TEWM",
                "to": "SP8J8NZDN88QPS1PBA85R474QYS590HPRP34TEWM.hic-1",
                "value": "31105",
                "transactionType": "contract_call",
                "gas": null,
                "gasPrice": "31105",
                "input": null,
                "nonce": "20",
                "network": null,
                "contractCall": {
                    "contract_id": "SP8J8NZDN88QPS1PBA85R474QYS590HPRP34TEWM.hic-1",
                    "function_name": "hic",
                    "function_signature": "",
                    "function_args": [
                        {
                            "hex": "0x0200000018112457edaa117b64365a905c10e4bfb2548236c565010101",
                            "repr": "0x112457edaa117b64365a905c10e4bfb2548236c565010101",
                            "name": "",
                            "type": "(buff 24)"
                        }
                    ]
                },
                "events": {
                    "stx": {
                        "transfer": 0,
                        "mint": 0,
                        "burn": 0
                    },
                    "ft": {
                        "transfer": 0,
                        "mint": 0,
                        "burn": 0
                    },
                    "nft": {
                        "transfer": 0,
                        "mint": 0,
                        "burn": 0
                    }
                },
                "postConditions": [],
                "txResult": {
                    "hex": "0x070c000000020272630c000000060163010000000000000000000000000000000d0164010000000000000000000000104c533c00016904016f0100000000000000000000000005bab110026f78010000000000000000000000003e7112cf017001000000000000000000000000000000000272730801000000000000000000000000000fc1e0",
                    "repr": "(ok (tuple (rc (tuple (c u13) (d u70000000000) (i false) (o u96121104) (ox u1047597775) (p u0))) (rs (err u1032672))))"
                },
                "executionCostReadCount": "1333",
                "executionCostReadLength": "526980",
                "executionCostRuntime": "526980",
                "executionCostWriteCount": "526980",
                "executionCostWriteLength": "1556"
            },
            {
                "hash": "0x0b62507a25b129bc4879304c20bd11966bb326f22dd8d90073498b3863e332ab",
                "transactionStatus": true,
                "blockNumber": "153071",
                "timestamp": "1717766804",
                "from": "SP8J8NZDN88QPS1PBA85R474QYS590HPRP34TEWM",
                "to": "SP8J8NZDN88QPS1PBA85R474QYS590HPRP34TEWM.hic-1",
                "value": "31105",
                "transactionType": "contract_call",
                "gas": null,
                "gasPrice": "31105",
                "input": null,
                "nonce": "19",
                "network": null,
                "contractCall": {
                    "contract_id": "SP8J8NZDN88QPS1PBA85R474QYS590HPRP34TEWM.hic-1",
                    "function_name": "hic",
                    "function_signature": "",
                    "function_args": [
                        {
                            "hex": "0x0200000018112457edaa117b64365a905c10e4bfb2548236c565010101",
                            "repr": "0x112457edaa117b64365a905c10e4bfb2548236c565010101",
                            "name": "",
                            "type": "(buff 24)"
                        }
                    ]
                },
                "events": {
                    "stx": {
                        "transfer": 0,
                        "mint": 0,
                        "burn": 0
                    },
                    "ft": {
                        "transfer": 0,
                        "mint": 0,
                        "burn": 0
                    },
                    "nft": {
                        "transfer": 0,
                        "mint": 0,
                        "burn": 0
                    }
                },
                "postConditions": [],
                "txResult": {
                    "hex": "0x070c000000020272630c000000060163010000000000000000000000000000000001640100000000000000000000000000000000016903016f0100000000000000000000000000000000026f78010000000000000000000000000000000001700100000000000000000000000000000000027273070100000000000000000000000000000000",
                    "repr": "(ok (tuple (rc (tuple (c u0) (d u0) (i true) (o u0) (ox u0) (p u0))) (rs (ok u0))))"
                },
                "executionCostReadCount": "65",
                "executionCostReadLength": "293922",
                "executionCostRuntime": "293922",
                "executionCostWriteCount": "293922",
                "executionCostWriteLength": "0"
            },
            {
                "hash": "0xff9b3b23ff52f2e83007f35bbb797e761f468cc1e28a3ff51bb5a5e9250514df",
                "transactionStatus": true,
                "blockNumber": "153071",
                "timestamp": "1717766804",
                "from": "SP8J8NZDN88QPS1PBA85R474QYS590HPRP34TEWM",
                "to": "SP8J8NZDN88QPS1PBA85R474QYS590HPRP34TEWM.hic-1",
                "value": "100573530",
                "transactionType": "contract_call",
                "gas": null,
                "gasPrice": "31105",
                "input": null,
                "nonce": "18",
                "network": null,
                "contractCall": {
                    "contract_id": "SP8J8NZDN88QPS1PBA85R474QYS590HPRP34TEWM.hic-1",
                    "function_name": "hic",
                    "function_signature": "",
                    "function_args": [
                        {
                            "hex": "0x0200000018112457edaa117b64365a905c10e4bfb2548236c565010101",
                            "repr": "0x112457edaa117b64365a905c10e4bfb2548236c565010101",
                            "name": "",
                            "type": "(buff 24)"
                        }
                    ]
                },
                "events": {
                    "stx": {
                        "transfer": 2,
                        "mint": 0,
                        "burn": 0
                    },
                    "ft": {
                        "transfer": 4,
                        "mint": 0,
                        "burn": 0
                    },
                    "nft": {
                        "transfer": 0,
                        "mint": 0,
                        "burn": 0
                    }
                },
                "postConditions": [],
                "txResult": {
                    "hex": "0x070c000000020272630c000000060163010000000000000000000000000000000c016401000000000000000000000002540be400016903016f0100000000000000000000000006131bed026f7801000000000000000000000000036b23570170010000000000000000000000000000000002727307010000000000000000000000000008c05a",
                    "repr": "(ok (tuple (rc (tuple (c u12) (d u10000000000) (i true) (o u101915629) (ox u57353047) (p u0))) (rs (ok u573530))))"
                },
                "executionCostReadCount": "209",
                "executionCostReadLength": "533564",
                "executionCostRuntime": "533564",
                "executionCostWriteCount": "533564",
                "executionCostWriteLength": "1597"
            },
            {
                "hash": "0xb53f910a83fa9fcbbd3d2b8fdfc1e0d8f216d6e2dbf44aa22fc7069618a94f74",
                "transactionStatus": true,
                "blockNumber": "153071",
                "timestamp": "1717766804",
                "from": "SP8J8NZDN88QPS1PBA85R474QYS590HPRP34TEWM",
                "to": "SP8J8NZDN88QPS1PBA85R474QYS590HPRP34TEWM.hic-1",
                "value": "31105",
                "transactionType": "contract_call",
                "gas": null,
                "gasPrice": "31105",
                "input": null,
                "nonce": "17",
                "network": null,
                "contractCall": {
                    "contract_id": "SP8J8NZDN88QPS1PBA85R474QYS590HPRP34TEWM.hic-1",
                    "function_name": "hic",
                    "function_signature": "",
                    "function_args": [
                        {
                            "hex": "0x0200000018112457edaa117b64365a905c10e4bfb2548236c565010101",
                            "repr": "0x112457edaa117b64365a905c10e4bfb2548236c565010101",
                            "name": "",
                            "type": "(buff 24)"
                        }
                    ]
                },
                "events": {
                    "stx": {
                        "transfer": 0,
                        "mint": 0,
                        "burn": 0
                    },
                    "ft": {
                        "transfer": 0,
                        "mint": 0,
                        "burn": 0
                    },
                    "nft": {
                        "transfer": 0,
                        "mint": 0,
                        "burn": 0
                    }
                },
                "postConditions": [],
                "txResult": {
                    "hex": "0x070c000000020272630c000000060163010000000000000000000000000000000d01640100000000000000000000000ba43b7400016904016f0100000000000000000000000005c9b427026f78010000000000000000000000001e2d4ed3017001000000000000000000000000000000000272730801000000000000000000000000002e2944",
                    "repr": "(ok (tuple (rc (tuple (c u13) (d u50000000000) (i false) (o u97104935) (ox u506285779) (p u0))) (rs (err u3025220))))"
                },
                "executionCostReadCount": "1335",
                "executionCostReadLength": "527000",
                "executionCostRuntime": "527000",
                "executionCostWriteCount": "527000",
                "executionCostWriteLength": "1556"
            },
            {
                "hash": "0x84f59a47d3614118d8a6c6a255c3b300685109e0a1b0082fd05b2ecbdfcabb31",
                "transactionStatus": true,
                "blockNumber": "153066",
                "timestamp": "1717761888",
                "from": "SP8J8NZDN88QPS1PBA85R474QYS590HPRP34TEWM",
                "to": "SP8J8NZDN88QPS1PBA85R474QYS590HPRP34TEWM.hic-1",
                "value": "31105",
                "transactionType": "contract_call",
                "gas": null,
                "gasPrice": "31105",
                "input": null,
                "nonce": "16",
                "network": null,
                "contractCall": {
                    "contract_id": "SP8J8NZDN88QPS1PBA85R474QYS590HPRP34TEWM.hic-1",
                    "function_name": "hic",
                    "function_signature": "",
                    "function_args": [
                        {
                            "hex": "0x0200000018112457edaa117b64365a905c10e4bfb2548236c565010101",
                            "repr": "0x112457edaa117b64365a905c10e4bfb2548236c565010101",
                            "name": "",
                            "type": "(buff 24)"
                        }
                    ]
                },
                "events": {
                    "stx": {
                        "transfer": 0,
                        "mint": 0,
                        "burn": 0
                    },
                    "ft": {
                        "transfer": 0,
                        "mint": 0,
                        "burn": 0
                    },
                    "nft": {
                        "transfer": 0,
                        "mint": 0,
                        "burn": 0
                    }
                },
                "postConditions": [],
                "txResult": {
                    "hex": "0x070c000000020272630c000000060163010000000000000000000000000000000d01640100000000000000000000000ba43b7400016904016f0100000000000000000000000005bf9a4c026f780100000000000000000000000032a5c8d90170010000000000000000000000000000000002727308010000000000000000000000000018a663",
                    "repr": "(ok (tuple (rc (tuple (c u13) (d u50000000000) (i false) (o u96442956) (ox u849725657) (p u0))) (rs (err u1615459))))"
                },
                "executionCostReadCount": "1335",
                "executionCostReadLength": "527000",
                "executionCostRuntime": "527000",
                "executionCostWriteCount": "527000",
                "executionCostWriteLength": "1556"
            },
            {
                "hash": "0x7577089e9ce3321185b92d64fc6047fb6c2cf63f0f6a19abe43c66c56e255038",
                "transactionStatus": true,
                "blockNumber": "153063",
                "timestamp": "1717761049",
                "from": "SP8J8NZDN88QPS1PBA85R474QYS590HPRP34TEWM",
                "to": "SP8J8NZDN88QPS1PBA85R474QYS590HPRP34TEWM.hic-1",
                "value": "31105",
                "transactionType": "contract_call",
                "gas": null,
                "gasPrice": "31105",
                "input": null,
                "nonce": "15",
                "network": null,
                "contractCall": {
                    "contract_id": "SP8J8NZDN88QPS1PBA85R474QYS590HPRP34TEWM.hic-1",
                    "function_name": "hic",
                    "function_signature": "",
                    "function_args": [
                        {
                            "hex": "0x0200000018112457edaa117b64365a905c10e4bfb2548236c565010101",
                            "repr": "0x112457edaa117b64365a905c10e4bfb2548236c565010101",
                            "name": "",
                            "type": "(buff 24)"
                        }
                    ]
                },
                "events": {
                    "stx": {
                        "transfer": 0,
                        "mint": 0,
                        "burn": 0
                    },
                    "ft": {
                        "transfer": 0,
                        "mint": 0,
                        "burn": 0
                    },
                    "nft": {
                        "transfer": 0,
                        "mint": 0,
                        "burn": 0
                    }
                },
                "postConditions": [],
                "txResult": {
                    "hex": "0x070c000000020272630c000000060163010000000000000000000000000000000001640100000000000000000000000000000000016903016f0100000000000000000000000000000000026f78010000000000000000000000000000000001700100000000000000000000000000000000027273070100000000000000000000000000000000",
                    "repr": "(ok (tuple (rc (tuple (c u0) (d u0) (i true) (o u0) (ox u0) (p u0))) (rs (ok u0))))"
                },
                "executionCostReadCount": "65",
                "executionCostReadLength": "293922",
                "executionCostRuntime": "293922",
                "executionCostWriteCount": "293922",
                "executionCostWriteLength": "0"
            },
            {
                "hash": "0x5b48c54fb95370bd504258bb2eca693b0fb7d74c541fa5470477d837099a0f8e",
                "transactionStatus": true,
                "blockNumber": "153063",
                "timestamp": "1717761049",
                "from": "SP8J8NZDN88QPS1PBA85R474QYS590HPRP34TEWM",
                "to": "SP8J8NZDN88QPS1PBA85R474QYS590HPRP34TEWM.hic-1",
                "value": "31105",
                "transactionType": "contract_call",
                "gas": null,
                "gasPrice": "31105",
                "input": null,
                "nonce": "14",
                "network": null,
                "contractCall": {
                    "contract_id": "SP8J8NZDN88QPS1PBA85R474QYS590HPRP34TEWM.hic-1",
                    "function_name": "hic",
                    "function_signature": "",
                    "function_args": [
                        {
                            "hex": "0x0200000018112457edaa117b64365a905c10e4bfb2548236c565010101",
                            "repr": "0x112457edaa117b64365a905c10e4bfb2548236c565010101",
                            "name": "",
                            "type": "(buff 24)"
                        }
                    ]
                },
                "events": {
                    "stx": {
                        "transfer": 0,
                        "mint": 0,
                        "burn": 0
                    },
                    "ft": {
                        "transfer": 0,
                        "mint": 0,
                        "burn": 0
                    },
                    "nft": {
                        "transfer": 0,
                        "mint": 0,
                        "burn": 0
                    }
                },
                "postConditions": [],
                "txResult": {
                    "hex": "0x070c000000020272630c000000060163010000000000000000000000000000000d01640100000000000000000000000ba43b7400016904016f0100000000000000000000000005c18894026f78010000000000000000000000002eb9d1a4017001000000000000000000000000000000000272730801000000000000000000000000001c9702",
                    "repr": "(ok (tuple (rc (tuple (c u13) (d u50000000000) (i false) (o u96569492) (ox u783929764) (p u0))) (rs (err u1873666))))"
                },
                "executionCostReadCount": "1333",
                "executionCostReadLength": "526980",
                "executionCostRuntime": "526980",
                "executionCostWriteCount": "526980",
                "executionCostWriteLength": "1556"
            },
            {
                "hash": "0x4fb14e7b590ee85602d33346e952a6739de3b2142c9fb189670b25aa1247dd7d",
                "transactionStatus": true,
                "blockNumber": "153061",
                "timestamp": "1717760439",
                "from": "SP8J8NZDN88QPS1PBA85R474QYS590HPRP34TEWM",
                "to": "SP8J8NZDN88QPS1PBA85R474QYS590HPRP34TEWM.hic-1",
                "value": "31105",
                "transactionType": "contract_call",
                "gas": null,
                "gasPrice": "31105",
                "input": null,
                "nonce": "13",
                "network": null,
                "contractCall": {
                    "contract_id": "SP8J8NZDN88QPS1PBA85R474QYS590HPRP34TEWM.hic-1",
                    "function_name": "hic",
                    "function_signature": "",
                    "function_args": [
                        {
                            "hex": "0x0200000018112457edaa117b64365a905c10e4bfb2548236c565010101",
                            "repr": "0x112457edaa117b64365a905c10e4bfb2548236c565010101",
                            "name": "",
                            "type": "(buff 24)"
                        }
                    ]
                },
                "events": {
                    "stx": {
                        "transfer": 0,
                        "mint": 0,
                        "burn": 0
                    },
                    "ft": {
                        "transfer": 0,
                        "mint": 0,
                        "burn": 0
                    },
                    "nft": {
                        "transfer": 0,
                        "mint": 0,
                        "burn": 0
                    }
                },
                "postConditions": [],
                "txResult": {
                    "hex": "0x070c000000020272630c000000060163010000000000000000000000000000000001640100000000000000000000000000000000016903016f0100000000000000000000000000000000026f78010000000000000000000000000000000001700100000000000000000000000000000000027273070100000000000000000000000000000000",
                    "repr": "(ok (tuple (rc (tuple (c u0) (d u0) (i true) (o u0) (ox u0) (p u0))) (rs (ok u0))))"
                },
                "executionCostReadCount": "65",
                "executionCostReadLength": "293922",
                "executionCostRuntime": "293922",
                "executionCostWriteCount": "293922",
                "executionCostWriteLength": "0"
            },
            {
                "hash": "0xcf5e69967246e5fb60364a35f54aa15b3014570a11e90f9cea2033802691d18c",
                "transactionStatus": true,
                "blockNumber": "153061",
                "timestamp": "1717760439",
                "from": "SP8J8NZDN88QPS1PBA85R474QYS590HPRP34TEWM",
                "to": "SP8J8NZDN88QPS1PBA85R474QYS590HPRP34TEWM.hic-1",
                "value": "31105",
                "transactionType": "contract_call",
                "gas": null,
                "gasPrice": "31105",
                "input": null,
                "nonce": "12",
                "network": null,
                "contractCall": {
                    "contract_id": "SP8J8NZDN88QPS1PBA85R474QYS590HPRP34TEWM.hic-1",
                    "function_name": "hic",
                    "function_signature": "",
                    "function_args": [
                        {
                            "hex": "0x0200000018112457edaa117b64365a905c10e4bfb2548236c565010101",
                            "repr": "0x112457edaa117b64365a905c10e4bfb2548236c565010101",
                            "name": "",
                            "type": "(buff 24)"
                        }
                    ]
                },
                "events": {
                    "stx": {
                        "transfer": 0,
                        "mint": 0,
                        "burn": 0
                    },
                    "ft": {
                        "transfer": 0,
                        "mint": 0,
                        "burn": 0
                    },
                    "nft": {
                        "transfer": 0,
                        "mint": 0,
                        "burn": 0
                    }
                },
                "postConditions": [],
                "txResult": {
                    "hex": "0x070c000000020272630c000000060163010000000000000000000000000000000d016401000000000000000000000004a817c800016904016f0100000000000000000000000005de2503026f780100000000000000000000000005438a490170010000000000000000000000000000000002727308010000000000000000000000000055a359",
                    "repr": "(ok (tuple (rc (tuple (c u13) (d u20000000000) (i false) (o u98444547) (ox u88312393) (p u0))) (rs (err u5612377))))"
                },
                "executionCostReadCount": "1333",
                "executionCostReadLength": "526980",
                "executionCostRuntime": "526980",
                "executionCostWriteCount": "526980",
                "executionCostWriteLength": "1556"
            },
            {
                "hash": "0xf9de858f3133183f992b8c7635fd71817e2470e26e41b05f8c1d10d097711d5c",
                "transactionStatus": true,
                "blockNumber": "153057",
                "timestamp": "1717758784",
                "from": "SP8J8NZDN88QPS1PBA85R474QYS590HPRP34TEWM",
                "to": "SP8J8NZDN88QPS1PBA85R474QYS590HPRP34TEWM.hic-1",
                "value": "31105",
                "transactionType": "contract_call",
                "gas": null,
                "gasPrice": "31105",
                "input": null,
                "nonce": "11",
                "network": null,
                "contractCall": {
                    "contract_id": "SP8J8NZDN88QPS1PBA85R474QYS590HPRP34TEWM.hic-1",
                    "function_name": "hic",
                    "function_signature": "",
                    "function_args": [
                        {
                            "hex": "0x0200000018112457edaa117b64365a905c10e4bfb2548236c565010101",
                            "repr": "0x112457edaa117b64365a905c10e4bfb2548236c565010101",
                            "name": "",
                            "type": "(buff 24)"
                        }
                    ]
                },
                "events": {
                    "stx": {
                        "transfer": 0,
                        "mint": 0,
                        "burn": 0
                    },
                    "ft": {
                        "transfer": 0,
                        "mint": 0,
                        "burn": 0
                    },
                    "nft": {
                        "transfer": 0,
                        "mint": 0,
                        "burn": 0
                    }
                },
                "postConditions": [],
                "txResult": {
                    "hex": "0x070c000000020272630c000000060163010000000000000000000000000000000d01640100000000000000000000000ba43b7400016904016f0100000000000000000000000005c8407b026f7801000000000000000000000000216699fb017001000000000000000000000000000000000272730801000000000000000000000000002bc6bd",
                    "repr": "(ok (tuple (rc (tuple (c u13) (d u50000000000) (i false) (o u97009787) (ox u560372219) (p u0))) (rs (err u2868925))))"
                },
                "executionCostReadCount": "1333",
                "executionCostReadLength": "526980",
                "executionCostRuntime": "526980",
                "executionCostWriteCount": "526980",
                "executionCostWriteLength": "1556"
            },
            {
                "hash": "0x56dca14a756ae02a4603c9573220068dd5461d14a16424c30cd69d783daeb7d6",
                "transactionStatus": true,
                "blockNumber": "153055",
                "timestamp": "1717756738",
                "from": "SP8J8NZDN88QPS1PBA85R474QYS590HPRP34TEWM",
                "to": "SP8J8NZDN88QPS1PBA85R474QYS590HPRP34TEWM.hic-1",
                "value": "17625",
                "transactionType": "contract_call",
                "gas": null,
                "gasPrice": "17625",
                "input": null,
                "nonce": "10",
                "network": null,
                "contractCall": {
                    "contract_id": "SP8J8NZDN88QPS1PBA85R474QYS590HPRP34TEWM.hic-1",
                    "function_name": "hic",
                    "function_signature": "",
                    "function_args": [
                        {
                            "hex": "0x0200000018112457edaa117b64365a905c10e4bfb2548236c565010101",
                            "repr": "0x112457edaa117b64365a905c10e4bfb2548236c565010101",
                            "name": "",
                            "type": "(buff 24)"
                        }
                    ]
                },
                "events": {
                    "stx": {
                        "transfer": 0,
                        "mint": 0,
                        "burn": 0
                    },
                    "ft": {
                        "transfer": 0,
                        "mint": 0,
                        "burn": 0
                    },
                    "nft": {
                        "transfer": 0,
                        "mint": 0,
                        "burn": 0
                    }
                },
                "postConditions": [],
                "txResult": {
                    "hex": "0x070c000000020272630c000000060163010000000000000000000000000000000d01640100000000000000000000000ba43b7400016904016f0100000000000000000000000005be7c2f026f7801000000000000000000000000352ae7d00170010000000000000000000000000000000002727308010000000000000000000000000017fe1b",
                    "repr": "(ok (tuple (rc (tuple (c u13) (d u50000000000) (i false) (o u96369711) (ox u892004304) (p u0))) (rs (err u1572379))))"
                },
                "executionCostReadCount": "1333",
                "executionCostReadLength": "526980",
                "executionCostRuntime": "526980",
                "executionCostWriteCount": "526980",
                "executionCostWriteLength": "1556"
            },
            {
                "hash": "0xe8b1ec4d357f160b895111aa2c0d77a054a573f8dcc1fa44992abcf26d4fb990",
                "transactionStatus": true,
                "blockNumber": "153053",
                "timestamp": "1717754654",
                "from": "SP8J8NZDN88QPS1PBA85R474QYS590HPRP34TEWM",
                "to": "SP8J8NZDN88QPS1PBA85R474QYS590HPRP34TEWM.hic-1",
                "value": "31105",
                "transactionType": "contract_call",
                "gas": null,
                "gasPrice": "31105",
                "input": null,
                "nonce": "9",
                "network": null,
                "contractCall": {
                    "contract_id": "SP8J8NZDN88QPS1PBA85R474QYS590HPRP34TEWM.hic-1",
                    "function_name": "hic",
                    "function_signature": "",
                    "function_args": [
                        {
                            "hex": "0x0200000018112457edaa117b64365a905c10e4bfb2548236c565010101",
                            "repr": "0x112457edaa117b64365a905c10e4bfb2548236c565010101",
                            "name": "",
                            "type": "(buff 24)"
                        }
                    ]
                },
                "events": {
                    "stx": {
                        "transfer": 0,
                        "mint": 0,
                        "burn": 0
                    },
                    "ft": {
                        "transfer": 0,
                        "mint": 0,
                        "burn": 0
                    },
                    "nft": {
                        "transfer": 0,
                        "mint": 0,
                        "burn": 0
                    }
                },
                "postConditions": [],
                "txResult": {
                    "hex": "0x070c000000020272630c000000060163010000000000000000000000000000000d016401000000000000000000000006fc23ac00016904016f0100000000000000000000000005d3ad88026f78010000000000000000000000000fc1f93901700100000000000000000000000000000000027273080100000000000000000000000000429f01",
                    "repr": "(ok (tuple (rc (tuple (c u13) (d u30000000000) (i false) (o u97758600) (ox u264370489) (p u0))) (rs (err u4366081))))"
                },
                "executionCostReadCount": "1333",
                "executionCostReadLength": "526980",
                "executionCostRuntime": "526980",
                "executionCostWriteCount": "526980",
                "executionCostWriteLength": "1556"
            },
            {
                "hash": "0x4b024f6bbff04f99ce4dd8f483d033c870250f0dcbc18cb44a5e6611d6a441d5",
                "transactionStatus": true,
                "blockNumber": "153041",
                "timestamp": "1717747586",
                "from": "SP8J8NZDN88QPS1PBA85R474QYS590HPRP34TEWM",
                "to": "SP8J8NZDN88QPS1PBA85R474QYS590HPRP34TEWM.hic-1",
                "value": "31105",
                "transactionType": "contract_call",
                "gas": null,
                "gasPrice": "31105",
                "input": null,
                "nonce": "8",
                "network": null,
                "contractCall": {
                    "contract_id": "SP8J8NZDN88QPS1PBA85R474QYS590HPRP34TEWM.hic-1",
                    "function_name": "hic",
                    "function_signature": "",
                    "function_args": [
                        {
                            "hex": "0x0200000018112457edaa117b64365a905c10e4bfb2548236c565010101",
                            "repr": "0x112457edaa117b64365a905c10e4bfb2548236c565010101",
                            "name": "",
                            "type": "(buff 24)"
                        }
                    ]
                },
                "events": {
                    "stx": {
                        "transfer": 0,
                        "mint": 0,
                        "burn": 0
                    },
                    "ft": {
                        "transfer": 0,
                        "mint": 0,
                        "burn": 0
                    },
                    "nft": {
                        "transfer": 0,
                        "mint": 0,
                        "burn": 0
                    }
                },
                "postConditions": [],
                "txResult": {
                    "hex": "0x070c000000020272630c000000060163010000000000000000000000000000000d01640100000000000000000000000ba43b7400016904016f0100000000000000000000000005bebdca026f780100000000000000000000000034a6e584017001000000000000000000000000000000000272730801000000000000000000000000001885c8",
                    "repr": "(ok (tuple (rc (tuple (c u13) (d u50000000000) (i false) (o u96386506) (ox u883352964) (p u0))) (rs (err u1607112))))"
                },
                "executionCostReadCount": "1333",
                "executionCostReadLength": "526980",
                "executionCostRuntime": "526980",
                "executionCostWriteCount": "526980",
                "executionCostWriteLength": "1556"
            },
            {
                "hash": "0x7af0b4c67d142c758bec566f76021e8c6e5010fa961f0cd860b7cba31977e730",
                "transactionStatus": true,
                "blockNumber": "153041",
                "timestamp": "1717747586",
                "from": "SP8J8NZDN88QPS1PBA85R474QYS590HPRP34TEWM",
                "to": "SP8J8NZDN88QPS1PBA85R474QYS590HPRP34TEWM.hic-1",
                "value": "199236765",
                "transactionType": "contract_call",
                "gas": null,
                "gasPrice": "31105",
                "input": null,
                "nonce": "7",
                "network": null,
                "contractCall": {
                    "contract_id": "SP8J8NZDN88QPS1PBA85R474QYS590HPRP34TEWM.hic-1",
                    "function_name": "hic",
                    "function_signature": "",
                    "function_args": [
                        {
                            "hex": "0x0200000018112457edaa117b64365a905c10e4bfb2548236c565010101",
                            "repr": "0x112457edaa117b64365a905c10e4bfb2548236c565010101",
                            "name": "",
                            "type": "(buff 24)"
                        }
                    ]
                },
                "events": {
                    "stx": {
                        "transfer": 2,
                        "mint": 0,
                        "burn": 0
                    },
                    "ft": {
                        "transfer": 6,
                        "mint": 1,
                        "burn": 0
                    },
                    "nft": {
                        "transfer": 0,
                        "mint": 0,
                        "burn": 0
                    }
                },
                "postConditions": [],
                "txResult": {
                    "hex": "0x070c000000020272630c000000060163010000000000000000000000000000000d0164010000000000000000000000104c533c00016904016f0100000000000000000000000005af9633026f78010000000000000000000000005efcab2101700100000000000000000000000000000000027273070100000000000000000000000000077ad8",
                    "repr": "(ok (tuple (rc (tuple (c u13) (d u70000000000) (i false) (o u95393331) (ox u1593617185) (p u0))) (rs (ok u490200))))"
                },
                "executionCostReadCount": "1331",
                "executionCostReadLength": "526978",
                "executionCostRuntime": "526978",
                "executionCostWriteCount": "526978",
                "executionCostWriteLength": "1536"
            },
            {
                "hash": "0x57930fbbdbd5b5a0f4a717358f62ff50b693c8a8b143459141a37ba86c639630",
                "transactionStatus": true,
                "blockNumber": "153036",
                "timestamp": "1717747540",
                "from": "SP8J8NZDN88QPS1PBA85R474QYS590HPRP34TEWM",
                "to": "SP8J8NZDN88QPS1PBA85R474QYS590HPRP34TEWM.hic-1",
                "value": "31105",
                "transactionType": "contract_call",
                "gas": null,
                "gasPrice": "31105",
                "input": null,
                "nonce": "6",
                "network": null,
                "contractCall": {
                    "contract_id": "SP8J8NZDN88QPS1PBA85R474QYS590HPRP34TEWM.hic-1",
                    "function_name": "hic",
                    "function_signature": "",
                    "function_args": [
                        {
                            "hex": "0x0200000018112457edaa117b64365a905c10e4bfb2548236c565010101",
                            "repr": "0x112457edaa117b64365a905c10e4bfb2548236c565010101",
                            "name": "",
                            "type": "(buff 24)"
                        }
                    ]
                },
                "events": {
                    "stx": {
                        "transfer": 0,
                        "mint": 0,
                        "burn": 0
                    },
                    "ft": {
                        "transfer": 0,
                        "mint": 0,
                        "burn": 0
                    },
                    "nft": {
                        "transfer": 0,
                        "mint": 0,
                        "burn": 0
                    }
                },
                "postConditions": [],
                "txResult": {
                    "hex": "0x070c000000020272630c000000060163010000000000000000000000000000000d01640100000000000000000000000ba43b7400016904016f0100000000000000000000000005cad94b026f78010000000000000000000000001c5fc75e0170010000000000000000000000000000000002727308010000000000000000000000000030253e",
                    "repr": "(ok (tuple (rc (tuple (c u13) (d u50000000000) (i false) (o u97179979) (ox u476039006) (p u0))) (rs (err u3155262))))"
                },
                "executionCostReadCount": "1333",
                "executionCostReadLength": "526980",
                "executionCostRuntime": "526980",
                "executionCostWriteCount": "526980",
                "executionCostWriteLength": "1556"
            },
            {
                "hash": "0xba3eebee38e26de7e7fba127fafc4ca3b2e5e15ba7e75d3ff9d8da22efa98677",
                "transactionStatus": true,
                "blockNumber": "153030",
                "timestamp": "1717747462",
                "from": "SP8J8NZDN88QPS1PBA85R474QYS590HPRP34TEWM",
                "to": "SP8J8NZDN88QPS1PBA85R474QYS590HPRP34TEWM.hic-1",
                "value": "31105",
                "transactionType": "contract_call",
                "gas": null,
                "gasPrice": "31105",
                "input": null,
                "nonce": "5",
                "network": null,
                "contractCall": {
                    "contract_id": "SP8J8NZDN88QPS1PBA85R474QYS590HPRP34TEWM.hic-1",
                    "function_name": "hic",
                    "function_signature": "",
                    "function_args": [
                        {
                            "hex": "0x0200000018c5c530bf2ea4b29e1b7f3dc683043527b5cf03c465010101",
                            "repr": "0xc5c530bf2ea4b29e1b7f3dc683043527b5cf03c465010101",
                            "name": "",
                            "type": "(buff 24)"
                        }
                    ]
                },
                "events": {
                    "stx": {
                        "transfer": 0,
                        "mint": 0,
                        "burn": 0
                    },
                    "ft": {
                        "transfer": 0,
                        "mint": 0,
                        "burn": 0
                    },
                    "nft": {
                        "transfer": 0,
                        "mint": 0,
                        "burn": 0
                    }
                },
                "postConditions": [],
                "txResult": {
                    "hex": "0x070c000000020272630c000000060163010000000000000000000000000000000d01640100000000000000000000000ba43b7400016904016f0100000000000000000000000005c5488d026f7801000000000000000000000000275504ee01700100000000000000000000000000000000027273080100000000000000000000000000250fef",
                    "repr": "(ok (tuple (rc (tuple (c u13) (d u50000000000) (i false) (o u96815245) (ox u659883246) (p u0))) (rs (err u2428911))))"
                },
                "executionCostReadCount": "1335",
                "executionCostReadLength": "527000",
                "executionCostRuntime": "527000",
                "executionCostWriteCount": "527000",
                "executionCostWriteLength": "1556"
            },
            {
                "hash": "0xa4ccec5dbef61ac87b0c8f7e71bd333c87b1044d7649805029b31f126249a764",
                "transactionStatus": true,
                "blockNumber": "153029",
                "timestamp": "1717747446",
                "from": "SP8J8NZDN88QPS1PBA85R474QYS590HPRP34TEWM",
                "to": "SP8J8NZDN88QPS1PBA85R474QYS590HPRP34TEWM.hic-1",
                "value": "17115",
                "transactionType": "contract_call",
                "gas": null,
                "gasPrice": "17115",
                "input": null,
                "nonce": "4",
                "network": null,
                "contractCall": {
                    "contract_id": "SP8J8NZDN88QPS1PBA85R474QYS590HPRP34TEWM.hic-1",
                    "function_name": "hic",
                    "function_signature": "",
                    "function_args": [
                        {
                            "hex": "0x0200000018c5c530bf2ea4b29e1b7f3dc683043527b5cf03c465010101",
                            "repr": "0xc5c530bf2ea4b29e1b7f3dc683043527b5cf03c465010101",
                            "name": "",
                            "type": "(buff 24)"
                        }
                    ]
                },
                "events": {
                    "stx": {
                        "transfer": 0,
                        "mint": 0,
                        "burn": 0
                    },
                    "ft": {
                        "transfer": 0,
                        "mint": 0,
                        "burn": 0
                    },
                    "nft": {
                        "transfer": 0,
                        "mint": 0,
                        "burn": 0
                    }
                },
                "postConditions": [],
                "txResult": {
                    "hex": "0x070c000000020272630c000000060163010000000000000000000000000000000d01640100000000000000000000000ba43b7400016904016f0100000000000000000000000005c71572026f780100000000000000000000000023fe278c01700100000000000000000000000000000000027273080100000000000000000000000000278633",
                    "repr": "(ok (tuple (rc (tuple (c u13) (d u50000000000) (i false) (o u96933234) (ox u603858828) (p u0))) (rs (err u2590259))))"
                },
                "executionCostReadCount": "1333",
                "executionCostReadLength": "526980",
                "executionCostRuntime": "526980",
                "executionCostWriteCount": "526980",
                "executionCostWriteLength": "1556"
            },
            {
                "hash": "0xda7b63d30c71034bdd796c887e2f5d7011f84a7c1e5f7d357fe502e3573fa8bf",
                "transactionStatus": true,
                "blockNumber": "153028",
                "timestamp": "1717747431",
                "from": "SP8J8NZDN88QPS1PBA85R474QYS590HPRP34TEWM",
                "to": "SP8J8NZDN88QPS1PBA85R474QYS590HPRP34TEWM.hic-1",
                "value": "12966",
                "transactionType": "contract_call",
                "gas": null,
                "gasPrice": "12966",
                "input": null,
                "nonce": "3",
                "network": null,
                "contractCall": {
                    "contract_id": "SP8J8NZDN88QPS1PBA85R474QYS590HPRP34TEWM.hic-1",
                    "function_name": "hic",
                    "function_signature": "",
                    "function_args": [
                        {
                            "hex": "0x0200000018c5c530bf2ea4b29e1b7f3dc683043527b5cf03c465010101",
                            "repr": "0xc5c530bf2ea4b29e1b7f3dc683043527b5cf03c465010101",
                            "name": "",
                            "type": "(buff 24)"
                        }
                    ]
                },
                "events": {
                    "stx": {
                        "transfer": 0,
                        "mint": 0,
                        "burn": 0
                    },
                    "ft": {
                        "transfer": 0,
                        "mint": 0,
                        "burn": 0
                    },
                    "nft": {
                        "transfer": 0,
                        "mint": 0,
                        "burn": 0
                    }
                },
                "postConditions": [],
                "txResult": {
                    "hex": "0x070c000000020272630c000000060163010000000000000000000000000000000d01640100000000000000000000000ba43b7400016904016f0100000000000000000000000005c71572026f780100000000000000000000000023fe278c0170010000000000000000000000000000000002727308010000000000000000000000000027876a",
                    "repr": "(ok (tuple (rc (tuple (c u13) (d u50000000000) (i false) (o u96933234) (ox u603858828) (p u0))) (rs (err u2590570))))"
                },
                "executionCostReadCount": "1333",
                "executionCostReadLength": "526980",
                "executionCostRuntime": "526980",
                "executionCostWriteCount": "526980",
                "executionCostWriteLength": "1556"
            },
            {
                "hash": "0x852fd5344774a43bda1d1e4310096de3981dadc522a54384e1db7257f95fdacb",
                "transactionStatus": true,
                "blockNumber": "153022",
                "timestamp": "1717736077",
                "from": "SP8J8NZDN88QPS1PBA85R474QYS590HPRP34TEWM",
                "to": "SP8J8NZDN88QPS1PBA85R474QYS590HPRP34TEWM.hic-1",
                "value": "12414",
                "transactionType": "contract_call",
                "gas": null,
                "gasPrice": "12414",
                "input": null,
                "nonce": "2",
                "network": null,
                "contractCall": {
                    "contract_id": "SP8J8NZDN88QPS1PBA85R474QYS590HPRP34TEWM.hic-1",
                    "function_name": "hic",
                    "function_signature": "",
                    "function_args": [
                        {
                            "hex": "0x0200000018c5c530bf2ea4b29e1b7f3dc683043527b5cf03c465010101",
                            "repr": "0xc5c530bf2ea4b29e1b7f3dc683043527b5cf03c465010101",
                            "name": "",
                            "type": "(buff 24)"
                        }
                    ]
                },
                "events": {
                    "stx": {
                        "transfer": 0,
                        "mint": 0,
                        "burn": 0
                    },
                    "ft": {
                        "transfer": 0,
                        "mint": 0,
                        "burn": 0
                    },
                    "nft": {
                        "transfer": 0,
                        "mint": 0,
                        "burn": 0
                    }
                },
                "postConditions": [],
                "txResult": {
                    "hex": "0x070c000000020272630c000000060163010000000000000000000000000000000001640100000000000000000000000000000000016903016f0100000000000000000000000000000000026f78010000000000000000000000000000000001700100000000000000000000000000000000027273070100000000000000000000000000000000",
                    "repr": "(ok (tuple (rc (tuple (c u0) (d u0) (i true) (o u0) (ox u0) (p u0))) (rs (ok u0))))"
                },
                "executionCostReadCount": "65",
                "executionCostReadLength": "293922",
                "executionCostRuntime": "293922",
                "executionCostWriteCount": "293922",
                "executionCostWriteLength": "0"
            },
            {
                "hash": "0xd4905959ea56fe5605acaf87c8265407a0e907e89534c3808ea5a2f8e6ddaaf0",
                "transactionStatus": true,
                "blockNumber": "153022",
                "timestamp": "1717736077",
                "from": "SP8J8NZDN88QPS1PBA85R474QYS590HPRP34TEWM",
                "to": "SP8J8NZDN88QPS1PBA85R474QYS590HPRP34TEWM.hic-1",
                "value": "17625",
                "transactionType": "contract_call",
                "gas": null,
                "gasPrice": "17625",
                "input": null,
                "nonce": "1",
                "network": null,
                "contractCall": {
                    "contract_id": "SP8J8NZDN88QPS1PBA85R474QYS590HPRP34TEWM.hic-1",
                    "function_name": "hic",
                    "function_signature": "",
                    "function_args": [
                        {
                            "hex": "0x0200000018c5c530bf2ea4b29e1b7f3dc683043527b5cf03c465010101",
                            "repr": "0xc5c530bf2ea4b29e1b7f3dc683043527b5cf03c465010101",
                            "name": "",
                            "type": "(buff 24)"
                        }
                    ]
                },
                "events": {
                    "stx": {
                        "transfer": 0,
                        "mint": 0,
                        "burn": 0
                    },
                    "ft": {
                        "transfer": 0,
                        "mint": 0,
                        "burn": 0
                    },
                    "nft": {
                        "transfer": 0,
                        "mint": 0,
                        "burn": 0
                    }
                },
                "postConditions": [],
                "txResult": {
                    "hex": "0x070c000000020272630c000000060163010000000000000000000000000000000d0164010000000000000000000000104c533c00016904016f0100000000000000000000000005bc158d026f78010000000000000000000000003b670de0017001000000000000000000000000000000000272730801000000000000000000000000001134a3",
                    "repr": "(ok (tuple (rc (tuple (c u13) (d u70000000000) (i false) (o u96212365) (ox u996609504) (p u0))) (rs (err u1127587))))"
                },
                "executionCostReadCount": "1333",
                "executionCostReadLength": "526980",
                "executionCostRuntime": "526980",
                "executionCostWriteCount": "526980",
                "executionCostWriteLength": "1556"
            },
            {
                "hash": "0xf631ad8448878bd01998eebe8465f5dc6665beadb403f4d56c9a486ec7dbd33c",
                "transactionStatus": true,
                "blockNumber": "153017",
                "timestamp": "1717731332",
                "from": "SP8J8NZDN88QPS1PBA85R474QYS590HPRP34TEWM",
                "to": null,
                "value": "1100000",
                "transactionType": "smart_contract",
                "gas": null,
                "gasPrice": "1100000",
                "input": null,
                "nonce": "0",
                "network": null,
                "events": {
                    "stx": {
                        "transfer": 0,
                        "mint": 0,
                        "burn": 0
                    },
                    "ft": {
                        "transfer": 0,
                        "mint": 0,
                        "burn": 0
                    },
                    "nft": {
                        "transfer": 0,
                        "mint": 0,
                        "burn": 0
                    }
                },
                "postConditions": [],
                "txResult": {
                    "hex": "0x0703",
                    "repr": "(ok true)"
                },
                "executionCostReadCount": "258",
                "executionCostReadLength": "11152",
                "executionCostRuntime": "11152",
                "executionCostWriteCount": "11152",
                "executionCostWriteLength": "31066"
            },
            {
                "hash": "0x2d3f305c8d5d40ddccc85a0bbca0e8f5ba82046d215a017fe609604f2bf3bcff",
                "transactionStatus": true,
                "blockNumber": "153015",
                "timestamp": "1717730365",
                "from": "SP2MQ1M6REE7JFQJRFH908H3D8BH7HS1J0WX1D1D7",
                "to": "SP8J8NZDN88QPS1PBA85R474QYS590HPRP34TEWM",
                "value": "200000000",
                "transactionType": "token_transfer",
                "gas": null,
                "gasPrice": "14914",
                "input": null,
                "nonce": "3072",
                "network": null,
                "tokenTransfer": {
                    "recipient_address": "SP8J8NZDN88QPS1PBA85R474QYS590HPRP34TEWM",
                    "amount": "200000000",
                    "memo": "0x00000000000000000000000000000000000000000000000000000000000000000000"
                },
                "events": {
                    "stx": {
                        "transfer": 1,
                        "mint": 0,
                        "burn": 0
                    },
                    "ft": {
                        "transfer": 0,
                        "mint": 0,
                        "burn": 0
                    },
                    "nft": {
                        "transfer": 0,
                        "mint": 0,
                        "burn": 0
                    }
                },
                "postConditions": [],
                "txResult": {
                    "hex": "0x0703",
                    "repr": "(ok true)"
                },
                "executionCostReadCount": "0",
                "executionCostReadLength": "0",
                "executionCostRuntime": "0",
                "executionCostWriteCount": "0",
                "executionCostWriteLength": "0"
            }
        ]
    }
}
```

{% endtab %}
{% endtabs %}

### /portfolio

#### Get the comprehensive information about the assets/ tokens owned by a user.

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

#### Query Parameters

| Name                                      | Type    | Description                                                                   |
| ----------------------------------------- | ------- | ----------------------------------------------------------------------------- |
| rpc                                       | String  | Remote procedural call URL.                                                   |
| chainId                                   | String  | Refer to the [Chain ID ](/ids/chain-ids)page for details.                     |
| chainSymbol                               | String  | Refer to the [Chain ID ](/ids/chain-ids)page for details.                     |
| address<mark style="color:red;">\*</mark> | String  | Public addess of the user.                                                    |
| assetType                                 | String  | `fungible`/`nonFungible` standard choice. By default, `all`.                  |
| availableOnly                             | Boolean | <p>By default, true. <br>If true, tokens with balance > 0 will be listed.</p> |

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

```url
https://api.expand.network/chain/portfolio?chainId=1700&address=SM3WXM7T41Q3WD7A1JW9RW31VHG2PA9PJTQCMPBX7&assetType=all&availableOnly=false
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "native": "14291999518739",
        "stxTokens": [
            {
                "address": "SM26NBC8SFHNW4P1Y4DFH27974P56WN86C92HPEHH.token-lqstx",
                "symbol": "lqstx",
                "balance": "497865331348",
                "assetType": "fungible"
            },
            {
                "address": "SP1EJYSM3PDXCFKPY09CM2M13FPS26YVTCAH0R95E.TardlexLabsTokenContract",
                "symbol": "TardlexLabs",
                "balance": "5000000000",
                "assetType": "fungible"
            },
            {
                "address": "SP1H82REZA4A4X007YTSF47PD8DPYCEHR6F8NCBTN.vladmir-puton",
                "symbol": "PUTON",
                "balance": "1000000000000",
                "assetType": "fungible"
            },
            {
                "address": "SP1TWRN18FMT7PFJ1511BTRAFQ8E3A1EQ7BNXZKY.yachtclub",
                "symbol": "Yacht",
                "balance": "10000000",
                "assetType": "fungible"
            },
            {
                "address": "SP26S1RM13VP3FAFK0BEM4MXJ611JT1AQZZ89A1CK.baby-welsh",
                "symbol": "bbw",
                "balance": "20000000000",
                "assetType": "fungible"
            },
            {
                "address": "SP2S3EAXSRJBVQ1GQSKTM1D14C1ED8KG9H43KF0FC.Fight",
                "symbol": "Fight",
                "balance": "1350000000",
                "assetType": "fungible"
            },
            {
                "address": "SP32AEEF6WW5Y0NMJ1S8SBSZDAY8R5J32NBZFPKKZ.nope",
                "symbol": "NOT",
                "balance": "10000",
                "assetType": "fungible"
            },
            {
                "address": "SP32RXJSH9DX4JGMBSZG0RQS09RG2MHBCGK4H8A7D.clokten",
                "symbol": "CLOK10",
                "balance": "10000000",
                "assetType": "fungible"
            },
            {
                "address": "SP32Z0ZT2KS49B3ERXNG002NWTDC9BA2SYT1EPSS0.zststx",
                "symbol": "zststx",
                "balance": "12400000000",
                "assetType": "fungible"
            },
            {
                "address": "SP4SZE494VC2YC5JYG7AYFQ44F5Q4PYV7DVMDPBG.ststx-token",
                "symbol": "ststx",
                "balance": "194370267",
                "assetType": "fungible"
            },
            {
                "address": "SPAE1DZE3HPH909EARZ0FYY8KBR9JN7J3PE2G8QG.mojo",
                "symbol": "MOJO",
                "balance": "50000000000",
                "assetType": "fungible"
            },
            {
                "address": "SPK5HH9QVYDNXNDCFH6W5AMRSR5K83ZMT4GPPK7M.scooby-doo",
                "symbol": "SCOOBY",
                "balance": "155000000",
                "assetType": "fungible"
            }
        ]
    }
}
```

{% endtab %}
{% endtabs %}

### /getevents

#### This endpoint retrieves a list of events that a given contractAddress has emitted.

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

#### Query Parameters

| Name                                              | Type    | Description                                                                    |
| ------------------------------------------------- | ------- | ------------------------------------------------------------------------------ |
| rpc                                               | String  | Remote procedural call URL.                                                    |
| chainId                                           | String  | Refer to the [Chain ID ](/ids/chain-ids)page for details.                      |
| chainSymbol                                       | String  | Refer to the [Chain ID ](/ids/chain-ids)page for details.                      |
| contractAddress<mark style="color:red;">\*</mark> | String  | Public addess of the user.                                                     |
| sortOrder                                         | String  | Comma-separated value of tokens to get value of. Maximum 10 at a time.         |
| pageToken                                         | Boolean | <p>By default, false. <br>If true, tokens with balance > 0 will be listed.</p> |

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

```url
https://api.expand.network/chain/getevents?chainId=1700&contractAddress=SP6P4EJF0VG8V0RB3TQQKJBHDQKEF6NVRD1KZE3C.satoshibles&sortOrder=desc&pageToken=1
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "currentPage": "1",
        "events": [
            {
                "event_index": "0",
                "event_type": "smart_contract_log",
                "tx_id": "0x43732865f6cfe42c2e07fa34392e6c3c347a82b732b0f4c5f3d96135978ef331",
                "contract_log": {
                    "contract_id": "SP6P4EJF0VG8V0RB3TQQKJBHDQKEF6NVRD1KZE3C.satoshibles",
                    "topic": "print",
                    "value": {
                        "hex": "0x0c0000000401610d0000000c6c6973742d696e2d757374780a636f6d6d697373696f6e06162bcf9762d5b90bc36dc1b4759b1727690f92ddd31d7374786e66742d7361746f736869626c65732d636f6d6d697373696f6e026964010000000000000000000000000000088c057072696365010000000000000000000000002cfc1136",
                        "repr": "(tuple (a \"list-in-ustx\") (commission 'SPNWZ5V2TPWGQGVDR6T7B6RQ4XMGZ4PXTEE0VQ0S.stxnft-satoshibles-commission) (id u2188) (price u754716982))"
                    }
                }
            },
            {
                "event_index": "0",
                "event_type": "smart_contract_log",
                "tx_id": "0xc54bed50f68f3e500954cf274e7afde5581e42fc1b88661e12c31ac2dbe592ee",
                "contract_log": {
                    "contract_id": "SP6P4EJF0VG8V0RB3TQQKJBHDQKEF6NVRD1KZE3C.satoshibles",
                    "topic": "print",
                    "value": {
                        "hex": "0x0c0000000401610d0000000c6c6973742d696e2d757374780a636f6d6d697373696f6e06162bcf9762d5b90bc36dc1b4759b1727690f92ddd31d7374786e66742d7361746f736869626c65732d636f6d6d697373696f6e02696401000000000000000000000000000000af05707269636501000000000000000000000000041ad755",
                        "repr": "(tuple (a \"list-in-ustx\") (commission 'SPNWZ5V2TPWGQGVDR6T7B6RQ4XMGZ4PXTEE0VQ0S.stxnft-satoshibles-commission) (id u175) (price u68867925))"
                    }
                }
            },
            {
                "event_index": "0",
                "event_type": "smart_contract_log",
                "tx_id": "0x5857ec592b38ec48b114923f62b6d821867224cb76c546ff889d384040f3233c",
                "contract_log": {
                    "contract_id": "SP6P4EJF0VG8V0RB3TQQKJBHDQKEF6NVRD1KZE3C.satoshibles",
                    "topic": "print",
                    "value": {
                        "hex": "0x0c0000000401610d0000000c6c6973742d696e2d757374780a636f6d6d697373696f6e06162bcf9762d5b90bc36dc1b4759b1727690f92ddd31d7374786e66742d7361746f736869626c65732d636f6d6d697373696f6e0269640100000000000000000000000000000f270570726963650100000000000000000000000003efa7e8",
                        "repr": "(tuple (a \"list-in-ustx\") (commission 'SPNWZ5V2TPWGQGVDR6T7B6RQ4XMGZ4PXTEE0VQ0S.stxnft-satoshibles-commission) (id u3879) (price u66037736))"
                    }
                }
            },
            {
                "event_index": "0",
                "event_type": "smart_contract_log",
                "tx_id": "0x02be54f6cb5ef722ed46395d65efc71eeb6d0cea94dff162ab69a05236a19c35",
                "contract_log": {
                    "contract_id": "SP6P4EJF0VG8V0RB3TQQKJBHDQKEF6NVRD1KZE3C.satoshibles",
                    "topic": "print",
                    "value": {
                        "hex": "0x0c0000000206616374696f6e0d0000000e756e6c6973742d696e2d7573747802696401000000000000000000000000000004a6",
                        "repr": "(tuple (action \"unlist-in-ustx\") (id u1190))"
                    }
                }
            },
            {
                "event_index": "0",
                "event_type": "smart_contract_log",
                "tx_id": "0x60d6f0e1c0ee494b0c98010abf0029005f186cffe8e1162f9dfb99b9baf1a7b5",
                "contract_log": {
                    "contract_id": "SP6P4EJF0VG8V0RB3TQQKJBHDQKEF6NVRD1KZE3C.satoshibles",
                    "topic": "print",
                    "value": {
                        "hex": "0x0c0000000401610d0000000c6c6973742d696e2d757374780a636f6d6d697373696f6e06162bcf9762d5b90bc36dc1b4759b1727690f92ddd31d7374786e66742d7361746f736869626c65732d636f6d6d697373696f6e02696401000000000000000000000000000000af05707269636501000000000000000000000000049c659b",
                        "repr": "(tuple (a \"list-in-ustx\") (commission 'SPNWZ5V2TPWGQGVDR6T7B6RQ4XMGZ4PXTEE0VQ0S.stxnft-satoshibles-commission) (id u175) (price u77358491))"
                    }
                }
            },
            {
                "event_index": "0",
                "event_type": "smart_contract_log",
                "tx_id": "0xae1a500074354e0c95698e00a5c45412799e3af117f21a24f67b9c626f314036",
                "contract_log": {
                    "contract_id": "SP6P4EJF0VG8V0RB3TQQKJBHDQKEF6NVRD1KZE3C.satoshibles",
                    "topic": "print",
                    "value": {
                        "hex": "0x0c0000000206616374696f6e0d0000000e756e6c6973742d696e2d7573747802696401000000000000000000000000000011bb",
                        "repr": "(tuple (action \"unlist-in-ustx\") (id u4539))"
                    }
                }
            },
            {
                "event_index": "0",
                "event_type": "smart_contract_log",
                "tx_id": "0xfc714ca882b8643c7b60794b9c4c7ed535d1cbbcbe37f551938d8e86c3efbfd8",
                "contract_log": {
                    "contract_id": "SP6P4EJF0VG8V0RB3TQQKJBHDQKEF6NVRD1KZE3C.satoshibles",
                    "topic": "print",
                    "value": {
                        "hex": "0x0c0000000401610d0000000c6c6973742d696e2d757374780a636f6d6d697373696f6e06162bcf9762d5b90bc36dc1b4759b1727690f92ddd31d7374786e66742d7361746f736869626c65732d636f6d6d697373696f6e0269640100000000000000000000000000000f2705707269636501000000000000000000000000047f9b53",
                        "repr": "(tuple (a \"list-in-ustx\") (commission 'SPNWZ5V2TPWGQGVDR6T7B6RQ4XMGZ4PXTEE0VQ0S.stxnft-satoshibles-commission) (id u3879) (price u75471699))"
                    }
                }
            },
            {
                "event_index": "0",
                "event_type": "smart_contract_log",
                "tx_id": "0xe018bb27881e5bf7909fe8e06a6b0627a6592e9f6549189cd5b7eef04e07df8c",
                "contract_log": {
                    "contract_id": "SP6P4EJF0VG8V0RB3TQQKJBHDQKEF6NVRD1KZE3C.satoshibles",
                    "topic": "print",
                    "value": {
                        "hex": "0x0c0000000401610d0000000c6c6973742d696e2d757374780a636f6d6d697373696f6e06162bcf9762d5b90bc36dc1b4759b1727690f92ddd31d7374786e66742d7361746f736869626c65732d636f6d6d697373696f6e02696401000000000000000000000000000010000570726963650100000000000000000000000005012999",
                        "repr": "(tuple (a \"list-in-ustx\") (commission 'SPNWZ5V2TPWGQGVDR6T7B6RQ4XMGZ4PXTEE0VQ0S.stxnft-satoshibles-commission) (id u4096) (price u83962265))"
                    }
                }
            },
            {
                "event_index": "0",
                "event_type": "smart_contract_log",
                "tx_id": "0x9f5472e4f682e2f2bde73d3d662dcdf3ea49c00835f42b3f470e076ed65c6470",
                "contract_log": {
                    "contract_id": "SP6P4EJF0VG8V0RB3TQQKJBHDQKEF6NVRD1KZE3C.satoshibles",
                    "topic": "print",
                    "value": {
                        "hex": "0x0c0000000401610d0000000c6c6973742d696e2d757374780a636f6d6d697373696f6e06162bcf9762d5b90bc36dc1b4759b1727690f92ddd31d7374786e66742d7361746f736869626c65732d636f6d6d697373696f6e02696401000000000000000000000000000001910570726963650100000000000000000000000005012999",
                        "repr": "(tuple (a \"list-in-ustx\") (commission 'SPNWZ5V2TPWGQGVDR6T7B6RQ4XMGZ4PXTEE0VQ0S.stxnft-satoshibles-commission) (id u401) (price u83962265))"
                    }
                }
            },
            {
                "event_index": "0",
                "event_type": "smart_contract_log",
                "tx_id": "0xc042e2654375369eb11b8864d440c9f5af342e2f2efed3c858c90e0ccd9d4ec5",
                "contract_log": {
                    "contract_id": "SP6P4EJF0VG8V0RB3TQQKJBHDQKEF6NVRD1KZE3C.satoshibles",
                    "topic": "print",
                    "value": {
                        "hex": "0x0c0000000401610d0000000c6c6973742d696e2d757374780a636f6d6d697373696f6e06162bcf9762d5b90bc36dc1b4759b1727690f92ddd31d7374786e66742d7361746f736869626c65732d636f6d6d697373696f6e02696401000000000000000000000000000005d00570726963650100000000000000000000000005012999",
                        "repr": "(tuple (a \"list-in-ustx\") (commission 'SPNWZ5V2TPWGQGVDR6T7B6RQ4XMGZ4PXTEE0VQ0S.stxnft-satoshibles-commission) (id u1488) (price u83962265))"
                    }
                }
            },
            {
                "event_index": "0",
                "event_type": "smart_contract_log",
                "tx_id": "0x37094c863a5b852e64a0cbf6a348c2d40741444c9478cee6ab5cd8da60f232c2",
                "contract_log": {
                    "contract_id": "SP6P4EJF0VG8V0RB3TQQKJBHDQKEF6NVRD1KZE3C.satoshibles",
                    "topic": "print",
                    "value": {
                        "hex": "0x0c0000000401610d0000000c6c6973742d696e2d757374780a636f6d6d697373696f6e06162bcf9762d5b90bc36dc1b4759b1727690f92ddd31d7374786e66742d7361746f736869626c65732d636f6d6d697373696f6e026964010000000000000000000000000000128a0570726963650100000000000000000000000005012999",
                        "repr": "(tuple (a \"list-in-ustx\") (commission 'SPNWZ5V2TPWGQGVDR6T7B6RQ4XMGZ4PXTEE0VQ0S.stxnft-satoshibles-commission) (id u4746) (price u83962265))"
                    }
                }
            },
            {
                "event_index": "0",
                "event_type": "smart_contract_log",
                "tx_id": "0x478b04b2f265e8b1be155b0fc55590dc3e82dfe9149dd76e05b57337b112aeb4",
                "contract_log": {
                    "contract_id": "SP6P4EJF0VG8V0RB3TQQKJBHDQKEF6NVRD1KZE3C.satoshibles",
                    "topic": "print",
                    "value": {
                        "hex": "0x0c0000000401610d0000000c6c6973742d696e2d757374780a636f6d6d697373696f6e06162bcf9762d5b90bc36dc1b4759b1727690f92ddd31d7374786e66742d7361746f736869626c65732d636f6d6d697373696f6e026964010000000000000000000000000000128a0570726963650100000000000000000000000008ff36a5",
                        "repr": "(tuple (a \"list-in-ustx\") (commission 'SPNWZ5V2TPWGQGVDR6T7B6RQ4XMGZ4PXTEE0VQ0S.stxnft-satoshibles-commission) (id u4746) (price u150943397))"
                    }
                }
            },
            {
                "event_index": "0",
                "event_type": "smart_contract_log",
                "tx_id": "0x5c2f99f13f682855e08862843d69fd2b0f72bc4d23ed994e243bd86af169a478",
                "contract_log": {
                    "contract_id": "SP6P4EJF0VG8V0RB3TQQKJBHDQKEF6NVRD1KZE3C.satoshibles",
                    "topic": "print",
                    "value": {
                        "hex": "0x0c0000000401610d0000000c6c6973742d696e2d757374780a636f6d6d697373696f6e06162bcf9762d5b90bc36dc1b4759b1727690f92ddd31d7374786e66742d7361746f736869626c65732d636f6d6d697373696f6e0269640100000000000000000000000000000e300570726963650100000000000000000000000008ff36a5",
                        "repr": "(tuple (a \"list-in-ustx\") (commission 'SPNWZ5V2TPWGQGVDR6T7B6RQ4XMGZ4PXTEE0VQ0S.stxnft-satoshibles-commission) (id u3632) (price u150943397))"
                    }
                }
            },
            {
                "event_index": "0",
                "event_type": "smart_contract_log",
                "tx_id": "0x12af8b21e04520a7f7a00e8054be2ce969aee71fbb83289eb58febd924043218",
                "contract_log": {
                    "contract_id": "SP6P4EJF0VG8V0RB3TQQKJBHDQKEF6NVRD1KZE3C.satoshibles",
                    "topic": "print",
                    "value": {
                        "hex": "0x0c0000000401610d0000000c6c6973742d696e2d757374780a636f6d6d697373696f6e06162bcf9762d5b90bc36dc1b4759b1727690f92ddd31d7374786e66742d7361746f736869626c65732d636f6d6d697373696f6e02696401000000000000000000000000000007d6057072696365010000000000000000000000000e0ec561",
                        "repr": "(tuple (a \"list-in-ustx\") (commission 'SPNWZ5V2TPWGQGVDR6T7B6RQ4XMGZ4PXTEE0VQ0S.stxnft-satoshibles-commission) (id u2006) (price u235849057))"
                    }
                }
            },
            {
                "event_index": "0",
                "event_type": "smart_contract_log",
                "tx_id": "0xa757ff5a96d999e2f3701ab0b5a3d810b57aaaa06ec92f876cca698f2ed323a6",
                "contract_log": {
                    "contract_id": "SP6P4EJF0VG8V0RB3TQQKJBHDQKEF6NVRD1KZE3C.satoshibles",
                    "topic": "print",
                    "value": {
                        "hex": "0x0c0000000206616374696f6e0d0000000e756e6c6973742d696e2d757374780269640100000000000000000000000000000aa2",
                        "repr": "(tuple (action \"unlist-in-ustx\") (id u2722))"
                    }
                }
            },
            {
                "event_index": "0",
                "event_type": "smart_contract_log",
                "tx_id": "0xe0629a954680e7324e7b086f27f9dcb236276a7477d05141766a3837e1195b4c",
                "contract_log": {
                    "contract_id": "SP6P4EJF0VG8V0RB3TQQKJBHDQKEF6NVRD1KZE3C.satoshibles",
                    "topic": "print",
                    "value": {
                        "hex": "0x0c0000000206616374696f6e0d0000000e756e6c6973742d696e2d757374780269640100000000000000000000000000000aa2",
                        "repr": "(tuple (action \"unlist-in-ustx\") (id u2722))"
                    }
                }
            },
            {
                "event_index": "0",
                "event_type": "smart_contract_log",
                "tx_id": "0xe8bc128ff474a4be0509d8a713669e8c4beba4ec635634be142ad9dc9718b09e",
                "contract_log": {
                    "contract_id": "SP6P4EJF0VG8V0RB3TQQKJBHDQKEF6NVRD1KZE3C.satoshibles",
                    "topic": "print",
                    "value": {
                        "hex": "0x0c0000000401610d0000000c6c6973742d696e2d757374780a636f6d6d697373696f6e06162bcf9762d5b90bc36dc1b4759b1727690f92ddd31d7374786e66742d7361746f736869626c65732d636f6d6d697373696f6e02696401000000000000000000000000000011bb0570726963650100000000000000000000000004f2c474",
                        "repr": "(tuple (a \"list-in-ustx\") (commission 'SPNWZ5V2TPWGQGVDR6T7B6RQ4XMGZ4PXTEE0VQ0S.stxnft-satoshibles-commission) (id u4539) (price u83018868))"
                    }
                }
            },
            {
                "event_index": "0",
                "event_type": "smart_contract_log",
                "tx_id": "0x3d68fb53599a29ab1e2920c56ad8259413f139a08b5d822d4ea4f0af3e44b38a",
                "contract_log": {
                    "contract_id": "SP6P4EJF0VG8V0RB3TQQKJBHDQKEF6NVRD1KZE3C.satoshibles",
                    "topic": "print",
                    "value": {
                        "hex": "0x0c0000000401610d0000000c6c6973742d696e2d757374780a636f6d6d697373696f6e06162bcf9762d5b90bc36dc1b4759b1727690f92ddd31d7374786e66742d7361746f736869626c65732d636f6d6d697373696f6e02696401000000000000000000000000000000af0570726963650100000000000000000000000005012999",
                        "repr": "(tuple (a \"list-in-ustx\") (commission 'SPNWZ5V2TPWGQGVDR6T7B6RQ4XMGZ4PXTEE0VQ0S.stxnft-satoshibles-commission) (id u175) (price u83962265))"
                    }
                }
            },
            {
                "event_index": "0",
                "event_type": "smart_contract_log",
                "tx_id": "0xc92a4634bc741171b7e79a64b725eb9be5cbde1b82b693d79b0a577021940e13",
                "contract_log": {
                    "contract_id": "SP6P4EJF0VG8V0RB3TQQKJBHDQKEF6NVRD1KZE3C.satoshibles",
                    "topic": "print",
                    "value": {
                        "hex": "0x0c0000000401610d0000000c6c6973742d696e2d757374780a636f6d6d697373696f6e06162bcf9762d5b90bc36dc1b4759b1727690f92ddd31d7374786e66742d7361746f736869626c65732d636f6d6d697373696f6e0269640100000000000000000000000000000f2705707269636501000000000000000000000000050f8ebd",
                        "repr": "(tuple (a \"list-in-ustx\") (commission 'SPNWZ5V2TPWGQGVDR6T7B6RQ4XMGZ4PXTEE0VQ0S.stxnft-satoshibles-commission) (id u3879) (price u84905661))"
                    }
                }
            },
            {
                "event_index": "0",
                "event_type": "smart_contract_log",
                "tx_id": "0x2e7be49b5f73367585828b8c351ae302776b5768552a20351089cba60f9fc8b9",
                "contract_log": {
                    "contract_id": "SP6P4EJF0VG8V0RB3TQQKJBHDQKEF6NVRD1KZE3C.satoshibles",
                    "topic": "print",
                    "value": {
                        "hex": "0x0c0000000401610d0000000c6c6973742d696e2d757374780a636f6d6d697373696f6e06162bcf9762d5b90bc36dc1b4759b1727690f92ddd31d7374786e66742d7361746f736869626c65732d636f6d6d697373696f6e02696401000000000000000000000000000004f6057072696365010000000000000000000000002a2c5022",
                        "repr": "(tuple (a \"list-in-ustx\") (commission 'SPNWZ5V2TPWGQGVDR6T7B6RQ4XMGZ4PXTEE0VQ0S.stxnft-satoshibles-commission) (id u1270) (price u707547170))"
                    }
                }
            },
            {
                "event_index": "0",
                "event_type": "smart_contract_log",
                "tx_id": "0xd26006e3851a45504b3c0b994428a05f6e4d43480a1de1dd1571fcbed6e560d3",
                "contract_log": {
                    "contract_id": "SP6P4EJF0VG8V0RB3TQQKJBHDQKEF6NVRD1KZE3C.satoshibles",
                    "topic": "print",
                    "value": {
                        "hex": "0x0c0000000206616374696f6e0d0000000e756e6c6973742d696e2d757374780269640100000000000000000000000000000ae4",
                        "repr": "(tuple (action \"unlist-in-ustx\") (id u2788))"
                    }
                }
            },
            {
                "event_index": "0",
                "event_type": "smart_contract_log",
                "tx_id": "0xdfbcb30830decfbd6860eba6318bf97c8d6d07fe4cd8db06d31c8bc8c9591852",
                "contract_log": {
                    "contract_id": "SP6P4EJF0VG8V0RB3TQQKJBHDQKEF6NVRD1KZE3C.satoshibles",
                    "topic": "print",
                    "value": {
                        "hex": "0x0c0000000206616374696f6e0d0000000e756e6c6973742d696e2d757374780269640100000000000000000000000000000d39",
                        "repr": "(tuple (action \"unlist-in-ustx\") (id u3385))"
                    }
                }
            },
            {
                "event_index": "0",
                "event_type": "smart_contract_log",
                "tx_id": "0x2f3b947228797c53a173571591d0834d46afa68d6597124a21545ed00c6cfc29",
                "contract_log": {
                    "contract_id": "SP6P4EJF0VG8V0RB3TQQKJBHDQKEF6NVRD1KZE3C.satoshibles",
                    "topic": "print",
                    "value": {
                        "hex": "0x0c0000000206616374696f6e0d0000000e756e6c6973742d696e2d75737478026964010000000000000000000000000000027e",
                        "repr": "(tuple (action \"unlist-in-ustx\") (id u638))"
                    }
                }
            },
            {
                "event_index": "0",
                "event_type": "smart_contract_log",
                "tx_id": "0x5e338bbbf78297a572756965f370f3358abdf1fcadb6be116669d5e5a8c5a74c",
                "contract_log": {
                    "contract_id": "SP6P4EJF0VG8V0RB3TQQKJBHDQKEF6NVRD1KZE3C.satoshibles",
                    "topic": "print",
                    "value": {
                        "hex": "0x0c0000000401610d0000000c6c6973742d696e2d757374780a636f6d6d697373696f6e06162bcf9762d5b90bc36dc1b4759b1727690f92ddd31d7374786e66742d7361746f736869626c65732d636f6d6d697373696f6e026964010000000000000000000000000000027e05707269636501000000000000000000000000050f8ebd",
                        "repr": "(tuple (a \"list-in-ustx\") (commission 'SPNWZ5V2TPWGQGVDR6T7B6RQ4XMGZ4PXTEE0VQ0S.stxnft-satoshibles-commission) (id u638) (price u84905661))"
                    }
                }
            },
            {
                "event_index": "0",
                "event_type": "smart_contract_log",
                "tx_id": "0xcd5dcc9726712a9fdbec731629dfc1a8b5a7c0dc26b7b5f9b33106ec2e45d5dc",
                "contract_log": {
                    "contract_id": "SP6P4EJF0VG8V0RB3TQQKJBHDQKEF6NVRD1KZE3C.satoshibles",
                    "topic": "print",
                    "value": {
                        "hex": "0x0c0000000401610d0000000c6c6973742d696e2d757374780a636f6d6d697373696f6e06162bcf9762d5b90bc36dc1b4759b1727690f92ddd31d7374786e66742d7361746f736869626c65732d636f6d6d697373696f6e0269640100000000000000000000000000000d3905707269636501000000000000000000000000047f9b53",
                        "repr": "(tuple (a \"list-in-ustx\") (commission 'SPNWZ5V2TPWGQGVDR6T7B6RQ4XMGZ4PXTEE0VQ0S.stxnft-satoshibles-commission) (id u3385) (price u75471699))"
                    }
                }
            },
            {
                "event_index": "0",
                "event_type": "smart_contract_log",
                "tx_id": "0xae41616b9b14ba7eb20cd02802006232a0da1d45e051a53b51bf9d3961bdbdb3",
                "contract_log": {
                    "contract_id": "SP6P4EJF0VG8V0RB3TQQKJBHDQKEF6NVRD1KZE3C.satoshibles",
                    "topic": "print",
                    "value": {
                        "hex": "0x0c0000000401610d0000000c6c6973742d696e2d757374780a636f6d6d697373696f6e06162bcf9762d5b90bc36dc1b4759b1727690f92ddd31d7374786e66742d7361746f736869626c65732d636f6d6d697373696f6e0269640100000000000000000000000000000ae40570726963650100000000000000000000000003efa7e8",
                        "repr": "(tuple (a \"list-in-ustx\") (commission 'SPNWZ5V2TPWGQGVDR6T7B6RQ4XMGZ4PXTEE0VQ0S.stxnft-satoshibles-commission) (id u2788) (price u66037736))"
                    }
                }
            },
            {
                "event_index": "0",
                "event_type": "smart_contract_log",
                "tx_id": "0xfd3d4d33d9edd92e14b12e3d54aa81813547d6e30f1118ad20125a1392908ea9",
                "contract_log": {
                    "contract_id": "SP6P4EJF0VG8V0RB3TQQKJBHDQKEF6NVRD1KZE3C.satoshibles",
                    "topic": "print",
                    "value": {
                        "hex": "0x0c0000000401610d0000000c6c6973742d696e2d757374780a636f6d6d697373696f6e06162bcf9762d5b90bc36dc1b4759b1727690f92ddd31d7374786e66742d7361746f736869626c65732d636f6d6d697373696f6e02696401000000000000000000000000000002e10570726963650100000000000000000000000014ce2e5c",
                        "repr": "(tuple (a \"list-in-ustx\") (commission 'SPNWZ5V2TPWGQGVDR6T7B6RQ4XMGZ4PXTEE0VQ0S.stxnft-satoshibles-commission) (id u737) (price u349056604))"
                    }
                }
            },
            {
                "event_index": "0",
                "event_type": "smart_contract_log",
                "tx_id": "0xab3151c8248ec21f09af609ee464e848da2632b89be9a4b035c069dca0cfe708",
                "contract_log": {
                    "contract_id": "SP6P4EJF0VG8V0RB3TQQKJBHDQKEF6NVRD1KZE3C.satoshibles",
                    "topic": "print",
                    "value": {
                        "hex": "0x0c0000000401610d0000000c6c6973742d696e2d757374780a636f6d6d697373696f6e06162bcf9762d5b90bc36dc1b4759b1727690f92ddd31d7374786e66742d7361746f736869626c65732d636f6d6d697373696f6e0269640100000000000000000000000000000acf0570726963650100000000000000000000000005578872",
                        "repr": "(tuple (a \"list-in-ustx\") (commission 'SPNWZ5V2TPWGQGVDR6T7B6RQ4XMGZ4PXTEE0VQ0S.stxnft-satoshibles-commission) (id u2767) (price u89622642))"
                    }
                }
            },
            {
                "event_index": "0",
                "event_type": "smart_contract_log",
                "tx_id": "0x456be1fda44880cce16ea13f60580a275390367f4c29c20b64a5706302ec86d3",
                "contract_log": {
                    "contract_id": "SP6P4EJF0VG8V0RB3TQQKJBHDQKEF6NVRD1KZE3C.satoshibles",
                    "topic": "print",
                    "value": {
                        "hex": "0x0c0000000401610d0000000c6c6973742d696e2d757374780a636f6d6d697373696f6e06162bcf9762d5b90bc36dc1b4759b1727690f92ddd31d7374786e66742d7361746f736869626c65732d636f6d6d697373696f6e02696401000000000000000000000000000001c2057072696365010000000000000000000000006da669f2",
                        "repr": "(tuple (a \"list-in-ustx\") (commission 'SPNWZ5V2TPWGQGVDR6T7B6RQ4XMGZ4PXTEE0VQ0S.stxnft-satoshibles-commission) (id u450) (price u1839622642))"
                    }
                }
            },
            {
                "event_index": "0",
                "event_type": "smart_contract_log",
                "tx_id": "0x541c98f1656ea3e0ffa6e04391896872017f4fe85785a2d7ff86943da39e224b",
                "contract_log": {
                    "contract_id": "SP6P4EJF0VG8V0RB3TQQKJBHDQKEF6NVRD1KZE3C.satoshibles",
                    "topic": "print",
                    "value": {
                        "hex": "0x0c0000000401610d0000000c6c6973742d696e2d757374780a636f6d6d697373696f6e06162bcf9762d5b90bc36dc1b4759b1727690f92ddd31d7374786e66742d7361746f736869626c65732d636f6d6d697373696f6e0269640100000000000000000000000000001000057072696365010000000000000000000000000c5eeb22",
                        "repr": "(tuple (a \"list-in-ustx\") (commission 'SPNWZ5V2TPWGQGVDR6T7B6RQ4XMGZ4PXTEE0VQ0S.stxnft-satoshibles-commission) (id u4096) (price u207547170))"
                    }
                }
            },
            {
                "event_index": "0",
                "event_type": "smart_contract_log",
                "tx_id": "0xa77c0a43ca8ec32e8900bc54c799784e41932ca84ffffe497fb3f615b4ef1b4c",
                "contract_log": {
                    "contract_id": "SP6P4EJF0VG8V0RB3TQQKJBHDQKEF6NVRD1KZE3C.satoshibles",
                    "topic": "print",
                    "value": {
                        "hex": "0x0c0000000401610d0000000c6c6973742d696e2d757374780a636f6d6d697373696f6e06162bcf9762d5b90bc36dc1b4759b1727690f92ddd31d7374786e66742d7361746f736869626c65732d636f6d6d697373696f6e02696401000000000000000000000000000005d0057072696365010000000000000000000000000bcef7b8",
                        "repr": "(tuple (a \"list-in-ustx\") (commission 'SPNWZ5V2TPWGQGVDR6T7B6RQ4XMGZ4PXTEE0VQ0S.stxnft-satoshibles-commission) (id u1488) (price u198113208))"
                    }
                }
            },
            {
                "event_index": "0",
                "event_type": "smart_contract_log",
                "tx_id": "0x4cfbd932b880cd9e455ae965b783c8a8c7acb2833f7d3592d7d568b58c0086a1",
                "contract_log": {
                    "contract_id": "SP6P4EJF0VG8V0RB3TQQKJBHDQKEF6NVRD1KZE3C.satoshibles",
                    "topic": "print",
                    "value": {
                        "hex": "0x0c0000000401610d0000000c6c6973742d696e2d757374780a636f6d6d697373696f6e06162bcf9762d5b90bc36dc1b4759b1727690f92ddd31d7374786e66742d7361746f736869626c65732d636f6d6d697373696f6e0269640100000000000000000000000000000191057072696365010000000000000000000000000c5eeb22",
                        "repr": "(tuple (a \"list-in-ustx\") (commission 'SPNWZ5V2TPWGQGVDR6T7B6RQ4XMGZ4PXTEE0VQ0S.stxnft-satoshibles-commission) (id u401) (price u207547170))"
                    }
                }
            },
            {
                "event_index": "0",
                "event_type": "smart_contract_log",
                "tx_id": "0x695a25fb3fd59836a4cb773b2c61e0cf4bad7885ab7b7943541c11e748362b36",
                "contract_log": {
                    "contract_id": "SP6P4EJF0VG8V0RB3TQQKJBHDQKEF6NVRD1KZE3C.satoshibles",
                    "topic": "print",
                    "value": {
                        "hex": "0x0c0000000206616374696f6e0d0000000e756e6c6973742d696e2d7573747802696401000000000000000000000000000004b8",
                        "repr": "(tuple (action \"unlist-in-ustx\") (id u1208))"
                    }
                }
            },
            {
                "event_index": "0",
                "event_type": "smart_contract_log",
                "tx_id": "0xe8a07e13924c29633b0a8dd9bc4a8167d6c618e55e407096b28630edac160195",
                "contract_log": {
                    "contract_id": "SP6P4EJF0VG8V0RB3TQQKJBHDQKEF6NVRD1KZE3C.satoshibles",
                    "topic": "print",
                    "value": {
                        "hex": "0x0c0000000401610d0000000c6c6973742d696e2d757374780a636f6d6d697373696f6e06162bcf9762d5b90bc36dc1b4759b1727690f92ddd31d7374786e66742d7361746f736869626c65732d636f6d6d697373696f6e0269640100000000000000000000000000000ae405707269636501000000000000000000000000050f8ebd",
                        "repr": "(tuple (a \"list-in-ustx\") (commission 'SPNWZ5V2TPWGQGVDR6T7B6RQ4XMGZ4PXTEE0VQ0S.stxnft-satoshibles-commission) (id u2788) (price u84905661))"
                    }
                }
            },
            {
                "event_index": "0",
                "event_type": "smart_contract_log",
                "tx_id": "0x8a2e1c022f571aad19b47b6eb4b2dd47a58f5336e8fff8e8ff01308aedc58097",
                "contract_log": {
                    "contract_id": "SP6P4EJF0VG8V0RB3TQQKJBHDQKEF6NVRD1KZE3C.satoshibles",
                    "topic": "print",
                    "value": {
                        "hex": "0x0c0000000401610d0000000c6c6973742d696e2d757374780a636f6d6d697373696f6e06162bcf9762d5b90bc36dc1b4759b1727690f92ddd31d7374786e66742d7361746f736869626c65732d636f6d6d697373696f6e026964010000000000000000000000000000027e05707269636501000000000000000000000000062f7591",
                        "repr": "(tuple (a \"list-in-ustx\") (commission 'SPNWZ5V2TPWGQGVDR6T7B6RQ4XMGZ4PXTEE0VQ0S.stxnft-satoshibles-commission) (id u638) (price u103773585))"
                    }
                }
            },
            {
                "event_index": "0",
                "event_type": "smart_contract_log",
                "tx_id": "0x770781dc34aee2c2cbb305f02df54d726065e67d03bb9524679f95f8716e899a",
                "contract_log": {
                    "contract_id": "SP6P4EJF0VG8V0RB3TQQKJBHDQKEF6NVRD1KZE3C.satoshibles",
                    "topic": "print",
                    "value": {
                        "hex": "0x0c0000000401610d0000000c6c6973742d696e2d757374780a636f6d6d697373696f6e06162bcf9762d5b90bc36dc1b4759b1727690f92ddd31d7374786e66742d7361746f736869626c65732d636f6d6d697373696f6e0269640100000000000000000000000000000ae405707269636501000000000000000000000000059f8227",
                        "repr": "(tuple (a \"list-in-ustx\") (commission 'SPNWZ5V2TPWGQGVDR6T7B6RQ4XMGZ4PXTEE0VQ0S.stxnft-satoshibles-commission) (id u2788) (price u94339623))"
                    }
                }
            },
            {
                "event_index": "0",
                "event_type": "smart_contract_log",
                "tx_id": "0x433f832864bdaabb67ddc618485b2f77bdf6cf055e3890f1c6436b760d68c298",
                "contract_log": {
                    "contract_id": "SP6P4EJF0VG8V0RB3TQQKJBHDQKEF6NVRD1KZE3C.satoshibles",
                    "topic": "print",
                    "value": {
                        "hex": "0x0c0000000401610d0000000c6c6973742d696e2d757374780a636f6d6d697373696f6e06162bcf9762d5b90bc36dc1b4759b1727690f92ddd31d7374786e66742d7361746f736869626c65732d636f6d6d697373696f6e0269640100000000000000000000000000000d3905707269636501000000000000000000000000059f8227",
                        "repr": "(tuple (a \"list-in-ustx\") (commission 'SPNWZ5V2TPWGQGVDR6T7B6RQ4XMGZ4PXTEE0VQ0S.stxnft-satoshibles-commission) (id u3385) (price u94339623))"
                    }
                }
            },
            {
                "event_index": "0",
                "event_type": "smart_contract_log",
                "tx_id": "0xc3e594035c9148619aa9c9b9031a0f6f18ef3e595319b92acf37f9d29679f837",
                "contract_log": {
                    "contract_id": "SP6P4EJF0VG8V0RB3TQQKJBHDQKEF6NVRD1KZE3C.satoshibles",
                    "topic": "print",
                    "value": {
                        "hex": "0x0c0000000401610d0000000c6c6973742d696e2d757374780a636f6d6d697373696f6e06162bcf9762d5b90bc36dc1b4759b1727690f92ddd31d7374786e66742d7361746f736869626c65732d636f6d6d697373696f6e0269640100000000000000000000000000000ae405707269636501000000000000000000000000062f7591",
                        "repr": "(tuple (a \"list-in-ustx\") (commission 'SPNWZ5V2TPWGQGVDR6T7B6RQ4XMGZ4PXTEE0VQ0S.stxnft-satoshibles-commission) (id u2788) (price u103773585))"
                    }
                }
            },
            {
                "event_index": "0",
                "event_type": "smart_contract_log",
                "tx_id": "0x59f3978d8f5e3ab5a078890dd9c4f22990418b8b934a50cc844ab660dd73186b",
                "contract_log": {
                    "contract_id": "SP6P4EJF0VG8V0RB3TQQKJBHDQKEF6NVRD1KZE3C.satoshibles",
                    "topic": "print",
                    "value": {
                        "hex": "0x0c0000000401610d0000000c6c6973742d696e2d757374780a636f6d6d697373696f6e06162bcf9762d5b90bc36dc1b4759b1727690f92ddd31d7374786e66742d7361746f736869626c65732d636f6d6d697373696f6e0269640100000000000000000000000000000d3905707269636501000000000000000000000000062f7591",
                        "repr": "(tuple (a \"list-in-ustx\") (commission 'SPNWZ5V2TPWGQGVDR6T7B6RQ4XMGZ4PXTEE0VQ0S.stxnft-satoshibles-commission) (id u3385) (price u103773585))"
                    }
                }
            },
            {
                "event_index": "0",
                "event_type": "smart_contract_log",
                "tx_id": "0x837ae6c774b943bc648806fa6752d44cb9853fc46659caf27b26e800c94c7f40",
                "contract_log": {
                    "contract_id": "SP6P4EJF0VG8V0RB3TQQKJBHDQKEF6NVRD1KZE3C.satoshibles",
                    "topic": "print",
                    "value": {
                        "hex": "0x0c0000000401610d0000000c6c6973742d696e2d757374780a636f6d6d697373696f6e06162bcf9762d5b90bc36dc1b4759b1727690f92ddd31d7374786e66742d7361746f736869626c65732d636f6d6d697373696f6e02696401000000000000000000000000000012eb0570726963650100000000000000000000000006776f47",
                        "repr": "(tuple (a \"list-in-ustx\") (commission 'SPNWZ5V2TPWGQGVDR6T7B6RQ4XMGZ4PXTEE0VQ0S.stxnft-satoshibles-commission) (id u4843) (price u108490567))"
                    }
                }
            },
            {
                "event_index": "0",
                "event_type": "smart_contract_log",
                "tx_id": "0x32c0aef8ed730a0d9f84743f68c3f0fa74b17c8be76aa4a091c1d321c4dbc8f9",
                "contract_log": {
                    "contract_id": "SP6P4EJF0VG8V0RB3TQQKJBHDQKEF6NVRD1KZE3C.satoshibles",
                    "topic": "print",
                    "value": {
                        "hex": "0x0c0000000401610d0000000c6c6973742d696e2d757374780a636f6d6d697373696f6e06162bcf9762d5b90bc36dc1b4759b1727690f92ddd31d7374786e66742d7361746f736869626c65732d636f6d6d697373696f6e0269640100000000000000000000000000000aa905707269636501000000000000000000000001c1ca46f0",
                        "repr": "(tuple (a \"list-in-ustx\") (commission 'SPNWZ5V2TPWGQGVDR6T7B6RQ4XMGZ4PXTEE0VQ0S.stxnft-satoshibles-commission) (id u2729) (price u7546226416))"
                    }
                }
            },
            {
                "event_index": "0",
                "event_type": "smart_contract_log",
                "tx_id": "0xa6e4edfcd3f7274d39ed5f7d6235c2bc398f719cb6b36fc06dbee79142b18ae2",
                "contract_log": {
                    "contract_id": "SP6P4EJF0VG8V0RB3TQQKJBHDQKEF6NVRD1KZE3C.satoshibles",
                    "topic": "print",
                    "value": {
                        "hex": "0x0c0000000401610d0000000c6c6973742d696e2d757374780a636f6d6d697373696f6e06162bcf9762d5b90bc36dc1b4759b1727690f92ddd31d7374786e66742d7361746f736869626c65732d636f6d6d697373696f6e0269640100000000000000000000000000000e83057072696365010000000000000000000000005458a044",
                        "repr": "(tuple (a \"list-in-ustx\") (commission 'SPNWZ5V2TPWGQGVDR6T7B6RQ4XMGZ4PXTEE0VQ0S.stxnft-satoshibles-commission) (id u3715) (price u1415094340))"
                    }
                }
            },
            {
                "event_index": "0",
                "event_type": "smart_contract_log",
                "tx_id": "0xf8f84a04ccd82e9539233c11014d564654f53a6277f398f8f5cfa038d62163b1",
                "contract_log": {
                    "contract_id": "SP6P4EJF0VG8V0RB3TQQKJBHDQKEF6NVRD1KZE3C.satoshibles",
                    "topic": "print",
                    "value": {
                        "hex": "0x0c0000000401610d0000000c6c6973742d696e2d757374780a636f6d6d697373696f6e06162bcf9762d5b90bc36dc1b4759b1727690f92ddd31d7374786e66742d7361746f736869626c65732d636f6d6d697373696f6e0269640100000000000000000000000000000fcb057072696365010000000000000000000000034b67dd81",
                        "repr": "(tuple (a \"list-in-ustx\") (commission 'SPNWZ5V2TPWGQGVDR6T7B6RQ4XMGZ4PXTEE0VQ0S.stxnft-satoshibles-commission) (id u4043) (price u14150000001))"
                    }
                }
            },
            {
                "event_index": "0",
                "event_type": "smart_contract_log",
                "tx_id": "0x3f8bc17c1eb4dc86af77dee3b748b60dd93e95d966deb1f203be3fb88b298c39",
                "contract_log": {
                    "contract_id": "SP6P4EJF0VG8V0RB3TQQKJBHDQKEF6NVRD1KZE3C.satoshibles",
                    "topic": "print",
                    "value": {
                        "hex": "0x0c0000000401610d0000000c6c6973742d696e2d757374780a636f6d6d697373696f6e06162bcf9762d5b90bc36dc1b4759b1727690f92ddd31d7374786e66742d7361746f736869626c65732d636f6d6d697373696f6e02696401000000000000000000000000000004a6057072696365010000000000000000000000000b309f2a",
                        "repr": "(tuple (a \"list-in-ustx\") (commission 'SPNWZ5V2TPWGQGVDR6T7B6RQ4XMGZ4PXTEE0VQ0S.stxnft-satoshibles-commission) (id u1190) (price u187735850))"
                    }
                }
            },
            {
                "event_index": "0",
                "event_type": "smart_contract_log",
                "tx_id": "0x63e7aeaeb03da6f18bfa01e917ff8e02c30c7da2dbf1e435f117123efc478d5d",
                "contract_log": {
                    "contract_id": "SP6P4EJF0VG8V0RB3TQQKJBHDQKEF6NVRD1KZE3C.satoshibles",
                    "topic": "print",
                    "value": {
                        "hex": "0x0c0000000401610d0000000c6c6973742d696e2d757374780a636f6d6d697373696f6e06162bcf9762d5b90bc36dc1b4759b1727690f92ddd31d7374786e66742d7361746f736869626c65732d636f6d6d697373696f6e0269640100000000000000000000000000000b9505707269636501000000000000000000000000086f433a",
                        "repr": "(tuple (a \"list-in-ustx\") (commission 'SPNWZ5V2TPWGQGVDR6T7B6RQ4XMGZ4PXTEE0VQ0S.stxnft-satoshibles-commission) (id u2965) (price u141509434))"
                    }
                }
            },
            {
                "event_index": "0",
                "event_type": "smart_contract_log",
                "tx_id": "0x351d69b6e7bef32a86cfc9248be4efbcbeeeb32b5b319f3f7f482fee84e47860",
                "contract_log": {
                    "contract_id": "SP6P4EJF0VG8V0RB3TQQKJBHDQKEF6NVRD1KZE3C.satoshibles",
                    "topic": "print",
                    "value": {
                        "hex": "0x0c0000000401610d0000000c6c6973742d696e2d757374780a636f6d6d697373696f6e06162bcf9762d5b90bc36dc1b4759b1727690f92ddd31d7374786e66742d7361746f736869626c65732d636f6d6d697373696f6e02696401000000000000000000000000000011610570726963650100000000000000000000000006bf68fc",
                        "repr": "(tuple (a \"list-in-ustx\") (commission 'SPNWZ5V2TPWGQGVDR6T7B6RQ4XMGZ4PXTEE0VQ0S.stxnft-satoshibles-commission) (id u4449) (price u113207548))"
                    }
                }
            },
            {
                "event_index": "4",
                "event_type": "smart_contract_log",
                "tx_id": "0x93c04ae612004fbf3792411304fa4204f4eded97f1e1f5db686041d03f64df45",
                "contract_log": {
                    "contract_id": "SP6P4EJF0VG8V0RB3TQQKJBHDQKEF6NVRD1KZE3C.satoshibles",
                    "topic": "print",
                    "value": {
                        "hex": "0x0c0000000206616374696f6e0d0000000b6275792d696e2d757374780269640100000000000000000000000000000b95",
                        "repr": "(tuple (action \"buy-in-ustx\") (id u2965))"
                    }
                }
            },
            {
                "event_index": "4",
                "event_type": "smart_contract_log",
                "tx_id": "0x30a546304d090e510bc1d1f749cbf0e8bf074d05007f1f2d06a83ee4de2ebe83",
                "contract_log": {
                    "contract_id": "SP6P4EJF0VG8V0RB3TQQKJBHDQKEF6NVRD1KZE3C.satoshibles",
                    "topic": "print",
                    "value": {
                        "hex": "0x0c0000000206616374696f6e0d0000000b6275792d696e2d757374780269640100000000000000000000000000001161",
                        "repr": "(tuple (action \"buy-in-ustx\") (id u4449))"
                    }
                }
            },
            {
                "event_index": "4",
                "event_type": "smart_contract_log",
                "tx_id": "0xe6c562faf053a7a4f2abb480d80689ba546423ba93c935f0c90cc0279498e810",
                "contract_log": {
                    "contract_id": "SP6P4EJF0VG8V0RB3TQQKJBHDQKEF6NVRD1KZE3C.satoshibles",
                    "topic": "print",
                    "value": {
                        "hex": "0x0c0000000206616374696f6e0d0000000b6275792d696e2d757374780269640100000000000000000000000000000889",
                        "repr": "(tuple (action \"buy-in-ustx\") (id u2185))"
                    }
                }
            },
            {
                "event_index": "0",
                "event_type": "smart_contract_log",
                "tx_id": "0xc519af3ef98f9cbdcaadbb7b62604fa92096193e5e8aee3496e285d4f3ff69f7",
                "contract_log": {
                    "contract_id": "SP6P4EJF0VG8V0RB3TQQKJBHDQKEF6NVRD1KZE3C.satoshibles",
                    "topic": "print",
                    "value": {
                        "hex": "0x0c0000000206616374696f6e0d0000000e756e6c6973742d696e2d757374780269640100000000000000000000000000001193",
                        "repr": "(tuple (action \"unlist-in-ustx\") (id u4499))"
                    }
                }
            }
        ]
    }
}
```

{% endtab %}
{% endtabs %}

### **/sendtransaction**

Send transaction on the chain.

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

#### Request Body

<table><thead><tr><th width="170">Name</th><th width="100">Type</th><th>Description</th></tr></thead><tbody><tr><td>chainId<mark style="color:red;">*</mark></td><td>Integer</td><td>Refer to the <a href="/pages/5o1xMsQPqXw9GBfGTpdB">Chain ID </a>page for details. </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 encoded transaction, obtained from signed transaction.</td></tr><tr><td>rpc</td><td>String</td><td>Remote procedural call URL.</td></tr></tbody></table>

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

```json
{
    "rawTransaction": "8080000000040063eaab97cc22687eb4428276cd477433972d468d0000000000000000000000000000012c0001cdea8a1884927b3b7d7b9b50f78559ad4b1bc3041134106cc8d8c106c46115580e3315aacba212ab03e047702aec07123f342cac0732690aac2772f0290534403020000000000051663eaab97cc22687eb4428276cd477433972d468d0000000000000bb8457870616e6420535441434b53205465737400000000000000000000000000000000",
    "chainId": "1701"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1701",
        "transactionHash": "c2ad399454f2e7c2bc90207a211d806dd7f264af11095aba469cf726c8904f5a"
    }
}
```

{% 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="170">Name</th><th width="100">Type</th><th>Description</th></tr></thead><tbody><tr><td>chainId<mark style="color:red;">*</mark></td><td>Integer</td><td>Refer to the <a href="/pages/5o1xMsQPqXw9GBfGTpdB">Chain ID </a>page for details. </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 encoded transaction, obtained from signed transaction.</td></tr><tr><td>rpc</td><td>String</td><td>Remote procedural call URL.</td></tr></tbody></table>

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

```json
{
    "rawTransaction": "8080000000040063eaab97cc22687eb4428276cd477433972d468d0000000000000000000000000000012c0001cdea8a1884927b3b7d7b9b50f78559ad4b1bc3041134106cc8d8c106c46115580e3315aacba212ab03e047702aec07123f342cac0732690aac2772f0290534403020000000000051663eaab97cc22687eb4428276cd477433972d468d0000000000000bb8457870616e6420535441434b53205465737400000000000000000000000000000000",
    "chainId": "1701"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "version": 128,
        "auth": {
            "authType": 4,
            "spendingCondition": {
                "hashMode": 0,
                "signer": "63eaab97cc22687eb4428276cd477433972d468d",
                "nonce": "0",
                "fee": "300",
                "keyEncoding": 0,
                "signature": {
                    "type": 9,
                    "data": "01cdea8a1884927b3b7d7b9b50f78559ad4b1bc3041134106cc8d8c106c46115580e3315aacba212ab03e047702aec07123f342cac0732690aac2772f029705344"
                }
            }
        },
        "payload": {
            "type": 8,
            "payloadType": 0,
            "recipient": {
                "type": 5,
                "address": {
                    "type": 0,
                    "version": 22,
                    "hash160": "63eaab97cc22687eb4428276cd477433972d468d"
                }
            },
            "amount": "3000",
            "memo": {
                "type": 3,
                "content": "Expand STACKS Test"
            }
        },
        "chainId": 2147483648,
        "postConditionMode": 2,
        "postConditions": {
            "type": 7,
            "lengthPrefixBytes": 4,
            "values": []
        },
        "anchorMode": 3
    }
}
```

{% endtab %}
{% endtabs %}


# Bitcoin

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

| Name                                      | Type   | Description                                               |
| ----------------------------------------- | ------ | --------------------------------------------------------- |
| rpc                                       | String | Remote procedural call URL                                |
| chainId<mark style="color:red;">\*</mark> | String | Refer to the [Chain ID ](/ids/chain-ids)page for details. |
| chainSymbol                               | String | Refer to the [Chain ID ](/ids/chain-ids)page for details. |
| address<mark style="color:red;">\*</mark> | String | The public address to get the balance of.                 |
| afterBlock                                | String | The block number after which user wants the balance       |
| beforeBlock                               | String | The block number before which user wants the balance      |

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

```
https://api.expand.network/chain/getbalance?chainId=1800&address=1G82AFv7unVrZPSzfMNyFFAneJ2dnDFEar
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "balance": "440511",
        "totalReceived": "1598691",
        "totalSent": "1158180",
        "utxos": [
            {
                "block": "866584",
                "txHash": "438d019ef4246a319a7b6ed65e537ffc9a06363ef6b46607cbcde08bca5f451c",
                "value": "334215",
                "refBalance": "440511",
                "txInputN": "94",
                "txOutputN": "-1",
                "confirmations": "76"
            },
            {
                "block": "865346",
                "txHash": "ed2c07eea5eab7a04700c2c61dd536059f56473d663c6f629ddf3b4c254eda15",
                "value": "823965",
                "refBalance": "774726",
                "txInputN": "116",
                "txOutputN": "-1",
                "confirmations": "1314"
            },
            {
                "block": "864456",
                "txHash": "023948b3b03b53b05bde2505365c489e9a12d52b093b6ef986722c88b9e5a789",
                "value": "46197",
                "refBalance": "1598691",
                "txInputN": "-1",
                "txOutputN": "0",
                "spent": false,
                "confirmations": "2204"
            },
            {
                "block": "864136",
                "txHash": "a6cd2a15584972edc7780d56d7562c9f78b9b7061e923e8c08608f2c988ef644",
                "value": "52623",
                "refBalance": "1552494",
                "txInputN": "-1",
                "txOutputN": "0",
                "spent": false,
                "confirmations": "2524"
            },
            {
                "block": "863678",
                "txHash": "3ee1d7e63b312f4b9e8f421c6ba4d29e6bc612037e1eb30bc286b1b60fc5cfa2",
                "value": "334215",
                "refBalance": "1499871",
                "txInputN": "-1",
                "txOutputN": "8",
                "spent": true,
                "confirmations": "2982"
            },
            {
                "block": "863563",
                "txHash": "7bfec5057af8946d99e5d5b82d757a02d9a7cf0f1acb783f2af2a6ab76bb229a",
                "value": "132225",
                "refBalance": "1165656",
                "txInputN": "-1",
                "txOutputN": "3",
                "spent": false,
                "confirmations": "3097"
            },
            {
                "block": "863539",
                "txHash": "0d6ca91cd1ce4d8847f217b814e9fd05819d0cabf12eb78ea0b2ec2d9d64f8c4",
                "value": "823965",
                "refBalance": "1033431",
                "txInputN": "-1",
                "txOutputN": "9",
                "spent": true,
                "confirmations": "3121"
            },
            {
                "block": "859723",
                "txHash": "bf8a3cee4f8bfeceecd1fca8a1507dc1af46da10104a8e9921213e399f8daf5e",
                "value": "41780",
                "refBalance": "209466",
                "txInputN": "-1",
                "txOutputN": "0",
                "spent": false,
                "confirmations": "6937"
            },
            {
                "block": "859277",
                "txHash": "1c8f47243dc2cdd0d5ad59c4d26f88471b45cf32b26dd1b89d0cf18af16671be",
                "value": "167686",
                "refBalance": "167686",
                "txInputN": "-1",
                "txOutputN": "0",
                "spent": false,
                "confirmations": "7383"
            }
        ]
    }
}
```

{% 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 ](/ids/chain-ids)page for details. |
| chainSymbol                                   | String | Refer to the [Chain ID ](/ids/chain-ids)page for details. |
| blockNumber<mark style="color:red;">\*</mark> | String | The block(sequence) number.                               |

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

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

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "difficulty": "1159929.497224385",
        "confirmations": "705665",
        "gasLimit": null,
        "gasUsed": null,
        "hash": "000000000000041db1574dba07ab482e4e0da4a47f85d2149205562c55115e23",
        "miner": null,
        "nonce": "601565135",
        "number": "161000",
        "parentHash": "0000000000000c3bb6796e415d869703c59e631987046725520f77cba09d5b1d",
        "nextBlockHash": "00000000000002c21cf65f743501bb7302c9ec17e88c942c846508f390369eed",
        "size": "5418",
        "timestamp": "1325908473",
        "totalDifficulty": null,
        "transactions": [
            "6de58a9694b4c6db1f7fe89c62ac775e6d156737d563a2e1adef17496e7d7dec",
            "0991cbf002f26a9a4ea8177ec4a472c034f9f053e93a4a170ffff6b56072a8de",
            "c97a8440d18feebd59fe796c16c7f5e7ed2b42d7fc575d1aab92619717f73963",
            "a046590f815fca45e6879201a3243709b08c508ef706528f7216e970fbdbdd57",
            "c64de778bbd627a0a801670308e30d6ab1fd78f1a46a494a309fe94fe58e56ee",
            "d97d23cefcf210ec93d68ee8dd78cb638bb6003808bbc93231b4a8e645a6e5e9",
            "f45cff5a8beac8ac2bc6bd7535f8f1a6bc782540a51932b7dab768468f4c77f9",
            "ecc293e74dc466aa145195e738e278878ac39f6371c77c5933f06c6ed28eda7d",
            "ae201d2e2a99a415b4a66edaa133c8e9cd0a792db92a9d8a32eb8339bd754800",
            "291b08d7d4ad7cfa643d2e6a7ed63be9fb4284208befa7307acf72f86f372a61",
            "152b6a5ebc2012e3216728d04513e6832fd8678256460a932f3fcfa13b1b6555",
            "2b7642a39b5e8e47d935f1df8a0485d47d26668e3138e384cd15d9f31314c14b",
            "a16998657b3ad7d17ea1ac5843f5d4112de901fd87d6e6e8f38fbb9a254689ab",
            "fcfb29632c1cd22a7f38a652d1d1b98c7583ad6ccdc8a6791804bd51eee59ba6",
            "6d5c3c65eafc4d002d84d0d272c394baffd022abee89c0a795fffa632fe95715"
        ],
        "merkleRoot": "ab813cc7c4e4623283edbc85bf123dea3f907be28ff73e26fab7e22218d8a79d",
        "strippedSize": "5418",
        "weight": "21672",
        "bits": "1a0e76ba",
        "uncles": null
    }
}
```

{% 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 ](/ids/chain-ids)page for details. |
| chainSymbol                               | String | Refer to the [Chain ID ](/ids/chain-ids)page for details. |

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

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

{% endtab %}

{% tab title="Sample Response" %}

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

{% 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 ](/ids/chain-ids)page for details. |
| chainSymbol                                       | String | Refer to the [Chain ID ](/ids/chain-ids)page for details. |
| transactionHash<mark style="color:red;">\*</mark> | String | The transaction hash.                                     |

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

```
https://api.expand.network/chain/gettransaction?transactionHash=8e57ec8f0bfd6cd7e952388d5e98ca89a01113be0cbcead14ad12f9ee7ea2a1c&chainId=1800
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "hash": "8e57ec8f0bfd6cd7e952388d5e98ca89a01113be0cbcead14ad12f9ee7ea2a1c",
        "transactionStatus": true,
        "blockHash": "0000000000000000000005c8c7e75ddcb03586fef681664b337325d1e7eeeda5",
        "timestamp": "1726640543",
        "from": null,
        "to": null,
        "value": null,
        "gas": null,
        "gasPrice": null,
        "input": "010000000001010000000000000000000000000000000000000000000000000000000000000000ffffffff58036e260d1b4d696e656420627920416e74506f6f6c383733960001027b9f8c49fabe6d6d6737b8453043f7b323c6c282525b243b0a37f03cd23621a7ff85e8f2462a788d1000000000000000104200000603010000000000ffffffff05220200000000000017a91442402a28dd61f2718a4b27ae72a4791d5bbdade7879801df120000000017a9145249bdf2c131d43995cff42e8feee293f79297a8870000000000000000266a24aa21a9ede00d59f3ccf95a2f6ad5b74a02d059e77df68b8a6976eb8090f064cff1073dfd00000000000000002f6a2d434f524501a21cbd3caa4fe89bccd1d716c92ce4533e4d47334e3ecda72cb7961caa4b541b1e322bcfe0b5a03000000000000000002b6a2952534b424c4f434b3ad15fe028119aeaa2e36aa4759e93b2f1d675f1450506ae623c8ebc2800665d290120000000000000000000000000000000000000000000000000000000000000000000000000",
        "nonce": null,
        "network": null,
        "size": "394",
        "weight": "1468",
        "vsize": "367",
        "confirmations": "4861",
        "vin": [
            {
                "coinbase": "036e260d1b4d696e656420627920416e74506f6f6c383733960001027b9f8c49fabe6d6d6737b8453043f7b323c6c282525b243b0a37f03cd23621a7ff85e8f2462a788d1000000000000000104200000603010000000000",
                "txinwitness": [
                    "0000000000000000000000000000000000000000000000000000000000000000"
                ],
                "sequence": 4294967295
            }
        ],
        "vout": [
            {
                "value": 0.00000546,
                "n": 0,
                "scriptPubKey": {
                    "asm": "OP_HASH160 42402a28dd61f2718a4b27ae72a4791d5bbdade7 OP_EQUAL",
                    "desc": "addr(37jKPSmbEGwgfacCr2nayn1wTaqMAbA94Z)#avhxp88d",
                    "hex": "a91442402a28dd61f2718a4b27ae72a4791d5bbdade787",
                    "address": "37jKPSmbEGwgfacCr2nayn1wTaqMAbA94Z",
                    "type": "scripthash"
                }
            },
            {
                "value": 3.16604824,
                "n": 1,
                "scriptPubKey": {
                    "asm": "OP_HASH160 5249bdf2c131d43995cff42e8feee293f79297a8 OP_EQUAL",
                    "desc": "addr(39C7fxSzEACPjM78Z7xdPxhf7mKxJwvfMJ)#vjljy0jc",
                    "hex": "a9145249bdf2c131d43995cff42e8feee293f79297a887",
                    "address": "39C7fxSzEACPjM78Z7xdPxhf7mKxJwvfMJ",
                    "type": "scripthash"
                }
            },
            {
                "value": 0,
                "n": 2,
                "scriptPubKey": {
                    "asm": "OP_RETURN aa21a9ede00d59f3ccf95a2f6ad5b74a02d059e77df68b8a6976eb8090f064cff1073dfd",
                    "desc": "raw(6a24aa21a9ede00d59f3ccf95a2f6ad5b74a02d059e77df68b8a6976eb8090f064cff1073dfd)#mzw80vgz",
                    "hex": "6a24aa21a9ede00d59f3ccf95a2f6ad5b74a02d059e77df68b8a6976eb8090f064cff1073dfd",
                    "type": "nulldata"
                }
            },
            {
                "value": 0,
                "n": 3,
                "scriptPubKey": {
                    "asm": "OP_RETURN 434f524501a21cbd3caa4fe89bccd1d716c92ce4533e4d47334e3ecda72cb7961caa4b541b1e322bcfe0b5a030",
                    "desc": "raw(6a2d434f524501a21cbd3caa4fe89bccd1d716c92ce4533e4d47334e3ecda72cb7961caa4b541b1e322bcfe0b5a030)#wk5e7nlh",
                    "hex": "6a2d434f524501a21cbd3caa4fe89bccd1d716c92ce4533e4d47334e3ecda72cb7961caa4b541b1e322bcfe0b5a030",
                    "type": "nulldata"
                }
            },
            {
                "value": 0,
                "n": 4,
                "scriptPubKey": {
                    "asm": "OP_RETURN 52534b424c4f434b3ad15fe028119aeaa2e36aa4759e93b2f1d675f1450506ae623c8ebc2800665d29",
                    "desc": "raw(6a2952534b424c4f434b3ad15fe028119aeaa2e36aa4759e93b2f1d675f1450506ae623c8ebc2800665d29)#amrd3zar",
                    "hex": "6a2952534b424c4f434b3ad15fe028119aeaa2e36aa4759e93b2f1d675f1450506ae623c8ebc2800665d29",
                    "type": "nulldata"
                }
            }
        ]
    }
}
```

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

| Name                                      | Type   | Description                                               |
| ----------------------------------------- | ------ | --------------------------------------------------------- |
| rpc                                       | String | Remote procedural call URL.                               |
| chainId<mark style="color:red;">\*</mark> | String | Refer to the [Chain ID ](/ids/chain-ids)page for details. |
| chainSymbol                               | String | Refer to the [Chain ID ](/ids/chain-ids)page for details. |
| address<mark style="color:red;">\*</mark> | String | The public address of the user.                           |
| beforeBlock                               | String | The block number before which user wants the transaction  |
| afterBlock                                | String | The block number after which user wants the transaction   |

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

```
https://historicallp.api.expand.network/chain/getusertransactions?address=37jKPSmbEGwgfacCr2nayn1wTaqMAbA94Z&chainId=1800&beforeBlock=851602&afterBlock=851600
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": [
        {
            "block_hash": "000000000000000000033182f3c881df668716dddbb80c1809a40028cc5ec170",
            "block_height": "851601",
            "block_index": "3065",
            "hash": "3ca298b08764de24a4709a67c0bc1339ff368f25b1937cff253b97515dbdf1c4",
            "addresses": [
                "37C5BuwUSWxKaruWjJFWa3F8cyENnax5x9",
                "37jKPSmbEGwgfacCr2nayn1wTaqMAbA94Z",
                "3A5XsaqpFp6ss1KPhiB9g4JgQKL6sLHrNz"
            ],
            "total": "11657",
            "fees": "1998",
            "size": "248",
            "vsize": "166",
            "preference": "low",
            "relayed_by": "185.207.250.113:8333",
            "confirmed": "2024-07-10T21:35:36Z",
            "received": "2024-07-10T21:26:15.8Z",
            "ver": "2",
            "double_spend": true,
            "double_spend_tx": "118c11f936956835d569c06db5fdf2ab01b8bf2e928b1132479f1abad823a862",
            "vin_sz": "1",
            "vout_sz": "2",
            "opt_in_rbf": true,
            "confirmations": "15428",
            "confidence": "1",
            "inputs": [
                {
                    "prev_hash": "c565fbecad40d8b503eb16c81d9ba6393d0cbd3fcf035c994ffbc7b825b41034",
                    "output_index": 1,
                    "script": "16001452be712f73b6090291d1b0e3d7286cbf5cd6e98d",
                    "output_value": 13655,
                    "sequence": 4294967293,
                    "addresses": [
                        "37C5BuwUSWxKaruWjJFWa3F8cyENnax5x9"
                    ],
                    "script_type": "pay-to-script-hash",
                    "age": 851285
                }
            ],
            "outputs": [
                {
                    "value": 5230,
                    "script": "a91442402a28dd61f2718a4b27ae72a4791d5bbdade787",
                    "addresses": [
                        "37jKPSmbEGwgfacCr2nayn1wTaqMAbA94Z"
                    ],
                    "script_type": "pay-to-script-hash"
                },
                {
                    "value": 6427,
                    "script": "a9145c032856d1d39a0c7c1d8edb9da07157d55dc0fd87",
                    "addresses": [
                        "3A5XsaqpFp6ss1KPhiB9g4JgQKL6sLHrNz"
                    ],
                    "script_type": "pay-to-script-hash"
                }
            ]
        },
        {
            "block_hash": "000000000000000000033182f3c881df668716dddbb80c1809a40028cc5ec170",
            "block_height": "851601",
            "block_index": "0",
            "hash": "f4c70e9e3913b5e91b3e99e73abeace05fadc1b732325cba8bdfc44d895d1519",
            "addresses": [
                "37jKPSmbEGwgfacCr2nayn1wTaqMAbA94Z",
                "39C7fxSzEACPjM78Z7xdPxhf7mKxJwvfMJ"
            ],
            "total": "333502543",
            "fees": "0",
            "size": "394",
            "vsize": "367",
            "preference": "low",
            "confirmed": "2024-07-10T21:35:56.382Z",
            "received": "2024-07-10T21:35:56.382Z",
            "ver": "1",
            "double_spend": false,
            "vin_sz": "1",
            "vout_sz": "5",
            "data_protocol": "unknown",
            "confirmations": "15428",
            "confidence": "1",
            "inputs": [
                {
                    "output_index": -1,
                    "script": "0391fe0c1b4d696e656420627920416e74506f6f6c39373048000900f1531e29fabe6d6dbf41fbf281994f2053388f4e6632661be25c35c139d1be8c690898054986e197100000000000000055d400001f89030000000000",
                    "sequence": 4294967295,
                    "script_type": "empty",
                    "age": 851601
                }
            ],
            "outputs": [
                {
                    "value": 546,
                    "script": "a91442402a28dd61f2718a4b27ae72a4791d5bbdade787",
                    "addresses": [
                        "37jKPSmbEGwgfacCr2nayn1wTaqMAbA94Z"
                    ],
                    "script_type": "pay-to-script-hash"
                },
                {
                    "value": 333501997,
                    "script": "a9145249bdf2c131d43995cff42e8feee293f79297a887",
                    "spent_by": "9911a1a7954ba88db19c58713c7dfc7c98f1ad76c12929aad47c6b0aaa5d9175",
                    "addresses": [
                        "39C7fxSzEACPjM78Z7xdPxhf7mKxJwvfMJ"
                    ],
                    "script_type": "pay-to-script-hash"
                },
                {
                    "value": 0,
                    "script": "6a24aa21a9ed8610cc611bd9e597857dd2dd7cad5fb423f2bf478c79c1a3df4928902ebcc9e8",
                    "addresses": null,
                    "script_type": "null-data",
                    "data_hex": "aa21a9ed8610cc611bd9e597857dd2dd7cad5fb423f2bf478c79c1a3df4928902ebcc9e8"
                },
                {
                    "value": 0,
                    "script": "6a2d434f52450142fdeae88682a965939fee9b7b2bd5b99694ff644e3ecda72cb7961caa4b541b1e322bcfe0b5a030",
                    "addresses": null,
                    "script_type": "null-data",
                    "data_hex": "434f52450142fdeae88682a965939fee9b7b2bd5b99694ff644e3ecda72cb7961caa4b541b1e322bcfe0b5a030"
                },
                {
                    "value": 0,
                    "script": "6a2952534b424c4f434b3afb4d16eac4f887858731687afc60395728ae83ad7b032f6ec4c88e200063555f",
                    "addresses": null,
                    "script_type": "null-data",
                    "data_hex": "52534b424c4f434b3afb4d16eac4f887858731687afc60395728ae83ad7b032f6ec4c88e200063555f"
                }
            ]
        }
    ]
}
```

{% endtab %}
{% endtabs %}

### **/sendtransaction**

Send transaction on the chain.

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

#### Request Body

<table><thead><tr><th width="170">Name</th><th width="100">Type</th><th>Description</th></tr></thead><tbody><tr><td>chainId<mark style="color:red;">*</mark></td><td>Integer</td><td>Refer to the <a href="/pages/5o1xMsQPqXw9GBfGTpdB">Chain ID </a>page for details. </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 encoded transaction, obtained from signed transaction.</td></tr><tr><td>rpc</td><td>String</td><td>Remote procedural call URL.</td></tr></tbody></table>

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

```json
{
    "chainId": "1801",
    "rawTransaction": "0200000001b2cd2ca1b85f93efe4a1d5fff142c764b9dde952090a1df01ed91e1ecab556d5000000006a4730440220425f6ca7ea82b7908624325cbc04c275967554e1b61f0becc880ff1306189c8d02207e158fccf87d53f97202d6fbaef15b9657a64cfb3c3d4fecb7ec2d471275a7f10121020822423e4027dce4b95564c0ad290113a5889ef9549d1f9b7135d58c4ef0cf43ffffffff01401f0000000000001976a9146451080a31a19e43943256d3fa70259e4af6ef2f88ac00000000"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1801",
        "transactionHash": "8aa0e8cfbc5b4e4facd418038dabe08ba87927c1619e94c47ad7147427d87c52"
    }
}
```

{% 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="170">Name</th><th width="100">Type</th><th>Description</th></tr></thead><tbody><tr><td>chainId<mark style="color:red;">*</mark></td><td>Integer</td><td>Refer to the <a href="/pages/5o1xMsQPqXw9GBfGTpdB">Chain ID </a>page for details. </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 encoded transaction, obtained from signed transaction.</td></tr><tr><td>rpc</td><td>String</td><td>Remote procedural call URL.</td></tr></tbody></table>

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

```json
{
    "chainId": "1801",
    "rawTransaction": "0100000001eaefefbd1f687ef4e861804aed59ef05e743ea85f432cc146f325d759a026ce6010000006a4730440220718954e28983c875858b5a0094df4607ce2e7c6e9ffea47f3876792b01755c1202205e2adc7c32ff64aaef6d26045f96181e8741e560b6f3a8ef2f4ffd2892add656012103142355370728640592109c3d2bf5592020a6b9226303c8bc98ab2ebcadf057abffffffff02005a6202000000001976a914fe7e0711287688b33b9a5c239336c4700db34e6388ac10ca0f24010000001976a914af92ad98c7f77559f96430dfef2a6805b87b24f888ac00000000"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "txid": "0e690d6655767c8b388e7403d13dc9ebe49b68e3bd46248c840544f9da87d1e8",
        "hash": "0e690d6655767c8b388e7403d13dc9ebe49b68e3bd46248c840544f9da87d1e8",
        "version": 1,
        "size": 225,
        "vsize": 225,
        "weight": 900,
        "locktime": 0,
        "vin": [
            {
                "txid": "e66c029a755d326f14cc32f485ea43e705ef59ed4a8061e8f47e681fbdefefea",
                "vout": 1,
                "scriptSig": {
                    "asm": "30440220718954e28983c875858b5a0094df4607ce2e7c6e9ffea47f3876792b01755c1202205e2adc7c32ff64aaef6d26045f96181e8741e560b6f3a8ef2f4ffd2892add656[ALL] 03142355370728640592109c3d2bf5592020a6b9226303c8bc98ab2ebcadf057ab",
                    "hex": "4730440220718954e28983c875858b5a0094df4607ce2e7c6e9ffea47f3876792b01755c1202205e2adc7c32ff64aaef6d26045f96181e8741e560b6f3a8ef2f4ffd2892add656012103142355370728640592109c3d2bf5592020a6b9226303c8bc98ab2ebcadf057ab"
                },
                "sequence": 4294967295
            }
        ],
        "vout": [
            {
                "value": 0.4,
                "n": 0,
                "scriptPubKey": {
                    "asm": "OP_DUP OP_HASH160 fe7e0711287688b33b9a5c239336c4700db34e63 OP_EQUALVERIFY OP_CHECKSIG",
                    "desc": "addr(n4iauL838sLmADwTwfRkeejc4jCs8UJsTE)#mvv4ular",
                    "hex": "76a914fe7e0711287688b33b9a5c239336c4700db34e6388ac",
                    "address": "n4iauL838sLmADwTwfRkeejc4jCs8UJsTE",
                    "type": "pubkeyhash"
                }
            },
            {
                "value": 48.9998184,
                "n": 1,
                "scriptPubKey": {
                    "asm": "OP_DUP OP_HASH160 af92ad98c7f77559f96430dfef2a6805b87b24f8 OP_EQUALVERIFY OP_CHECKSIG",
                    "desc": "addr(mwXJFzrRk86NoH7uKytkSq2rbCkV9tgAgp)#udqp0ch4",
                    "hex": "76a914af92ad98c7f77559f96430dfef2a6805b87b24f888ac",
                    "address": "mwXJFzrRk86NoH7uKytkSq2rbCkV9tgAgp",
                    "type": "pubkeyhash"
                }
            }
        ]
    }
}
```

{% endtab %}
{% endtabs %}


# Stellar

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

| Name                                      | Type   | Description                                                                                                                   |
| ----------------------------------------- | ------ | ----------------------------------------------------------------------------------------------------------------------------- |
| rpc                                       | String | Remote procedural call URL                                                                                                    |
| chainId<mark style="color:red;">\*</mark> | String | Refer to the [Chain ID ](/ids/chain-ids)page for details.                                                                     |
| chainSymbol                               | String | Refer to the [Chain ID ](/ids/chain-ids)page for details.                                                                     |
| address<mark style="color:red;">\*</mark> | String | The public address to get the balance of.                                                                                     |
| issuer                                    | String | The public address of the issuer.                                                                                             |
| assetCode                                 | String | <p>The code of asset to get the balance of.<br><mark style="color:red;">\*</mark>Required, if issuer address is provided.</p> |

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

```url
https://api.expand.network/chain/getbalance/?chainId=1500&address=GC4KAS6W2YCGJGLP633A6F6AKTCV4WSLMTMIQRSEQE5QRRVKSX7THV6S&issuer=GDM4RQUQQUVSKQA7S6EM7XBZP3FCGH4Q7CL6TABQ7B2BEJ5ERARM2M5M&assetCode=VELO
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "assetCode": "VELO",
        "issuer": "GDM4RQUQQUVSKQA7S6EM7XBZP3FCGH4Q7CL6TABQ7B2BEJ5ERARM2M5M",
        "balance": "2555109235706160"
    }
}
```

{% endtab %}
{% endtabs %}

### /getblock

Get details for a specified block (ledger).

<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 ](/ids/chain-ids)page for details. |
| chainSymbol                                   | String | Refer to the [Chain ID ](/ids/chain-ids)page for details. |
| blockNumber<mark style="color:red;">\*</mark> | String | Sequence number of the ledger.                            |

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

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

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "difficulty": null,
        "gasLimit": null,
        "gasUsed": null,
        "hash": "691675c6d439f546fc4996740a3ab899f77b11eca15890e4035a6196de194720",
        "miner": null,
        "nonce": null,
        "number": 50755373,
        "parentHash": "b734852cf9763646a2c42da652a06d309ce928e0a877fa70a6ce9981f79954d8",
        "size": null,
        "timestamp": 1710228542,
        "totalDifficulty": null,
        "transactions": [
            {
                "hash": "f4c5391ab820ef19f2cd0df68789336f04ac316d4fdf705545a0062194c3f3f1",
                "transactionStatus": true,
                "blockNumber": "50755373",
                "timestamp": "1710228542000",
                "from": "GDBUC4SQVYSI3EDT3QT26UABN2POJ355CDA5CUUVDGWWI2PDWB2MJQWN",
                "to": null,
                "value": null,
                "transactionFees": "100",
                "gas": "250005",
                "gasPrice": "100",
                "input": null,
                "nonce": 175248559896083620,
                "network": null,
                "transactionEnvelop": [
                    {
                        "type": "TransactionEnvelope",
                        "value": "[envelopeTypeTx]",
                        "nodes": [
                            {
                                "type": "v1",
                                "nodes": [
                                    {
                                        "type": "tx",
                                        "nodes": [
                                            {
                                                "type": "sourceAccount",
                                                "value": "[keyTypeEd25519]",
                                                "nodes": [
                                                    {
                                                        "type": "ed25519",
                                                        "value": {
                                                            "type": "code",
                                                            "value": "GDBUC4SQVYSI3EDT3QT26UABN2POJ355CDA5CUUVDGWWI2PDWB2MJQWN"
                                                        }
                                                    }
                                                ]
                                            },
                                            {
                                                "type": "fee",
                                                "value": "250005"
                                            },
                                            {
                                                "type": "seqNum",
                                                "value": "175248559896083608"
                                            },
                                            {
                                                "type": "cond",
                                                "value": "[precondTime]",
                                                "nodes": [
                                                    {
                                                        "type": "timeBounds",
                                                        "nodes": [
                                                            {
                                                                "type": "minTime",
                                                                "value": "0"
                                                            },
                                                            {
                                                                "type": "maxTime",
                                                                "value": "1710228571"
                                                            }
                                                        ]
                                                    }
                                                ]
                                            },
                                            {
                                                "type": "memo",
                                                "value": "[memoNone]"
                                            },
                                            {
                                                "type": "operations",
                                                "value": "Array[1]",
                                                "nodes": [
                                                    {
                                                        "type": "[0]",
                                                        "nodes": [
                                                            {
                                                                "type": "sourceAccount",
                                                                "value": "[keyTypeEd25519]",
                                                                "nodes": [
                                                                    {
                                                                        "type": "ed25519",
                                                                        "value": {
                                                                            "type": "code",
                                                                            "value": "GBWHHC2FRUS2RG7EVWOZ3YMRN45VXCS4ILGVCX2QALBUFVHUGNO6P4IY"
                                                                        }
                                                                    }
                                                                ]
                                                            },
                                                            {
                                                                "type": "body",
                                                                "value": "[manageBuyOffer]",
                                                                "nodes": [
                                                                    {
                                                                        "type": "manageBuyOfferOp",
                                                                        "nodes": [
                                                                            {
                                                                                "type": "selling",
                                                                                "value": "[assetTypeNative]"
                                                                            },
                                                                            {
                                                                                "type": "buying",
                                                                                "value": "[assetTypeCreditAlphanum12]",
                                                                                "nodes": [
                                                                                    {
                                                                                        "type": "alphaNum12",
                                                                                        "nodes": [
                                                                                            {
                                                                                                "type": "assetCode",
                                                                                                "value":"yUSDC�������"
                                                                                            },
                                                                                            {
                                                                                                "type": "issuer",
                                                                                                "value": "[publicKeyTypeEd25519]",
                                                                                                "nodes": [
                                                                                                    {
                                                                                                        "type": "ed25519",
                                                                                                        "value": {
                                                                                                            "type": "code",
                                                                                                            "value": "GDGTVWSM4MGS4T7Z6W4RPWOCHE2I6RDFCIFZGS3DOA63LWQTRNZNTTFF"
                                                                                                        }
                                                                                                    }
                                                                                                ]
                                                                                            }
                                                                                        ]
                                                                                    }
                                                                                ]
                                                                            },
                                                                            {
                                                                                "type": "buyAmount",
                                                                                "value": "50192138338"
                                                                            },
                                                                            {
                                                                                "type": "price",
                                                                                "nodes": [
                                                                                    {
                                                                                        "type": "n",
                                                                                        "value": "1000"
                                                                                    },
                                                                                    {
                                                                                        "type": "d",
                                                                                        "value": "199999"
                                                                                    }
                                                                                ]
                                                                            },
                                                                            {
                                                                                "type": "offerId",
                                                                                "value": "0"
                                                                            }
                                                                        ]
                                                                    }
                                                                ]
                                                            }
                                                        ]
                                                    }
                                                ]
                                            },
                                            {
                                                "type": "ext",
                                                "value": "[undefined]"
                                            }
                                        ]
                                    },
                                    {
                                        "type": "signatures",
                                        "value": "Array[2]",
                                        "nodes": [
                                            {
                                                "type": "[0]",
                                                "nodes": [
                                                    {
                                                        "type": "hint",
                                                        "value": {
                                                            "type": "code",
                                                            "value": "G______________________________________________UGNO6____"
                                                        }
                                                    },
                                                    {
                                                        "type": "signature",
                                                        "value": {
                                                            "type": "code",
                                                            "raw": {
                                                                "type": "Buffer",
                                                                "data": [
                                                                    202,
                                                                    255,
                                                                    202,
                                                                    117,
                                                                    226,
                                                                    24,
                                                                    210,
                                                                    21,
                                                                    54,
                                                                    44,
                                                                    16,
                                                                    32,
                                                                    92,
                                                                    176,
                                                                    255,
                                                                    253,
                                                                    196,
                                                                    126,
                                                                    9,
                                                                    93,
                                                                    6,
                                                                    113,
                                                                    1,
                                                                    23,
                                                                    251,
                                                                    190,
                                                                    231,
                                                                    4,
                                                                    6,
                                                                    68,
                                                                    141,
                                                                    99,
                                                                    213,
                                                                    48,
                                                                    225,
                                                                    54,
                                                                    14,
                                                                    219,
                                                                    28,
                                                                    247,
                                                                    74,
                                                                    60,
                                                                    97,
                                                                    134,
                                                                    7,
                                                                    115,
                                                                    162,
                                                                    105,
                                                                    183,
                                                                    133,
                                                                    155,
                                                                    154,
                                                                    177,
                                                                    88,
                                                                    63,
                                                                    215,
                                                                    70,
                                                                    84,
                                                                    74,
                                                                    189,
                                                                    248,
                                                                    54,
                                                                    169,
                                                                    15
                                                                ]
                                                            },
                                                            "value": "yv/KdeIY0hU2LBAgXLD//cR+CV0GcQEX+77nBAZEjWPVMOE2Dtsc90o8YYYHc6Jpt4WbmrFYP9dGVEq9+DapDw=="
                                                        }
                                                    }
                                                ]
                                            },
                                            {
                                                "type": "[1]",
                                                "nodes": [
                                                    {
                                                        "type": "hint",
                                                        "value": {
                                                            "type": "code",
                                                            "value": "G______________________________________________DWB2M____"
                                                        }
                                                    },
                                                    {
                                                        "type": "signature",
                                                        "value": {
                                                            "type": "code",
                                                            "raw": {
                                                                "type": "Buffer",
                                                                "data": [
                                                                    213,
                                                                    153,
                                                                    194,
                                                                    52,
                                                                    85,
                                                                    57,
                                                                    113,
                                                                    3,
                                                                    104,
                                                                    213,
                                                                    78,
                                                                    155,
                                                                    205,
                                                                    161,
                                                                    80,
                                                                    177,
                                                                    128,
                                                                    16,
                                                                    60,
                                                                    130,
                                                                    251,
                                                                    2,
                                                                    124,
                                                                    52,
                                                                    9,
                                                                    67,
                                                                    91,
                                                                    253,
                                                                    154,
                                                                    13,
                                                                    213,
                                                                    188,
                                                                    7,
                                                                    84,
                                                                    58,
                                                                    205,
                                                                    172,
                                                                    39,
                                                                    93,
                                                                    196,
                                                                    241,
                                                                    218,
                                                                    166,
                                                                    246,
                                                                    181,
                                                                    82,
                                                                    7,
                                                                    247,
                                                                    21,
                                                                    253,
                                                                    27,
                                                                    141,
                                                                    52,
                                                                    78,
                                                                    71,
                                                                    138,
                                                                    146,
                                                                    86,
                                                                    245,
                                                                    156,
                                                                    170,
                                                                    199,
                                                                    159,
                                                                    6
                                                                ]
                                                            },
                                                            "value": "1ZnCNFU5cQNo1U6bzaFQsYAQPIL7Anw0CUNb/ZoN1bwHVDrNrCddxPHapva1Ugf3Ff0bjTROR4qSVvWcqsefBg=="
                                                        }
                                                    }
                                                ]
                                            }
                                        ]
                                    }
                                ]
                            }
                        ]
                    }
                ],
                "transactionResult": [
                    {
                        "type": "TransactionResult",
                        "nodes": [
                            {
                                "type": "feeCharged",
                                "value": "100"
                            },
                            {
                                "type": "result",
                                "value": "[txSuccess]",
                                "nodes": [
                                    {
                                        "type": "results",
                                        "value": "Array[1]",
                                        "nodes": [
                                            {
                                                "type": "[0]",
                                                "value": "[opInner]",
                                                "nodes": [
                                                    {
                                                        "type": "tr",
                                                        "value": "[manageBuyOffer]",
                                                        "nodes": [
                                                            {
                                                                "type": "manageBuyOfferResult",
                                                                "value": "[manageBuyOfferSuccess]",
                                                                "nodes": [
                                                                    {
                                                                        "type": "success",
                                                                        "nodes": [
                                                                            {
                                                                                "type": "offersClaimed",
                                                                                "value": "Array[0]",
                                                                                "nodes": []
                                                                            },
                                                                            {
                                                                                "type": "offer",
                                                                                "value": "[manageOfferCreated]",
                                                                                "nodes": [
                                                                                    {
                                                                                        "type": "offer",
                                                                                        "nodes": [
                                                                                            {
                                                                                                "type": "sellerId",
                                                                                                "value": "[publicKeyTypeEd25519]",
                                                                                                "nodes": [
                                                                                                    {
                                                                                                        "type": "ed25519",
                                                                                                        "value": {
                                                                                                            "type": "code",
                                                                                                            "value": "GBWHHC2FRUS2RG7EVWOZ3YMRN45VXCS4ILGVCX2QALBUFVHUGNO6P4IY"
                                                                                                        }
                                                                                                    }
                                                                                                ]
                                                                                            },
                                                                                            {
                                                                                                "type": "offerId",
                                                                                                "value": "1492969708"
                                                                                            },
                                                                                            {
                                                                                                "type": "selling",
                                                                                                "value": "[assetTypeNative]"
                                                                                            },
                                                                                            {
                                                                                                "type": "buying",
                                                                                                "value": "[assetTypeCreditAlphanum12]",
                                                                                                "nodes": [
                                                                                                    {
                                                                                                        "type": "alphaNum12",
                                                                                                        "nodes": [
                                                                                                            {
                                                                                                                "type": "assetCode",
                                                                                                                "value":"yUSDC�������"
                                                                                                            },
                                                                                                            {
                                                                                                                "type": "issuer",
                                                                                                                "value": "[publicKeyTypeEd25519]",
                                                                                                                "nodes": [
                                                                                                                    {
                                                                                                                        "type": "ed25519",
                                                                                                                        "value": {
                                                                                                                            "type": "code",
                                                                                                                            "value": "GDGTVWSM4MGS4T7Z6W4RPWOCHE2I6RDFCIFZGS3DOA63LWQTRNZNTTFF"
                                                                                                                        }
                                                                                                                    }
                                                                                                                ]
                                                                                                            }
                                                                                                        ]
                                                                                                    }
                                                                                                ]
                                                                                            },
                                                                                            {
                                                                                                "type": "amount",
                                                                                                "value": {
                                                                                                    "type": "amount",
                                                                                                    "value": {
                                                                                                        "parsed": "25.0961946",
                                                                                                        "raw": "250961946"
                                                                                                    }
                                                                                                }
                                                                                            },
                                                                                            {
                                                                                                "type": "price",
                                                                                                "nodes": [
                                                                                                    {
                                                                                                        "type": "n",
                                                                                                        "value": "199999"
                                                                                                    },
                                                                                                    {
                                                                                                        "type": "d",
                                                                                                        "value": "1000"
                                                                                                    }
                                                                                                ]
                                                                                            },
                                                                                            {
                                                                                                "type": "flags",
                                                                                                "value": "0"
                                                                                            },
                                                                                            {
                                                                                                "type": "ext",
                                                                                                "value": "[undefined]"
                                                                                            }
                                                                                        ]
                                                                                    }
                                                                                ]
                                                                            }
                                                                        ]
                                                                    }
                                                                ]
                                                            }
                                                        ]
                                                    }
                                                ]
                                            }
                                        ]
                                    }
                                ]
                            },
                            {
                                "type": "ext",
                                "value": "[undefined]"
                            }
                        ]
                    }
                ],
                "transactionMeta": [
                    {
                        "type": "TransactionMeta",
                        "value": "[undefined]",
                        "nodes": [
                            {
                                "type": "v3",
                                "nodes": [
                                    {
                                        "type": "ext",
                                        "value": "[undefined]"
                                    },
                                    {
                                        "type": "txChangesBefore",
                                        "value": "Array[2]",
                                        "nodes": [
                                            {
                                                "type": "[0]",
                                                "value": "[ledgerEntryState]",
                                                "nodes": [
                                                    {
                                                        "type": "state",
                                                        "nodes": [
                                                            {
                                                                "type": "lastModifiedLedgerSeq",
                                                                "value": "50755373"
                                                            },
                                                            {
                                                                "type": "data",
                                                                "value": "[account]",
                                                                "nodes": [
                                                                    {
                                                                        "type": "account",
                                                                        "nodes": [
                                                                            {
                                                                                "type": "accountId",
                                                                                "value": "[publicKeyTypeEd25519]",
                                                                                "nodes": [
                                                                                    {
                                                                                        "type": "ed25519",
                                                                                        "value": {
                                                                                            "type": "code",
                                                                                            "value": "GDBUC4SQVYSI3EDT3QT26UABN2POJ355CDA5CUUVDGWWI2PDWB2MJQWN"
                                                                                        }
                                                                                    }
                                                                                ]
                                                                            },
                                                                            {
                                                                                "type": "balance",
                                                                                "value": "28406087"
                                                                            },
                                                                            {
                                                                                "type": "seqNum",
                                                                                "value": "175248559896083607"
                                                                            },
                                                                            {
                                                                                "type": "numSubEntries",
                                                                                "value": "0"
                                                                            },
                                                                            {
                                                                                "type": "inflationDest",
                                                                                "value": null
                                                                            },
                                                                            {
                                                                                "type": "flags",
                                                                                "value": "0"
                                                                            },
                                                                            {
                                                                                "type": "homeDomain",
                                                                                "value": {
                                                                                    "type": "code",
                                                                                    "raw": {
                                                                                        "type": "Buffer",
                                                                                        "data": []
                                                                                    },
                                                                                    "value": ""
                                                                                }
                                                                            },
                                                                            {
                                                                                "type": "thresholds",
                                                                                "value": {
                                                                                    "type": "code",
                                                                                    "raw": {
                                                                                        "type": "Buffer",
                                                                                        "data": [
                                                                                            1,
                                                                                            0,
                                                                                            0,
                                                                                            0
                                                                                        ]
                                                                                    },
                                                                                    "value": "AQAAAA=="
                                                                                }
                                                                            },
                                                                            {
                                                                                "type": "signers",
                                                                                "value": "Array[0]",
                                                                                "nodes": []
                                                                            },
                                                                            {
                                                                                "type": "ext",
                                                                                "value": "[undefined]",
                                                                                "nodes": [
                                                                                    {
                                                                                        "type": "v1",
                                                                                        "nodes": [
                                                                                            {
                                                                                                "type": "liabilities",
                                                                                                "nodes": [
                                                                                                    {
                                                                                                        "type": "buying",
                                                                                                        "value": "0"
                                                                                                    },
                                                                                                    {
                                                                                                        "type": "selling",
                                                                                                        "value": "0"
                                                                                                    }
                                                                                                ]
                                                                                            },
                                                                                            {
                                                                                                "type": "ext",
                                                                                                "value": "[undefined]",
                                                                                                "nodes": [
                                                                                                    {
                                                                                                        "type": "v2",
                                                                                                        "nodes": [
                                                                                                            {
                                                                                                                "type": "numSponsored",
                                                                                                                "value": "0"
                                                                                                            },
                                                                                                            {
                                                                                                                "type": "numSponsoring",
                                                                                                                "value": "0"
                                                                                                            },
                                                                                                            {
                                                                                                                "type": "signerSponsoringIDs",
                                                                                                                "value": "Array[0]",
                                                                                                                "nodes": []
                                                                                                            },
                                                                                                            {
                                                                                                                "type": "ext",
                                                                                                                "value": "[undefined]",
                                                                                                                "nodes": [
                                                                                                                    {
                                                                                                                        "type": "v3",
                                                                                                                        "nodes": [
                                                                                                                            {
                                                                                                                                "type": "ext",
                                                                                                                                "value": "[undefined]"
                                                                                                                            },
                                                                                                                            {
                                                                                                                                "type": "seqLedger",
                                                                                                                                "value": "50755234"
                                                                                                                            },
                                                                                                                            {
                                                                                                                                "type": "seqTime",
                                                                                                                                "value": "1710227684"
                                                                                                                            }
                                                                                                                        ]
                                                                                                                    }
                                                                                                                ]
                                                                                                            }
                                                                                                        ]
                                                                                                    }
                                                                                                ]
                                                                                            }
                                                                                        ]
                                                                                    }
                                                                                ]
                                                                            }
                                                                        ]
                                                                    }
                                                                ]
                                                            },
                                                            {
                                                                "type": "ext",
                                                                "value": "[undefined]"
                                                            }
                                                        ]
                                                    }
                                                ]
                                            },
                                            {
                                                "type": "[1]",
                                                "value": "[ledgerEntryUpdated]",
                                                "nodes": [
                                                    {
                                                        "type": "updated",
                                                        "nodes": [
                                                            {
                                                                "type": "lastModifiedLedgerSeq",
                                                                "value": "50755373"
                                                            },
                                                            {
                                                                "type": "data",
                                                                "value": "[account]",
                                                                "nodes": [
                                                                    {
                                                                        "type": "account",
                                                                        "nodes": [
                                                                            {
                                                                                "type": "accountId",
                                                                                "value": "[publicKeyTypeEd25519]",
                                                                                "nodes": [
                                                                                    {
                                                                                        "type": "ed25519",
                                                                                        "value": {
                                                                                            "type": "code",
                                                                                            "value": "GDBUC4SQVYSI3EDT3QT26UABN2POJ355CDA5CUUVDGWWI2PDWB2MJQWN"
                                                                                        }
                                                                                    }
                                                                                ]
                                                                            },
                                                                            {
                                                                                "type": "balance",
                                                                                "value": "28406087"
                                                                            },
                                                                            {
                                                                                "type": "seqNum",
                                                                                "value": "175248559896083608"
                                                                            },
                                                                            {
                                                                                "type": "numSubEntries",
                                                                                "value": "0"
                                                                            },
                                                                            {
                                                                                "type": "inflationDest",
                                                                                "value": null
                                                                            },
                                                                            {
                                                                                "type": "flags",
                                                                                "value": "0"
                                                                            },
                                                                            {
                                                                                "type": "homeDomain",
                                                                                "value": {
                                                                                    "type": "code",
                                                                                    "raw": {
                                                                                        "type": "Buffer",
                                                                                        "data": []
                                                                                    },
                                                                                    "value": ""
                                                                                }
                                                                            },
                                                                            {
                                                                                "type": "thresholds",
                                                                                "value": {
                                                                                    "type": "code",
                                                                                    "raw": {
                                                                                        "type": "Buffer",
                                                                                        "data": [
                                                                                            1,
                                                                                            0,
                                                                                            0,
                                                                                            0
                                                                                        ]
                                                                                    },
                                                                                    "value": "AQAAAA=="
                                                                                }
                                                                            },
                                                                            {
                                                                                "type": "signers",
                                                                                "value": "Array[0]",
                                                                                "nodes": []
                                                                            },
                                                                            {
                                                                                "type": "ext",
                                                                                "value": "[undefined]",
                                                                                "nodes": [
                                                                                    {
                                                                                        "type": "v1",
                                                                                        "nodes": [
                                                                                            {
                                                                                                "type": "liabilities",
                                                                                                "nodes": [
                                                                                                    {
                                                                                                        "type": "buying",
                                                                                                        "value": "0"
                                                                                                    },
                                                                                                    {
                                                                                                        "type": "selling",
                                                                                                        "value": "0"
                                                                                                    }
                                                                                                ]
                                                                                            },
                                                                                            {
                                                                                                "type": "ext",
                                                                                                "value": "[undefined]",
                                                                                                "nodes": [
                                                                                                    {
                                                                                                        "type": "v2",
                                                                                                        "nodes": [
                                                                                                            {
                                                                                                                "type": "numSponsored",
                                                                                                                "value": "0"
                                                                                                            },
                                                                                                            {
                                                                                                                "type": "numSponsoring",
                                                                                                                "value": "0"
                                                                                                            },
                                                                                                            {
                                                                                                                "type": "signerSponsoringIDs",
                                                                                                                "value": "Array[0]",
                                                                                                                "nodes": []
                                                                                                            },
                                                                                                            {
                                                                                                                "type": "ext",
                                                                                                                "value": "[undefined]",
                                                                                                                "nodes": [
                                                                                                                    {
                                                                                                                        "type": "v3",
                                                                                                                        "nodes": [
                                                                                                                            {
                                                                                                                                "type": "ext",
                                                                                                                                "value": "[undefined]"
                                                                                                                            },
                                                                                                                            {
                                                                                                                                "type": "seqLedger",
                                                                                                                                "value": "50755373"
                                                                                                                            },
                                                                                                                            {
                                                                                                                                "type": "seqTime",
                                                                                                                                "value": "1710228542"
                                                                                                                            }
                                                                                                                        ]
                                                                                                                    }
                                                                                                                ]
                                                                                                            }
                                                                                                        ]
                                                                                                    }
                                                                                                ]
                                                                                            }
                                                                                        ]
                                                                                    }
                                                                                ]
                                                                            }
                                                                        ]
                                                                    }
                                                                ]
                                                            },
                                                            {
                                                                "type": "ext",
                                                                "value": "[undefined]"
                                                            }
                                                        ]
                                                    }
                                                ]
                                            }
                                        ]
                                    },
                                    {
                                        "type": "operations",
                                        "value": "Array[1]",
                                        "nodes": [
                                            {
                                                "type": "[0]",
                                                "nodes": [
                                                    {
                                                        "type": "changes",
                                                        "value": "Array[5]",
                                                        "nodes": [
                                                            {
                                                                "type": "[0]",
                                                                "value": "[ledgerEntryState]",
                                                                "nodes": [
                                                                    {
                                                                        "type": "state",
                                                                        "nodes": [
                                                                            {
                                                                                "type": "lastModifiedLedgerSeq",
                                                                                "value": "50755373"
                                                                            },
                                                                            {
                                                                                "type": "data",
                                                                                "value": "[account]",
                                                                                "nodes": [
                                                                                    {
                                                                                        "type": "account",
                                                                                        "nodes": [
                                                                                            {
                                                                                                "type": "accountId",
                                                                                                "value": "[publicKeyTypeEd25519]",
                                                                                                "nodes": [
                                                                                                    {
                                                                                                        "type": "ed25519",
                                                                                                        "value": {
                                                                                                            "type": "code",
                                                                                                            "value": "GBWHHC2FRUS2RG7EVWOZ3YMRN45VXCS4ILGVCX2QALBUFVHUGNO6P4IY"
                                                                                                        }
                                                                                                    }
                                                                                                ]
                                                                                            },
                                                                                            {
                                                                                                "type": "balance",
                                                                                                "value": "130824249934"
                                                                                            },
                                                                                            {
                                                                                                "type": "seqNum",
                                                                                                "value": "157510589776673723"
                                                                                            },
                                                                                            {
                                                                                                "type": "numSubEntries",
                                                                                                "value": "825"
                                                                                            },
                                                                                            {
                                                                                                "type": "inflationDest",
                                                                                                "value": "[publicKeyTypeEd25519]",
                                                                                                "nodes": [
                                                                                                    {
                                                                                                        "type": "ed25519",
                                                                                                        "value": {
                                                                                                            "type": "code",
                                                                                                            "value": "GDCHDRSDOBRMSUDKRE2C4U4KDLNEATJPIHHR2ORFL5BSD56G4DQXL4VW"
                                                                                                        }
                                                                                                    }
                                                                                                ]
                                                                                            },
                                                                                            {
                                                                                                "type": "flags",
                                                                                                "value": "0"
                                                                                            },
                                                                                            {
                                                                                                "type": "homeDomain",
                                                                                                "value": {
                                                                                                    "type": "code",
                                                                                                    "raw": {
                                                                                                        "type": "Buffer",
                                                                                                        "data": [
                                                                                                            108,
                                                                                                            111,
                                                                                                            98,
                                                                                                            115,
                                                                                                            116,
                                                                                                            114,
                                                                                                            46,
                                                                                                            99,
                                                                                                            111
                                                                                                        ]
                                                                                                    },
                                                                                                    "value": "bG9ic3RyLmNv"
                                                                                                }
                                                                                            },
                                                                                            {
                                                                                                "type": "thresholds",
                                                                                                "value": {
                                                                                                    "type": "code",
                                                                                                    "raw": {
                                                                                                        "type": "Buffer",
                                                                                                        "data": [
                                                                                                            1,
                                                                                                            0,
                                                                                                            0,
                                                                                                            0
                                                                                                        ]
                                                                                                    },
                                                                                                    "value": "AQAAAA=="
                                                                                                }
                                                                                            },
                                                                                            {
                                                                                                "type": "signers",
                                                                                                "value": "Array[0]",
                                                                                                "nodes": []
                                                                                            },
                                                                                            {
                                                                                                "type": "ext",
                                                                                                "value": "[undefined]",
                                                                                                "nodes": [
                                                                                                    {
                                                                                                        "type": "v1",
                                                                                                        "nodes": [
                                                                                                            {
                                                                                                                "type": "liabilities",
                                                                                                                "nodes": [
                                                                                                                    {
                                                                                                                        "type": "buying",
                                                                                                                        "value": "368268802115"
                                                                                                                    },
                                                                                                                    {
                                                                                                                        "type": "selling",
                                                                                                                        "value": "93084825646"
                                                                                                                    }
                                                                                                                ]
                                                                                                            },
                                                                                                            {
                                                                                                                "type": "ext",
                                                                                                                "value": "[undefined]",
                                                                                                                "nodes": [
                                                                                                                    {
                                                                                                                        "type": "v2",
                                                                                                                        "nodes": [
                                                                                                                            {
                                                                                                                                "type": "numSponsored",
                                                                                                                                "value": "0"
                                                                                                                            },
                                                                                                                            {
                                                                                                                                "type": "numSponsoring",
                                                                                                                                "value": "0"
                                                                                                                            },
                                                                                                                            {
                                                                                                                                "type": "signerSponsoringIDs",
                                                                                                                                "value": "Array[0]",
                                                                                                                                "nodes": []
                                                                                                                            },
                                                                                                                            {
                                                                                                                                "type": "ext",
                                                                                                                                "value": "[undefined]",
                                                                                                                                "nodes": [
                                                                                                                                    {
                                                                                                                                        "type": "v3",
                                                                                                                                        "nodes": [
                                                                                                                                            {
                                                                                                                                                "type": "ext",
                                                                                                                                                "value": "[undefined]"
                                                                                                                                            },
                                                                                                                                            {
                                                                                                                                                "type": "seqLedger",
                                                                                                                                                "value": "50746677"
                                                                                                                                            },
                                                                                                                                            {
                                                                                                                                                "type": "seqTime",
                                                                                                                                                "value": "1710176726"
                                                                                                                                            }
                                                                                                                                        ]
                                                                                                                                    }
                                                                                                                                ]
                                                                                                                            }
                                                                                                                        ]
                                                                                                                    }
                                                                                                                ]
                                                                                                            }
                                                                                                        ]
                                                                                                    }
                                                                                                ]
                                                                                            }
                                                                                        ]
                                                                                    }
                                                                                ]
                                                                            },
                                                                            {
                                                                                "type": "ext",
                                                                                "value": "[undefined]"
                                                                            }
                                                                        ]
                                                                    }
                                                                ]
                                                            },
                                                            {
                                                                "type": "[1]",
                                                                "value": "[ledgerEntryUpdated]",
                                                                "nodes": [
                                                                    {
                                                                        "type": "updated",
                                                                        "nodes": [
                                                                            {
                                                                                "type": "lastModifiedLedgerSeq",
                                                                                "value": "50755373"
                                                                            },
                                                                            {
                                                                                "type": "data",
                                                                                "value": "[account]",
                                                                                "nodes": [
                                                                                    {
                                                                                        "type": "account",
                                                                                        "nodes": [
                                                                                            {
                                                                                                "type": "accountId",
                                                                                                "value": "[publicKeyTypeEd25519]",
                                                                                                "nodes": [
                                                                                                    {
                                                                                                        "type": "ed25519",
                                                                                                        "value": {
                                                                                                            "type": "code",
                                                                                                            "value": "GBWHHC2FRUS2RG7EVWOZ3YMRN45VXCS4ILGVCX2QALBUFVHUGNO6P4IY"
                                                                                                        }
                                                                                                    }
                                                                                                ]
                                                                                            },
                                                                                            {
                                                                                                "type": "balance",
                                                                                                "value": "130824249934"
                                                                                            },
                                                                                            {
                                                                                                "type": "seqNum",
                                                                                                "value": "157510589776673723"
                                                                                            },
                                                                                            {
                                                                                                "type": "numSubEntries",
                                                                                                "value": "826"
                                                                                            },
                                                                                            {
                                                                                                "type": "inflationDest",
                                                                                                "value": "[publicKeyTypeEd25519]",
                                                                                                "nodes": [
                                                                                                    {
                                                                                                        "type": "ed25519",
                                                                                                        "value": {
                                                                                                            "type": "code",
                                                                                                            "value": "GDCHDRSDOBRMSUDKRE2C4U4KDLNEATJPIHHR2ORFL5BSD56G4DQXL4VW"
                                                                                                        }
                                                                                                    }
                                                                                                ]
                                                                                            },
                                                                                            {
                                                                                                "type": "flags",
                                                                                                "value": "0"
                                                                                            },
                                                                                            {
                                                                                                "type": "homeDomain",
                                                                                                "value": {
                                                                                                    "type": "code",
                                                                                                    "raw": {
                                                                                                        "type": "Buffer",
                                                                                                        "data": [
                                                                                                            108,
                                                                                                            111,
                                                                                                            98,
                                                                                                            115,
                                                                                                            116,
                                                                                                            114,
                                                                                                            46,
                                                                                                            99,
                                                                                                            111
                                                                                                        ]
                                                                                                    },
                                                                                                    "value": "bG9ic3RyLmNv"
                                                                                                }
                                                                                            },
                                                                                            {
                                                                                                "type": "thresholds",
                                                                                                "value": {
                                                                                                    "type": "code",
                                                                                                    "raw": {
                                                                                                        "type": "Buffer",
                                                                                                        "data": [
                                                                                                            1,
                                                                                                            0,
                                                                                                            0,
                                                                                                            0
                                                                                                        ]
                                                                                                    },
                                                                                                    "value": "AQAAAA=="
                                                                                                }
                                                                                            },
                                                                                            {
                                                                                                "type": "signers",
                                                                                                "value": "Array[0]",
                                                                                                "nodes": []
                                                                                            },
                                                                                            {
                                                                                                "type": "ext",
                                                                                                "value": "[undefined]",
                                                                                                "nodes": [
                                                                                                    {
                                                                                                        "type": "v1",
                                                                                                        "nodes": [
                                                                                                            {
                                                                                                                "type": "liabilities",
                                                                                                                "nodes": [
                                                                                                                    {
                                                                                                                        "type": "buying",
                                                                                                                        "value": "368268802115"
                                                                                                                    },
                                                                                                                    {
                                                                                                                        "type": "selling",
                                                                                                                        "value": "93335787592"
                                                                                                                    }
                                                                                                                ]
                                                                                                            },
                                                                                                            {
                                                                                                                "type": "ext",
                                                                                                                "value": "[undefined]",
                                                                                                                "nodes": [
                                                                                                                    {
                                                                                                                        "type": "v2",
                                                                                                                        "nodes": [
                                                                                                                            {
                                                                                                                                "type": "numSponsored",
                                                                                                                                "value": "0"
                                                                                                                            },
                                                                                                                            {
                                                                                                                                "type": "numSponsoring",
                                                                                                                                "value": "0"
                                                                                                                            },
                                                                                                                            {
                                                                                                                                "type": "signerSponsoringIDs",
                                                                                                                                "value": "Array[0]",
                                                                                                                                "nodes": []
                                                                                                                            },
                                                                                                                            {
                                                                                                                                "type": "ext",
                                                                                                                                "value": "[undefined]",
                                                                                                                                "nodes": [
                                                                                                                                    {
                                                                                                                                        "type": "v3",
                                                                                                                                        "nodes": [
                                                                                                                                            {
                                                                                                                                                "type": "ext",
                                                                                                                                                "value": "[undefined]"
                                                                                                                                            },
                                                                                                                                            {
                                                                                                                                                "type": "seqLedger",
                                                                                                                                                "value": "50746677"
                                                                                                                                            },
                                                                                                                                            {
                                                                                                                                                "type": "seqTime",
                                                                                                                                                "value": "1710176726"
                                                                                                                                            }
                                                                                                                                        ]
                                                                                                                                    }
                                                                                                                                ]
                                                                                                                            }
                                                                                                                        ]
                                                                                                                    }
                                                                                                                ]
                                                                                                            }
                                                                                                        ]
                                                                                                    }
                                                                                                ]
                                                                                            }
                                                                                        ]
                                                                                    }
                                                                                ]
                                                                            },
                                                                            {
                                                                                "type": "ext",
                                                                                "value": "[undefined]"
                                                                            }
                                                                        ]
                                                                    }
                                                                ]
                                                            },
                                                            {
                                                                "type": "[2]",
                                                                "value": "[ledgerEntryCreated]",
                                                                "nodes": [
                                                                    {
                                                                        "type": "created",
                                                                        "nodes": [
                                                                            {
                                                                                "type": "lastModifiedLedgerSeq",
                                                                                "value": "50755373"
                                                                            },
                                                                            {
                                                                                "type": "data",
                                                                                "value": "[offer]",
                                                                                "nodes": [
                                                                                    {
                                                                                        "type": "offer",
                                                                                        "nodes": [
                                                                                            {
                                                                                                "type": "sellerId",
                                                                                                "value": "[publicKeyTypeEd25519]",
                                                                                                "nodes": [
                                                                                                    {
                                                                                                        "type": "ed25519",
                                                                                                        "value": {
                                                                                                            "type": "code",
                                                                                                            "value": "GBWHHC2FRUS2RG7EVWOZ3YMRN45VXCS4ILGVCX2QALBUFVHUGNO6P4IY"
                                                                                                        }
                                                                                                    }
                                                                                                ]
                                                                                            },
                                                                                            {
                                                                                                "type": "offerId",
                                                                                                "value": "1492969708"
                                                                                            },
                                                                                            {
                                                                                                "type": "selling",
                                                                                                "value": "[assetTypeNative]"
                                                                                            },
                                                                                            {
                                                                                                "type": "buying",
                                                                                                "value": "[assetTypeCreditAlphanum12]",
                                                                                                "nodes": [
                                                                                                    {
                                                                                                        "type": "alphaNum12",
                                                                                                        "nodes": [
                                                                                                            {
                                                                                                                "type": "assetCode",
                                                                                                                "value":"yUSDC�������"
                                                                                                            },
                                                                                                            {
                                                                                                                "type": "issuer",
                                                                                                                "value": "[publicKeyTypeEd25519]",
                                                                                                                "nodes": [
                                                                                                                    {
                                                                                                                        "type": "ed25519",
                                                                                                                        "value": {
                                                                                                                            "type": "code",
                                                                                                                            "value": "GDGTVWSM4MGS4T7Z6W4RPWOCHE2I6RDFCIFZGS3DOA63LWQTRNZNTTFF"
                                                                                                                        }
                                                                                                                    }
                                                                                                                ]
                                                                                                            }
                                                                                                        ]
                                                                                                    }
                                                                                                ]
                                                                                            },
                                                                                            {
                                                                                                "type": "amount",
                                                                                                "value": {
                                                                                                    "type": "amount",
                                                                                                    "value": {
                                                                                                        "parsed": "25.0961946",
                                                                                                        "raw": "250961946"
                                                                                                    }
                                                                                                }
                                                                                            },
                                                                                            {
                                                                                                "type": "price",
                                                                                                "nodes": [
                                                                                                    {
                                                                                                        "type": "n",
                                                                                                        "value": "199999"
                                                                                                    },
                                                                                                    {
                                                                                                        "type": "d",
                                                                                                        "value": "1000"
                                                                                                    }
                                                                                                ]
                                                                                            },
                                                                                            {
                                                                                                "type": "flags",
                                                                                                "value": "0"
                                                                                            },
                                                                                            {
                                                                                                "type": "ext",
                                                                                                "value": "[undefined]"
                                                                                            }
                                                                                        ]
                                                                                    }
                                                                                ]
                                                                            },
                                                                            {
                                                                                "type": "ext",
                                                                                "value": "[undefined]"
                                                                            }
                                                                        ]
                                                                    }
                                                                ]
                                                            },
                                                            {
                                                                "type": "[3]",
                                                                "value": "[ledgerEntryState]",
                                                                "nodes": [
                                                                    {
                                                                        "type": "state",
                                                                        "nodes": [
                                                                            {
                                                                                "type": "lastModifiedLedgerSeq",
                                                                                "value": "50755373"
                                                                            },
                                                                            {
                                                                                "type": "data",
                                                                                "value": "[trustline]",
                                                                                "nodes": [
                                                                                    {
                                                                                        "type": "trustLine",
                                                                                        "nodes": [
                                                                                            {
                                                                                                "type": "accountId",
                                                                                                "value": "[publicKeyTypeEd25519]",
                                                                                                "nodes": [
                                                                                                    {
                                                                                                        "type": "ed25519",
                                                                                                        "value": {
                                                                                                            "type": "code",
                                                                                                            "value": "GBWHHC2FRUS2RG7EVWOZ3YMRN45VXCS4ILGVCX2QALBUFVHUGNO6P4IY"
                                                                                                        }
                                                                                                    }
                                                                                                ]
                                                                                            },
                                                                                            {
                                                                                                "type": "asset",
                                                                                                "value": "[assetTypeCreditAlphanum12]",
                                                                                                "nodes": [
                                                                                                    {
                                                                                                        "type": "alphaNum12",
                                                                                                        "nodes": [
                                                                                                            {
                                                                                                                "type": "assetCode",
                                                                                                                "value":"yUSDC�������"
                                                                                                            },
                                                                                                            {
                                                                                                                "type": "issuer",
                                                                                                                "value": "[publicKeyTypeEd25519]",
                                                                                                                "nodes": [
                                                                                                                    {
                                                                                                                        "type": "ed25519",
                                                                                                                        "value": {
                                                                                                                            "type": "code",
                                                                                                                            "value": "GDGTVWSM4MGS4T7Z6W4RPWOCHE2I6RDFCIFZGS3DOA63LWQTRNZNTTFF"
                                                                                                                        }
                                                                                                                    }
                                                                                                                ]
                                                                                                            }
                                                                                                        ]
                                                                                                    }
                                                                                                ]
                                                                                            },
                                                                                            {
                                                                                                "type": "balance",
                                                                                                "value": "0"
                                                                                            },
                                                                                            {
                                                                                                "type": "limit",
                                                                                                "value": {
                                                                                                    "type": "amount",
                                                                                                    "value": {
                                                                                                        "parsed": "922337203685.4775807",
                                                                                                        "raw": "9223372036854775807"
                                                                                                    }
                                                                                                }
                                                                                            },
                                                                                            {
                                                                                                "type": "flags",
                                                                                                "value": "1"
                                                                                            },
                                                                                            {
                                                                                                "type": "ext",
                                                                                                "value": "[undefined]",
                                                                                                "nodes": [
                                                                                                    {
                                                                                                        "type": "v1",
                                                                                                        "nodes": [
                                                                                                            {
                                                                                                                "type": "liabilities",
                                                                                                                "nodes": [
                                                                                                                    {
                                                                                                                        "type": "buying",
                                                                                                                        "value": "31000000186065605"
                                                                                                                    },
                                                                                                                    {
                                                                                                                        "type": "selling",
                                                                                                                        "value": "0"
                                                                                                                    }
                                                                                                                ]
                                                                                                            },
                                                                                                            {
                                                                                                                "type": "ext",
                                                                                                                "value": "[undefined]"
                                                                                                            }
                                                                                                        ]
                                                                                                    }
                                                                                                ]
                                                                                            }
                                                                                        ]
                                                                                    }
                                                                                ]
                                                                            },
                                                                            {
                                                                                "type": "ext",
                                                                                "value": "[undefined]"
                                                                            }
                                                                        ]
                                                                    }
                                                                ]
                                                            },
                                                            {
                                                                "type": "[4]",
                                                                "value": "[ledgerEntryUpdated]",
                                                                "nodes": [
                                                                    {
                                                                        "type": "updated",
                                                                        "nodes": [
                                                                            {
                                                                                "type": "lastModifiedLedgerSeq",
                                                                                "value": "50755373"
                                                                            },
                                                                            {
                                                                                "type": "data",
                                                                                "value": "[trustline]",
                                                                                "nodes": [
                                                                                    {
                                                                                        "type": "trustLine",
                                                                                        "nodes": [
                                                                                            {
                                                                                                "type": "accountId",
                                                                                                "value": "[publicKeyTypeEd25519]",
                                                                                                "nodes": [
                                                                                                    {
                                                                                                        "type": "ed25519",
                                                                                                        "value": {
                                                                                                            "type": "code",
                                                                                                            "value": "GBWHHC2FRUS2RG7EVWOZ3YMRN45VXCS4ILGVCX2QALBUFVHUGNO6P4IY"
                                                                                                        }
                                                                                                    }
                                                                                                ]
                                                                                            },
                                                                                            {
                                                                                                "type": "asset",
                                                                                                "value": "[assetTypeCreditAlphanum12]",
                                                                                                "nodes": [
                                                                                                    {
                                                                                                        "type": "alphaNum12",
                                                                                                        "nodes": [
                                                                                                            {
                                                                                                                "type": "assetCode",
                                                                                                                "value":"yUSDC�������"
                                                                                                            },
                                                                                                            {
                                                                                                                "type": "issuer",
                                                                                                                "value": "[publicKeyTypeEd25519]",
                                                                                                                "nodes": [
                                                                                                                    {
                                                                                                                        "type": "ed25519",
                                                                                                                        "value": {
                                                                                                                            "type": "code",
                                                                                                                            "value": "GDGTVWSM4MGS4T7Z6W4RPWOCHE2I6RDFCIFZGS3DOA63LWQTRNZNTTFF"
                                                                                                                        }
                                                                                                                    }
                                                                                                                ]
                                                                                                            }
                                                                                                        ]
                                                                                                    }
                                                                                                ]
                                                                                            },
                                                                                            {
                                                                                                "type": "balance",
                                                                                                "value": "0"
                                                                                            },
                                                                                            {
                                                                                                "type": "limit",
                                                                                                "value": {
                                                                                                    "type": "amount",
                                                                                                    "value": {
                                                                                                        "parsed": "922337203685.4775807",
                                                                                                        "raw": "9223372036854775807"
                                                                                                    }
                                                                                                }
                                                                                            },
                                                                                            {
                                                                                                "type": "flags",
                                                                                                "value": "1"
                                                                                            },
                                                                                            {
                                                                                                "type": "ext",
                                                                                                "value": "[undefined]",
                                                                                                "nodes": [
                                                                                                    {
                                                                                                        "type": "v1",
                                                                                                        "nodes": [
                                                                                                            {
                                                                                                                "type": "liabilities",
                                                                                                                "nodes": [
                                                                                                                    {
                                                                                                                        "type": "buying",
                                                                                                                        "value": "31000050378203843"
                                                                                                                    },
                                                                                                                    {
                                                                                                                        "type": "selling",
                                                                                                                        "value": "0"
                                                                                                                    }
                                                                                                                ]
                                                                                                            },
                                                                                                            {
                                                                                                                "type": "ext",
                                                                                                                "value": "[undefined]"
                                                                                                            }
                                                                                                        ]
                                                                                                    }
                                                                                                ]
                                                                                            }
                                                                                        ]
                                                                                    }
                                                                                ]
                                                                            },
                                                                            {
                                                                                "type": "ext",
                                                                                "value": "[undefined]"
                                                                            }
                                                                        ]
                                                                    }
                                                                ]
                                                            }
                                                        ]
                                                    }
                                                ]
                                            }
                                        ]
                                    },
                                    {
                                        "type": "txChangesAfter",
                                        "value": "Array[0]",
                                        "nodes": []
                                    },
                                    {
                                        "type": "sorobanMeta",
                                        "value": null
                                    }
                                ]
                            }
                        ]
                    }
                ]
            }
          ]
       },
        "transactionsRoot": null,
        "uncles": null
    }
```

{% endtab %}
{% endtabs %}

### /getgasprice

Get the current gas price from the Stellar 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 ](/ids/chain-ids)page for details. |
| chainSymbol                               | String | Refer to the [Chain ID ](/ids/chain-ids)page for details. |

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

```url
https://api.expand.network/chain/getgasprice/?chainSymbol=xlm
```

{% endtab %}

{% tab title="Sample Response" %}

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

{% endtab %}
{% endtabs %}

### /getstorage

Get details of storage in the contract, including the current state of contract, contract code or any other ledger entry.

<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 ](/ids/chain-ids)page for details.    |
| chainSymbol                               | String | Refer to the [Chain ID ](/ids/chain-ids)page for details.    |
| keys<mark style="color:red;">\*</mark>    | String | The key of the ledger entry (serialized in a base64 string). |

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

```url
https://api.expand.network/chain/getstorage?chainId=1500&keys=AAAABgAAAAFV3d0a2VhBZ%2B54%2Fg6tRMfgt%2BWajUevdHo3A8wtDuWS%2BQAAABQAAAAB
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "entries": [
            {
                "key": "AAAABgAAAAFV3d0a2VhBZ+54/g6tRMfgt+WajUevdHo3A8wtDuWS+QAAABQAAAAB",
                "xdr": "AAAABgAAAAAAAAABVd3dGtlYQWfueP4OrUTH4Lflmo1Hr3R6NwPMLQ7lkvkAAAAUAAAAAQAAABMAAAAACxRSx/lCsIebq3ncX/0VB3zL1ZCf+AY3FmCgx7Q9iO0AAAABAAAAAQAAAA8AAAAHQ09VTlRFUgAAAAADAAAAAQ==",
                "lastModifiedLedgerSeq": 51103914,
                "liveUntilLedgerSeq": 53177504,
                "xdrDecoded": [
                    {
                        "type": "LedgerEntryData",
                        "value": "[contractData]",
                        "nodes": [
                            {
                                "type": "contractData",
                                "nodes": [
                                    {
                                        "type": "ext",
                                        "value": "[undefined]"
                                    },
                                    {
                                        "type": "contract",
                                        "value": "[scAddressTypeContract]",
                                        "nodes": [
                                            {
                                                "type": "contractId",
                                                "value": "CBK53XI23FMECZ7OPD7A5LKEY7QLPZM2RVD265D2G4B4YLIO4WJPTY7Y"
                                            }
                                        ]
                                    },
                                    {
                                        "type": "key",
                                        "value": "[scvLedgerKeyContractInstance]"
                                    },
                                    {
                                        "type": "durability",
                                        "value": {
                                            "name": "persistent",
                                            "value": 1
                                        }
                                    },
                                    {
                                        "type": "val",
                                        "value": "[scvContractInstance]",
                                        "nodes": [
                                            {
                                                "type": "instance",
                                                "value": "CxRSx/lCsIebq3ncX/0VB3zL1ZCf+AY3FmCgx7Q9iO0="
                                            }
                                        ]
                                    }
                                ]
                            }
                        ]
                    }
                ]
            }
        ]
    }
}
```

{% endtab %}
{% endtabs %}

### /gettransaction

Get details of a specified 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 ](/ids/chain-ids)page for details. |
| chainSymbol                                       | String | Refer to the [Chain ID ](/ids/chain-ids)page for details. |
| transactionHash<mark style="color:red;">\*</mark> | String | The transaction hash.                                     |

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

```uri
https://api.expand.network/chain/gettransaction/?chainId=1500&transactionHash=3ee7edbe77d9ca096adf05feab86cc3b2f0a355088240f3eeb06cbfc24a491a7
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "hash": "3ee7edbe77d9ca096adf05feab86cc3b2f0a355088240f3eeb06cbfc24a491a7",
        "transactionStatus": true,
        "blockNumber": "50864752",
        "timestamp": "1710893324000",
        "from": "GC3IBUO6OA5TLZXGUUE7LFDZJKSKUKOXZ65UHTTKXS6NLKBZ4TF2EES5",
        "to": null,
        "value": null,
        "transactionFees": "2129796",
        "gas": "2454018",
        "gasPrice": "100",
        "input": null,
        "nonce": 163399020004245540,
        "network": null,
        "transactionEnvelop": [
            {
                "type": "TransactionEnvelope",
                "value": "[envelopeTypeTx]",
                "nodes": [
                    {
                        "type": "v1",
                        "nodes": [
                            {
                                "type": "tx",
                                "nodes": [
                                    {
                                        "type": "sourceAccount",
                                        "value": "[keyTypeEd25519]",
                                        "nodes": [
                                            {
                                                "type": "ed25519",
                                                "value": {
                                                    "type": "code",
                                                    "value": "GC3IBUO6OA5TLZXGUUE7LFDZJKSKUKOXZ65UHTTKXS6NLKBZ4TF2EES5"
                                                }
                                            }
                                        ]
                                    },
                                    {
                                        "type": "fee",
                                        "value": "2454018"
                                    },
                                    {
                                        "type": "seqNum",
                                        "value": "163399020004245540"
                                    },
                                    {
                                        "type": "cond",
                                        "value": "[precondNone]"
                                    },
                                    {
                                        "type": "memo",
                                        "value": "[memoNone]"
                                    },
                                    {
                                        "type": "operations",
                                        "value": "Array[1]",
                                        "nodes": [
                                            {
                                                "type": "[0]",
                                                "nodes": [
                                                    {
                                                        "type": "sourceAccount",
                                                        "value": null
                                                    },
                                                    {
                                                        "type": "body",
                                                        "value": "[invokeHostFunction]",
                                                        "nodes": [
                                                            {
                                                                "type": "invokeHostFunctionOp",
                                                                "nodes": [
                                                                    {
                                                                        "type": "hostFunction",
                                                                        "value": "[hostFunctionTypeCreateContract]",
                                                                        "nodes": [
                                                                            {
                                                                                "type": "createContract",
                                                                                "nodes": [
                                                                                    {
                                                                                        "type": "contractIdPreimage",
                                                                                        "value": "[contractIdPreimageFromAsset]",
                                                                                        "nodes": [
                                                                                            {
                                                                                                "type": "fromAsset",
                                                                                                "value": "[assetTypeCreditAlphanum4]",
                                                                                                "nodes": [
                                                                                                    {
                                                                                                        "type": "alphaNum4",
                                                                                                        "nodes": [
                                                                                                            {
                                                                                                                "type": "assetCode",
                                                                                                                "value": "BTFo"
                                                                                                            },
                                                                                                            {
                                                                                                                "type": "issuer",
                                                                                                                "value": "[publicKeyTypeEd25519]",
                                                                                                                "nodes": [
                                                                                                                    {
                                                                                                                        "type": "ed25519",
                                                                                                                        "value": {
                                                                                                                            "type": "code",
                                                                                                                            "value": "GC3IBUO6OA5TLZXGUUE7LFDZJKSKUKOXZ65UHTTKXS6NLKBZ4TF2EES5"
                                                                                                                        }
                                                                                                                    }
                                                                                                                ]
                                                                                                            }
                                                                                                        ]
                                                                                                    }
                                                                                                ]
                                                                                            }
                                                                                        ]
                                                                                    },
                                                                                    {
                                                                                        "type": "executable",
                                                                                        "value": "[contractExecutableStellarAsset]"
                                                                                    }
                                                                                ]
                                                                            }
                                                                        ]
                                                                    },
                                                                    {
                                                                        "type": "auth",
                                                                        "value": "Array[0]",
                                                                        "nodes": []
                                                                    }
                                                                ]
                                                            }
                                                        ]
                                                    }
                                                ]
                                            }
                                        ]
                                    },
                                    {
                                        "type": "ext",
                                        "value": "[undefined]",
                                        "nodes": [
                                            {
                                                "type": "sorobanData",
                                                "nodes": [
                                                    {
                                                        "type": "ext",
                                                        "value": "[undefined]"
                                                    },
                                                    {
                                                        "type": "resources",
                                                        "nodes": [
                                                            {
                                                                "type": "footprint",
                                                                "nodes": [
                                                                    {
                                                                        "type": "readOnly",
                                                                        "value": "Array[0]",
                                                                        "nodes": []
                                                                    },
                                                                    {
                                                                        "type": "readWrite",
                                                                        "value": "Array[1]",
                                                                        "nodes": [
                                                                            {
                                                                                "type": "[0]",
                                                                                "value": "[contractData]",
                                                                                "nodes": [
                                                                                    {
                                                                                        "type": "contractData",
                                                                                        "nodes": [
                                                                                            {
                                                                                                "type": "contract",
                                                                                                "value": "[scAddressTypeContract]",
                                                                                                "nodes": [
                                                                                                    {
                                                                                                        "type": "contractId",
                                                                                                        "value": "CAIEAMU2ZNSEYRKFKHUUO73CKGXPXPB6T5EGMECUTIFKRXBT2OQP24S2"
                                                                                                    }
                                                                                                ]
                                                                                            },
                                                                                            {
                                                                                                "type": "key",
                                                                                                "value": "[scvLedgerKeyContractInstance]"
                                                                                            },
                                                                                            {
                                                                                                "type": "durability",
                                                                                                "value": {
                                                                                                    "name": "persistent",
                                                                                                    "value": 1
                                                                                                }
                                                                                            }
                                                                                        ]
                                                                                    }
                                                                                ]
                                                                            }
                                                                        ]
                                                                    }
                                                                ]
                                                            },
                                                            {
                                                                "type": "instructions",
                                                                "value": "3114111"
                                                            },
                                                            {
                                                                "type": "readBytes",
                                                                "value": "0"
                                                            },
                                                            {
                                                                "type": "writeBytes",
                                                                "value": "476"
                                                            }
                                                        ]
                                                    },
                                                    {
                                                        "type": "resourceFee",
                                                        "value": "2133829"
                                                    }
                                                ]
                                            }
                                        ]
                                    }
                                ]
                            },
                            {
                                "type": "signatures",
                                "value": "Array[1]",
                                "nodes": [
                                    {
                                        "type": "[0]",
                                        "nodes": [
                                            {
                                                "type": "hint",
                                                "value": {
                                                    "type": "code",
                                                    "value": "G______________________________________________Z4TF2____"
                                                }
                                            },
                                            {
                                                "type": "signature",
                                                "value": {
                                                    "type": "code",
                                                    "raw": {
                                                        "type": "Buffer",
                                                        "data": [
                                                            141,
                                                            201,
                                                            205,
                                                            145,
                                                            217,
                                                            190,
                                                            184,
                                                            119,
                                                            165,
                                                            253,
                                                            195,
                                                            24,
                                                            53,
                                                            138,
                                                            0,
                                                            184,
                                                            39,
                                                            32,
                                                            212,
                                                            17,
                                                            10,
                                                            55,
                                                            181,
                                                            149,
                                                            219,
                                                            82,
                                                            178,
                                                            151,
                                                            26,
                                                            160,
                                                            120,
                                                            31,
                                                            189,
                                                            149,
                                                            135,
                                                            125,
                                                            217,
                                                            107,
                                                            174,
                                                            150,
                                                            89,
                                                            227,
                                                            15,
                                                            18,
                                                            215,
                                                            169,
                                                            144,
                                                            23,
                                                            171,
                                                            26,
                                                            105,
                                                            94,
                                                            177,
                                                            244,
                                                            63,
                                                            17,
                                                            144,
                                                            91,
                                                            10,
                                                            102,
                                                            236,
                                                            117,
                                                            114,
                                                            2
                                                        ]
                                                    },
                                                    "value": "jcnNkdm+uHel/cMYNYoAuCcg1BEKN7WV21KylxqgeB+9lYd92WuullnjDxLXqZAXqxppXrH0PxGQWwpm7HVyAg=="
                                                }
                                            }
                                        ]
                                    }
                                ]
                            }
                        ]
                    }
                ]
            }
        ],
        "transactionResult": [
            {
                "type": "TransactionResult",
                "nodes": [
                    {
                        "type": "feeCharged",
                        "value": "2129796"
                    },
                    {
                        "type": "result",
                        "value": "[txSuccess]",
                        "nodes": [
                            {
                                "type": "results",
                                "value": "Array[1]",
                                "nodes": [
                                    {
                                        "type": "[0]",
                                        "value": "[opInner]",
                                        "nodes": [
                                            {
                                                "type": "tr",
                                                "value": "[invokeHostFunction]",
                                                "nodes": [
                                                    {
                                                        "type": "invokeHostFunctionResult",
                                                        "value": "[invokeHostFunctionSuccess]",
                                                        "nodes": [
                                                            {
                                                                "type": "success",
                                                                "value": {
                                                                    "type": "code",
                                                                    "raw": {
                                                                        "type": "Buffer",
                                                                        "data": [
                                                                            192,
                                                                            151,
                                                                            213,
                                                                            158,
                                                                            159,
                                                                            153,
                                                                            7,
                                                                            23,
                                                                            199,
                                                                            248,
                                                                            157,
                                                                            2,
                                                                            192,
                                                                            179,
                                                                            161,
                                                                            181,
                                                                            23,
                                                                            27,
                                                                            107,
                                                                            231,
                                                                            186,
                                                                            1,
                                                                            89,
                                                                            3,
                                                                            36,
                                                                            242,
                                                                            34,
                                                                            236,
                                                                            49,
                                                                            130,
                                                                            143,
                                                                            121
                                                                        ]
                                                                    },
                                                                    "value": "wJfVnp+ZBxfH+J0CwLOhtRcba+e6AVkDJPIi7DGCj3k="
                                                                }
                                                            }
                                                        ]
                                                    }
                                                ]
                                            }
                                        ]
                                    }
                                ]
                            }
                        ]
                    },
                    {
                        "type": "ext",
                        "value": "[undefined]"
                    }
                ]
            }
        ],
        "transactionMeta": [
            {
                "type": "TransactionMeta",
                "value": "[undefined]",
                "nodes": [
                    {
                        "type": "v3",
                        "nodes": [
                            {
                                "type": "ext",
                                "value": "[undefined]"
                            },
                            {
                                "type": "txChangesBefore",
                                "value": "Array[2]",
                                "nodes": [
                                    {
                                        "type": "[0]",
                                        "value": "[ledgerEntryState]",
                                        "nodes": [
                                            {
                                                "type": "state",
                                                "nodes": [
                                                    {
                                                        "type": "lastModifiedLedgerSeq",
                                                        "value": "50864752"
                                                    },
                                                    {
                                                        "type": "data",
                                                        "value": "[account]",
                                                        "nodes": [
                                                            {
                                                                "type": "account",
                                                                "nodes": [
                                                                    {
                                                                        "type": "accountId",
                                                                        "value": "[publicKeyTypeEd25519]",
                                                                        "nodes": [
                                                                            {
                                                                                "type": "ed25519",
                                                                                "value": {
                                                                                    "type": "code",
                                                                                    "value": "GC3IBUO6OA5TLZXGUUE7LFDZJKSKUKOXZ65UHTTKXS6NLKBZ4TF2EES5"
                                                                                }
                                                                            }
                                                                        ]
                                                                    },
                                                                    {
                                                                        "type": "balance",
                                                                        "value": "9773523570"
                                                                    },
                                                                    {
                                                                        "type": "seqNum",
                                                                        "value": "163399020004245539"
                                                                    },
                                                                    {
                                                                        "type": "numSubEntries",
                                                                        "value": "0"
                                                                    },
                                                                    {
                                                                        "type": "inflationDest",
                                                                        "value": null
                                                                    },
                                                                    {
                                                                        "type": "flags",
                                                                        "value": "11"
                                                                    },
                                                                    {
                                                                        "type": "homeDomain",
                                                                        "value": {
                                                                            "type": "code",
                                                                            "raw": {
                                                                                "type": "Buffer",
                                                                                "data": [
                                                                                    100,
                                                                                    101,
                                                                                    118,
                                                                                    46,
                                                                                    98,
                                                                                    108,
                                                                                    111,
                                                                                    99,
                                                                                    107,
                                                                                    116,
                                                                                    105,
                                                                                    109,
                                                                                    101,
                                                                                    102,
                                                                                    105,
                                                                                    110,
                                                                                    97,
                                                                                    110,
                                                                                    99,
                                                                                    105,
                                                                                    97,
                                                                                    108,
                                                                                    46,
                                                                                    99,
                                                                                    111,
                                                                                    109
                                                                                ]
                                                                            },
                                                                            "value": "ZGV2LmJsb2NrdGltZWZpbmFuY2lhbC5jb20="
                                                                        }
                                                                    },
                                                                    {
                                                                        "type": "thresholds",
                                                                        "value": {
                                                                            "type": "code",
                                                                            "raw": {
                                                                                "type": "Buffer",
                                                                                "data": [
                                                                                    1,
                                                                                    0,
                                                                                    0,
                                                                                    0
                                                                                ]
                                                                            },
                                                                            "value": "AQAAAA=="
                                                                        }
                                                                    },
                                                                    {
                                                                        "type": "signers",
                                                                        "value": "Array[0]",
                                                                        "nodes": []
                                                                    },
                                                                    {
                                                                        "type": "ext",
                                                                        "value": "[undefined]",
                                                                        "nodes": [
                                                                            {
                                                                                "type": "v1",
                                                                                "nodes": [
                                                                                    {
                                                                                        "type": "liabilities",
                                                                                        "nodes": [
                                                                                            {
                                                                                                "type": "buying",
                                                                                                "value": "0"
                                                                                            },
                                                                                            {
                                                                                                "type": "selling",
                                                                                                "value": "0"
                                                                                            }
                                                                                        ]
                                                                                    },
                                                                                    {
                                                                                        "type": "ext",
                                                                                        "value": "[undefined]",
                                                                                        "nodes": [
                                                                                            {
                                                                                                "type": "v2",
                                                                                                "nodes": [
                                                                                                    {
                                                                                                        "type": "numSponsored",
                                                                                                        "value": "0"
                                                                                                    },
                                                                                                    {
                                                                                                        "type": "numSponsoring",
                                                                                                        "value": "0"
                                                                                                    },
                                                                                                    {
                                                                                                        "type": "signerSponsoringIDs",
                                                                                                        "value": "Array[0]",
                                                                                                        "nodes": []
                                                                                                    },
                                                                                                    {
                                                                                                        "type": "ext",
                                                                                                        "value": "[undefined]",
                                                                                                        "nodes": [
                                                                                                            {
                                                                                                                "type": "v3",
                                                                                                                "nodes": [
                                                                                                                    {
                                                                                                                        "type": "ext",
                                                                                                                        "value": "[undefined]"
                                                                                                                    },
                                                                                                                    {
                                                                                                                        "type": "seqLedger",
                                                                                                                        "value": "50864748"
                                                                                                                    },
                                                                                                                    {
                                                                                                                        "type": "seqTime",
                                                                                                                        "value": "1710893300"
                                                                                                                    }
                                                                                                                ]
                                                                                                            }
                                                                                                        ]
                                                                                                    }
                                                                                                ]
                                                                                            }
                                                                                        ]
                                                                                    }
                                                                                ]
                                                                            }
                                                                        ]
                                                                    }
                                                                ]
                                                            }
                                                        ]
                                                    },
                                                    {
                                                        "type": "ext",
                                                        "value": "[undefined]"
                                                    }
                                                ]
                                            }
                                        ]
                                    },
                                    {
                                        "type": "[1]",
                                        "value": "[ledgerEntryUpdated]",
                                        "nodes": [
                                            {
                                                "type": "updated",
                                                "nodes": [
                                                    {
                                                        "type": "lastModifiedLedgerSeq",
                                                        "value": "50864752"
                                                    },
                                                    {
                                                        "type": "data",
                                                        "value": "[account]",
                                                        "nodes": [
                                                            {
                                                                "type": "account",
                                                                "nodes": [
                                                                    {
                                                                        "type": "accountId",
                                                                        "value": "[publicKeyTypeEd25519]",
                                                                        "nodes": [
                                                                            {
                                                                                "type": "ed25519",
                                                                                "value": {
                                                                                    "type": "code",
                                                                                    "value": "GC3IBUO6OA5TLZXGUUE7LFDZJKSKUKOXZ65UHTTKXS6NLKBZ4TF2EES5"
                                                                                }
                                                                            }
                                                                        ]
                                                                    },
                                                                    {
                                                                        "type": "balance",
                                                                        "value": "9773523570"
                                                                    },
                                                                    {
                                                                        "type": "seqNum",
                                                                        "value": "163399020004245540"
                                                                    },
                                                                    {
                                                                        "type": "numSubEntries",
                                                                        "value": "0"
                                                                    },
                                                                    {
                                                                        "type": "inflationDest",
                                                                        "value": null
                                                                    },
                                                                    {
                                                                        "type": "flags",
                                                                        "value": "11"
                                                                    },
                                                                    {
                                                                        "type": "homeDomain",
                                                                        "value": {
                                                                            "type": "code",
                                                                            "raw": {
                                                                                "type": "Buffer",
                                                                                "data": [
                                                                                    100,
                                                                                    101,
                                                                                    118,
                                                                                    46,
                                                                                    98,
                                                                                    108,
                                                                                    111,
                                                                                    99,
                                                                                    107,
                                                                                    116,
                                                                                    105,
                                                                                    109,
                                                                                    101,
                                                                                    102,
                                                                                    105,
                                                                                    110,
                                                                                    97,
                                                                                    110,
                                                                                    99,
                                                                                    105,
                                                                                    97,
                                                                                    108,
                                                                                    46,
                                                                                    99,
                                                                                    111,
                                                                                    109
                                                                                ]
                                                                            },
                                                                            "value": "ZGV2LmJsb2NrdGltZWZpbmFuY2lhbC5jb20="
                                                                        }
                                                                    },
                                                                    {
                                                                        "type": "thresholds",
                                                                        "value": {
                                                                            "type": "code",
                                                                            "raw": {
                                                                                "type": "Buffer",
                                                                                "data": [
                                                                                    1,
                                                                                    0,
                                                                                    0,
                                                                                    0
                                                                                ]
                                                                            },
                                                                            "value": "AQAAAA=="
                                                                        }
                                                                    },
                                                                    {
                                                                        "type": "signers",
                                                                        "value": "Array[0]",
                                                                        "nodes": []
                                                                    },
                                                                    {
                                                                        "type": "ext",
                                                                        "value": "[undefined]",
                                                                        "nodes": [
                                                                            {
                                                                                "type": "v1",
                                                                                "nodes": [
                                                                                    {
                                                                                        "type": "liabilities",
                                                                                        "nodes": [
                                                                                            {
                                                                                                "type": "buying",
                                                                                                "value": "0"
                                                                                            },
                                                                                            {
                                                                                                "type": "selling",
                                                                                                "value": "0"
                                                                                            }
                                                                                        ]
                                                                                    },
                                                                                    {
                                                                                        "type": "ext",
                                                                                        "value": "[undefined]",
                                                                                        "nodes": [
                                                                                            {
                                                                                                "type": "v2",
                                                                                                "nodes": [
                                                                                                    {
                                                                                                        "type": "numSponsored",
                                                                                                        "value": "0"
                                                                                                    },
                                                                                                    {
                                                                                                        "type": "numSponsoring",
                                                                                                        "value": "0"
                                                                                                    },
                                                                                                    {
                                                                                                        "type": "signerSponsoringIDs",
                                                                                                        "value": "Array[0]",
                                                                                                        "nodes": []
                                                                                                    },
                                                                                                    {
                                                                                                        "type": "ext",
                                                                                                        "value": "[undefined]",
                                                                                                        "nodes": [
                                                                                                            {
                                                                                                                "type": "v3",
                                                                                                                "nodes": [
                                                                                                                    {
                                                                                                                        "type": "ext",
                                                                                                                        "value": "[undefined]"
                                                                                                                    },
                                                                                                                    {
                                                                                                                        "type": "seqLedger",
                                                                                                                        "value": "50864752"
                                                                                                                    },
                                                                                                                    {
                                                                                                                        "type": "seqTime",
                                                                                                                        "value": "1710893324"
                                                                                                                    }
                                                                                                                ]
                                                                                                            }
                                                                                                        ]
                                                                                                    }
                                                                                                ]
                                                                                            }
                                                                                        ]
                                                                                    }
                                                                                ]
                                                                            }
                                                                        ]
                                                                    }
                                                                ]
                                                            }
                                                        ]
                                                    },
                                                    {
                                                        "type": "ext",
                                                        "value": "[undefined]"
                                                    }
                                                ]
                                            }
                                        ]
                                    }
                                ]
                            },
                            {
                                "type": "operations",
                                "value": "Array[1]",
                                "nodes": [
                                    {
                                        "type": "[0]",
                                        "nodes": [
                                            {
                                                "type": "changes",
                                                "value": "Array[2]",
                                                "nodes": [
                                                    {
                                                        "type": "[0]",
                                                        "value": "[ledgerEntryCreated]",
                                                        "nodes": [
                                                            {
                                                                "type": "created",
                                                                "nodes": [
                                                                    {
                                                                        "type": "lastModifiedLedgerSeq",
                                                                        "value": "50864752"
                                                                    },
                                                                    {
                                                                        "type": "data",
                                                                        "value": "[ttl]",
                                                                        "nodes": [
                                                                            {
                                                                                "type": "ttl",
                                                                                "nodes": [
                                                                                    {
                                                                                        "type": "keyHash",
                                                                                        "value": {
                                                                                            "type": "code",
                                                                                            "raw": {
                                                                                                "type": "Buffer",
                                                                                                "data": [
                                                                                                    138,
                                                                                                    38,
                                                                                                    129,
                                                                                                    100,
                                                                                                    173,
                                                                                                    249,
                                                                                                    191,
                                                                                                    8,
                                                                                                    213,
                                                                                                    64,
                                                                                                    104,
                                                                                                    81,
                                                                                                    33,
                                                                                                    35,
                                                                                                    140,
                                                                                                    116,
                                                                                                    70,
                                                                                                    85,
                                                                                                    31,
                                                                                                    169,
                                                                                                    198,
                                                                                                    140,
                                                                                                    228,
                                                                                                    121,
                                                                                                    26,
                                                                                                    62,
                                                                                                    157,
                                                                                                    49,
                                                                                                    69,
                                                                                                    132,
                                                                                                    57,
                                                                                                    189
                                                                                                ]
                                                                                            },
                                                                                            "value": "iiaBZK35vwjVQGhRISOMdEZVH6nGjOR5Gj6dMUWEOb0="
                                                                                        }
                                                                                    },
                                                                                    {
                                                                                        "type": "liveUntilLedgerSeq",
                                                                                        "value": "52938351"
                                                                                    }
                                                                                ]
                                                                            }
                                                                        ]
                                                                    },
                                                                    {
                                                                        "type": "ext",
                                                                        "value": "[undefined]"
                                                                    }
                                                                ]
                                                            }
                                                        ]
                                                    },
                                                    {
                                                        "type": "[1]",
                                                        "value": "[ledgerEntryCreated]",
                                                        "nodes": [
                                                            {
                                                                "type": "created",
                                                                "nodes": [
                                                                    {
                                                                        "type": "lastModifiedLedgerSeq",
                                                                        "value": "50864752"
                                                                    },
                                                                    {
                                                                        "type": "data",
                                                                        "value": "[contractData]",
                                                                        "nodes": [
                                                                            {
                                                                                "type": "contractData",
                                                                                "nodes": [
                                                                                    {
                                                                                        "type": "ext",
                                                                                        "value": "[undefined]"
                                                                                    },
                                                                                    {
                                                                                        "type": "contract",
                                                                                        "value": "[scAddressTypeContract]",
                                                                                        "nodes": [
                                                                                            {
                                                                                                "type": "contractId",
                                                                                                "value": "CAIEAMU2ZNSEYRKFKHUUO73CKGXPXPB6T5EGMECUTIFKRXBT2OQP24S2"
                                                                                            }
                                                                                        ]
                                                                                    },
                                                                                    {
                                                                                        "type": "key",
                                                                                        "value": "[scvLedgerKeyContractInstance]"
                                                                                    },
                                                                                    {
                                                                                        "type": "durability",
                                                                                        "value": {
                                                                                            "name": "persistent",
                                                                                            "value": 1
                                                                                        }
                                                                                    },
                                                                                    {
                                                                                        "type": "val",
                                                                                        "value": "[scvContractInstance]",
                                                                                        "nodes": [
                                                                                            {
                                                                                                "type": "instance",
                                                                                                "nodes": [
                                                                                                    {
                                                                                                        "type": "executable",
                                                                                                        "value": "[contractExecutableStellarAsset]"
                                                                                                    },
                                                                                                    {
                                                                                                        "type": "storage",
                                                                                                        "value": "Array[3]",
                                                                                                        "nodes": [
                                                                                                            {
                                                                                                                "type": "[0]",
                                                                                                                "nodes": [
                                                                                                                    {
                                                                                                                        "type": "key",
                                                                                                                        "value": "[scvSymbol]",
                                                                                                                        "nodes": [
                                                                                                                            {
                                                                                                                                "type": "sym",
                                                                                                                                "value": "METADATA"
                                                                                                                            }
                                                                                                                        ]
                                                                                                                    },
                                                                                                                    {
                                                                                                                        "type": "val",
                                                                                                                        "value": "[scvMap]",
                                                                                                                        "nodes": [
                                                                                                                            {
                                                                                                                                "type": "map",
                                                                                                                                "value": {
                                                                                                                                    "decimal": 7,
                                                                                                                                    "name": "BTFo:GC3IBUO6OA5TLZXGUUE7LFDZJKSKUKOXZ65UHTTKXS6NLKBZ4TF2EES5",
                                                                                                                                    "symbol": "BTFo"
                                                                                                                                }
                                                                                                                            }
                                                                                                                        ]
                                                                                                                    }
                                                                                                                ]
                                                                                                            },
                                                                                                            {
                                                                                                                "type": "[1]",
                                                                                                                "nodes": [
                                                                                                                    {
                                                                                                                        "type": "key",
                                                                                                                        "value": "[scvVec]",
                                                                                                                        "nodes": [
                                                                                                                            {
                                                                                                                                "type": "vec",
                                                                                                                                "value": "Array[1]",
                                                                                                                                "nodes": [
                                                                                                                                    {
                                                                                                                                        "type": "[0]",
                                                                                                                                        "value": "[scvSymbol]",
                                                                                                                                        "nodes": [
                                                                                                                                            {
                                                                                                                                                "type": "sym",
                                                                                                                                                "value": "Admin"
                                                                                                                                            }
                                                                                                                                        ]
                                                                                                                                    }
                                                                                                                                ]
                                                                                                                            }
                                                                                                                        ]
                                                                                                                    },
                                                                                                                    {
                                                                                                                        "type": "val",
                                                                                                                        "value": "[scvAddress]",
                                                                                                                        "nodes": [
                                                                                                                            {
                                                                                                                                "type": "address",
                                                                                                                                "value": "GC3IBUO6OA5TLZXGUUE7LFDZJKSKUKOXZ65UHTTKXS6NLKBZ4TF2EES5"
                                                                                                                            }
                                                                                                                        ]
                                                                                                                    }
                                                                                                                ]
                                                                                                            },
                                                                                                            {
                                                                                                                "type": "[2]",
                                                                                                                "nodes": [
                                                                                                                    {
                                                                                                                        "type": "key",
                                                                                                                        "value": "[scvVec]",
                                                                                                                        "nodes": [
                                                                                                                            {
                                                                                                                                "type": "vec",
                                                                                                                                "value": "Array[1]",
                                                                                                                                "nodes": [
                                                                                                                                    {
                                                                                                                                        "type": "[0]",
                                                                                                                                        "value": "[scvSymbol]",
                                                                                                                                        "nodes": [
                                                                                                                                            {
                                                                                                                                                "type": "sym",
                                                                                                                                                "value": "AssetInfo"
                                                                                                                                            }
                                                                                                                                        ]
                                                                                                                                    }
                                                                                                                                ]
                                                                                                                            }
                                                                                                                        ]
                                                                                                                    },
                                                                                                                    {
                                                                                                                        "type": "val",
                                                                                                                        "value": "[scvVec]",
                                                                                                                        "nodes": [
                                                                                                                            {
                                                                                                                                "type": "vec",
                                                                                                                                "value": "Array[2]",
                                                                                                                                "nodes": [
                                                                                                                                    {
                                                                                                                                        "type": "[0]",
                                                                                                                                        "value": "[scvSymbol]",
                                                                                                                                        "nodes": [
                                                                                                                                            {
                                                                                                                                                "type": "sym",
                                                                                                                                                "value": "AlphaNum4"
                                                                                                                                            }
                                                                                                                                        ]
                                                                                                                                    },
                                                                                                                                    {
                                                                                                                                        "type": "[1]",
                                                                                                                                        "value": "[scvMap]",
                                                                                                                                        "nodes": [
                                                                                                                                            {
                                                                                                                                                "type": "map",
                                                                                                                                                "value": {
                                                                                                                                                    "asset_code": "BTFo",
                                                                                                                                                    "issuer": {
                                                                                                                                                        "type": "Buffer",
                                                                                                                                                        "data": [
                                                                                                                                                            182,
                                                                                                                                                            128,
                                                                                                                                                            209,
                                                                                                                                                            222,
                                                                                                                                                            112,
                                                                                                                                                            59,
                                                                                                                                                            53,
                                                                                                                                                            230,
                                                                                                                                                            230,
                                                                                                                                                            165,
                                                                                                                                                            9,
                                                                                                                                                            245,
                                                                                                                                                            148,
                                                                                                                                                            121,
                                                                                                                                                            74,
                                                                                                                                                            164,
                                                                                                                                                            170,
                                                                                                                                                            41,
                                                                                                                                                            215,
                                                                                                                                                            207,
                                                                                                                                                            187,
                                                                                                                                                            67,
                                                                                                                                                            206,
                                                                                                                                                            106,
                                                                                                                                                            188,
                                                                                                                                                            188,
                                                                                                                                                            213,
                                                                                                                                                            168,
                                                                                                                                                            57,
                                                                                                                                                            228,
                                                                                                                                                            203,
                                                                                                                                                            162
                                                                                                                                                        ]
                                                                                                                                                    }
                                                                                                                                                }
                                                                                                                                            }
                                                                                                                                        ]
                                                                                                                                    }
                                                                                                                                ]
                                                                                                                            }
                                                                                                                        ]
                                                                                                                    }
                                                                                                                ]
                                                                                                            }
                                                                                                        ]
                                                                                                    }
                                                                                                ]
                                                                                            }
                                                                                        ]
                                                                                    }
                                                                                ]
                                                                            }
                                                                        ]
                                                                    },
                                                                    {
                                                                        "type": "ext",
                                                                        "value": "[undefined]"
                                                                    }
                                                                ]
                                                            }
                                                        ]
                                                    }
                                                ]
                                            }
                                        ]
                                    }
                                ]
                            },
                            {
                                "type": "txChangesAfter",
                                "value": "Array[2]",
                                "nodes": [
                                    {
                                        "type": "[0]",
                                        "value": "[ledgerEntryState]",
                                        "nodes": [
                                            {
                                                "type": "state",
                                                "nodes": [
                                                    {
                                                        "type": "lastModifiedLedgerSeq",
                                                        "value": "50864752"
                                                    },
                                                    {
                                                        "type": "data",
                                                        "value": "[account]",
                                                        "nodes": [
                                                            {
                                                                "type": "account",
                                                                "nodes": [
                                                                    {
                                                                        "type": "accountId",
                                                                        "value": "[publicKeyTypeEd25519]",
                                                                        "nodes": [
                                                                            {
                                                                                "type": "ed25519",
                                                                                "value": {
                                                                                    "type": "code",
                                                                                    "value": "GC3IBUO6OA5TLZXGUUE7LFDZJKSKUKOXZ65UHTTKXS6NLKBZ4TF2EES5"
                                                                                }
                                                                            }
                                                                        ]
                                                                    },
                                                                    {
                                                                        "type": "balance",
                                                                        "value": "9773523570"
                                                                    },
                                                                    {
                                                                        "type": "seqNum",
                                                                        "value": "163399020004245540"
                                                                    },
                                                                    {
                                                                        "type": "numSubEntries",
                                                                        "value": "0"
                                                                    },
                                                                    {
                                                                        "type": "inflationDest",
                                                                        "value": null
                                                                    },
                                                                    {
                                                                        "type": "flags",
                                                                        "value": "11"
                                                                    },
                                                                    {
                                                                        "type": "homeDomain",
                                                                        "value": {
                                                                            "type": "code",
                                                                            "raw": {
                                                                                "type": "Buffer",
                                                                                "data": [
                                                                                    100,
                                                                                    101,
                                                                                    118,
                                                                                    46,
                                                                                    98,
                                                                                    108,
                                                                                    111,
                                                                                    99,
                                                                                    107,
                                                                                    116,
                                                                                    105,
                                                                                    109,
                                                                                    101,
                                                                                    102,
                                                                                    105,
                                                                                    110,
                                                                                    97,
                                                                                    110,
                                                                                    99,
                                                                                    105,
                                                                                    97,
                                                                                    108,
                                                                                    46,
                                                                                    99,
                                                                                    111,
                                                                                    109
                                                                                ]
                                                                            },
                                                                            "value": "ZGV2LmJsb2NrdGltZWZpbmFuY2lhbC5jb20="
                                                                        }
                                                                    },
                                                                    {
                                                                        "type": "thresholds",
                                                                        "value": {
                                                                            "type": "code",
                                                                            "raw": {
                                                                                "type": "Buffer",
                                                                                "data": [
                                                                                    1,
                                                                                    0,
                                                                                    0,
                                                                                    0
                                                                                ]
                                                                            },
                                                                            "value": "AQAAAA=="
                                                                        }
                                                                    },
                                                                    {
                                                                        "type": "signers",
                                                                        "value": "Array[0]",
                                                                        "nodes": []
                                                                    },
                                                                    {
                                                                        "type": "ext",
                                                                        "value": "[undefined]",
                                                                        "nodes": [
                                                                            {
                                                                                "type": "v1",
                                                                                "nodes": [
                                                                                    {
                                                                                        "type": "liabilities",
                                                                                        "nodes": [
                                                                                            {
                                                                                                "type": "buying",
                                                                                                "value": "0"
                                                                                            },
                                                                                            {
                                                                                                "type": "selling",
                                                                                                "value": "0"
                                                                                            }
                                                                                        ]
                                                                                    },
                                                                                    {
                                                                                        "type": "ext",
                                                                                        "value": "[undefined]",
                                                                                        "nodes": [
                                                                                            {
                                                                                                "type": "v2",
                                                                                                "nodes": [
                                                                                                    {
                                                                                                        "type": "numSponsored",
                                                                                                        "value": "0"
                                                                                                    },
                                                                                                    {
                                                                                                        "type": "numSponsoring",
                                                                                                        "value": "0"
                                                                                                    },
                                                                                                    {
                                                                                                        "type": "signerSponsoringIDs",
                                                                                                        "value": "Array[0]",
                                                                                                        "nodes": []
                                                                                                    },
                                                                                                    {
                                                                                                        "type": "ext",
                                                                                                        "value": "[undefined]",
                                                                                                        "nodes": [
                                                                                                            {
                                                                                                                "type": "v3",
                                                                                                                "nodes": [
                                                                                                                    {
                                                                                                                        "type": "ext",
                                                                                                                        "value": "[undefined]"
                                                                                                                    },
                                                                                                                    {
                                                                                                                        "type": "seqLedger",
                                                                                                                        "value": "50864752"
                                                                                                                    },
                                                                                                                    {
                                                                                                                        "type": "seqTime",
                                                                                                                        "value": "1710893324"
                                                                                                                    }
                                                                                                                ]
                                                                                                            }
                                                                                                        ]
                                                                                                    }
                                                                                                ]
                                                                                            }
                                                                                        ]
                                                                                    }
                                                                                ]
                                                                            }
                                                                        ]
                                                                    }
                                                                ]
                                                            }
                                                        ]
                                                    },
                                                    {
                                                        "type": "ext",
                                                        "value": "[undefined]"
                                                    }
                                                ]
                                            }
                                        ]
                                    },
                                    {
                                        "type": "[1]",
                                        "value": "[ledgerEntryUpdated]",
                                        "nodes": [
                                            {
                                                "type": "updated",
                                                "nodes": [
                                                    {
                                                        "type": "lastModifiedLedgerSeq",
                                                        "value": "50864752"
                                                    },
                                                    {
                                                        "type": "data",
                                                        "value": "[account]",
                                                        "nodes": [
                                                            {
                                                                "type": "account",
                                                                "nodes": [
                                                                    {
                                                                        "type": "accountId",
                                                                        "value": "[publicKeyTypeEd25519]",
                                                                        "nodes": [
                                                                            {
                                                                                "type": "ed25519",
                                                                                "value": {
                                                                                    "type": "code",
                                                                                    "value": "GC3IBUO6OA5TLZXGUUE7LFDZJKSKUKOXZ65UHTTKXS6NLKBZ4TF2EES5"
                                                                                }
                                                                            }
                                                                        ]
                                                                    },
                                                                    {
                                                                        "type": "balance",
                                                                        "value": "9773527703"
                                                                    },
                                                                    {
                                                                        "type": "seqNum",
                                                                        "value": "163399020004245540"
                                                                    },
                                                                    {
                                                                        "type": "numSubEntries",
                                                                        "value": "0"
                                                                    },
                                                                    {
                                                                        "type": "inflationDest",
                                                                        "value": null
                                                                    },
                                                                    {
                                                                        "type": "flags",
                                                                        "value": "11"
                                                                    },
                                                                    {
                                                                        "type": "homeDomain",
                                                                        "value": {
                                                                            "type": "code",
                                                                            "raw": {
                                                                                "type": "Buffer",
                                                                                "data": [
                                                                                    100,
                                                                                    101,
                                                                                    118,
                                                                                    46,
                                                                                    98,
                                                                                    108,
                                                                                    111,
                                                                                    99,
                                                                                    107,
                                                                                    116,
                                                                                    105,
                                                                                    109,
                                                                                    101,
                                                                                    102,
                                                                                    105,
                                                                                    110,
                                                                                    97,
                                                                                    110,
                                                                                    99,
                                                                                    105,
                                                                                    97,
                                                                                    108,
                                                                                    46,
                                                                                    99,
                                                                                    111,
                                                                                    109
                                                                                ]
                                                                            },
                                                                            "value": "ZGV2LmJsb2NrdGltZWZpbmFuY2lhbC5jb20="
                                                                        }
                                                                    },
                                                                    {
                                                                        "type": "thresholds",
                                                                        "value": {
                                                                            "type": "code",
                                                                            "raw": {
                                                                                "type": "Buffer",
                                                                                "data": [
                                                                                    1,
                                                                                    0,
                                                                                    0,
                                                                                    0
                                                                                ]
                                                                            },
                                                                            "value": "AQAAAA=="
                                                                        }
                                                                    },
                                                                    {
                                                                        "type": "signers",
                                                                        "value": "Array[0]",
                                                                        "nodes": []
                                                                    },
                                                                    {
                                                                        "type": "ext",
                                                                        "value": "[undefined]",
                                                                        "nodes": [
                                                                            {
                                                                                "type": "v1",
                                                                                "nodes": [
                                                                                    {
                                                                                        "type": "liabilities",
                                                                                        "nodes": [
                                                                                            {
                                                                                                "type": "buying",
                                                                                                "value": "0"
                                                                                            },
                                                                                            {
                                                                                                "type": "selling",
                                                                                                "value": "0"
                                                                                            }
                                                                                        ]
                                                                                    },
                                                                                    {
                                                                                        "type": "ext",
                                                                                        "value": "[undefined]",
                                                                                        "nodes": [
                                                                                            {
                                                                                                "type": "v2",
                                                                                                "nodes": [
                                                                                                    {
                                                                                                        "type": "numSponsored",
                                                                                                        "value": "0"
                                                                                                    },
                                                                                                    {
                                                                                                        "type": "numSponsoring",
                                                                                                        "value": "0"
                                                                                                    },
                                                                                                    {
                                                                                                        "type": "signerSponsoringIDs",
                                                                                                        "value": "Array[0]",
                                                                                                        "nodes": []
                                                                                                    },
                                                                                                    {
                                                                                                        "type": "ext",
                                                                                                        "value": "[undefined]",
                                                                                                        "nodes": [
                                                                                                            {
                                                                                                                "type": "v3",
                                                                                                                "nodes": [
                                                                                                                    {
                                                                                                                        "type": "ext",
                                                                                                                        "value": "[undefined]"
                                                                                                                    },
                                                                                                                    {
                                                                                                                        "type": "seqLedger",
                                                                                                                        "value": "50864752"
                                                                                                                    },
                                                                                                                    {
                                                                                                                        "type": "seqTime",
                                                                                                                        "value": "1710893324"
                                                                                                                    }
                                                                                                                ]
                                                                                                            }
                                                                                                        ]
                                                                                                    }
                                                                                                ]
                                                                                            }
                                                                                        ]
                                                                                    }
                                                                                ]
                                                                            }
                                                                        ]
                                                                    }
                                                                ]
                                                            }
                                                        ]
                                                    },
                                                    {
                                                        "type": "ext",
                                                        "value": "[undefined]"
                                                    }
                                                ]
                                            }
                                        ]
                                    }
                                ]
                            },
                            {
                                "type": "sorobanMeta",
                                "nodes": [
                                    {
                                        "type": "ext",
                                        "value": "[undefined]"
                                    },
                                    {
                                        "type": "events",
                                        "value": "Array[0]",
                                        "nodes": []
                                    },
                                    {
                                        "type": "returnValue",
                                        "value": "[scvAddress]",
                                        "nodes": [
                                            {
                                                "type": "address",
                                                "value": "CAIEAMU2ZNSEYRKFKHUUO73CKGXPXPB6T5EGMECUTIFKRXBT2OQP24S2"
                                            }
                                        ]
                                    },
                                    {
                                        "type": "diagnosticEvents",
                                        "value": "Array[0]",
                                        "nodes": []
                                    }
                                ]
                            }
                        ]
                    }
                ]
            }
        ]
    }
}
```

{% endtab %}
{% endtabs %}

### /portfolio

Get the comprehensive information about the assets/ tokens owned by a user, including their name, balance, symbol, address, and their equivalent USD price.

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

#### Query Parameters

| Name                                      | Type    | Description                                                                   |
| ----------------------------------------- | ------- | ----------------------------------------------------------------------------- |
| rpc                                       | String  | Remote procedural call URL.                                                   |
| chainId<mark style="color:red;">\*</mark> | String  | Refer to the [Chain ID ](/ids/chain-ids)page for details.                     |
| chainSymbol                               | String  | Refer to the [Chain ID ](/ids/chain-ids)page for details.                     |
| address<mark style="color:red;">\*</mark> | String  | Public addess of the user.                                                    |
| availableOnly                             | Boolean | <p>By default, true. <br>If true, tokens with balance > 0 will be listed.</p> |

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

```url
https://api.expand.network/chain/portfolio/?address=GAJ4BSGJE6UQHZAZ5U5IUOABPDCYPKPS3RFS2NVNGFGFXGVQDLBQJW2P&chainId=1500&availableOnly=true
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "native": "165551542",
        "assets": [
            {
                "assetType": "credit_alphanum4",
                "balance": "4310224067",
                "assetCode": "SHX",
                "issuer": "GDSTRSHXHGJ7ZIVRBXEYE5Q74XUVCUSEKEBR7UCHEUUEK72N7I7KJ6JH"
            }
        ]
    }
}
```

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

| Name                                      | Type   | Description                                                                                                      |
| ----------------------------------------- | ------ | ---------------------------------------------------------------------------------------------------------------- |
| rpc                                       | String | Remote procedural call URL.                                                                                      |
| chainId<mark style="color:red;">\*</mark> | String | Refer to the [Chain ID ](/ids/chain-ids)page for details.                                                        |
| chainSymbol                               | String | Refer to the [Chain ID ](/ids/chain-ids)page for details.                                                        |
| address<mark style="color:red;">\*</mark> | String | The public address of the user.                                                                                  |
| pageToken                                 | String | A string ID that points to a specific location in a collection of responses, present at the end of the response. |
| sortOrder                                 | String | <p>The transaction sorting order. <br>asc or desc. <br>By default, desc.</p>                                     |

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

```url
https://historicallp.api.expand.network/chain/getusertransactions?chainId=1500&address=GCU7LJ5S6U3YCTSLLZNMRHJBSXVI6O5WPQIJ2ESLYTYIUJ7WMSXNYERD
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "transactions": {
        "hash": "3ee7edbe77d9ca096adf05feab86cc3b2f0a355088240f3eeb06cbfc24a491a7",
        "transactionStatus": true,
        "blockNumber": "50864752",
        "timestamp": "1710893324000",
        "from": "GC3IBUO6OA5TLZXGUUE7LFDZJKSKUKOXZ65UHTTKXS6NLKBZ4TF2EES5",
        "to": null,
        "value": null,
        "transactionFees": "2129796",
        "gas": "2454018",
        "gasPrice": "100",
        "input": null,
        "nonce": 163399020004245540,
        "network": null,
        "transactionEnvelop": [
            {
                "type": "TransactionEnvelope",
                "value": "[envelopeTypeTx]",
                "nodes": [
                    {
                        "type": "v1",
                        "nodes": [
                            {
                                "type": "tx",
                                "nodes": [
                                    {
                                        "type": "sourceAccount",
                                        "value": "[keyTypeEd25519]",
                                        "nodes": [
                                            {
                                                "type": "ed25519",
                                                "value": {
                                                    "type": "code",
                                                    "value": "GC3IBUO6OA5TLZXGUUE7LFDZJKSKUKOXZ65UHTTKXS6NLKBZ4TF2EES5"
                                                }
                                            }
                                        ]
                                    },
                                    {
                                        "type": "fee",
                                        "value": "2454018"
                                    },
                                    {
                                        "type": "seqNum",
                                        "value": "163399020004245540"
                                    },
                                    {
                                        "type": "cond",
                                        "value": "[precondNone]"
                                    },
                                    {
                                        "type": "memo",
                                        "value": "[memoNone]"
                                    },
                                    {
                                        "type": "operations",
                                        "value": "Array[1]",
                                        "nodes": [
                                            {
                                                "type": "[0]",
                                                "nodes": [
                                                    {
                                                        "type": "sourceAccount",
                                                        "value": null
                                                    },
                                                    {
                                                        "type": "body",
                                                        "value": "[invokeHostFunction]",
                                                        "nodes": [
                                                            {
                                                                "type": "invokeHostFunctionOp",
                                                                "nodes": [
                                                                    {
                                                                        "type": "hostFunction",
                                                                        "value": "[hostFunctionTypeCreateContract]",
                                                                        "nodes": [
                                                                            {
                                                                                "type": "createContract",
                                                                                "nodes": [
                                                                                    {
                                                                                        "type": "contractIdPreimage",
                                                                                        "value": "[contractIdPreimageFromAsset]",
                                                                                        "nodes": [
                                                                                            {
                                                                                                "type": "fromAsset",
                                                                                                "value": "[assetTypeCreditAlphanum4]",
                                                                                                "nodes": [
                                                                                                    {
                                                                                                        "type": "alphaNum4",
                                                                                                        "nodes": [
                                                                                                            {
                                                                                                                "type": "assetCode",
                                                                                                                "value": "BTFo"
                                                                                                            },
                                                                                                            {
                                                                                                                "type": "issuer",
                                                                                                                "value": "[publicKeyTypeEd25519]",
                                                                                                                "nodes": [
                                                                                                                    {
                                                                                                                        "type": "ed25519",
                                                                                                                        "value": {
                                                                                                                            "type": "code",
                                                                                                                            "value": "GC3IBUO6OA5TLZXGUUE7LFDZJKSKUKOXZ65UHTTKXS6NLKBZ4TF2EES5"
                                                                                                                        }
                                                                                                                    }
                                                                                                                ]
                                                                                                            }
                                                                                                        ]
                                                                                                    }
                                                                                                ]
                                                                                            }
                                                                                        ]
                                                                                    },
                                                                                    {
                                                                                        "type": "executable",
                                                                                        "value": "[contractExecutableStellarAsset]"
                                                                                    }
                                                                                ]
                                                                            }
                                                                        ]
                                                                    },
                                                                    {
                                                                        "type": "auth",
                                                                        "value": "Array[0]",
                                                                        "nodes": []
                                                                    }
                                                                ]
                                                            }
                                                        ]
                                                    }
                                                ]
                                            }
                                        ]
                                    },
                                    {
                                        "type": "ext",
                                        "value": "[undefined]",
                                        "nodes": [
                                            {
                                                "type": "sorobanData",
                                                "nodes": [
                                                    {
                                                        "type": "ext",
                                                        "value": "[undefined]"
                                                    },
                                                    {
                                                        "type": "resources",
                                                        "nodes": [
                                                            {
                                                                "type": "footprint",
                                                                "nodes": [
                                                                    {
                                                                        "type": "readOnly",
                                                                        "value": "Array[0]",
                                                                        "nodes": []
                                                                    },
                                                                    {
                                                                        "type": "readWrite",
                                                                        "value": "Array[1]",
                                                                        "nodes": [
                                                                            {
                                                                                "type": "[0]",
                                                                                "value": "[contractData]",
                                                                                "nodes": [
                                                                                    {
                                                                                        "type": "contractData",
                                                                                        "nodes": [
                                                                                            {
                                                                                                "type": "contract",
                                                                                                "value": "[scAddressTypeContract]",
                                                                                                "nodes": [
                                                                                                    {
                                                                                                        "type": "contractId",
                                                                                                        "value": "CAIEAMU2ZNSEYRKFKHUUO73CKGXPXPB6T5EGMECUTIFKRXBT2OQP24S2"
                                                                                                    }
                                                                                                ]
                                                                                            },
                                                                                            {
                                                                                                "type": "key",
                                                                                                "value": "[scvLedgerKeyContractInstance]"
                                                                                            },
                                                                                            {
                                                                                                "type": "durability",
                                                                                                "value": {
                                                                                                    "name": "persistent",
                                                                                                    "value": 1
                                                                                                }
                                                                                            }
                                                                                        ]
                                                                                    }
                                                                                ]
                                                                            }
                                                                        ]
                                                                    }
                                                                ]
                                                            },
                                                            {
                                                                "type": "instructions",
                                                                "value": "3114111"
                                                            },
                                                            {
                                                                "type": "readBytes",
                                                                "value": "0"
                                                            },
                                                            {
                                                                "type": "writeBytes",
                                                                "value": "476"
                                                            }
                                                        ]
                                                    },
                                                    {
                                                        "type": "resourceFee",
                                                        "value": "2133829"
                                                    }
                                                ]
                                            }
                                        ]
                                    }
                                ]
                            },
                            {
                                "type": "signatures",
                                "value": "Array[1]",
                                "nodes": [
                                    {
                                        "type": "[0]",
                                        "nodes": [
                                            {
                                                "type": "hint",
                                                "value": {
                                                    "type": "code",
                                                    "value": "G______________________________________________Z4TF2____"
                                                }
                                            },
                                            {
                                                "type": "signature",
                                                "value": {
                                                    "type": "code",
                                                    "raw": {
                                                        "type": "Buffer",
                                                        "data": [
                                                            141,
                                                            201,
                                                            205,
                                                            145,
                                                            217,
                                                            190,
                                                            184,
                                                            119,
                                                            165,
                                                            253,
                                                            195,
                                                            24,
                                                            53,
                                                            138,
                                                            0,
                                                            184,
                                                            39,
                                                            32,
                                                            212,
                                                            17,
                                                            10,
                                                            55,
                                                            181,
                                                            149,
                                                            219,
                                                            82,
                                                            178,
                                                            151,
                                                            26,
                                                            160,
                                                            120,
                                                            31,
                                                            189,
                                                            149,
                                                            135,
                                                            125,
                                                            217,
                                                            107,
                                                            174,
                                                            150,
                                                            89,
                                                            227,
                                                            15,
                                                            18,
                                                            215,
                                                            169,
                                                            144,
                                                            23,
                                                            171,
                                                            26,
                                                            105,
                                                            94,
                                                            177,
                                                            244,
                                                            63,
                                                            17,
                                                            144,
                                                            91,
                                                            10,
                                                            102,
                                                            236,
                                                            117,
                                                            114,
                                                            2
                                                        ]
                                                    },
                                                    "value": "jcnNkdm+uHel/cMYNYoAuCcg1BEKN7WV21KylxqgeB+9lYd92WuullnjDxLXqZAXqxppXrH0PxGQWwpm7HVyAg=="
                                                }
                                            }
                                        ]
                                    }
                                ]
                            }
                        ]
                    }
                ]
            }
        ],
        "transactionResult": [
            {
                "type": "TransactionResult",
                "nodes": [
                    {
                        "type": "feeCharged",
                        "value": "2129796"
                    },
                    {
                        "type": "result",
                        "value": "[txSuccess]",
                        "nodes": [
                            {
                                "type": "results",
                                "value": "Array[1]",
                                "nodes": [
                                    {
                                        "type": "[0]",
                                        "value": "[opInner]",
                                        "nodes": [
                                            {
                                                "type": "tr",
                                                "value": "[invokeHostFunction]",
                                                "nodes": [
                                                    {
                                                        "type": "invokeHostFunctionResult",
                                                        "value": "[invokeHostFunctionSuccess]",
                                                        "nodes": [
                                                            {
                                                                "type": "success",
                                                                "value": {
                                                                    "type": "code",
                                                                    "raw": {
                                                                        "type": "Buffer",
                                                                        "data": [
                                                                            192,
                                                                            151,
                                                                            213,
                                                                            158,
                                                                            159,
                                                                            153,
                                                                            7,
                                                                            23,
                                                                            199,
                                                                            248,
                                                                            157,
                                                                            2,
                                                                            192,
                                                                            179,
                                                                            161,
                                                                            181,
                                                                            23,
                                                                            27,
                                                                            107,
                                                                            231,
                                                                            186,
                                                                            1,
                                                                            89,
                                                                            3,
                                                                            36,
                                                                            242,
                                                                            34,
                                                                            236,
                                                                            49,
                                                                            130,
                                                                            143,
                                                                            121
                                                                        ]
                                                                    },
                                                                    "value": "wJfVnp+ZBxfH+J0CwLOhtRcba+e6AVkDJPIi7DGCj3k="
                                                                }
                                                            }
                                                        ]
                                                    }
                                                ]
                                            }
                                        ]
                                    }
                                ]
                            }
                        ]
                    },
                    {
                        "type": "ext",
                        "value": "[undefined]"
                    }
                ]
            }
        ],
        "transactionMeta": [
            {
                "type": "TransactionMeta",
                "value": "[undefined]",
                "nodes": [
                    {
                        "type": "v3",
                        "nodes": [
                            {
                                "type": "ext",
                                "value": "[undefined]"
                            },
                            {
                                "type": "txChangesBefore",
                                "value": "Array[2]",
                                "nodes": [
                                    {
                                        "type": "[0]",
                                        "value": "[ledgerEntryState]",
                                        "nodes": [
                                            {
                                                "type": "state",
                                                "nodes": [
                                                    {
                                                        "type": "lastModifiedLedgerSeq",
                                                        "value": "50864752"
                                                    },
                                                    {
                                                        "type": "data",
                                                        "value": "[account]",
                                                        "nodes": [
                                                            {
                                                                "type": "account",
                                                                "nodes": [
                                                                    {
                                                                        "type": "accountId",
                                                                        "value": "[publicKeyTypeEd25519]",
                                                                        "nodes": [
                                                                            {
                                                                                "type": "ed25519",
                                                                                "value": {
                                                                                    "type": "code",
                                                                                    "value": "GC3IBUO6OA5TLZXGUUE7LFDZJKSKUKOXZ65UHTTKXS6NLKBZ4TF2EES5"
                                                                                }
                                                                            }
                                                                        ]
                                                                    },
                                                                    {
                                                                        "type": "balance",
                                                                        "value": "9773523570"
                                                                    },
                                                                    {
                                                                        "type": "seqNum",
                                                                        "value": "163399020004245539"
                                                                    },
                                                                    {
                                                                        "type": "numSubEntries",
                                                                        "value": "0"
                                                                    },
                                                                    {
                                                                        "type": "inflationDest",
                                                                        "value": null
                                                                    },
                                                                    {
                                                                        "type": "flags",
                                                                        "value": "11"
                                                                    },
                                                                    {
                                                                        "type": "homeDomain",
                                                                        "value": {
                                                                            "type": "code",
                                                                            "raw": {
                                                                                "type": "Buffer",
                                                                                "data": [
                                                                                    100,
                                                                                    101,
                                                                                    118,
                                                                                    46,
                                                                                    98,
                                                                                    108,
                                                                                    111,
                                                                                    99,
                                                                                    107,
                                                                                    116,
                                                                                    105,
                                                                                    109,
                                                                                    101,
                                                                                    102,
                                                                                    105,
                                                                                    110,
                                                                                    97,
                                                                                    110,
                                                                                    99,
                                                                                    105,
                                                                                    97,
                                                                                    108,
                                                                                    46,
                                                                                    99,
                                                                                    111,
                                                                                    109
                                                                                ]
                                                                            },
                                                                            "value": "ZGV2LmJsb2NrdGltZWZpbmFuY2lhbC5jb20="
                                                                        }
                                                                    },
                                                                    {
                                                                        "type": "thresholds",
                                                                        "value": {
                                                                            "type": "code",
                                                                            "raw": {
                                                                                "type": "Buffer",
                                                                                "data": [
                                                                                    1,
                                                                                    0,
                                                                                    0,
                                                                                    0
                                                                                ]
                                                                            },
                                                                            "value": "AQAAAA=="
                                                                        }
                                                                    },
                                                                    {
                                                                        "type": "signers",
                                                                        "value": "Array[0]",
                                                                        "nodes": []
                                                                    },
                                                                    {
                                                                        "type": "ext",
                                                                        "value": "[undefined]",
                                                                        "nodes": [
                                                                            {
                                                                                "type": "v1",
                                                                                "nodes": [
                                                                                    {
                                                                                        "type": "liabilities",
                                                                                        "nodes": [
                                                                                            {
                                                                                                "type": "buying",
                                                                                                "value": "0"
                                                                                            },
                                                                                            {
                                                                                                "type": "selling",
                                                                                                "value": "0"
                                                                                            }
                                                                                        ]
                                                                                    },
                                                                                    {
                                                                                        "type": "ext",
                                                                                        "value": "[undefined]",
                                                                                        "nodes": [
                                                                                            {
                                                                                                "type": "v2",
                                                                                                "nodes": [
                                                                                                    {
                                                                                                        "type": "numSponsored",
                                                                                                        "value": "0"
                                                                                                    },
                                                                                                    {
                                                                                                        "type": "numSponsoring",
                                                                                                        "value": "0"
                                                                                                    },
                                                                                                    {
                                                                                                        "type": "signerSponsoringIDs",
                                                                                                        "value": "Array[0]",
                                                                                                        "nodes": []
                                                                                                    },
                                                                                                    {
                                                                                                        "type": "ext",
                                                                                                        "value": "[undefined]",
                                                                                                        "nodes": [
                                                                                                            {
                                                                                                                "type": "v3",
                                                                                                                "nodes": [
                                                                                                                    {
                                                                                                                        "type": "ext",
                                                                                                                        "value": "[undefined]"
                                                                                                                    },
                                                                                                                    {
                                                                                                                        "type": "seqLedger",
                                                                                                                        "value": "50864748"
                                                                                                                    },
                                                                                                                    {
                                                                                                                        "type": "seqTime",
                                                                                                                        "value": "1710893300"
                                                                                                                    }
                                                                                                                ]
                                                                                                            }
                                                                                                        ]
                                                                                                    }
                                                                                                ]
                                                                                            }
                                                                                        ]
                                                                                    }
                                                                                ]
                                                                            }
                                                                        ]
                                                                    }
                                                                ]
                                                            }
                                                        ]
                                                    },
                                                    {
                                                        "type": "ext",
                                                        "value": "[undefined]"
                                                    }
                                                ]
                                            }
                                        ]
                                    },
                                    {
                                        "type": "[1]",
                                        "value": "[ledgerEntryUpdated]",
                                        "nodes": [
                                            {
                                                "type": "updated",
                                                "nodes": [
                                                    {
                                                        "type": "lastModifiedLedgerSeq",
                                                        "value": "50864752"
                                                    },
                                                    {
                                                        "type": "data",
                                                        "value": "[account]",
                                                        "nodes": [
                                                            {
                                                                "type": "account",
                                                                "nodes": [
                                                                    {
                                                                        "type": "accountId",
                                                                        "value": "[publicKeyTypeEd25519]",
                                                                        "nodes": [
                                                                            {
                                                                                "type": "ed25519",
                                                                                "value": {
                                                                                    "type": "code",
                                                                                    "value": "GC3IBUO6OA5TLZXGUUE7LFDZJKSKUKOXZ65UHTTKXS6NLKBZ4TF2EES5"
                                                                                }
                                                                            }
                                                                        ]
                                                                    },
                                                                    {
                                                                        "type": "balance",
                                                                        "value": "9773523570"
                                                                    },
                                                                    {
                                                                        "type": "seqNum",
                                                                        "value": "163399020004245540"
                                                                    },
                                                                    {
                                                                        "type": "numSubEntries",
                                                                        "value": "0"
                                                                    },
                                                                    {
                                                                        "type": "inflationDest",
                                                                        "value": null
                                                                    },
                                                                    {
                                                                        "type": "flags",
                                                                        "value": "11"
                                                                    },
                                                                    {
                                                                        "type": "homeDomain",
                                                                        "value": {
                                                                            "type": "code",
                                                                            "raw": {
                                                                                "type": "Buffer",
                                                                                "data": [
                                                                                    100,
                                                                                    101,
                                                                                    118,
                                                                                    46,
                                                                                    98,
                                                                                    108,
                                                                                    111,
                                                                                    99,
                                                                                    107,
                                                                                    116,
                                                                                    105,
                                                                                    109,
                                                                                    101,
                                                                                    102,
                                                                                    105,
                                                                                    110,
                                                                                    97,
                                                                                    110,
                                                                                    99,
                                                                                    105,
                                                                                    97,
                                                                                    108,
                                                                                    46,
                                                                                    99,
                                                                                    111,
                                                                                    109
                                                                                ]
                                                                            },
                                                                            "value": "ZGV2LmJsb2NrdGltZWZpbmFuY2lhbC5jb20="
                                                                        }
                                                                    },
                                                                    {
                                                                        "type": "thresholds",
                                                                        "value": {
                                                                            "type": "code",
                                                                            "raw": {
                                                                                "type": "Buffer",
                                                                                "data": [
                                                                                    1,
                                                                                    0,
                                                                                    0,
                                                                                    0
                                                                                ]
                                                                            },
                                                                            "value": "AQAAAA=="
                                                                        }
                                                                    },
                                                                    {
                                                                        "type": "signers",
                                                                        "value": "Array[0]",
                                                                        "nodes": []
                                                                    },
                                                                    {
                                                                        "type": "ext",
                                                                        "value": "[undefined]",
                                                                        "nodes": [
                                                                            {
                                                                                "type": "v1",
                                                                                "nodes": [
                                                                                    {
                                                                                        "type": "liabilities",
                                                                                        "nodes": [
                                                                                            {
                                                                                                "type": "buying",
                                                                                                "value": "0"
                                                                                            },
                                                                                            {
                                                                                                "type": "selling",
                                                                                                "value": "0"
                                                                                            }
                                                                                        ]
                                                                                    },
                                                                                    {
                                                                                        "type": "ext",
                                                                                        "value": "[undefined]",
                                                                                        "nodes": [
                                                                                            {
                                                                                                "type": "v2",
                                                                                                "nodes": [
                                                                                                    {
                                                                                                        "type": "numSponsored",
                                                                                                        "value": "0"
                                                                                                    },
                                                                                                    {
                                                                                                        "type": "numSponsoring",
                                                                                                        "value": "0"
                                                                                                    },
                                                                                                    {
                                                                                                        "type": "signerSponsoringIDs",
                                                                                                        "value": "Array[0]",
                                                                                                        "nodes": []
                                                                                                    },
                                                                                                    {
                                                                                                        "type": "ext",
                                                                                                        "value": "[undefined]",
                                                                                                        "nodes": [
                                                                                                            {
                                                                                                                "type": "v3",
                                                                                                                "nodes": [
                                                                                                                    {
                                                                                                                        "type": "ext",
                                                                                                                        "value": "[undefined]"
                                                                                                                    },
                                                                                                                    {
                                                                                                                        "type": "seqLedger",
                                                                                                                        "value": "50864752"
                                                                                                                    },
                                                                                                                    {
                                                                                                                        "type": "seqTime",
                                                                                                                        "value": "1710893324"
                                                                                                                    }
                                                                                                                ]
                                                                                                            }
                                                                                                        ]
                                                                                                    }
                                                                                                ]
                                                                                            }
                                                                                        ]
                                                                                    }
                                                                                ]
                                                                            }
                                                                        ]
                                                                    }
                                                                ]
                                                            }
                                                        ]
                                                    },
                                                    {
                                                        "type": "ext",
                                                        "value": "[undefined]"
                                                    }
                                                ]
                                            }
                                        ]
                                    }
                                ]
                            },
                            {
                                "type": "operations",
                                "value": "Array[1]",
                                "nodes": [
                                    {
                                        "type": "[0]",
                                        "nodes": [
                                            {
                                                "type": "changes",
                                                "value": "Array[2]",
                                                "nodes": [
                                                    {
                                                        "type": "[0]",
                                                        "value": "[ledgerEntryCreated]",
                                                        "nodes": [
                                                            {
                                                                "type": "created",
                                                                "nodes": [
                                                                    {
                                                                        "type": "lastModifiedLedgerSeq",
                                                                        "value": "50864752"
                                                                    },
                                                                    {
                                                                        "type": "data",
                                                                        "value": "[ttl]",
                                                                        "nodes": [
                                                                            {
                                                                                "type": "ttl",
                                                                                "nodes": [
                                                                                    {
                                                                                        "type": "keyHash",
                                                                                        "value": {
                                                                                            "type": "code",
                                                                                            "raw": {
                                                                                                "type": "Buffer",
                                                                                                "data": [
                                                                                                    138,
                                                                                                    38,
                                                                                                    129,
                                                                                                    100,
                                                                                                    173,
                                                                                                    249,
                                                                                                    191,
                                                                                                    8,
                                                                                                    213,
                                                                                                    64,
                                                                                                    104,
                                                                                                    81,
                                                                                                    33,
                                                                                                    35,
                                                                                                    140,
                                                                                                    116,
                                                                                                    70,
                                                                                                    85,
                                                                                                    31,
                                                                                                    169,
                                                                                                    198,
                                                                                                    140,
                                                                                                    228,
                                                                                                    121,
                                                                                                    26,
                                                                                                    62,
                                                                                                    157,
                                                                                                    49,
                                                                                                    69,
                                                                                                    132,
                                                                                                    57,
                                                                                                    189
                                                                                                ]
                                                                                            },
                                                                                            "value": "iiaBZK35vwjVQGhRISOMdEZVH6nGjOR5Gj6dMUWEOb0="
                                                                                        }
                                                                                    },
                                                                                    {
                                                                                        "type": "liveUntilLedgerSeq",
                                                                                        "value": "52938351"
                                                                                    }
                                                                                ]
                                                                            }
                                                                        ]
                                                                    },
                                                                    {
                                                                        "type": "ext",
                                                                        "value": "[undefined]"
                                                                    }
                                                                ]
                                                            }
                                                        ]
                                                    },
                                                    {
                                                        "type": "[1]",
                                                        "value": "[ledgerEntryCreated]",
                                                        "nodes": [
                                                            {
                                                                "type": "created",
                                                                "nodes": [
                                                                    {
                                                                        "type": "lastModifiedLedgerSeq",
                                                                        "value": "50864752"
                                                                    },
                                                                    {
                                                                        "type": "data",
                                                                        "value": "[contractData]",
                                                                        "nodes": [
                                                                            {
                                                                                "type": "contractData",
                                                                                "nodes": [
                                                                                    {
                                                                                        "type": "ext",
                                                                                        "value": "[undefined]"
                                                                                    },
                                                                                    {
                                                                                        "type": "contract",
                                                                                        "value": "[scAddressTypeContract]",
                                                                                        "nodes": [
                                                                                            {
                                                                                                "type": "contractId",
                                                                                                "value": "CAIEAMU2ZNSEYRKFKHUUO73CKGXPXPB6T5EGMECUTIFKRXBT2OQP24S2"
                                                                                            }
                                                                                        ]
                                                                                    },
                                                                                    {
                                                                                        "type": "key",
                                                                                        "value": "[scvLedgerKeyContractInstance]"
                                                                                    },
                                                                                    {
                                                                                        "type": "durability",
                                                                                        "value": {
                                                                                            "name": "persistent",
                                                                                            "value": 1
                                                                                        }
                                                                                    },
                                                                                    {
                                                                                        "type": "val",
                                                                                        "value": "[scvContractInstance]",
                                                                                        "nodes": [
                                                                                            {
                                                                                                "type": "instance",
                                                                                                "nodes": [
                                                                                                    {
                                                                                                        "type": "executable",
                                                                                                        "value": "[contractExecutableStellarAsset]"
                                                                                                    },
                                                                                                    {
                                                                                                        "type": "storage",
                                                                                                        "value": "Array[3]",
                                                                                                        "nodes": [
                                                                                                            {
                                                                                                                "type": "[0]",
                                                                                                                "nodes": [
                                                                                                                    {
                                                                                                                        "type": "key",
                                                                                                                        "value": "[scvSymbol]",
                                                                                                                        "nodes": [
                                                                                                                            {
                                                                                                                                "type": "sym",
                                                                                                                                "value": "METADATA"
                                                                                                                            }
                                                                                                                        ]
                                                                                                                    },
                                                                                                                    {
                                                                                                                        "type": "val",
                                                                                                                        "value": "[scvMap]",
                                                                                                                        "nodes": [
                                                                                                                            {
                                                                                                                                "type": "map",
                                                                                                                                "value": {
                                                                                                                                    "decimal": 7,
                                                                                                                                    "name": "BTFo:GC3IBUO6OA5TLZXGUUE7LFDZJKSKUKOXZ65UHTTKXS6NLKBZ4TF2EES5",
                                                                                                                                    "symbol": "BTFo"
                                                                                                                                }
                                                                                                                            }
                                                                                                                        ]
                                                                                                                    }
                                                                                                                ]
                                                                                                            },
                                                                                                            {
                                                                                                                "type": "[1]",
                                                                                                                "nodes": [
                                                                                                                    {
                                                                                                                        "type": "key",
                                                                                                                        "value": "[scvVec]",
                                                                                                                        "nodes": [
                                                                                                                            {
                                                                                                                                "type": "vec",
                                                                                                                                "value": "Array[1]",
                                                                                                                                "nodes": [
                                                                                                                                    {
                                                                                                                                        "type": "[0]",
                                                                                                                                        "value": "[scvSymbol]",
                                                                                                                                        "nodes": [
                                                                                                                                            {
                                                                                                                                                "type": "sym",
                                                                                                                                                "value": "Admin"
                                                                                                                                            }
                                                                                                                                        ]
                                                                                                                                    }
                                                                                                                                ]
                                                                                                                            }
                                                                                                                        ]
                                                                                                                    },
                                                                                                                    {
                                                                                                                        "type": "val",
                                                                                                                        "value": "[scvAddress]",
                                                                                                                        "nodes": [
                                                                                                                            {
                                                                                                                                "type": "address",
                                                                                                                                "value": "GC3IBUO6OA5TLZXGUUE7LFDZJKSKUKOXZ65UHTTKXS6NLKBZ4TF2EES5"
                                                                                                                            }
                                                                                                                        ]
                                                                                                                    }
                                                                                                                ]
                                                                                                            },
                                                                                                            {
                                                                                                                "type": "[2]",
                                                                                                                "nodes": [
                                                                                                                    {
                                                                                                                        "type": "key",
                                                                                                                        "value": "[scvVec]",
                                                                                                                        "nodes": [
                                                                                                                            {
                                                                                                                                "type": "vec",
                                                                                                                                "value": "Array[1]",
                                                                                                                                "nodes": [
                                                                                                                                    {
                                                                                                                                        "type": "[0]",
                                                                                                                                        "value": "[scvSymbol]",
                                                                                                                                        "nodes": [
                                                                                                                                            {
                                                                                                                                                "type": "sym",
                                                                                                                                                "value": "AssetInfo"
                                                                                                                                            }
                                                                                                                                        ]
                                                                                                                                    }
                                                                                                                                ]
                                                                                                                            }
                                                                                                                        ]
                                                                                                                    },
                                                                                                                    {
                                                                                                                        "type": "val",
                                                                                                                        "value": "[scvVec]",
                                                                                                                        "nodes": [
                                                                                                                            {
                                                                                                                                "type": "vec",
                                                                                                                                "value": "Array[2]",
                                                                                                                                "nodes": [
                                                                                                                                    {
                                                                                                                                        "type": "[0]",
                                                                                                                                        "value": "[scvSymbol]",
                                                                                                                                        "nodes": [
                                                                                                                                            {
                                                                                                                                                "type": "sym",
                                                                                                                                                "value": "AlphaNum4"
                                                                                                                                            }
                                                                                                                                        ]
                                                                                                                                    },
                                                                                                                                    {
                                                                                                                                        "type": "[1]",
                                                                                                                                        "value": "[scvMap]",
                                                                                                                                        "nodes": [
                                                                                                                                            {
                                                                                                                                                "type": "map",
                                                                                                                                                "value": {
                                                                                                                                                    "asset_code": "BTFo",
                                                                                                                                                    "issuer": {
                                                                                                                                                        "type": "Buffer",
                                                                                                                                                        "data": [
                                                                                                                                                            182,
                                                                                                                                                            128,
                                                                                                                                                            209,
                                                                                                                                                            222,
                                                                                                                                                            112,
                                                                                                                                                            59,
                                                                                                                                                            53,
                                                                                                                                                            230,
                                                                                                                                                            230,
                                                                                                                                                            165,
                                                                                                                                                            9,
                                                                                                                                                            245,
                                                                                                                                                            148,
                                                                                                                                                            121,
                                                                                                                                                            74,
                                                                                                                                                            164,
                                                                                                                                                            170,
                                                                                                                                                            41,
                                                                                                                                                            215,
                                                                                                                                                            207,
                                                                                                                                                            187,
                                                                                                                                                            67,
                                                                                                                                                            206,
                                                                                                                                                            106,
                                                                                                                                                            188,
                                                                                                                                                            188,
                                                                                                                                                            213,
                                                                                                                                                            168,
                                                                                                                                                            57,
                                                                                                                                                            228,
                                                                                                                                                            203,
                                                                                                                                                            162
                                                                                                                                                        ]
                                                                                                                                                    }
                                                                                                                                                }
                                                                                                                                            }
                                                                                                                                        ]
                                                                                                                                    }
                                                                                                                                ]
                                                                                                                            }
                                                                                                                        ]
                                                                                                                    }
                                                                                                                ]
                                                                                                            }
                                                                                                        ]
                                                                                                    }
                                                                                                ]
                                                                                            }
                                                                                        ]
                                                                                    }
                                                                                ]
                                                                            }
                                                                        ]
                                                                    },
                                                                    {
                                                                        "type": "ext",
                                                                        "value": "[undefined]"
                                                                    }
                                                                ]
                                                            }
                                                        ]
                                                    }
                                                ]
                                            }
                                        ]
                                    }
                                ]
                            },
                            {
                                "type": "txChangesAfter",
                                "value": "Array[2]",
                                "nodes": [
                                    {
                                        "type": "[0]",
                                        "value": "[ledgerEntryState]",
                                        "nodes": [
                                            {
                                                "type": "state",
                                                "nodes": [
                                                    {
                                                        "type": "lastModifiedLedgerSeq",
                                                        "value": "50864752"
                                                    },
                                                    {
                                                        "type": "data",
                                                        "value": "[account]",
                                                        "nodes": [
                                                            {
                                                                "type": "account",
                                                                "nodes": [
                                                                    {
                                                                        "type": "accountId",
                                                                        "value": "[publicKeyTypeEd25519]",
                                                                        "nodes": [
                                                                            {
                                                                                "type": "ed25519",
                                                                                "value": {
                                                                                    "type": "code",
                                                                                    "value": "GC3IBUO6OA5TLZXGUUE7LFDZJKSKUKOXZ65UHTTKXS6NLKBZ4TF2EES5"
                                                                                }
                                                                            }
                                                                        ]
                                                                    },
                                                                    {
                                                                        "type": "balance",
                                                                        "value": "9773523570"
                                                                    },
                                                                    {
                                                                        "type": "seqNum",
                                                                        "value": "163399020004245540"
                                                                    },
                                                                    {
                                                                        "type": "numSubEntries",
                                                                        "value": "0"
                                                                    },
                                                                    {
                                                                        "type": "inflationDest",
                                                                        "value": null
                                                                    },
                                                                    {
                                                                        "type": "flags",
                                                                        "value": "11"
                                                                    },
                                                                    {
                                                                        "type": "homeDomain",
                                                                        "value": {
                                                                            "type": "code",
                                                                            "raw": {
                                                                                "type": "Buffer",
                                                                                "data": [
                                                                                    100,
                                                                                    101,
                                                                                    118,
                                                                                    46,
                                                                                    98,
                                                                                    108,
                                                                                    111,
                                                                                    99,
                                                                                    107,
                                                                                    116,
                                                                                    105,
                                                                                    109,
                                                                                    101,
                                                                                    102,
                                                                                    105,
                                                                                    110,
                                                                                    97,
                                                                                    110,
                                                                                    99,
                                                                                    105,
                                                                                    97,
                                                                                    108,
                                                                                    46,
                                                                                    99,
                                                                                    111,
                                                                                    109
                                                                                ]
                                                                            },
                                                                            "value": "ZGV2LmJsb2NrdGltZWZpbmFuY2lhbC5jb20="
                                                                        }
                                                                    },
                                                                    {
                                                                        "type": "thresholds",
                                                                        "value": {
                                                                            "type": "code",
                                                                            "raw": {
                                                                                "type": "Buffer",
                                                                                "data": [
                                                                                    1,
                                                                                    0,
                                                                                    0,
                                                                                    0
                                                                                ]
                                                                            },
                                                                            "value": "AQAAAA=="
                                                                        }
                                                                    },
                                                                    {
                                                                        "type": "signers",
                                                                        "value": "Array[0]",
                                                                        "nodes": []
                                                                    },
                                                                    {
                                                                        "type": "ext",
                                                                        "value": "[undefined]",
                                                                        "nodes": [
                                                                            {
                                                                                "type": "v1",
                                                                                "nodes": [
                                                                                    {
                                                                                        "type": "liabilities",
                                                                                        "nodes": [
                                                                                            {
                                                                                                "type": "buying",
                                                                                                "value": "0"
                                                                                            },
                                                                                            {
                                                                                                "type": "selling",
                                                                                                "value": "0"
                                                                                            }
                                                                                        ]
                                                                                    },
                                                                                    {
                                                                                        "type": "ext",
                                                                                        "value": "[undefined]",
                                                                                        "nodes": [
                                                                                            {
                                                                                                "type": "v2",
                                                                                                "nodes": [
                                                                                                    {
                                                                                                        "type": "numSponsored",
                                                                                                        "value": "0"
                                                                                                    },
                                                                                                    {
                                                                                                        "type": "numSponsoring",
                                                                                                        "value": "0"
                                                                                                    },
                                                                                                    {
                                                                                                        "type": "signerSponsoringIDs",
                                                                                                        "value": "Array[0]",
                                                                                                        "nodes": []
                                                                                                    },
                                                                                                    {
                                                                                                        "type": "ext",
                                                                                                        "value": "[undefined]",
                                                                                                        "nodes": [
                                                                                                            {
                                                                                                                "type": "v3",
                                                                                                                "nodes": [
                                                                                                                    {
                                                                                                                        "type": "ext",
                                                                                                                        "value": "[undefined]"
                                                                                                                    },
                                                                                                                    {
                                                                                                                        "type": "seqLedger",
                                                                                                                        "value": "50864752"
                                                                                                                    },
                                                                                                                    {
                                                                                                                        "type": "seqTime",
                                                                                                                        "value": "1710893324"
                                                                                                                    }
                                                                                                                ]
                                                                                                            }
                                                                                                        ]
                                                                                                    }
                                                                                                ]
                                                                                            }
                                                                                        ]
                                                                                    }
                                                                                ]
                                                                            }
                                                                        ]
                                                                    }
                                                                ]
                                                            }
                                                        ]
                                                    },
                                                    {
                                                        "type": "ext",
                                                        "value": "[undefined]"
                                                    }
                                                ]
                                            }
                                        ]
                                    },
                                    {
                                        "type": "[1]",
                                        "value": "[ledgerEntryUpdated]",
                                        "nodes": [
                                            {
                                                "type": "updated",
                                                "nodes": [
                                                    {
                                                        "type": "lastModifiedLedgerSeq",
                                                        "value": "50864752"
                                                    },
                                                    {
                                                        "type": "data",
                                                        "value": "[account]",
                                                        "nodes": [
                                                            {
                                                                "type": "account",
                                                                "nodes": [
                                                                    {
                                                                        "type": "accountId",
                                                                        "value": "[publicKeyTypeEd25519]",
                                                                        "nodes": [
                                                                            {
                                                                                "type": "ed25519",
                                                                                "value": {
                                                                                    "type": "code",
                                                                                    "value": "GC3IBUO6OA5TLZXGUUE7LFDZJKSKUKOXZ65UHTTKXS6NLKBZ4TF2EES5"
                                                                                }
                                                                            }
                                                                        ]
                                                                    },
                                                                    {
                                                                        "type": "balance",
                                                                        "value": "9773527703"
                                                                    },
                                                                    {
                                                                        "type": "seqNum",
                                                                        "value": "163399020004245540"
                                                                    },
                                                                    {
                                                                        "type": "numSubEntries",
                                                                        "value": "0"
                                                                    },
                                                                    {
                                                                        "type": "inflationDest",
                                                                        "value": null
                                                                    },
                                                                    {
                                                                        "type": "flags",
                                                                        "value": "11"
                                                                    },
                                                                    {
                                                                        "type": "homeDomain",
                                                                        "value": {
                                                                            "type": "code",
                                                                            "raw": {
                                                                                "type": "Buffer",
                                                                                "data": [
                                                                                    100,
                                                                                    101,
                                                                                    118,
                                                                                    46,
                                                                                    98,
                                                                                    108,
                                                                                    111,
                                                                                    99,
                                                                                    107,
                                                                                    116,
                                                                                    105,
                                                                                    109,
                                                                                    101,
                                                                                    102,
                                                                                    105,
                                                                                    110,
                                                                                    97,
                                                                                    110,
                                                                                    99,
                                                                                    105,
                                                                                    97,
                                                                                    108,
                                                                                    46,
                                                                                    99,
                                                                                    111,
                                                                                    109
                                                                                ]
                                                                            },
                                                                            "value": "ZGV2LmJsb2NrdGltZWZpbmFuY2lhbC5jb20="
                                                                        }
                                                                    },
                                                                    {
                                                                        "type": "thresholds",
                                                                        "value": {
                                                                            "type": "code",
                                                                            "raw": {
                                                                                "type": "Buffer",
                                                                                "data": [
                                                                                    1,
                                                                                    0,
                                                                                    0,
                                                                                    0
                                                                                ]
                                                                            },
                                                                            "value": "AQAAAA=="
                                                                        }
                                                                    },
                                                                    {
                                                                        "type": "signers",
                                                                        "value": "Array[0]",
                                                                        "nodes": []
                                                                    },
                                                                    {
                                                                        "type": "ext",
                                                                        "value": "[undefined]",
                                                                        "nodes": [
                                                                            {
                                                                                "type": "v1",
                                                                                "nodes": [
                                                                                    {
                                                                                        "type": "liabilities",
                                                                                        "nodes": [
                                                                                            {
                                                                                                "type": "buying",
                                                                                                "value": "0"
                                                                                            },
                                                                                            {
                                                                                                "type": "selling",
                                                                                                "value": "0"
                                                                                            }
                                                                                        ]
                                                                                    },
                                                                                    {
                                                                                        "type": "ext",
                                                                                        "value": "[undefined]",
                                                                                        "nodes": [
                                                                                            {
                                                                                                "type": "v2",
                                                                                                "nodes": [
                                                                                                    {
                                                                                                        "type": "numSponsored",
                                                                                                        "value": "0"
                                                                                                    },
                                                                                                    {
                                                                                                        "type": "numSponsoring",
                                                                                                        "value": "0"
                                                                                                    },
                                                                                                    {
                                                                                                        "type": "signerSponsoringIDs",
                                                                                                        "value": "Array[0]",
                                                                                                        "nodes": []
                                                                                                    },
                                                                                                    {
                                                                                                        "type": "ext",
                                                                                                        "value": "[undefined]",
                                                                                                        "nodes": [
                                                                                                            {
                                                                                                                "type": "v3",
                                                                                                                "nodes": [
                                                                                                                    {
                                                                                                                        "type": "ext",
                                                                                                                        "value": "[undefined]"
                                                                                                                    },
                                                                                                                    {
                                                                                                                        "type": "seqLedger",
                                                                                                                        "value": "50864752"
                                                                                                                    },
                                                                                                                    {
                                                                                                                        "type": "seqTime",
                                                                                                                        "value": "1710893324"
                                                                                                                    }
                                                                                                                ]
                                                                                                            }
                                                                                                        ]
                                                                                                    }
                                                                                                ]
                                                                                            }
                                                                                        ]
                                                                                    }
                                                                                ]
                                                                            }
                                                                        ]
                                                                    }
                                                                ]
                                                            }
                                                        ]
                                                    },
                                                    {
                                                        "type": "ext",
                                                        "value": "[undefined]"
                                                    }
                                                ]
                                            }
                                        ]
                                    }
                                ]
                            },
                            {
                                "type": "sorobanMeta",
                                "nodes": [
                                    {
                                        "type": "ext",
                                        "value": "[undefined]"
                                    },
                                    {
                                        "type": "events",
                                        "value": "Array[0]",
                                        "nodes": []
                                    },
                                    {
                                        "type": "returnValue",
                                        "value": "[scvAddress]",
                                        "nodes": [
                                            {
                                                "type": "address",
                                                "value": "CAIEAMU2ZNSEYRKFKHUUO73CKGXPXPB6T5EGMECUTIFKRXBT2OQP24S2"
                                            }
                                        ]
                                    },
                                    {
                                        "type": "diagnosticEvents",
                                        "value": "Array[0]",
                                        "nodes": []
                                    }
                                ]
                            }
                        ]
                    }
                ]
            }
        ]
    },
    "nextPageToken": "212791796743290880"
}
```

{% endtab %}
{% endtabs %}

### /getevents

Get the list of events emitted by a given ledger range, within a maximum 10 hours from latest ledgers.

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

#### Query Parameters

| Name                                      | Type   | Description                                                                                                                              |
| ----------------------------------------- | ------ | ---------------------------------------------------------------------------------------------------------------------------------------- |
| rpc                                       | String | Remote procedural call URL.                                                                                                              |
| chainId<mark style="color:red;">\*</mark> | String | Refer to the [Chain ID ](/ids/chain-ids)page for details.                                                                                |
| chainSymbol                               | String | Refer to the [Chain ID ](/ids/chain-ids)page for details.                                                                                |
| startBlock                                | String | <p>Sequence number of the ledger.<br>By default, the latest ledger.</p>                                                                  |
| pageToken                                 | String | A string ID that points to a specific location in a collection of responses, present at the end of the response.                         |
| contracts                                 | String | Comma separated values of contract IDs to query for events.                                                                              |
| topics1                                   | String | Topic this event was emitted with.                                                                                                       |
| topics2                                   | String | Topic this event was emitted with.                                                                                                       |
| topics3                                   | String | Topic this event was emitted with.                                                                                                       |
| topics4                                   | String | Topic this event was emitted with.                                                                                                       |
| topics5                                   | String | Topic this event was emitted with.                                                                                                       |
| type                                      | String | A comma separated list of event types (system, contract, or diagnostic) used to filter events. If omitted, all event types are included. |

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

```url
https://api.expand.network/chain/getevents/?chainId=1500&startBlock=51101417
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "events": [
            {
                "type": "diagnostic",
                "ledger": 52309741,
                "ledgerClosedAt": 1719473442000,
                "id": "0224668626857975808-0000000000",
                "topic": [
                    [
                        {
                            "type": "ScVal",
                            "value": "[scvSymbol]",
                            "nodes": [
                                {
                                    "type": "sym",
                                    "value": "fn_call"
                                }
                            ]
                        }
                    ],
                    [
                        {
                            "type": "ScVal",
                            "value": "[scvBytes]",
                            "nodes": [
                                {
                                    "type": "bytes",
                                    "value": "Array[32]",
                                    "nodes": [
                                        {
                                            "type": "[0]",
                                            "value": "221"
                                        },
                                        {
                                            "type": "[1]",
                                            "value": "29"
                                        },
                                        {
                                            "type": "[2]",
                                            "value": "192"
                                        },
                                        {
                                            "type": "[3]",
                                            "value": "122"
                                        },
                                        {
                                            "type": "[4]",
                                            "value": "253"
                                        },
                                        {
                                            "type": "[5]",
                                            "value": "128"
                                        },
                                        {
                                            "type": "[6]",
                                            "value": "2"
                                        },
                                        {
                                            "type": "[7]",
                                            "value": "242"
                                        },
                                        {
                                            "type": "[8]",
                                            "value": "106"
                                        },
                                        {
                                            "type": "[9]",
                                            "value": "227"
                                        },
                                        {
                                            "type": "[10]",
                                            "value": "29"
                                        },
                                        {
                                            "type": "[11]",
                                            "value": "189"
                                        },
                                        {
                                            "type": "[12]",
                                            "value": "204"
                                        },
                                        {
                                            "type": "[13]",
                                            "value": "208"
                                        },
                                        {
                                            "type": "[14]",
                                            "value": "188"
                                        },
                                        {
                                            "type": "[15]",
                                            "value": "125"
                                        },
                                        {
                                            "type": "[16]",
                                            "value": "23"
                                        },
                                        {
                                            "type": "[17]",
                                            "value": "180"
                                        },
                                        {
                                            "type": "[18]",
                                            "value": "13"
                                        },
                                        {
                                            "type": "[19]",
                                            "value": "109"
                                        },
                                        {
                                            "type": "[20]",
                                            "value": "86"
                                        },
                                        {
                                            "type": "[21]",
                                            "value": "236"
                                        },
                                        {
                                            "type": "[22]",
                                            "value": "107"
                                        },
                                        {
                                            "type": "[23]",
                                            "value": "255"
                                        },
                                        {
                                            "type": "[24]",
                                            "value": "182"
                                        },
                                        {
                                            "type": "[25]",
                                            "value": "175"
                                        },
                                        {
                                            "type": "[26]",
                                            "value": "90"
                                        },
                                        {
                                            "type": "[27]",
                                            "value": "251"
                                        },
                                        {
                                            "type": "[28]",
                                            "value": "53"
                                        },
                                        {
                                            "type": "[29]",
                                            "value": "79"
                                        },
                                        {
                                            "type": "[30]",
                                            "value": "175"
                                        },
                                        {
                                            "type": "[31]",
                                            "value": "235"
                                        }
                                    ]
                                }
                            ]
                        }
                    ],
                    [
                        {
                            "type": "ScVal",
                            "value": "[scvSymbol]",
                            "nodes": [
                                {
                                    "type": "sym",
                                    "value": "add_prices"
                                }
                            ]
                        }
                    ]
                ],
                "value": [
                    {
                        "type": "ScVal",
                        "value": "[scvVec]",
                        "nodes": [
                            {
                                "type": "vec",
                                "value": "Array[4]",
                                "nodes": [
                                    {
                                        "type": "[0]",
                                        "value": "[scvMap]",
                                        "nodes": [
                                            {
                                                "asset": [
                                                    "Other",
                                                    "EURC"
                                                ],
                                                "asset_u32": 8,
                                                "price": "83200000000000000",
                                                "source": 0,
                                                "timestamp": "1719473400"
                                            }
                                        ]
                                    },
                                    {
                                        "type": "[1]",
                                        "value": "[scvMap]",
                                        "nodes": [
                                            {
                                                "asset": [
                                                    "Other",
                                                    "IDR"
                                                ],
                                                "asset_u32": 33,
                                                "price": "1474740500000000000000",
                                                "source": 0,
                                                "timestamp": "1719473400"
                                            }
                                        ]
                                    },
                                    {
                                        "type": "[2]",
                                        "value": "[scvMap]",
                                        "nodes": [
                                            {
                                                "asset": [
                                                    "Other",
                                                    "ARS"
                                                ],
                                                "asset_u32": 31,
                                                "price": "81806632600000000000",
                                                "source": 0,
                                                "timestamp": "1719473400"
                                            }
                                        ]
                                    },
                                    {
                                        "type": "[3]",
                                        "value": "[scvMap]",
                                        "nodes": [
                                            {
                                                "asset": [
                                                    "Other",
                                                    "NGN"
                                                ],
                                                "asset_u32": 32,
                                                "price": "137763976000000000000",
                                                "source": 0,
                                                "timestamp": "1719473400"
                                            }
                                        ]
                                    }
                                ]
                            }
                        ]
                    }
                ],
                "inSuccessfulContractCall": true,
                "contract": "",
                "transactionHash": "f6cb1d2c9e6e2a0e2c3370aa678957de39621e2573e7f760d437a6ecbd26ce08"
            }
        ]
    }
}
```

{% endtab %}
{% endtabs %}

### /getlatestledger

Get details for the latest block (ledger).

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

#### Query Parameters

| Name        | Type   | Description                                               |
| ----------- | ------ | --------------------------------------------------------- |
| rpc         | String | Remote procedural call URL.                               |
| chainId     | String | Refer to the [Chain ID ](/ids/chain-ids)page for details. |
| chainSymbol | String | Refer to the [Chain ID ](/ids/chain-ids)page for details. |

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

```url
https://api.expand.network/chain/getlatestledger?chainId=1500
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "difficulty": null,
        "gasLimit": null,
        "gasUsed": null,
        "hash": "2f93b5fefbe6bb223a9bd1575d80a93238cbe1bbcc8df48be91f570f750f06bd",
        "miner": null,
        "nonce": null,
        "number": 52310121,
        "parentHash": "4d55c9f60fa64de463d3530e4348ad6d81c3c6cb5a00e7e6ea73612c60e9a081",
        "size": null,
        "timestamp": 1719475633,
        "totalDifficulty": null,
        "transactions": [
            {
                "hash": "3d00f400fbf255d49231991da34f9d8833b3d68d5acb9e223134c457ec9ed29f",
                "transactionStatus": true,
                "blockNumber": "52310121",
                "timestamp": "1719475633000",
                "from": "GAGX2SFPL6PGA5LEIILPEJMNBXHBKVUB2O3QHKWQCD4VQ7FMOHWEBDGS",
                "to": null,
                "value": null,
                "transactionFees": "100",
                "gas": "250005",
                "gasPrice": "100",
                "input": null,
                "nonce": 218580222952354850,
                "network": null,
                "transactionEnvelop": [
                    {
                        "type": "TransactionEnvelope",
                        "value": "[envelopeTypeTx]",
                        "nodes": [
                            {
                                "type": "v1",
                                "nodes": [
                                    {
                                        "type": "tx",
                                        "nodes": [
                                            {
                                                "type": "sourceAccount",
                                                "value": "[keyTypeEd25519]",
                                                "nodes": [
                                                    {
                                                        "type": "ed25519",
                                                        "value": {
                                                            "type": "code",
                                                            "value": "GAGX2SFPL6PGA5LEIILPEJMNBXHBKVUB2O3QHKWQCD4VQ7FMOHWEBDGS"
                                                        }
                                                    }
                                                ]
                                            },
                                            {
                                                "type": "fee",
                                                "value": "250005"
                                            },
                                            {
                                                "type": "seqNum",
                                                "value": "218580222952354861"
                                            },
                                            {
                                                "type": "cond",
                                                "value": "[precondTime]",
                                                "nodes": [
                                                    {
                                                        "type": "timeBounds",
                                                        "nodes": [
                                                            {
                                                                "type": "minTime",
                                                                "value": "0"
                                                            },
                                                            {
                                                                "type": "maxTime",
                                                                "value": "1719475657"
                                                            }
                                                        ]
                                                    }
                                                ]
                                            },
                                            {
                                                "type": "memo",
                                                "value": "[memoNone]"
                                            },
                                            {
                                                "type": "operations",
                                                "value": "Array[1]",
                                                "nodes": [
                                                    {
                                                        "type": "[0]",
                                                        "nodes": [
                                                            {
                                                                "type": "sourceAccount",
                                                                "value": "[keyTypeEd25519]",
                                                                "nodes": [
                                                                    {
                                                                        "type": "ed25519",
                                                                        "value": {
                                                                            "type": "code",
                                                                            "value": "GBZJPIK67VBXERCP6JUX2NV7M3QWH4RR3S5DPIVRDBQHPRQMGSWNRLT5"
                                                                        }
                                                                    }
                                                                ]
                                                            },
                                                            {
                                                                "type": "body",
                                                                "value": "[manageBuyOffer]",
                                                                "nodes": [
                                                                    {
                                                                        "type": "manageBuyOfferOp",
                                                                        "nodes": [
                                                                            {
                                                                                "type": "selling",
                                                                                "value": "[assetTypeNative]"
                                                                            },
                                                                            {
                                                                                "type": "buying",
                                                                                "value": "[assetTypeCreditAlphanum12]",
                                                                                "nodes": [
                                                                                    {
                                                                                        "type": "alphaNum12",
                                                                                        "nodes": [
                                                                                            {
                                                                                                "type": "assetCode",
                                                                                                "value":"GUARDIAN����"
                                                                                            },
                                                                                            {
                                                                                                "type": "issuer",
                                                                                                "value": "[publicKeyTypeEd25519]",
                                                                                                "nodes": [
                                                                                                    {
                                                                                                        "type": "ed25519",
                                                                                                        "value": {
                                                                                                            "type": "code",
                                                                                                            "value": "GB2Z42DRDOLLRLH62JFM3EC35DHD2KPETP6KKMX7EYKLFZEUXGGXG7L6"
                                                                                                        }
                                                                                                    }
                                                                                                ]
                                                                                            }
                                                                                        ]
                                                                                    }
                                                                                ]
                                                                            },
                                                                            {
                                                                                "type": "buyAmount",
                                                                                "value": "1472821238256"
                                                                            },
                                                                            {
                                                                                "type": "price",
                                                                                "nodes": [
                                                                                    {
                                                                                        "type": "n",
                                                                                        "value": "1371"
                                                                                    },
                                                                                    {
                                                                                        "type": "d",
                                                                                        "value": "1999999"
                                                                                    }
                                                                                ]
                                                                            },
                                                                            {
                                                                                "type": "offerId",
                                                                                "value": "1571218972"
                                                                            }
                                                                        ]
                                                                    }
                                                                ]
                                                            }
                                                        ]
                                                    }
                                                ]
                                            },
                                            {
                                                "type": "ext",
                                                "value": "[undefined]"
                                            }
                                        ]
                                    },
                                    {
                                        "type": "signatures",
                                        "value": "Array[2]",
                                        "nodes": [
                                            {
                                                "type": "[0]",
                                                "nodes": [
                                                    {
                                                        "type": "hint",
                                                        "value": {
                                                            "type": "code",
                                                            "value": "G______________________________________________MGSWN____"
                                                        }
                                                    },
                                                    {
                                                        "type": "signature",
                                                        "value": {
                                                            "type": "code",
                                                            "raw": {
                                                                "type": "Buffer",
                                                                "data": [
                                                                    75,
                                                                    136,
                                                                    113,
                                                                    98,
                                                                    217,
                                                                    226,
                                                                    235,
                                                                    255,
                                                                    135,
                                                                    229,
                                                                    178,
                                                                    163,
                                                                    221,
                                                                    130,
                                                                    186,
                                                                    237,
                                                                    67,
                                                                    176,
                                                                    106,
                                                                    246,
                                                                    53,
                                                                    104,
                                                                    37,
                                                                    117,
                                                                    53,
                                                                    253,
                                                                    62,
                                                                    63,
                                                                    235,
                                                                    30,
                                                                    141,
                                                                    172,
                                                                    200,
                                                                    84,
                                                                    27,
                                                                    237,
                                                                    111,
                                                                    221,
                                                                    204,
                                                                    168,
                                                                    159,
                                                                    66,
                                                                    55,
                                                                    94,
                                                                    32,
                                                                    117,
                                                                    206,
                                                                    57,
                                                                    219,
                                                                    107,
                                                                    84,
                                                                    79,
                                                                    78,
                                                                    44,
                                                                    6,
                                                                    243,
                                                                    166,
                                                                    84,
                                                                    105,
                                                                    196,
                                                                    45,
                                                                    95,
                                                                    76,
                                                                    14
                                                                ]
                                                            },
                                                            "value": "S4hxYtni6/+H5bKj3YK67UOwavY1aCV1Nf0+P+sejazIVBvtb93MqJ9CN14gdc4522tUT04sBvOmVGnELV9MDg=="
                                                        }
                                                    }
                                                ]
                                            },
                                            {
                                                "type": "[1]",
                                                "nodes": [
                                                    {
                                                        "type": "hint",
                                                        "value": {
                                                            "type": "code",
                                                            "value": "G______________________________________________MOHWE____"
                                                        }
                                                    },
                                                    {
                                                        "type": "signature",
                                                        "value": {
                                                            "type": "code",
                                                            "raw": {
                                                                "type": "Buffer",
                                                                "data": [
                                                                    46,
                                                                    178,
                                                                    217,
                                                                    217,
                                                                    225,
                                                                    214,
                                                                    92,
                                                                    21,
                                                                    68,
                                                                    170,
                                                                    0,
                                                                    160,
                                                                    157,
                                                                    123,
                                                                    84,
                                                                    158,
                                                                    209,
                                                                    16,
                                                                    157,
                                                                    25,
                                                                    251,
                                                                    0,
                                                                    218,
                                                                    50,
                                                                    205,
                                                                    6,
                                                                    37,
                                                                    237,
                                                                    101,
                                                                    27,
                                                                    15,
                                                                    53,
                                                                    184,
                                                                    155,
                                                                    29,
                                                                    15,
                                                                    59,
                                                                    87,
                                                                    221,
                                                                    211,
                                                                    245,
                                                                    128,
                                                                    163,
                                                                    95,
                                                                    165,
                                                                    230,
                                                                    81,
                                                                    169,
                                                                    240,
                                                                    65,
                                                                    82,
                                                                    72,
                                                                    249,
                                                                    187,
                                                                    136,
                                                                    127,
                                                                    102,
                                                                    112,
                                                                    93,
                                                                    47,
                                                                    19,
                                                                    214,
                                                                    175,
                                                                    12
                                                                ]
                                                            },
                                                            "value": "LrLZ2eHWXBVEqgCgnXtUntEQnRn7ANoyzQYl7WUbDzW4mx0PO1fd0/WAo1+l5lGp8EFSSPm7iH9mcF0vE9avDA=="
                                                        }
                                                    }
                                                ]
                                            }
                                        ]
                                    }
                                ]
                            }
                        ]
                    }
                ],
                "transactionResult": [
                    {
                        "type": "TransactionResult",
                        "nodes": [
                            {
                                "type": "feeCharged",
                                "value": "100"
                            },
                            {
                                "type": "result",
                                "value": "[txSuccess]",
                                "nodes": [
                                    {
                                        "type": "results",
                                        "value": "Array[1]",
                                        "nodes": [
                                            {
                                                "type": "[0]",
                                                "value": "[opInner]",
                                                "nodes": [
                                                    {
                                                        "type": "tr",
                                                        "value": "[manageBuyOffer]",
                                                        "nodes": [
                                                            {
                                                                "type": "manageBuyOfferResult",
                                                                "value": "[manageBuyOfferSuccess]",
                                                                "nodes": [
                                                                    {
                                                                        "type": "success",
                                                                        "nodes": [
                                                                            {
                                                                                "type": "offersClaimed",
                                                                                "value": "Array[0]",
                                                                                "nodes": []
                                                                            },
                                                                            {
                                                                                "type": "offer",
                                                                                "value": "[manageOfferUpdated]",
                                                                                "nodes": [
                                                                                    {
                                                                                        "type": "offer",
                                                                                        "nodes": [
                                                                                            {
                                                                                                "type": "sellerId",
                                                                                                "value": "[publicKeyTypeEd25519]",
                                                                                                "nodes": [
                                                                                                    {
                                                                                                        "type": "ed25519",
                                                                                                        "value": {
                                                                                                            "type": "code",
                                                                                                            "value": "GBZJPIK67VBXERCP6JUX2NV7M3QWH4RR3S5DPIVRDBQHPRQMGSWNRLT5"
                                                                                                        }
                                                                                                    }
                                                                                                ]
                                                                                            },
                                                                                            {
                                                                                                "type": "offerId",
                                                                                                "value": "1571218972"
                                                                                            },
                                                                                            {
                                                                                                "type": "selling",
                                                                                                "value": "[assetTypeNative]"
                                                                                            },
                                                                                            {
                                                                                                "type": "buying",
                                                                                                "value": "[assetTypeCreditAlphanum12]",
                                                                                                "nodes": [
                                                                                                    {
                                                                                                        "type": "alphaNum12",
                                                                                                        "nodes": [
                                                                                                            {
                                                                                                                "type": "assetCode",
                                                                                                                "value":"GUARDIAN����"
                                                                                                            },
                                                                                                            {
                                                                                                                "type": "issuer",
                                                                                                                "value": "[publicKeyTypeEd25519]",
                                                                                                                "nodes": [
                                                                                                                    {
                                                                                                                        "type": "ed25519",
                                                                                                                        "value": {
                                                                                                                            "type": "code",
                                                                                                                            "value": "GB2Z42DRDOLLRLH62JFM3EC35DHD2KPETP6KKMX7EYKLFZEUXGGXG7L6"
                                                                                                                        }
                                                                                                                    }
                                                                                                                ]
                                                                                                            }
                                                                                                        ]
                                                                                                    }
                                                                                                ]
                                                                                            },
                                                                                            {
                                                                                                "type": "amount",
                                                                                                "value": {
                                                                                                    "type": "amount",
                                                                                                    "value": {
                                                                                                        "parsed": "100.9619463",
                                                                                                        "raw": "1009619463"
                                                                                                    }
                                                                                                }
                                                                                            },
                                                                                            {
                                                                                                "type": "price",
                                                                                                "nodes": [
                                                                                                    {
                                                                                                        "type": "n",
                                                                                                        "value": "1999999"
                                                                                                    },
                                                                                                    {
                                                                                                        "type": "d",
                                                                                                        "value": "1371"
                                                                                                    }
                                                                                                ]
                                                                                            },
                                                                                            {
                                                                                                "type": "flags",
                                                                                                "value": "0"
                                                                                            },
                                                                                            {
                                                                                                "type": "ext",
                                                                                                "value": "[undefined]"
                                                                                            }
                                                                                        ]
                                                                                    }
                                                                                ]
                                                                            }
                                                                        ]
                                                                    }
                                                                ]
                                                            }
                                                        ]
                                                    }
                                                ]
                                            }
                                        ]
                                    }
                                ]
                            },
                            {
                                "type": "ext",
                                "value": "[undefined]"
                            }
                        ]
                    }
                ],
                "transactionMeta": [
                    {
                        "type": "TransactionMeta",
                        "value": "[undefined]",
                        "nodes": [
                            {
                                "type": "v3",
                                "nodes": [
                                    {
                                        "type": "ext",
                                        "value": "[undefined]"
                                    },
                                    {
                                        "type": "txChangesBefore",
                                        "value": "Array[2]",
                                        "nodes": [
                                            {
                                                "type": "[0]",
                                                "value": "[ledgerEntryState]",
                                                "nodes": [
                                                    {
                                                        "type": "state",
                                                        "nodes": [
                                                            {
                                                                "type": "lastModifiedLedgerSeq",
                                                                "value": "52310121"
                                                            },
                                                            {
                                                                "type": "data",
                                                                "value": "[account]",
                                                                "nodes": [
                                                                    {
                                                                        "type": "account",
                                                                        "nodes": [
                                                                            {
                                                                                "type": "accountId",
                                                                                "value": "[publicKeyTypeEd25519]",
                                                                                "nodes": [
                                                                                    {
                                                                                        "type": "ed25519",
                                                                                        "value": {
                                                                                            "type": "code",
                                                                                            "value": "GAGX2SFPL6PGA5LEIILPEJMNBXHBKVUB2O3QHKWQCD4VQ7FMOHWEBDGS"
                                                                                        }
                                                                                    }
                                                                                ]
                                                                            },
                                                                            {
                                                                                "type": "balance",
                                                                                "value": "29707678"
                                                                            },
                                                                            {
                                                                                "type": "seqNum",
                                                                                "value": "218580222952354860"
                                                                            },
                                                                            {
                                                                                "type": "numSubEntries",
                                                                                "value": "0"
                                                                            },
                                                                            {
                                                                                "type": "inflationDest",
                                                                                "value": null
                                                                            },
                                                                            {
                                                                                "type": "flags",
                                                                                "value": "0"
                                                                            },
                                                                            {
                                                                                "type": "homeDomain",
                                                                                "value": {
                                                                                    "type": "code",
                                                                                    "raw": {
                                                                                        "type": "Buffer",
                                                                                        "data": []
                                                                                    },
                                                                                    "value": ""
                                                                                }
                                                                            },
                                                                            {
                                                                                "type": "thresholds",
                                                                                "value": {
                                                                                    "type": "code",
                                                                                    "raw": {
                                                                                        "type": "Buffer",
                                                                                        "data": [
                                                                                            1,
                                                                                            0,
                                                                                            0,
                                                                                            0
                                                                                        ]
                                                                                    },
                                                                                    "value": "AQAAAA=="
                                                                                }
                                                                            },
                                                                            {
                                                                                "type": "signers",
                                                                                "value": "Array[0]",
                                                                                "nodes": []
                                                                            },
                                                                            {
                                                                                "type": "ext",
                                                                                "value": "[undefined]",
                                                                                "nodes": [
                                                                                    {
                                                                                        "type": "v1",
                                                                                        "nodes": [
                                                                                            {
                                                                                                "type": "liabilities",
                                                                                                "nodes": [
                                                                                                    {
                                                                                                        "type": "buying",
                                                                                                        "value": "0"
                                                                                                    },
                                                                                                    {
                                                                                                        "type": "selling",
                                                                                                        "value": "0"
                                                                                                    }
                                                                                                ]
                                                                                            },
                                                                                            {
                                                                                                "type": "ext",
                                                                                                "value": "[undefined]",
                                                                                                "nodes": [
                                                                                                    {
                                                                                                        "type": "v2",
                                                                                                        "nodes": [
                                                                                                            {
                                                                                                                "type": "numSponsored",
                                                                                                                "value": "0"
                                                                                                            },
                                                                                                            {
                                                                                                                "type": "numSponsoring",
                                                                                                                "value": "0"
                                                                                                            },
                                                                                                            {
                                                                                                                "type": "signerSponsoringIDs",
                                                                                                                "value": "Array[0]",
                                                                                                                "nodes": []
                                                                                                            },
                                                                                                            {
                                                                                                                "type": "ext",
                                                                                                                "value": "[undefined]",
                                                                                                                "nodes": [
                                                                                                                    {
                                                                                                                        "type": "v3",
                                                                                                                        "nodes": [
                                                                                                                            {
                                                                                                                                "type": "ext",
                                                                                                                                "value": "[undefined]"
                                                                                                                            },
                                                                                                                            {
                                                                                                                                "type": "seqLedger",
                                                                                                                                "value": "52309824"
                                                                                                                            },
                                                                                                                            {
                                                                                                                                "type": "seqTime",
                                                                                                                                "value": "1719473923"
                                                                                                                            }
                                                                                                                        ]
                                                                                                                    }
                                                                                                                ]
                                                                                                            }
                                                                                                        ]
                                                                                                    }
                                                                                                ]
                                                                                            }
                                                                                        ]
                                                                                    }
                                                                                ]
                                                                            }
                                                                        ]
                                                                    }
                                                                ]
                                                            },
                                                            {
                                                                "type": "ext",
                                                                "value": "[undefined]"
                                                            }
                                                        ]
                                                    }
                                                ]
                                            },
                                            {
                                                "type": "[1]",
                                                "value": "[ledgerEntryUpdated]",
                                                "nodes": [
                                                    {
                                                        "type": "updated",
                                                        "nodes": [
                                                            {
                                                                "type": "lastModifiedLedgerSeq",
                                                                "value": "52310121"
                                                            },
                                                            {
                                                                "type": "data",
                                                                "value": "[account]",
                                                                "nodes": [
                                                                    {
                                                                        "type": "account",
                                                                        "nodes": [
                                                                            {
                                                                                "type": "accountId",
                                                                                "value": "[publicKeyTypeEd25519]",
                                                                                "nodes": [
                                                                                    {
                                                                                        "type": "ed25519",
                                                                                        "value": {
                                                                                            "type": "code",
                                                                                            "value": "GAGX2SFPL6PGA5LEIILPEJMNBXHBKVUB2O3QHKWQCD4VQ7FMOHWEBDGS"
                                                                                        }
                                                                                    }
                                                                                ]
                                                                            },
                                                                            {
                                                                                "type": "balance",
                                                                                "value": "29707678"
                                                                            },
                                                                            {
                                                                                "type": "seqNum",
                                                                                "value": "218580222952354861"
                                                                            },
                                                                            {
                                                                                "type": "numSubEntries",
                                                                                "value": "0"
                                                                            },
                                                                            {
                                                                                "type": "inflationDest",
                                                                                "value": null
                                                                            },
                                                                            {
                                                                                "type": "flags",
                                                                                "value": "0"
                                                                            },
                                                                            {
                                                                                "type": "homeDomain",
                                                                                "value": {
                                                                                    "type": "code",
                                                                                    "raw": {
                                                                                        "type": "Buffer",
                                                                                        "data": []
                                                                                    },
                                                                                    "value": ""
                                                                                }
                                                                            },
                                                                            {
                                                                                "type": "thresholds",
                                                                                "value": {
                                                                                    "type": "code",
                                                                                    "raw": {
                                                                                        "type": "Buffer",
                                                                                        "data": [
                                                                                            1,
                                                                                            0,
                                                                                            0,
                                                                                            0
                                                                                        ]
                                                                                    },
                                                                                    "value": "AQAAAA=="
                                                                                }
                                                                            },
                                                                            {
                                                                                "type": "signers",
                                                                                "value": "Array[0]",
                                                                                "nodes": []
                                                                            },
                                                                            {
                                                                                "type": "ext",
                                                                                "value": "[undefined]",
                                                                                "nodes": [
                                                                                    {
                                                                                        "type": "v1",
                                                                                        "nodes": [
                                                                                            {
                                                                                                "type": "liabilities",
                                                                                                "nodes": [
                                                                                                    {
                                                                                                        "type": "buying",
                                                                                                        "value": "0"
                                                                                                    },
                                                                                                    {
                                                                                                        "type": "selling",
                                                                                                        "value": "0"
                                                                                                    }
                                                                                                ]
                                                                                            },
                                                                                            {
                                                                                                "type": "ext",
                                                                                                "value": "[undefined]",
                                                                                                "nodes": [
                                                                                                    {
                                                                                                        "type": "v2",
                                                                                                        "nodes": [
                                                                                                            {
                                                                                                                "type": "numSponsored",
                                                                                                                "value": "0"
                                                                                                            },
                                                                                                            {
                                                                                                                "type": "numSponsoring",
                                                                                                                "value": "0"
                                                                                                            },
                                                                                                            {
                                                                                                                "type": "signerSponsoringIDs",
                                                                                                                "value": "Array[0]",
                                                                                                                "nodes": []
                                                                                                            },
                                                                                                            {
                                                                                                                "type": "ext",
                                                                                                                "value": "[undefined]",
                                                                                                                "nodes": [
                                                                                                                    {
                                                                                                                        "type": "v3",
                                                                                                                        "nodes": [
                                                                                                                            {
                                                                                                                                "type": "ext",
                                                                                                                                "value": "[undefined]"
                                                                                                                            },
                                                                                                                            {
                                                                                                                                "type": "seqLedger",
                                                                                                                                "value": "52310121"
                                                                                                                            },
                                                                                                                            {
                                                                                                                                "type": "seqTime",
                                                                                                                                "value": "1719475633"
                                                                                                                            }
                                                                                                                        ]
                                                                                                                    }
                                                                                                                ]
                                                                                                            }
                                                                                                        ]
                                                                                                    }
                                                                                                ]
                                                                                            }
                                                                                        ]
                                                                                    }
                                                                                ]
                                                                            }
                                                                        ]
                                                                    }
                                                                ]
                                                            },
                                                            {
                                                                "type": "ext",
                                                                "value": "[undefined]"
                                                            }
                                                        ]
                                                    }
                                                ]
                                            }
                                        ]
                                    },
                                    {
                                        "type": "operations",
                                        "value": "Array[1]",
                                        "nodes": [
                                            {
                                                "type": "[0]",
                                                "nodes": [
                                                    {
                                                        "type": "changes",
                                                        "value": "Array[6]",
                                                        "nodes": [
                                                            {
                                                                "type": "[0]",
                                                                "value": "[ledgerEntryState]",
                                                                "nodes": [
                                                                    {
                                                                        "type": "state",
                                                                        "nodes": [
                                                                            {
                                                                                "type": "lastModifiedLedgerSeq",
                                                                                "value": "52310113"
                                                                            },
                                                                            {
                                                                                "type": "data",
                                                                                "value": "[offer]",
                                                                                "nodes": [
                                                                                    {
                                                                                        "type": "offer",
                                                                                        "nodes": [
                                                                                            {
                                                                                                "type": "sellerId",
                                                                                                "value": "[publicKeyTypeEd25519]",
                                                                                                "nodes": [
                                                                                                    {
                                                                                                        "type": "ed25519",
                                                                                                        "value": {
                                                                                                            "type": "code",
                                                                                                            "value": "GBZJPIK67VBXERCP6JUX2NV7M3QWH4RR3S5DPIVRDBQHPRQMGSWNRLT5"
                                                                                                        }
                                                                                                    }
                                                                                                ]
                                                                                            },
                                                                                            {
                                                                                                "type": "offerId",
                                                                                                "value": "1571218972"
                                                                                            },
                                                                                            {
                                                                                                "type": "selling",
                                                                                                "value": "[assetTypeNative]"
                                                                                            },
                                                                                            {
                                                                                                "type": "buying",
                                                                                                "value": "[assetTypeCreditAlphanum12]",
                                                                                                "nodes": [
                                                                                                    {
                                                                                                        "type": "alphaNum12",
                                                                                                        "nodes": [
                                                                                                            {
                                                                                                                "type": "assetCode",
                                                                                                                "value":"GUARDIAN����"
                                                                                                            },
                                                                                                            {
                                                                                                                "type": "issuer",
                                                                                                                "value": "[publicKeyTypeEd25519]",
                                                                                                                "nodes": [
                                                                                                                    {
                                                                                                                        "type": "ed25519",
                                                                                                                        "value": {
                                                                                                                            "type": "code",
                                                                                                                            "value": "GB2Z42DRDOLLRLH62JFM3EC35DHD2KPETP6KKMX7EYKLFZEUXGGXG7L6"
                                                                                                                        }
                                                                                                                    }
                                                                                                                ]
                                                                                                            }
                                                                                                        ]
                                                                                                    }
                                                                                                ]
                                                                                            },
                                                                                            {
                                                                                                "type": "amount",
                                                                                                "value": {
                                                                                                    "type": "amount",
                                                                                                    "value": {
                                                                                                        "parsed": "100.9619463",
                                                                                                        "raw": "1009619463"
                                                                                                    }
                                                                                                }
                                                                                            },
                                                                                            {
                                                                                                "type": "price",
                                                                                                "nodes": [
                                                                                                    {
                                                                                                        "type": "n",
                                                                                                        "value": "1449"
                                                                                                    },
                                                                                                    {
                                                                                                        "type": "d",
                                                                                                        "value": "1"
                                                                                                    }
                                                                                                ]
                                                                                            },
                                                                                            {
                                                                                                "type": "flags",
                                                                                                "value": "0"
                                                                                            },
                                                                                            {
                                                                                                "type": "ext",
                                                                                                "value": "[undefined]"
                                                                                            }
                                                                                        ]
                                                                                    }
                                                                                ]
                                                                            },
                                                                            {
                                                                                "type": "ext",
                                                                                "value": "[undefined]"
                                                                            }
                                                                        ]
                                                                    }
                                                                ]
                                                            },
                                                            {
                                                                "type": "[1]",
                                                                "value": "[ledgerEntryUpdated]",
                                                                "nodes": [
                                                                    {
                                                                        "type": "updated",
                                                                        "nodes": [
                                                                            {
                                                                                "type": "lastModifiedLedgerSeq",
                                                                                "value": "52310121"
                                                                            },
                                                                            {
                                                                                "type": "data",
                                                                                "value": "[offer]",
                                                                                "nodes": [
                                                                                    {
                                                                                        "type": "offer",
                                                                                        "nodes": [
                                                                                            {
                                                                                                "type": "sellerId",
                                                                                                "value": "[publicKeyTypeEd25519]",
                                                                                                "nodes": [
                                                                                                    {
                                                                                                        "type": "ed25519",
                                                                                                        "value": {
                                                                                                            "type": "code",
                                                                                                            "value": "GBZJPIK67VBXERCP6JUX2NV7M3QWH4RR3S5DPIVRDBQHPRQMGSWNRLT5"
                                                                                                        }
                                                                                                    }
                                                                                                ]
                                                                                            },
                                                                                            {
                                                                                                "type": "offerId",
                                                                                                "value": "1571218972"
                                                                                            },
                                                                                            {
                                                                                                "type": "selling",
                                                                                                "value": "[assetTypeNative]"
                                                                                            },
                                                                                            {
                                                                                                "type": "buying",
                                                                                                "value": "[assetTypeCreditAlphanum12]",
                                                                                                "nodes": [
                                                                                                    {
                                                                                                        "type": "alphaNum12",
                                                                                                        "nodes": [
                                                                                                            {
                                                                                                                "type": "assetCode",
                                                                                                                "value":"GUARDIAN����"
                                                                                                            },
                                                                                                            {
                                                                                                                "type": "issuer",
                                                                                                                "value": "[publicKeyTypeEd25519]",
                                                                                                                "nodes": [
                                                                                                                    {
                                                                                                                        "type": "ed25519",
                                                                                                                        "value": {
                                                                                                                            "type": "code",
                                                                                                                            "value": "GB2Z42DRDOLLRLH62JFM3EC35DHD2KPETP6KKMX7EYKLFZEUXGGXG7L6"
                                                                                                                        }
                                                                                                                    }
                                                                                                                ]
                                                                                                            }
                                                                                                        ]
                                                                                                    }
                                                                                                ]
                                                                                            },
                                                                                            {
                                                                                                "type": "amount",
                                                                                                "value": {
                                                                                                    "type": "amount",
                                                                                                    "value": {
                                                                                                        "parsed": "100.9619463",
                                                                                                        "raw": "1009619463"
                                                                                                    }
                                                                                                }
                                                                                            },
                                                                                            {
                                                                                                "type": "price",
                                                                                                "nodes": [
                                                                                                    {
                                                                                                        "type": "n",
                                                                                                        "value": "1999999"
                                                                                                    },
                                                                                                    {
                                                                                                        "type": "d",
                                                                                                        "value": "1371"
                                                                                                    }
                                                                                                ]
                                                                                            },
                                                                                            {
                                                                                                "type": "flags",
                                                                                                "value": "0"
                                                                                            },
                                                                                            {
                                                                                                "type": "ext",
                                                                                                "value": "[undefined]"
                                                                                            }
                                                                                        ]
                                                                                    }
                                                                                ]
                                                                            },
                                                                            {
                                                                                "type": "ext",
                                                                                "value": "[undefined]"
                                                                            }
                                                                        ]
                                                                    }
                                                                ]
                                                            },
                                                            {
                                                                "type": "[2]",
                                                                "value": "[ledgerEntryState]",
                                                                "nodes": [
                                                                    {
                                                                        "type": "state",
                                                                        "nodes": [
                                                                            {
                                                                                "type": "lastModifiedLedgerSeq",
                                                                                "value": "52310113"
                                                                            },
                                                                            {
                                                                                "type": "data",
                                                                                "value": "[trustline]",
                                                                                "nodes": [
                                                                                    {
                                                                                        "type": "trustLine",
                                                                                        "nodes": [
                                                                                            {
                                                                                                "type": "accountId",
                                                                                                "value": "[publicKeyTypeEd25519]",
                                                                                                "nodes": [
                                                                                                    {
                                                                                                        "type": "ed25519",
                                                                                                        "value": {
                                                                                                            "type": "code",
                                                                                                            "value": "GBZJPIK67VBXERCP6JUX2NV7M3QWH4RR3S5DPIVRDBQHPRQMGSWNRLT5"
                                                                                                        }
                                                                                                    }
                                                                                                ]
                                                                                            },
                                                                                            {
                                                                                                "type": "asset",
                                                                                                "value": "[assetTypeCreditAlphanum12]",
                                                                                                "nodes": [
                                                                                                    {
                                                                                                        "type": "alphaNum12",
                                                                                                        "nodes": [
                                                                                                            {
                                                                                                                "type": "assetCode",
                                                                                                                "value":"GUARDIAN����"
                                                                                                            },
                                                                                                            {
                                                                                                                "type": "issuer",
                                                                                                                "value": "[publicKeyTypeEd25519]",
                                                                                                                "nodes": [
                                                                                                                    {
                                                                                                                        "type": "ed25519",
                                                                                                                        "value": {
                                                                                                                            "type": "code",
                                                                                                                            "value": "GB2Z42DRDOLLRLH62JFM3EC35DHD2KPETP6KKMX7EYKLFZEUXGGXG7L6"
                                                                                                                        }
                                                                                                                    }
                                                                                                                ]
                                                                                                            }
                                                                                                        ]
                                                                                                    }
                                                                                                ]
                                                                                            },
                                                                                            {
                                                                                                "type": "balance",
                                                                                                "value": "1993"
                                                                                            },
                                                                                            {
                                                                                                "type": "limit",
                                                                                                "value": {
                                                                                                    "type": "amount",
                                                                                                    "value": {
                                                                                                        "parsed": "922337203685.4775807",
                                                                                                        "raw": "9223372036854775807"
                                                                                                    }
                                                                                                }
                                                                                            },
                                                                                            {
                                                                                                "type": "flags",
                                                                                                "value": "1"
                                                                                            },
                                                                                            {
                                                                                                "type": "ext",
                                                                                                "value": "[undefined]",
                                                                                                "nodes": [
                                                                                                    {
                                                                                                        "type": "v1",
                                                                                                        "nodes": [
                                                                                                            {
                                                                                                                "type": "liabilities",
                                                                                                                "nodes": [
                                                                                                                    {
                                                                                                                        "type": "buying",
                                                                                                                        "value": "39590212968484990"
                                                                                                                    },
                                                                                                                    {
                                                                                                                        "type": "selling",
                                                                                                                        "value": "0"
                                                                                                                    }
                                                                                                                ]
                                                                                                            },
                                                                                                            {
                                                                                                                "type": "ext",
                                                                                                                "value": "[undefined]"
                                                                                                            }
                                                                                                        ]
                                                                                                    }
                                                                                                ]
                                                                                            }
                                                                                        ]
                                                                                    }
                                                                                ]
                                                                            },
                                                                            {
                                                                                "type": "ext",
                                                                                "value": "[undefined]"
                                                                            }
                                                                        ]
                                                                    }
                                                                ]
                                                            },
                                                            {
                                                                "type": "[3]",
                                                                "value": "[ledgerEntryUpdated]",
                                                                "nodes": [
                                                                    {
                                                                        "type": "updated",
                                                                        "nodes": [
                                                                            {
                                                                                "type": "lastModifiedLedgerSeq",
                                                                                "value": "52310121"
                                                                            },
                                                                            {
                                                                                "type": "data",
                                                                                "value": "[trustline]",
                                                                                "nodes": [
                                                                                    {
                                                                                        "type": "trustLine",
                                                                                        "nodes": [
                                                                                            {
                                                                                                "type": "accountId",
                                                                                                "value": "[publicKeyTypeEd25519]",
                                                                                                "nodes": [
                                                                                                    {
                                                                                                        "type": "ed25519",
                                                                                                        "value": {
                                                                                                            "type": "code",
                                                                                                            "value": "GBZJPIK67VBXERCP6JUX2NV7M3QWH4RR3S5DPIVRDBQHPRQMGSWNRLT5"
                                                                                                        }
                                                                                                    }
                                                                                                ]
                                                                                            },
                                                                                            {
                                                                                                "type": "asset",
                                                                                                "value": "[assetTypeCreditAlphanum12]",
                                                                                                "nodes": [
                                                                                                    {
                                                                                                        "type": "alphaNum12",
                                                                                                        "nodes": [
                                                                                                            {
                                                                                                                "type": "assetCode",
                                                                                                                "value":"GUARDIAN����"
                                                                                                            },
                                                                                                            {
                                                                                                                "type": "issuer",
                                                                                                                "value": "[publicKeyTypeEd25519]",
                                                                                                                "nodes": [
                                                                                                                    {
                                                                                                                        "type": "ed25519",
                                                                                                                        "value": {
                                                                                                                            "type": "code",
                                                                                                                            "value": "GB2Z42DRDOLLRLH62JFM3EC35DHD2KPETP6KKMX7EYKLFZEUXGGXG7L6"
                                                                                                                        }
                                                                                                                    }
                                                                                                                ]
                                                                                                            }
                                                                                                        ]
                                                                                                    }
                                                                                                ]
                                                                                            },
                                                                                            {
                                                                                                "type": "balance",
                                                                                                "value": "1993"
                                                                                            },
                                                                                            {
                                                                                                "type": "limit",
                                                                                                "value": {
                                                                                                    "type": "amount",
                                                                                                    "value": {
                                                                                                        "parsed": "922337203685.4775807",
                                                                                                        "raw": "9223372036854775807"
                                                                                                    }
                                                                                                }
                                                                                            },
                                                                                            {
                                                                                                "type": "flags",
                                                                                                "value": "1"
                                                                                            },
                                                                                            {
                                                                                                "type": "ext",
                                                                                                "value": "[undefined]",
                                                                                                "nodes": [
                                                                                                    {
                                                                                                        "type": "v1",
                                                                                                        "nodes": [
                                                                                                            {
                                                                                                                "type": "liabilities",
                                                                                                                "nodes": [
                                                                                                                    {
                                                                                                                        "type": "buying",
                                                                                                                        "value": "39590222851120433"
                                                                                                                    },
                                                                                                                    {
                                                                                                                        "type": "selling",
                                                                                                                        "value": "0"
                                                                                                                    }
                                                                                                                ]
                                                                                                            },
                                                                                                            {
                                                                                                                "type": "ext",
                                                                                                                "value": "[undefined]"
                                                                                                            }
                                                                                                        ]
                                                                                                    }
                                                                                                ]
                                                                                            }
                                                                                        ]
                                                                                    }
                                                                                ]
                                                                            },
                                                                            {
                                                                                "type": "ext",
                                                                                "value": "[undefined]"
                                                                            }
                                                                        ]
                                                                    }
                                                                ]
                                                            },
                                                            {
                                                                "type": "[4]",
                                                                "value": "[ledgerEntryState]",
                                                                "nodes": [
                                                                    {
                                                                        "type": "state",
                                                                        "nodes": [
                                                                            {
                                                                                "type": "lastModifiedLedgerSeq",
                                                                                "value": "52310120"
                                                                            },
                                                                            {
                                                                                "type": "data",
                                                                                "value": "[account]",
                                                                                "nodes": [
                                                                                    {
                                                                                        "type": "account",
                                                                                        "nodes": [
                                                                                            {
                                                                                                "type": "accountId",
                                                                                                "value": "[publicKeyTypeEd25519]",
                                                                                                "nodes": [
                                                                                                    {
                                                                                                        "type": "ed25519",
                                                                                                        "value": {
                                                                                                            "type": "code",
                                                                                                            "value": "GBZJPIK67VBXERCP6JUX2NV7M3QWH4RR3S5DPIVRDBQHPRQMGSWNRLT5"
                                                                                                        }
                                                                                                    }
                                                                                                ]
                                                                                            },
                                                                                            {
                                                                                                "type": "balance",
                                                                                                "value": "221649096276"
                                                                                            },
                                                                                            {
                                                                                                "type": "seqNum",
                                                                                                "value": "218420261190369432"
                                                                                            },
                                                                                            {
                                                                                                "type": "numSubEntries",
                                                                                                "value": "592"
                                                                                            },
                                                                                            {
                                                                                                "type": "inflationDest",
                                                                                                "value": null
                                                                                            },
                                                                                            {
                                                                                                "type": "flags",
                                                                                                "value": "0"
                                                                                            },
                                                                                            {
                                                                                                "type": "homeDomain",
                                                                                                "value": {
                                                                                                    "type": "code",
                                                                                                    "raw": {
                                                                                                        "type": "Buffer",
                                                                                                        "data": []
                                                                                                    },
                                                                                                    "value": ""
                                                                                                }
                                                                                            },
                                                                                            {
                                                                                                "type": "thresholds",
                                                                                                "value": {
                                                                                                    "type": "code",
                                                                                                    "raw": {
                                                                                                        "type": "Buffer",
                                                                                                        "data": [
                                                                                                            1,
                                                                                                            0,
                                                                                                            0,
                                                                                                            0
                                                                                                        ]
                                                                                                    },
                                                                                                    "value": "AQAAAA=="
                                                                                                }
                                                                                            },
                                                                                            {
                                                                                                "type": "signers",
                                                                                                "value": "Array[0]",
                                                                                                "nodes": []
                                                                                            },
                                                                                            {
                                                                                                "type": "ext",
                                                                                                "value": "[undefined]",
                                                                                                "nodes": [
                                                                                                    {
                                                                                                        "type": "v1",
                                                                                                        "nodes": [
                                                                                                            {
                                                                                                                "type": "liabilities",
                                                                                                                "nodes": [
                                                                                                                    {
                                                                                                                        "type": "buying",
                                                                                                                        "value": "94097561989"
                                                                                                                    },
                                                                                                                    {
                                                                                                                        "type": "selling",
                                                                                                                        "value": "182855862673"
                                                                                                                    }
                                                                                                                ]
                                                                                                            },
                                                                                                            {
                                                                                                                "type": "ext",
                                                                                                                "value": "[undefined]",
                                                                                                                "nodes": [
                                                                                                                    {
                                                                                                                        "type": "v2",
                                                                                                                        "nodes": [
                                                                                                                            {
                                                                                                                                "type": "numSponsored",
                                                                                                                                "value": "0"
                                                                                                                            },
                                                                                                                            {
                                                                                                                                "type": "numSponsoring",
                                                                                                                                "value": "0"
                                                                                                                            },
                                                                                                                            {
                                                                                                                                "type": "signerSponsoringIDs",
                                                                                                                                "value": "Array[0]",
                                                                                                                                "nodes": []
                                                                                                                            },
                                                                                                                            {
                                                                                                                                "type": "ext",
                                                                                                                                "value": "[undefined]",
                                                                                                                                "nodes": [
                                                                                                                                    {
                                                                                                                                        "type": "v3",
                                                                                                                                        "nodes": [
                                                                                                                                            {
                                                                                                                                                "type": "ext",
                                                                                                                                                "value": "[undefined]"
                                                                                                                                            },
                                                                                                                                            {
                                                                                                                                                "type": "seqLedger",
                                                                                                                                                "value": "52306944"
                                                                                                                                            },
                                                                                                                                            {
                                                                                                                                                "type": "seqTime",
                                                                                                                                                "value": "1719457483"
                                                                                                                                            }
                                                                                                                                        ]
                                                                                                                                    }
                                                                                                                                ]
                                                                                                                            }
                                                                                                                        ]
                                                                                                                    }
                                                                                                                ]
                                                                                                            }
                                                                                                        ]
                                                                                                    }
                                                                                                ]
                                                                                            }
                                                                                        ]
                                                                                    }
                                                                                ]
                                                                            },
                                                                            {
                                                                                "type": "ext",
                                                                                "value": "[undefined]"
                                                                            }
                                                                        ]
                                                                    }
                                                                ]
                                                            },
                                                            {
                                                                "type": "[5]",
                                                                "value": "[ledgerEntryUpdated]",
                                                                "nodes": [
                                                                    {
                                                                        "type": "updated",
                                                                        "nodes": [
                                                                            {
                                                                                "type": "lastModifiedLedgerSeq",
                                                                                "value": "52310121"
                                                                            },
                                                                            {
                                                                                "type": "data",
                                                                                "value": "[account]",
                                                                                "nodes": [
                                                                                    {
                                                                                        "type": "account",
                                                                                        "nodes": [
                                                                                            {
                                                                                                "type": "accountId",
                                                                                                "value": "[publicKeyTypeEd25519]",
                                                                                                "nodes": [
                                                                                                    {
                                                                                                        "type": "ed25519",
                                                                                                        "value": {
                                                                                                            "type": "code",
                                                                                                            "value": "GBZJPIK67VBXERCP6JUX2NV7M3QWH4RR3S5DPIVRDBQHPRQMGSWNRLT5"
                                                                                                        }
                                                                                                    }
                                                                                                ]
                                                                                            },
                                                                                            {
                                                                                                "type": "balance",
                                                                                                "value": "221649096276"
                                                                                            },
                                                                                            {
                                                                                                "type": "seqNum",
                                                                                                "value": "218420261190369432"
                                                                                            },
                                                                                            {
                                                                                                "type": "numSubEntries",
                                                                                                "value": "592"
                                                                                            },
                                                                                            {
                                                                                                "type": "inflationDest",
                                                                                                "value": null
                                                                                            },
                                                                                            {
                                                                                                "type": "flags",
                                                                                                "value": "0"
                                                                                            },
                                                                                            {
                                                                                                "type": "homeDomain",
                                                                                                "value": {
                                                                                                    "type": "code",
                                                                                                    "raw": {
                                                                                                        "type": "Buffer",
                                                                                                        "data": []
                                                                                                    },
                                                                                                    "value": ""
                                                                                                }
                                                                                            },
                                                                                            {
                                                                                                "type": "thresholds",
                                                                                                "value": {
                                                                                                    "type": "code",
                                                                                                    "raw": {
                                                                                                        "type": "Buffer",
                                                                                                        "data": [
                                                                                                            1,
                                                                                                            0,
                                                                                                            0,
                                                                                                            0
                                                                                                        ]
                                                                                                    },
                                                                                                    "value": "AQAAAA=="
                                                                                                }
                                                                                            },
                                                                                            {
                                                                                                "type": "signers",
                                                                                                "value": "Array[0]",
                                                                                                "nodes": []
                                                                                            },
                                                                                            {
                                                                                                "type": "ext",
                                                                                                "value": "[undefined]",
                                                                                                "nodes": [
                                                                                                    {
                                                                                                        "type": "v1",
                                                                                                        "nodes": [
                                                                                                            {
                                                                                                                "type": "liabilities",
                                                                                                                "nodes": [
                                                                                                                    {
                                                                                                                        "type": "buying",
                                                                                                                        "value": "94097561989"
                                                                                                                    },
                                                                                                                    {
                                                                                                                        "type": "selling",
                                                                                                                        "value": "182855862673"
                                                                                                                    }
                                                                                                                ]
                                                                                                            },
                                                                                                            {
                                                                                                                "type": "ext",
                                                                                                                "value": "[undefined]",
                                                                                                                "nodes": [
                                                                                                                    {
                                                                                                                        "type": "v2",
                                                                                                                        "nodes": [
                                                                                                                            {
                                                                                                                                "type": "numSponsored",
                                                                                                                                "value": "0"
                                                                                                                            },
                                                                                                                            {
                                                                                                                                "type": "numSponsoring",
                                                                                                                                "value": "0"
                                                                                                                            },
                                                                                                                            {
                                                                                                                                "type": "signerSponsoringIDs",
                                                                                                                                "value": "Array[0]",
                                                                                                                                "nodes": []
                                                                                                                            },
                                                                                                                            {
                                                                                                                                "type": "ext",
                                                                                                                                "value": "[undefined]",
                                                                                                                                "nodes": [
                                                                                                                                    {
                                                                                                                                        "type": "v3",
                                                                                                                                        "nodes": [
                                                                                                                                            {
                                                                                                                                                "type": "ext",
                                                                                                                                                "value": "[undefined]"
                                                                                                                                            },
                                                                                                                                            {
                                                                                                                                                "type": "seqLedger",
                                                                                                                                                "value": "52306944"
                                                                                                                                            },
                                                                                                                                            {
                                                                                                                                                "type": "seqTime",
                                                                                                                                                "value": "1719457483"
                                                                                                                                            }
                                                                                                                                        ]
                                                                                                                                    }
                                                                                                                                ]
                                                                                                                            }
                                                                                                                        ]
                                                                                                                    }
                                                                                                                ]
                                                                                                            }
                                                                                                        ]
                                                                                                    }
                                                                                                ]
                                                                                            }
                                                                                        ]
                                                                                    }
                                                                                ]
                                                                            },
                                                                            {
                                                                                "type": "ext",
                                                                                "value": "[undefined]"
                                                                            }
                                                                        ]
                                                                    }
                                                                ]
                                                            }
                                                        ]
                                                    }
                                                ]
                                            }
                                        ]
                                    },
                                    {
                                        "type": "txChangesAfter",
                                        "value": "Array[0]",
                                        "nodes": []
                                    },
                                    {
                                        "type": "sorobanMeta",
                                        "value": null
                                    }
                                ]
                            }
                        ]
                    }
                ]
            }
        ],
        "transactionsRoot": null,
        "uncles": null
    }
}
```

{% endtab %}
{% endtabs %}

### /sendtransaction

Submit a signed transaction to Stellar for processing.

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

#### Request Body

| Name                                             | Type   | Description                                                                                   |
| ------------------------------------------------ | ------ | --------------------------------------------------------------------------------------------- |
| rpc                                              | String | Remote procedural call URL.                                                                   |
| chainId                                          | String | Refer to the [Chain ID ](/ids/chain-ids)page for details.                                     |
| chainSymbol                                      | String | Refer to the [Chain ID ](/ids/chain-ids)page for details.                                     |
| rawTransaction<mark style="color:red;">\*</mark> | String | The signed transaction to broadcast for inclusion in a ledger, serialized as a base64 string. |

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

```json
{
    "rawTransaction": "AAAAAgAAAADK19wCgQBrHYbni7IEXqbuH39ZZ6+CyjQd0pgMYs1LFQAAAGQADYdgAAAABgAAAAEAAAAAAAAAAAAAAABmDUAMAAAAAAAAAAEAAAAAAAAABgAAAAJFeHBhbmRUZXN0AAAAAAAAlYebzd+2+XWQwUfqzG15Geiys7ZyG3jfrYEVwKQYQxIAAAAAHc1lAAAAAAAAAAABYs1LFQAAAEDT1KH8ZqJvA0M0Ncg6RsekzR5BceG41DUDgR/f8xgZk16vEOVY2BZ2Eq+FmWTXdXRP2LX/uLSKh5xxCb4v3g8O",
    "chainId": "1500"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1500",
        "transactionHash": "3a6208b4c7da5173a5cbe5ff1f71b3c941573f0f6f68482ba3fc81fc071ac1aa"
    }
}
```

{% endtab %}
{% endtabs %}

### /createaccount

Initiates a transaction to fund a newly created account using the public key as the account ID.

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

#### Request body

| Name                                      | Type   | Description                                               |
| ----------------------------------------- | ------ | --------------------------------------------------------- |
| rpc                                       | String | Remote procedural call URL.                               |
| chainId<mark style="color:red;">\*</mark> | String | Refer to the [Chain ID ](/ids/chain-ids)page for details. |
| chainSymbol                               | String | Refer to the [Chain ID ](/ids/chain-ids)page for details. |
| from<mark style="color:red;">\*</mark>    | String | Public address of the sender who funds the account.       |
| to<mark style="color:red;">\*</mark>      | String | Public address of the recipient who will get funded.      |
| amount<mark style="color:red;">\*</mark>  | String | Amount of asset to fund.                                  |

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

```json
{
    "chainId": "1500",
    "from": "GARNHXH36IUZE4F5MON5XBQX37OGVFGCOPOPN7CPQL3TP7VX2XI35QUJ",
    "to": "GDILQD3VDOBECITMR5LVVFLNYQIDXFSLUADNIUUYCYGTX524VKPM2CMC",
    "amount": "5000000"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1500",
        "from": "GARNHXH36IUZE4F5MON5XBQX37OGVFGCOPOPN7CPQL3TP7VX2XI35QUJ",
        "gas": "100",
        "data": "AAAAAgAAAAAi09z78imScL1jm9uGF9/capTCc9z2/E+C9zf+t9XRvgAAAGQDC8UiAAAACAAAAAEAAAAAAAAAAAAAAABmfTp1AAAAAAAAAAEAAAAAAAAAAAAAAADQuA91G4JBImyPV1qVbcQQO5ZLoAbUUpgWDTv3XKqezQAAAAAATEtAAAAAAAAAAAA="
    }
}
```

{% endtab %}
{% endtabs %}

### /simulatetransaction

Submit a trial contract invocation to simulate how it would be executed by the network.

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

#### Request Body

| Name                                             | Type   | Description                                                  |
| ------------------------------------------------ | ------ | ------------------------------------------------------------ |
| rpc                                              | String | Remote procedural call URL.                                  |
| chainId<mark style="color:red;">\*</mark>        | String | Refer to the [Chain ID ](/ids/chain-ids)page for details.    |
| chainSymbol                                      | String | Refer to the [Chain ID ](/ids/chain-ids)page for details.    |
| rawTransaction<mark style="color:red;">\*</mark> | String | A signed Stellar transaction, serialized as a base64 string. |

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

```json
{
    "chainId": "1500",
    "rawTransaction": "AAAAAgAAAAAi09z78imScL1jm9uGF9/capTCc9z2/E+C9zf+t9XRvgAK6+UDC8UiAAAAAwAAAAEAAAAAAAAAAAAAAABmD/WzAAAAAAAAAAEAAAAAAAAAGAAAAAAAAAABVd3dGtlYQWfueP4OrUTH4Lflmo1Hr3R6NwPMLQ7lkvkAAAAJaW5jcmVtZW50AAAAAAAAAAAAAAAAAAABAAAAAAAAAAEAAAAHCxRSx/lCsIebq3ncX/0VB3zL1ZCf+AY3FmCgx7Q9iO0AAAABAAAABgAAAAFV3d0a2VhBZ+54/g6tRMfgt+WajUevdHo3A8wtDuWS+QAAABQAAAABADpZfQAAAuQAAACEAAAAAAAK64EAAAABt9XRvgAAAEA/PHP5Z5ZmpQTYf6UnbQPTBaIbhWlCznTGbt9G7yYQQSSzOLclrxNiv/+Oj+UaVO4T3mhFC5+VC/uSotgIJykA"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "result": {
            "transactionData": "AAAAAAAAAAEAAAAHCxRSx/lCsIebq3ncX/0VB3zL1ZCf+AY3FmCgx7Q9iO0AAAABAAAABgAAAAFV3d0a2VhBZ+54/g6tRMfgt+WajUevdHo3A8wtDuWS+QAAABQAAAABADpyuAAAAwAAAACEAAAAAAAAxO0=",
            "minResourceFee": "50413",
            "events": [
                "AAAAAQAAAAAAAAAAAAAAAgAAAAAAAAADAAAADwAAAAdmbl9jYWxsAAAAAA0AAAAgVd3dGtlYQWfueP4OrUTH4Lflmo1Hr3R6NwPMLQ7lkvkAAAAPAAAACWluY3JlbWVudAAAAAAAAAE=",
                "AAAAAQAAAAAAAAABVd3dGtlYQWfueP4OrUTH4Lflmo1Hr3R6NwPMLQ7lkvkAAAACAAAAAAAAAAIAAAAPAAAACWZuX3JldHVybgAAAAAAAA8AAAAJaW5jcmVtZW50AAAAAAAAAwAAAAI="
            ],
            "results": [
                {
                    "auth": [],
                    "xdr": "AAAAAwAAAAI="
                }
            ],
            "cost": {
                "cpuInsns": "830456",
                "memBytes": "1223985"
            },
            "latestLedger": 51103937
        }
    }
}
```

{% endtab %}
{% endtabs %}

### /decodetransaction

Get the decoded transaction(sender, recipient, gas limit, method signature, and more) for the provided raw transaction.&#x20;

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

#### Request Body

| Name                                             | Type   | Description                                                                     |
| ------------------------------------------------ | ------ | ------------------------------------------------------------------------------- |
| chainId<mark style="color:red;">\*</mark>        | String | Refer to the [Chain ID ](/ids/chain-ids)page for details. By default, Ethereum. |
| chainSymbol                                      | String | Refer to the [Chain ID ](/ids/chain-ids)page for details.                       |
| rawTransaction<mark style="color:red;">\*</mark> | String | A signed Stellar transaction, serialized as a base64 string.                    |

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

```json
{
    "chainId": "1500",
    "rawTransaction": "AAAAAgAAAABMmM4wvUEdIHJlj742UZIjX7WP6OqgK3x/pPnbTCXxcgAAAGQAAaHuAAAACwAAAAEAAAAAAAAAAAAAAABl+DZxAAAAAAAAAAEAAAAAAAAABgAAAAJFeHBhbmREb2xsYXIAAAAAm/7hgKNd+xNhcPZfUG8loszSbri9XAJezYDtga5pPN8AAAAAIC+/AAAAAAAAAAAA"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "network": "1500",
        "transactionEnvelope": "AAAAAgAAAABMmM4wvUEdIHJlj742UZIjX7WP6OqgK3x/pPnbTCXxcgAAAGQAAaHuAAAACwAAAAEAAAAAAAAAAAAAAABl+DZxAAAAAAAAAAEAAAAAAAAABgAAAAJFeHBhbmREb2xsYXIAAAAAm/7hgKNd+xNhcPZfUG8loszSbri9XAJezYDtga5pPN8AAAAAIC+/AAAAAAAAAAAA",
        "transactionHash": "8d6f0c658e59962c023da0f4b6a7e6973ce377d161a2134281bb17d410d2bf90",
        "transactionFee": "100",
        "source": "GBGJRTRQXVAR2IDSMWH34NSRSIRV7NMP5DVKAK34P6SPTW2MEXYXFMCO",
        "sequence": "459518550999051",
        "operations": [
            {
                "type": "changeTrust",
                "line": {
                    "code": "ExpandDollar",
                    "issuer": "GCN75YMAUNO7WE3BOD3F6UDPEWRMZUTOXC6VYAS6ZWAO3ANONE6N6LHT"
                },
                "limit": "54.0000000"
            }
        ],
        "signatures": []
    }
}
```

{% endtab %}
{% endtabs %}


# Stellar RWA

### /settrustline

Implement a trustline between issuer and distributor.

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

#### Request Body

| Name                                        | Type   | Description                                               |
| ------------------------------------------- | ------ | --------------------------------------------------------- |
| rpc                                         | String | Remote procedural call URL.                               |
| chainId<mark style="color:red;">\*</mark>   | String | Refer to the [Chain ID ](/ids/chain-ids)page for details. |
| chainSymbol                                 | String | Refer to the [Chain ID ](/ids/chain-ids)page for details. |
| from<mark style="color:red;">\*</mark>      | String | Public address of the distributor of asset.               |
| amount<mark style="color:red;">\*</mark>    | String | The amount of asset to set trustline for.                 |
| issuer<mark style="color:red;">\*</mark>    | String | Public address of the issuer of the asset.                |
| assetCode<mark style="color:red;">\*</mark> | String | The code of asset to set trustline for.                   |

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

```json
{
    "chainId": "1500",
    "from": "GAJ4BSGJE6UQHZAZ5U5IUOABPDCYPKPS3RFS2NVNGFGFXGVQDLBQJW2P",
    "amount": "100",
    "issuer": "GDM4RQUQQUVSKQA7S6EM7XBZP3FCGH4Q7CL6TABQ7B2BEJ5ERARM2M5M",
    "assetCode": "VELO"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1500",
        "from": "GAJ4BSGJE6UQHZAZ5U5IUOABPDCYPKPS3RFS2NVNGFGFXGVQDLBQJW2P",
        "gas": "100",
        "data": "AAAAAgAAAAATwMjJJ6kD5BntOoo4AXjFh6ny3EstNq0xTFuasBrDBAAAAGQB5rJlAAH24AAAAAEAAAAAAAAAAAAAAABmD8FoAAAAAAAAAAEAAAAAAAAABgAAAAFWRUxPAAAAANnIwpCFKyVAH5eIz9w5fsojH5D4l+mAMPh0EiekiCLNAAAAADuaygAAAAAAAAAAAA=="
    }
}
```

{% endtab %}
{% endtabs %}

### /issue

Executes a payment operation to create (or mint) an asset on the Stellar network.

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

#### Request Body

| Name                                        | Type   | Description                                               |
| ------------------------------------------- | ------ | --------------------------------------------------------- |
| rpc                                         | String | Remote procedural call URL.                               |
| chainId<mark style="color:red;">\*</mark>   | String | Refer to the [Chain ID ](/ids/chain-ids)page for details. |
| chainSymbol                                 | String | Refer to the [Chain ID ](/ids/chain-ids)page for details. |
| issuer<mark style="color:red;">\*</mark>    | String | Public address of the issuer of the asset.                |
| assetCode<mark style="color:red;">\*</mark> | String | The code of asset to be issued.                           |
| amount<mark style="color:red;">\*</mark>    | String | The amount at asset to be issued.                         |
| to<mark style="color:red;">\*</mark>        | String | The public address of the distributor.                    |

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

```json
{
    "chainId": "1500",
    "issuer": "GDM4RQUQQUVSKQA7S6EM7XBZP3FCGH4Q7CL6TABQ7B2BEJ5ERARM2M5M",
    "assetCode": "ExpandDollar",
    "amount": "54",
    "to": "GAJ4BSGJE6UQHZAZ5U5IUOABPDCYPKPS3RFS2NVNGFGFXGVQDLBQJW2P"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1500",
        "from": "GDM4RQUQQUVSKQA7S6EM7XBZP3FCGH4Q7CL6TABQ7B2BEJ5ERARM2M5M",
        "gas": "100",
        "data": "AAAAAgAAAADZyMKQhSslQB+XiM/cOX7KIx+Q+JfpgDD4dBInpIgizQAAAGQB5a+YAAAAAwAAAAEAAAAAAAAAAAAAAABmD77nAAAAAAAAAAEAAAAAAAAAAQAAAAATwMjJJ6kD5BntOoo4AXjFh6ny3EstNq0xTFuasBrDBAAAAAJFeHBhbmREb2xsYXIAAAAA2cjCkIUrJUAfl4jP3Dl+yiMfkPiX6YAw+HQSJ6SIIs0AAAAAIC+/AAAAAAAAAAAA"
    }
}
```

{% endtab %}
{% endtabs %}

### /transfer

Trigger a payment operation to send an amount in a specific asset (XLM or non-XLM) to a destination account.

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

#### Request Body

| Name                                        | Type   | Description                                               |
| ------------------------------------------- | ------ | --------------------------------------------------------- |
| rpc                                         | String | Remote procedural call URL.                               |
| chainId<mark style="color:red;">\*</mark>   | String | Refer to the [Chain ID ](/ids/chain-ids)page for details. |
| chainSymbol                                 | String | Refer to the [Chain ID ](/ids/chain-ids)page for details. |
| from<mark style="color:red;">\*</mark>      | String | Public address of sender of asset.                        |
| to<mark style="color:red;">\*</mark>        | String | Public address of the receiver   of the asset.            |
| amount<mark style="color:red;">\*</mark>    | String | Amount of asset to transfer.                              |
| issuer<mark style="color:red;">\*</mark>    | String | Public address of the issuer of the asset.                |
| assetCode<mark style="color:red;">\*</mark> | String | The code of the asset to transfer.                        |

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

```json
{
    "chainId": "1500",
    "from": "GAJ4BSGJE6UQHZAZ5U5IUOABPDCYPKPS3RFS2NVNGFGFXGVQDLBQJW2P",
    "to": "GDUY7J7A33TQWOSOQGDO776GGLM3UQERL4J3SPT56F6YS4ID7MLDERI4",
    "amount": "100",
    "issuer": "GDM4RQUQQUVSKQA7S6EM7XBZP3FCGH4Q7CL6TABQ7B2BEJ5ERARM2M5M",
    "assetCode": "VELO"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1500",
        "from": "GAJ4BSGJE6UQHZAZ5U5IUOABPDCYPKPS3RFS2NVNGFGFXGVQDLBQJW2P",
        "to": "GDUY7J7A33TQWOSOQGDO776GGLM3UQERL4J3SPT56F6YS4ID7MLDERI4",
        "gas": "100",
        "data": "AAAAAgAAAAATwMjJJ6kD5BntOoo4AXjFh6ny3EstNq0xTFuasBrDBAAAAGQB5rJlAAH24AAAAAEAAAAAAAAAAAAAAABmD8BMAAAAAAAAAAEAAAAAAAAAAQAAAADpj6fg3ucLOk6Bhu//xjLZukCRXxO5Pn3xfYlxA/sWMgAAAAFWRUxPAAAAANnIwpCFKyVAH5eIz9w5fsojH5D4l+mAMPh0EiekiCLNAAAAADuaygAAAAAAAAAAAA=="
    }
}
```

{% endtab %}
{% endtabs %}

### /burn

Executes a transaction to burn or delete an asset.

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

#### Request Body

| Name                                        | Type   | Description                                               |
| ------------------------------------------- | ------ | --------------------------------------------------------- |
| rpc                                         | String | Remote procedural call URL.                               |
| chainId<mark style="color:red;">\*</mark>   | String | Refer to the [Chain ID ](/ids/chain-ids)page for details. |
| chainSymbol                                 | String | Refer to the [Chain ID ](/ids/chain-ids)page for details. |
| from<mark style="color:red;">\*</mark>      | String | Public address of the distributor of asset.               |
| amount<mark style="color:red;">\*</mark>    | String | The amount of asset to burn                               |
| issuer<mark style="color:red;">\*</mark>    | String | Public address of the issuer of the asset.                |
| assetCode<mark style="color:red;">\*</mark> | String | The code of asset to burn                                 |

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

```json
{
  "chainId": "1500",
  "from": "GAJ4BSGJE6UQHZAZ5U5IUOABPDCYPKPS3RFS2NVNGFGFXGVQDLBQJW2P",
  "amount": "100",
  "issuer": "GDM4RQUQQUVSKQA7S6EM7XBZP3FCGH4Q7CL6TABQ7B2BEJ5ERARM2M5M",
  "assetCode": "VELO"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1500",
        "from": "GAJ4BSGJE6UQHZAZ5U5IUOABPDCYPKPS3RFS2NVNGFGFXGVQDLBQJW2P",
        "gas": "100",
        "data": "AAAAAgAAAAATwMjJJ6kD5BntOoo4AXjFh6ny3EstNq0xTFuasBrDBAAAAGQB5rJlAAH24AAAAAEAAAAAAAAAAAAAAABmD8C0AAAAAAAAAAEAAAAAAAAAAQAAAADZyMKQhSslQB+XiM/cOX7KIx+Q+JfpgDD4dBInpIgizQAAAAFWRUxPAAAAANnIwpCFKyVAH5eIz9w5fsojH5D4l+mAMPh0EiekiCLNAAAAADuaygAAAAAAAAAAAA=="
    }
}
```

{% endtab %}
{% endtabs %}

### /freeze

Executes a transaction to revoke an existing trustline’s authorization, thereby freezing the asset held by an account.

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

#### Request Body

| Name                                        | Type   | Description                                               |
| ------------------------------------------- | ------ | --------------------------------------------------------- |
| rpc                                         | String | Remote procedural call URL.                               |
| chainId<mark style="color:red;">\*</mark>   | String | Refer to the [Chain ID ](/ids/chain-ids)page for details. |
| chainSymbol                                 | String | Refer to the [Chain ID ](/ids/chain-ids)page for details. |
| user<mark style="color:red;">\*</mark>      | String | Public address of user to be freezed.                     |
| issuer<mark style="color:red;">\*</mark>    | String | Public address of the issuer of the asset.                |
| assetCode<mark style="color:red;">\*</mark> | String | The code of the asset to freeze                           |

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

```json
{
    "chainId": "1500",
    "user": "GAJ4BSGJE6UQHZAZ5U5IUOABPDCYPKPS3RFS2NVNGFGFXGVQDLBQJW2P",
    "issuer": "GDM4RQUQQUVSKQA7S6EM7XBZP3FCGH4Q7CL6TABQ7B2BEJ5ERARM2M5M",
    "assetCode": "VELO"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1500",
        "from": "GDM4RQUQQUVSKQA7S6EM7XBZP3FCGH4Q7CL6TABQ7B2BEJ5ERARM2M5M",
        "gas": "100",
        "data": "AAAAAgAAAADZyMKQhSslQB+XiM/cOX7KIx+Q+JfpgDD4dBInpIgizQAAAMgB5a+YAAAAAwAAAAEAAAAAAAAAAAAAAABmD8EjAAAAAAAAAAIAAAAAAAAABQAAAAAAAAAAAAAAAQAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAAAAATwMjJJ6kD5BntOoo4AXjFh6ny3EstNq0xTFuasBrDBAAAAAFWRUxPAAAAAAAAAAAAAAAA"
    }
}
```

{% endtab %}
{% endtabs %}


# XRP Ledger

### Available Endpoints:

*Click on the endpoint to jump to the section with full details*

* [<mark style="color:blue;">/getbalance</mark>](#getbalance) <mark style="color:blue;">`GET`</mark> <mark style="color:blue;"></mark><mark style="color:blue;">-</mark> Get the balance or number of the given token in the requested public address.
* [<mark style="color:blue;">/getblock</mark>](#getblock) <mark style="color:blue;">`GET`</mark> <mark style="color:blue;"></mark><mark style="color:blue;">-</mark> Get details of a block(ledger).
* [<mark style="color:blue;">/getgasprice</mark>](#getgasprice) <mark style="color:blue;">`GET`</mark> <mark style="color:blue;"></mark><mark style="color:blue;">-</mark> Get the current gas price from the XRPL.
* [<mark style="color:blue;">/gettransaction</mark>](#gettransaction) <mark style="color:blue;">`GET`</mark> <mark style="color:blue;"></mark><mark style="color:blue;">-</mark> Get details of a specified transaction.
* [<mark style="color:blue;">/portfolio</mark>](#portfolio) <mark style="color:blue;">`GET`</mark> <mark style="color:blue;"></mark><mark style="color:blue;">-</mark> Get comprehensive information about the assets/ tokens a user owns, including their name, balance, symbol, address, and their equivalent USD price.
* [<mark style="color:blue;">/getusertransactions</mark>](#getusertransactions) <mark style="color:blue;">`GET`</mark> <mark style="color:blue;"></mark><mark style="color:blue;">-</mark> Get the historical transaction details for a specific user address.&#x20;
* [<mark style="color:blue;">/getlatestledger</mark> ](#getlatestledger)<mark style="color:blue;">`GET`</mark> <mark style="color:blue;"></mark><mark style="color:blue;">-</mark> Get details for the current latest known ledger of the node.
* [<mark style="color:blue;">/sendtransaction</mark>](#sendtransaction) <mark style="color:green;">`POST`</mark> <mark style="color:blue;">-</mark> Submit a signed transaction to XRPL for processing.
* [<mark style="color:blue;">/createaccount</mark>](#createaccount) <mark style="color:green;">`POST`</mark> <mark style="color:blue;">-</mark> Initiates a transaction to fund a newly created account 10 XRP using the public key as the account ID.
* [<mark style="color:blue;">/decodetransaction</mark> ](#decodetransaction)<mark style="color:green;">`POST`</mark> <mark style="color:blue;">-</mark> Get the decoded transaction(sender, recipient, gas limit, method signature, and more) for the provided raw transaction.&#x20;

*Also, see* [Error Handling Details](#error-handling-details)

### Chain IDs

Please use Chain ID <mark style="color:orange;">**1600**</mark> for the XRP Ledger Mainnet and <mark style="color:orange;">**1601**</mark> for the XRP Ledger Testnet\
\
See the  [Chain ID](/ids/chain-ids) for a complete list of DEX IDs.&#x20;

## Endpoint Details

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

| Name                                      | Type   | Description                                                                                                                   |
| ----------------------------------------- | ------ | ----------------------------------------------------------------------------------------------------------------------------- |
| rpc                                       | String | Remote procedural call URL                                                                                                    |
| chainId<mark style="color:red;">\*</mark> | String | Refer to the [Chain ID ](/ids/chain-ids)page for details.                                                                     |
| chainSymbol                               | String | Refer to the [Chain ID ](/ids/chain-ids)page for details.                                                                     |
| address<mark style="color:red;">\*</mark> | String | The public address to get the balance of.                                                                                     |
| issuer                                    | String | The public address of the issuer.                                                                                             |
| assetCode                                 | String | <p>The code of asset to get the balance of.<br><mark style="color:red;">\*</mark>Required, if issuer address is provided.</p> |

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

```url
https://api.expand.network/chain/getbalance?chainId=1600&address=rogue5HnPRSszD9CWGSUz8UGHMVwSSKF6&assetCode=USD&issuer=rrpNnNLKrartuEqfJGpqyDwPj1AFPg9vn1
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "assetCode": "USD",
        "issuer": "rrpNnNLKrartuEqfJGpqyDwPj1AFPg9vn1",
        "balance": "409832045505"
    }
}
```

{% endtab %}
{% endtabs %}

[<mark style="color:blue;">back to top</mark>](#endpoints-available)

### /getblock

Get details of a block(ledger).

<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 ](/ids/chain-ids)page for details. |
| chainSymbol                                   | String | Refer to the [Chain ID ](/ids/chain-ids)page for details. |
| blockNumber<mark style="color:red;">\*</mark> | String | Sequence number of the ledger.                            |

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

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

{% endtab %}

{% tab title="Sample Response" %}

```json
{
  "status": 200,
  "msg": "success",
  "data": {
    "difficulty": null,
    "gasLimit": null,
    "gasUsed": null,
    "hash": "CD0165E3895A50A6BF7B663BEBFA2F4D71B74877576B9E5E98F4952128CA0685",
    "miner": null,
    "nonce": null,
    "number": 89475323,
    "parentHash": "2F5640ABEADEF6D6CDBB37744579C917505B25BB6818A0B547DC1192C6725CDF",
    "size": null,
    "timestamp": "774725511",
    "totalDifficulty": null,
    "transactions": [
      {
        "Account": "rL72YxzbBv43isRYakrfTUzCaGbg4pWbs4",
        "Amount": "43",
        "DeliverMax": "43",
        "Destination": "rHcXrn8joXL2Qe7BaMnhB5VRuj1XKEmUW6",
        "DestinationTag": 2760758033,
        "Fee": "10",
        "Sequence": 89271357,
        "SigningPubKey": "ED0026C5C2EB6FB2048A960ACDF73695F316B7BAE0DFD999D24C0A2075F7A73037",
        "TransactionType": "Payment",
        "TxnSignature": "8958A0BE36F878C94C02A658647A0E5AA81E32CB1986CC967F1FB1F6728B26DC347D973CABB5EF49D7DFDADC24ABD83ECE116E8206F6DE943ECF945168265C05",
        "hash": "01452A92792C71FD3E3ACC9F024535F777FF2D85B607AA7A924E9E13A25CF50E",
        "metaData": {
          "AffectedNodes": [
            {
              "ModifiedNode": {
                "FinalFields": {
                  "Account": "rHcXrn8joXL2Qe7BaMnhB5VRuj1XKEmUW6",
                  "Balance": "1059808075",
                  "Flags": 0,
                  "OwnerCount": 0,
                  "Sequence": 73560948
                },
                "LedgerEntryType": "AccountRoot",
                "LedgerIndex": "9EDF161DF605EA574DEE5E5B8FEB76315736D7FB038D5586A85575D64F8F8F43",
                "PreviousFields": {
                  "Balance": "1059808032"
                },
                "PreviousTxnID": "2F429C147463DA4DFA7FD5894D990BD0E654AA6B04F01052FCF29EDF77C6B6D8",
                "PreviousTxnLgrSeq": 89475323
              }
            },
            {
              "ModifiedNode": {
                "FinalFields": {
                  "Account": "rL72YxzbBv43isRYakrfTUzCaGbg4pWbs4",
                  "Balance": "63645870",
                  "Flags": 0,
                  "OwnerCount": 0,
                  "Sequence": 89271358
                },
                "LedgerEntryType": "AccountRoot",
                "LedgerIndex": "AC35635B8AEDC6378ADFAFBE2F3386D42D04CBFD651E7CB4687BEB9008427C12",
                "PreviousFields": {
                  "Balance": "63645923",
                  "Sequence": 89271357
                },
                "PreviousTxnID": "04A00FE6A74C89BB96CE3FEEDB25DB7AAA20EAFFE2C5771B881B527546673C9A",
                "PreviousTxnLgrSeq": 89475323
              }
            }
          ],
          "TransactionIndex": 52,
          "TransactionResult": "tesSUCCESS",
          "delivered_amount": "43"
        }
      }
    ],
    "transactionsRoot": null,
    "uncles": null
  }
}
```

{% endtab %}
{% endtabs %}

[<mark style="color:blue;">back to top</mark>](#endpoints-available)

### /getgasprice

Get the current gas price from the XRPL.

<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 ](/ids/chain-ids)page for details. |
| chainSymbol                               | String | Refer to the [Chain ID ](/ids/chain-ids)page for details. |

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

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

{% endtab %}

{% tab title="Sample Response" %}

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

{% endtab %}
{% endtabs %}

[<mark style="color:blue;">back to top</mark>](#endpoints-available)

### /gettransaction

Get details of a specified 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 ](/ids/chain-ids)page for details. |
| chainSymbol                                       | String | Refer to the [Chain ID ](/ids/chain-ids)page for details. |
| transactionHash<mark style="color:red;">\*</mark> | String | The transaction hash.                                     |

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

```uri
https://api.expand.network/chain/gettransaction?chainId=1600&transactionHash=478061849940F06D822BF28A0D3FF6EE9832729E79DDD10C05967FB0C86B3C5E
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "hash": "478061849940F06D822BF28A0D3FF6EE9832729E79DDD10C05967FB0C86B3C5E",
        "transactionStatus": true,
        "blockNumber": "89475741",
        "timestamp": "774727140",
        "from": "rs3RZsga1KbhSZetRsL22pkTyWyFU86Kkf",
        "to": "rEzdn46Gjxh8YJNAZrmMUsFh1QDfT8uuTs",
        "value": "44",
        "transactionFees": "10",
        "transactionType": "Payment",
        "gas": null,
        "gasPrice": null,
        "input": null,
        "nonce": 89345903,
        "network": null,
        "meta": {
            "AffectedNodes": [
                {
                    "ModifiedNode": {
                        "FinalFields": {
                            "Account": "rs3RZsga1KbhSZetRsL22pkTyWyFU86Kkf",
                            "Balance": "60430731",
                            "Flags": 0,
                            "OwnerCount": 0,
                            "Sequence": 89345904
                        },
                        "LedgerEntryType": "AccountRoot",
                        "LedgerIndex": "054427CEEE4A008A9E92FC26DEEDB5FEAE6F915D5FD7836B047335C6A20AE7FA",
                        "PreviousFields": {
                            "Balance": "60430785",
                            "Sequence": 89345903
                        },
                        "PreviousTxnID": "2AB13EC6BFA96520B054617121413CB88BF4752E05DEE555F71A1766910368BC",
                        "PreviousTxnLgrSeq": 89475740
                    }
                },
                {
                    "ModifiedNode": {
                        "FinalFields": {
                            "Account": "rEzdn46Gjxh8YJNAZrmMUsFh1QDfT8uuTs",
                            "Balance": "366727618",
                            "Flags": 0,
                            "OwnerCount": 0,
                            "Sequence": 89221292
                        },
                        "LedgerEntryType": "AccountRoot",
                        "LedgerIndex": "51C728407B1A8B3037D6B40ADB49013ABD9F62FB12ED8981D6575C722A176EB1",
                        "PreviousFields": {
                            "Balance": "366727574"
                        },
                        "PreviousTxnID": "AAB53A2D2CA8953EA6C6A21BE1C0F2CB14D7E5302262699134BBCA38656BEEF4",
                        "PreviousTxnLgrSeq": 89475740
                    }
                }
            ],
            "TransactionIndex": 0,
            "TransactionResult": "tesSUCCESS",
            "delivered_amount": "44"
        },
        "TxnSignature": "367F6D98E2EE0F9901C2A0FA494AEDCDB6D83F0744BB32D39E9BAF526DA42DAB72D73294EA57BB098032D37495A06B6ED0546C7342F738EC3814077799B2820B"
    }
}
```

{% endtab %}
{% endtabs %}

[<mark style="color:blue;">back to top</mark>](#endpoints-available)

### /portfolio

Get the comprehensive information about the assets/ tokens owned by a user, including their name, balance, symbol, address, and their equivalent USD price.

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

#### Query Parameters

| Name                                      | Type    | Description                                                                   |
| ----------------------------------------- | ------- | ----------------------------------------------------------------------------- |
| rpc                                       | String  | Remote procedural call URL.                                                   |
| chainId<mark style="color:red;">\*</mark> | String  | Refer to the [Chain ID ](/ids/chain-ids)page for details.                     |
| chainSymbol                               | String  | Refer to the [Chain ID ](/ids/chain-ids)page for details.                     |
| address<mark style="color:red;">\*</mark> | String  | Public addess of the user.                                                    |
| assetType                                 | String  | `fungible`/`nonFungible` standard choice. By default, `all`.                  |
| availableOnly                             | Boolean | <p>By default, true. <br>If true, tokens with balance > 0 will be listed.</p> |

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

```url
https://api.expand.network/chain/chain/portfolio?chainId=1600&address=rogue5HnPRSszD9CWGSUz8UGHMVwSSKF6&assetType=fungible&availableOnly=true
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
  "status": 200,
  "msg": "success",
  "data": {
    "native": "991378078",
    "assets": [
      {
        "assetCode": "BTC",
        "issuer": "rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B",
        "balance": "818138018",
        "assetType": "fungible"
      }
    ]
  }
}
```

{% endtab %}
{% endtabs %}

[<mark style="color:blue;">back to top</mark>](#endpoints-available)

### **/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

| Name                                      | Type   | Description                                                                                                      |
| ----------------------------------------- | ------ | ---------------------------------------------------------------------------------------------------------------- |
| rpc                                       | String | Remote procedural call URL.                                                                                      |
| chainId<mark style="color:red;">\*</mark> | String | Refer to the [Chain ID ](/ids/chain-ids)page for details.                                                        |
| chainSymbol                               | String | Refer to the [Chain ID ](/ids/chain-ids)page for details.                                                        |
| address<mark style="color:red;">\*</mark> | String | The public address of the user.                                                                                  |
| pageToken                                 | String | A string ID that points to a specific location in a collection of responses, present at the end of the response. |
| sortOrder                                 | String | <p>The transaction sorting order. <br>asc or desc. <br>By default, desc.</p>                                     |

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

```url
https://historicallp.api.expand.network/chain/getusertransactions?chainId=1600&address=r3KFdr7FTU1hxo9DbS1h65Wq8MXG7e9cgK&pageToken=89465257:45&sortOrder=asc
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
  "status": 200,
  "msg": "success",
  "data": {
    "transactions": [
      {
        "hash": "81DD457F8A93F5461595C783B3E2CF096D37FA61BEA5586237F6793640E1CCD3",
        "transactionStatus": false,
        "blockNumber": "89406864",
        "timestamp": "774458731",
        "from": "rXSYHuUUrFsk8CABEf6PtrYwFWoAfUMrK",
        "to": "r3KFdr7FTU1hxo9DbS1h65Wq8MXG7e9cgK",
        "value": {
          "currency": "457665724275726E000000000000000000000000",
          "issuer": "rhUHDGG5po5Dg6oxtaodMPTR4xytToSL1Y",
          "value": "0.139436"
        },
        "transactionFees": "20",
        "transactionType": "Payment",
        "gas": null,
        "gasPrice": null,
        "input": null,
        "nonce": 83654435,
        "network": null,
        "meta": {
          "AffectedNodes": [
            {
              "ModifiedNode": {
                "FinalFields": {
                  "Balance": {
                    "currency": "457665724275726E000000000000000000000000",
                    "issuer": "rrrrrrrrrrrrrrrrrrrrBZbvji",
                    "value": "-10.03493459156791"
                  },
                  "Flags": 2228224,
                  "HighLimit": {
                    "currency": "457665724275726E000000000000000000000000",
                    "issuer": "r3KFdr7FTU1hxo9DbS1h65Wq8MXG7e9cgK",
                    "value": "10937302.217631"
                  },
                  "HighNode": "3",
                  "LowLimit": {
                    "currency": "457665724275726E000000000000000000000000",
                    "issuer": "rhUHDGG5po5Dg6oxtaodMPTR4xytToSL1Y",
                    "value": "0"
                  },
                  "LowNode": "9"
                },
                "LedgerEntryType": "RippleState",
                "LedgerIndex": "4F75D88429A8A5B3007291D2B0DBA5F0344C4F5BD1202C79A194A338F322A353",
                "PreviousFields": {
                  "Balance": {
                    "currency": "457665724275726E000000000000000000000000",
                    "issuer": "rrrrrrrrrrrrrrrrrrrrBZbvji",
                    "value": "-9.89549859156791"
                  }
                },
                "PreviousTxnID": "A2B4708FB335E089F9C8FE00CE75B8DB0357982EF781C7BAA37929A191C8031B",
                "PreviousTxnLgrSeq": 89406849
              }
            },
            {
              "ModifiedNode": {
                "FinalFields": {
                  "Account": "rXSYHuUUrFsk8CABEf6PtrYwFWoAfUMrK",
                  "Balance": "103760378",
                  "Flags": 0,
                  "OwnerCount": 5,
                  "Sequence": 83654436
                },
                "LedgerEntryType": "AccountRoot",
                "LedgerIndex": "8A884B57E13846DA2275DDC4EEA6ED8838E436225799CA5F0FE77F16739BFF85",
                "PreviousFields": {
                  "Balance": "103760398",
                  "Sequence": 83654435
                },
                "PreviousTxnID": "71692EBA11C73E8D6175E32901E51CBC781BC5A7BA080DFE7160CD99CCE54739",
                "PreviousTxnLgrSeq": 89406863
              }
            },
            {
              "ModifiedNode": {
                "FinalFields": {
                  "Balance": {
                    "currency": "457665724275726E000000000000000000000000",
                    "issuer": "rrrrrrrrrrrrrrrrrrrrBZbvji",
                    "value": "1611629.0842435"
                  },
                  "Flags": 1114112,
                  "HighLimit": {
                    "currency": "457665724275726E000000000000000000000000",
                    "issuer": "rhUHDGG5po5Dg6oxtaodMPTR4xytToSL1Y",
                    "value": "0"
                  },
                  "HighNode": "3",
                  "LowLimit": {
                    "currency": "457665724275726E000000000000000000000000",
                    "issuer": "rXSYHuUUrFsk8CABEf6PtrYwFWoAfUMrK",
                    "value": "18053707.5234989"
                  },
                  "LowNode": "0"
                },
                "LedgerEntryType": "RippleState",
                "LedgerIndex": "8AFBB525423C5467E47BF8FD594283D46F9881EA9054413B99B341E48F65D4E2",
                "PreviousFields": {
                  "Balance": {
                    "currency": "457665724275726E000000000000000000000000",
                    "issuer": "rrrrrrrrrrrrrrrrrrrrBZbvji",
                    "value": "1611629.2933975"
                  }
                },
                "PreviousTxnID": "71692EBA11C73E8D6175E32901E51CBC781BC5A7BA080DFE7160CD99CCE54739",
                "PreviousTxnLgrSeq": 89406863
              }
            }
          ],
          "TransactionIndex": 48,
          "TransactionResult": "tesSUCCESS",
          "delivered_amount": {
            "currency": "457665724275726E000000000000000000000000",
            "issuer": "rhUHDGG5po5Dg6oxtaodMPTR4xytToSL1Y",
            "value": "0.139436"
          }
        },
        "memos": [
          {
            "Memo": {
              "MemoData": "4578747261204661726D696E67207265776172642066726F6D204D61676E6574696320666F722070726F766964696E67206C697175696469747920746F20746865204D41475F585250202B20457665724275726E5F58525020706F6F6C73"
            }
          }
        ],
        "TxnSignature": "3045022100C0076774DFC94F5F019AF7AF53BD9D386653B0E4CAEC614F9311E64ED75B09D102203AFA6C2B2EA3C969959C95A1BE11779D0B6A407A3DE6383019DDBE3A8F7B1728"
      }
    ],
    "nextPageToken": "89406849:89"
  }
}
```

{% endtab %}
{% endtabs %}

[<mark style="color:blue;">back to top</mark>](#endpoints-available)

### /getlatestledger

Get details for the current latest known ledger of the node.

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

#### Query Parameters

| Name        | Type   | Description                                               |
| ----------- | ------ | --------------------------------------------------------- |
| rpc         | String | Remote procedural call URL.                               |
| chainId     | String | Refer to the [Chain ID ](/ids/chain-ids)page for details. |
| chainSymbol | String | Refer to the [Chain ID ](/ids/chain-ids)page for details. |

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

```url
https://api.expand.network/chain/getlatestledger?chainId=1600
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
  "status": 200,
  "msg": "success",
  "data": {
    "difficulty": null,
    "gasLimit": null,
    "gasUsed": null,
    "miner": null,
    "nonce": null,
    "number": "89515194",
    "parentHash": "CA7174CA0D0D6D8250C95B07B525BF543B9FDF63CB1405B8DBA36FB38A306E0C",
    "size": null,
    "timestamp": null,
    "totalDifficulty": null,
    "transactions": [
      {
        "Account": "rBTwLga3i2gz3doX6Gva3MgEV8ZCD8jjah",
        "Fee": "20",
        "Flags": 0,
        "LastLedgerSequence": 89515196,
        "OfferSequence": 145028949,
        "Sequence": 145028958,
        "SigningPubKey": "0253C1DFDCF898FE85F16B71CCE80A5739F7223D54CC9EBA4749616593470298C5",
        "TakerGets": "36570000000",
        "TakerPays": {
          "currency": "USD",
          "issuer": "rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B",
          "value": "21693.50385126"
        },
        "TransactionType": "OfferCreate",
        "TxnSignature": "3044022055CE8A031FC49FFDA2D329FB5523EDD6893C1E969CC84BD27D6336DB31D5086202206152BED621E4013E2C49CEC62FA9E01964E0426B93E936D121D7A1D77E9997D1",
        "hash": "044A0DFED659DF5D310726ED07D83BD53AD83DFA6ADD22336BF01EF1DF52977F"
      }
    ],
    "transactionsRoot": null,
    "uncles": null
  }
}
```

{% endtab %}
{% endtabs %}

[<mark style="color:blue;">back to top</mark>](#endpoints-available)

### /sendtransaction

Submit a signed transaction to XRPL for processing.

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

#### Request Body

| Name                                             | Type   | Description                                                                                   |
| ------------------------------------------------ | ------ | --------------------------------------------------------------------------------------------- |
| rpc                                              | String | Remote procedural call URL.                                                                   |
| chainId                                          | String | Refer to the [Chain ID ](/ids/chain-ids)page for details.                                     |
| chainSymbol                                      | String | Refer to the [Chain ID ](/ids/chain-ids)page for details.                                     |
| rawTransaction<mark style="color:red;">\*</mark> | String | The signed transaction to broadcast for inclusion in a ledger, serialized as a base64 string. |

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

```json
{
  "chainId": "1600",
  "rawTransaction": "12000022000000002405594454201B055945D261400000000000271068400000000000000C73210330A70B8D820332240B97477520296FD5A8F2E531B17DF54C6DE13F8737012E8374473045022100C32E02C67EEA80379EFBCF450E5BB66F62122B57D0F91F0694F5D5BE840D738802202536AAC1568EAE56BD2F04B8822E580D325C367468455B2475C81F4F3D08B4018114A682E02A8BDB803AB509F3BE5D384841A7227CE583149901A6A96D83F029FB8BCF116527AD19A6EEA803"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1600",
        "transactionHash": "CE0EE218F817D29472CEBA606A4C532EC8C04452EFA7D9E30E9639BF018597D9"
    }
}
```

{% endtab %}
{% endtabs %}

[<mark style="color:blue;">back to top</mark>](#endpoints-available)

### /createaccount

Initiates a transaction to fund a newly created account 10 XRP using the public key as the account ID.

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

#### Request body

| Name                                      | Type   | Description                                               |
| ----------------------------------------- | ------ | --------------------------------------------------------- |
| rpc                                       | String | Remote procedural call URL.                               |
| chainId<mark style="color:red;">\*</mark> | String | Refer to the [Chain ID ](/ids/chain-ids)page for details. |
| chainSymbol                               | String | Refer to the [Chain ID ](/ids/chain-ids)page for details. |
| from<mark style="color:red;">\*</mark>    | String | Public address of the sender who funds the account.       |
| to<mark style="color:red;">\*</mark>      | String | Public address of the recipient who will get funded.      |
| destinationTag                            | String |                                                           |

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

```json
{
    "chainId": "1600",
    "from": "rogue5HnPRSszD9CWGSUz8UGHMVwSSKF6",
    "to": "rBTwLga3i2gz3doX6Gva3MgEV8ZCD8jjah"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1600",
        "from": "rogue5HnPRSszD9CWGSUz8UGHMVwSSKF6",
        "to": "rBTwLga3i2gz3doX6Gva3MgEV8ZCD8jjah",
        "fee": "12",
        "data": "eyJUcmFuc2FjdGlvblR5cGUiOiJQYXltZW50IiwiQWNjb3VudCI6InJvZ3VlNUhuUFJTc3pEOUNXR1NVejhVR0hNVndTU0tGNiIsIkFtb3VudCI6IjEwMDAwMDAwIiwiRGVzdGluYXRpb24iOiJyQlR3TGdhM2kyZ3ozZG9YNkd2YTNNZ0VWOFpDRDhqamFoIiwiRmxhZ3MiOjAsIkZlZSI6IjEyIiwiU2VxdWVuY2UiOjU1MDA5MDAsIkxhc3RMZWRnZXJTZXF1ZW5jZSI6ODk1MTgwMjF9",
        "referenceId": "11a8db27d6a3411c8ab18abf27375699"
    }
}
```

{% endtab %}
{% endtabs %}

[<mark style="color:blue;">back to top</mark>](#endpoints-available)

### /decodetransaction

Get the decoded transaction(sender, recipient, gas limit, method signature, and more) for the provided raw transaction.&#x20;

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

#### Request Body

| Name                                             | Type   | Description                                                                     |
| ------------------------------------------------ | ------ | ------------------------------------------------------------------------------- |
| chainId<mark style="color:red;">\*</mark>        | String | Refer to the [Chain ID ](/ids/chain-ids)page for details. By default, Ethereum. |
| chainSymbol                                      | String | Refer to the [Chain ID ](/ids/chain-ids)page for details.                       |
| rawTransaction<mark style="color:red;">\*</mark> | String | A signed XRPL transaction, serialized as a base64 string.                       |

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

```json
{
  "chainId": "1600",
  "rawTransaction": "12000022000000002405594454201B055945D261400000000000271068400000000000000C73210330A70B8D820332240B97477520296FD5A8F2E531B17DF54C6DE13F8737012E8374473045022100C32E02C67EEA80379EFBCF450E5BB66F62122B57D0F91F0694F5D5BE840D738802202536AAC1568EAE56BD2F04B8822E580D325C367468455B2475C81F4F3D08B4018114A682E02A8BDB803AB509F3BE5D384841A7227CE583149901A6A96D83F029FB8BCF116527AD19A6EEA803"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "TransactionType": "Payment",
        "Flags": 0,
        "Sequence": 89736276,
        "LastLedgerSequence": 89736658,
        "Amount": "10000",
        "Fee": "12",
        "SigningPubKey": "0330A70B8D820332240B97477520296FD5A8F2E531B17DF54C6DE13F8737012E83",
        "TxnSignature": "3045022100C32E02C67EEA80379EFBCF450E5BB66F62122B57D0F91F0694F5D5BE840D738802202536AAC1568EAE56BD2F04B8822E580D325C367468455B2475C81F4F3D08B401",
        "Account": "rGBRxEf5GAZyLwHUXvspivv8JNejp58QyN",
        "Destination": "rNxp4h8apvRis6mJf9Sh8C6iRxfrDWN7AV"
    }
}
```

{% endtab %}
{% endtabs %}

[<mark style="color:blue;">back to top</mark>](#endpoints-available)

### Error Handling Details

<table><thead><tr><th width="253">Error</th><th>Description</th></tr></thead><tbody><tr><td>400 (Bad Request)</td><td>Indicates the request is invalid or missing the required parameters. The msg field will contain details about the error.</td></tr><tr><td>401 (Unauthorised)</td><td>Indicates the request lacks valid authentication credentials (API key). Ensure that you provide a valid API key in the request headers.</td></tr><tr><td>404 (Not Found)</td><td>Indicates that the specified endpoint or resource does not exist.</td></tr><tr><td>500 (Server Error)</td><td>Indicates an internal server error.</td></tr></tbody></table>

[<mark style="color:blue;">back to top</mark>](#endpoints-available)


# XRP Ledger RWA

### Available Endpoints:

*Click on the endpoint to jump to the section with full details*

* [<mark style="color:blue;">/settrustline</mark>](#settrustline) <mark style="color:green;">`POST`</mark> <mark style="color:blue;">-</mark> Implement a trustline between an issuer and asset holder.
* [<mark style="color:blue;">/issue</mark>](#issue) <mark style="color:green;">`POST`</mark> <mark style="color:blue;">-</mark> Executes a payment operation to issue an asset (excluding XRP) to the distributor.
* [<mark style="color:blue;">/transfer</mark> ](#transfer)<mark style="color:green;">`POST`</mark> <mark style="color:blue;">-</mark> Trigger a payment operation to send an amount in a specific asset (XRP or non-XRP) to a destination account.
* [<mark style="color:blue;">/burn</mark>](#burn) <mark style="color:green;">`POST`</mark> <mark style="color:blue;">-</mark> Executes a transaction to burn or delete an asset.
* [<mark style="color:blue;">/freeze</mark>](#freeze) <mark style="color:green;">`POST`</mark> <mark style="color:blue;">-</mark> Executes a transaction to revoke an existing trustline’s authorization, thereby freezing the asset held by an account.

*Also, see* [Error Handling Details](#error-handling-details)

### Chain IDs

Please use Chain ID <mark style="color:orange;">**1600**</mark> for the XRP Ledger Mainnet and <mark style="color:orange;">**1601**</mark> for the XRP Ledger Testnet\
\
See the  [Chain ID](/ids/chain-ids) for a complete list of DEX IDs.&#x20;

## Endpoint Details

### /settrustline

Implement a trustline between issuer and distributor.

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

#### Request Body

| Name                                        | Type   | Description                                               |
| ------------------------------------------- | ------ | --------------------------------------------------------- |
| rpc                                         | String | Remote procedural call URL.                               |
| chainId<mark style="color:red;">\*</mark>   | String | Refer to the [Chain ID ](/ids/chain-ids)page for details. |
| chainSymbol                                 | String | Refer to the [Chain ID ](/ids/chain-ids)page for details. |
| from<mark style="color:red;">\*</mark>      | String | Public address of the distributor of asset.               |
| amount<mark style="color:red;">\*</mark>    | String | The amount of asset to set trustline for.                 |
| issuer<mark style="color:red;">\*</mark>    | String | Public address of the issuer of the asset.                |
| assetCode<mark style="color:red;">\*</mark> | String | The code of asset to set trustline for.                   |

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

```json
{
    "chainId": "1600",
    "issuer": "rrpNnNLKrartuEqfJGpqyDwPj1AFPg9vn1",
    "assetCode": "USD",
    "amount": "100",
    "from": "rogue5HnPRSszD9CWGSUz8UGHMVwSSKF6"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1600",
        "from": "rogue5HnPRSszD9CWGSUz8UGHMVwSSKF6",
        "fee": "12",
        "data": "eyJUcmFuc2FjdGlvblR5cGUiOiJUcnVzdFNldCIsIkFjY291bnQiOiJyb2d1ZTVIblBSU3N6RDlDV0dTVXo4VUdITVZ3U1NLRjYiLCJMaW1pdEFtb3VudCI6eyJjdXJyZW5jeSI6IlVTRCIsImlzc3VlciI6InJycE5uTkxLcmFydHVFcWZKR3BxeUR3UGoxQUZQZzl2bjEiLCJ2YWx1ZSI6IjAuMDAwMDAwMDAwMDAwMTAwIn0sIkZsYWdzIjowLCJGZWUiOiIxMiIsIlNlcXVlbmNlIjo1NTAwOTAwLCJMYXN0TGVkZ2VyU2VxdWVuY2UiOjg5NTE4MDU0fQ==",
        "referenceId": "bf64f21786364fe4b40687b1b1ea0226"
    }
}
```

{% endtab %}
{% endtabs %}

[<mark style="color:blue;">back to top</mark>](#endpoints-available)

### /issue

Executes a payment operation to issue an asset (excluding XRP) to the distributor.

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

#### Request Body

| Name                                        | Type   | Description                                               |
| ------------------------------------------- | ------ | --------------------------------------------------------- |
| rpc                                         | String | Remote procedural call URL.                               |
| chainId<mark style="color:red;">\*</mark>   | String | Refer to the [Chain ID ](/ids/chain-ids)page for details. |
| chainSymbol                                 | String | Refer to the [Chain ID ](/ids/chain-ids)page for details. |
| issuer<mark style="color:red;">\*</mark>    | String | Public address of the issuer of the asset.                |
| assetCode<mark style="color:red;">\*</mark> | String | The code of asset to be issued.                           |
| amount<mark style="color:red;">\*</mark>    | String | The amount at asset to be issued.                         |
| to<mark style="color:red;">\*</mark>        | String | The public address of the distributor.                    |
| destinationTag                              | String |                                                           |

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

```json
{
    "chainId": "1600",
    "to": "rogue5HnPRSszD9CWGSUz8UGHMVwSSKF6",
    "amount": "1000000",
    "assetCode": "USD",
    "issuer": "rrpNnNLKrartuEqfJGpqyDwPj1AFPg9vn1",
    "destinationTag": "10"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1600",
        "from": "rrpNnNLKrartuEqfJGpqyDwPj1AFPg9vn1",
        "fee": "12",
        "data": "eyJUcmFuc2FjdGlvblR5cGUiOiJQYXltZW50IiwiQWNjb3VudCI6InJycE5uTkxLcmFydHVFcWZKR3BxeUR3UGoxQUZQZzl2bjEiLCJBbW91bnQiOnsiY3VycmVuY3kiOiJVU0QiLCJ2YWx1ZSI6IjAuMDAwMDAwMDAxMDAwMDAwIiwiaXNzdWVyIjoicnJwTm5OTEtyYXJ0dUVxZkpHcHF5RHdQajFBRlBnOXZuMSJ9LCJEZXN0aW5hdGlvbiI6InJvZ3VlNUhuUFJTc3pEOUNXR1NVejhVR0hNVndTU0tGNiIsIkZsYWdzIjowLCJGZWUiOiIxMiIsIlNlcXVlbmNlIjo2MDMwMCwiTGFzdExlZGdlclNlcXVlbmNlIjo4OTUxODA4NX0=",
        "referenceId": "7b47c87345334b79837d013b55b37e41"
    }
}
```

{% endtab %}
{% endtabs %}

[<mark style="color:blue;">back to top</mark>](#endpoints-available)

### /transfer

Trigger a payment operation to send an amount in a specific asset (XLM or non-XLM) to a destination account.

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

#### Request Body

| Name                                        | Type   | Description                                               |
| ------------------------------------------- | ------ | --------------------------------------------------------- |
| rpc                                         | String | Remote procedural call URL.                               |
| chainId<mark style="color:red;">\*</mark>   | String | Refer to the [Chain ID ](/ids/chain-ids)page for details. |
| chainSymbol                                 | String | Refer to the [Chain ID ](/ids/chain-ids)page for details. |
| from<mark style="color:red;">\*</mark>      | String | Public address of sender of asset.                        |
| to<mark style="color:red;">\*</mark>        | String | Public address of the receiver   of the asset.            |
| amount<mark style="color:red;">\*</mark>    | String | Amount of asset to transfer.                              |
| issuer<mark style="color:red;">\*</mark>    | String | Public address of the issuer of the asset.                |
| assetCode<mark style="color:red;">\*</mark> | String | The code of the asset to transfer.                        |

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

```json
{
    "chainId": "1600",
    "from": "rogue5HnPRSszD9CWGSUz8UGHMVwSSKF6",
    "to": "r3KFdr7FTU1hxo9DbS1h65Wq8MXG7e9cgK",
    "amount": "100000",
    "assetCode": "USD",
    "issuer":"rrpNnNLKrartuEqfJGpqyDwPj1AFPg9vn1"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1600",
        "from": "rogue5HnPRSszD9CWGSUz8UGHMVwSSKF6",
        "to": "r3KFdr7FTU1hxo9DbS1h65Wq8MXG7e9cgK",
        "fee": "12",
        "data": "eyJUcmFuc2FjdGlvblR5cGUiOiJQYXltZW50IiwiQWNjb3VudCI6InJycE5uTkxLcmFydHVFcWZKR3BxeUR3UGoxQUZQZzl2bjEiLCJBbW91bnQiOnsiY3VycmVuY3kiOiJVU0QiLCJ2YWx1ZSI6IjAuMDAwMDAwMDAwMTAwMDAwIiwiaXNzdWVyIjoicnJwTm5OTEtyYXJ0dUVxZkpHcHF5RHdQajFBRlBnOXZuMSJ9LCJEZXN0aW5hdGlvbiI6InIzS0ZkcjdGVFUxaHhvOURiUzFoNjVXcThNWEc3ZTljZ0siLCJGbGFncyI6MCwiRmVlIjoiMTIiLCJTZXF1ZW5jZSI6NjAzMDAsIkxhc3RMZWRnZXJTZXF1ZW5jZSI6ODk1MTgxMDh9",
        "referenceId": "b30e2a560ae64ad6bb50e0f1929cf66c"
    }
}
```

{% endtab %}
{% endtabs %}

[<mark style="color:blue;">back to top</mark>](#endpoints-available)

### /burn

Executes a transaction to burn or delete an asset.

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

#### Request Body

| Name                                        | Type   | Description                                               |
| ------------------------------------------- | ------ | --------------------------------------------------------- |
| rpc                                         | String | Remote procedural call URL.                               |
| chainId<mark style="color:red;">\*</mark>   | String | Refer to the [Chain ID ](/ids/chain-ids)page for details. |
| chainSymbol                                 | String | Refer to the [Chain ID ](/ids/chain-ids)page for details. |
| from<mark style="color:red;">\*</mark>      | String | Public address of the distributor of asset.               |
| amount<mark style="color:red;">\*</mark>    | String | The amount of asset to burn                               |
| issuer<mark style="color:red;">\*</mark>    | String | Public address of the issuer of the asset.                |
| assetCode<mark style="color:red;">\*</mark> | String | The code of asset to burn                                 |

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

```json
{
    "chainId": "1600",
    "issuer": "rrpNnNLKrartuEqfJGpqyDwPj1AFPg9vn1",
    "assetCode": "USD",
    "amount": "10000",
    "from": "rogue5HnPRSszD9CWGSUz8UGHMVwSSKF6"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1600",
        "from": "rogue5HnPRSszD9CWGSUz8UGHMVwSSKF6",
        "fee": "12",
        "data": "eyJUcmFuc2FjdGlvblR5cGUiOiJQYXltZW50IiwiQWNjb3VudCI6InJvZ3VlNUhuUFJTc3pEOUNXR1NVejhVR0hNVndTU0tGNiIsIkFtb3VudCI6eyJjdXJyZW5jeSI6IlVTRCIsInZhbHVlIjoiMC4wMDAwMDAwMDAwMTAwMDAiLCJpc3N1ZXIiOiJycnBObk5MS3JhcnR1RXFmSkdwcXlEd1BqMUFGUGc5dm4xIn0sIkRlc3RpbmF0aW9uIjoicnJwTm5OTEtyYXJ0dUVxZkpHcHF5RHdQajFBRlBnOXZuMSIsIkZsYWdzIjowLCJGZWUiOiIxMiIsIlNlcXVlbmNlIjo1NTAwOTAwLCJMYXN0TGVkZ2VyU2VxdWVuY2UiOjg5NTE4MTI0fQ==",
        "referenceId": "d1f18b73e93e40a580abdd6bcb07cfde"
    }
}
```

{% endtab %}
{% endtabs %}

[<mark style="color:blue;">back to top</mark>](#endpoints-available)

### /freeze

Executes a transaction to revoke an existing trustline’s authorization, thereby freezing the asset held by an account.

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

#### Request Body

| Name                                        | Type   | Description                                               |
| ------------------------------------------- | ------ | --------------------------------------------------------- |
| rpc                                         | String | Remote procedural call URL.                               |
| chainId<mark style="color:red;">\*</mark>   | String | Refer to the [Chain ID ](/ids/chain-ids)page for details. |
| chainSymbol                                 | String | Refer to the [Chain ID ](/ids/chain-ids)page for details. |
| user<mark style="color:red;">\*</mark>      | String | Public address of user to be freezed.                     |
| issuer<mark style="color:red;">\*</mark>    | String | Public address of the issuer of the asset.                |
| assetCode<mark style="color:red;">\*</mark> | String | The code of the asset to freeze                           |

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

```json
{
    "chainId": "1600",
    "issuer": "rrpNnNLKrartuEqfJGpqyDwPj1AFPg9vn1",
    "assetCode": "USD",
    "amount": "10000",
    "user": "rogue5HnPRSszD9CWGSUz8UGHMVwSSKF6"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1600",
        "from": "rrpNnNLKrartuEqfJGpqyDwPj1AFPg9vn1",
        "fee": "12",
        "data": "eyJUcmFuc2FjdGlvblR5cGUiOiJUcnVzdFNldCIsIkFjY291bnQiOiJycnBObk5MS3JhcnR1RXFmSkdwcXlEd1BqMUFGUGc5dm4xIiwiTGltaXRBbW91bnQiOnsidmFsdWUiOiIwLjAwMDAwMDAwMDAxMDAwMCIsImN1cnJlbmN5IjoiVVNEIiwiaXNzdWVyIjoicm9ndWU1SG5QUlNzekQ5Q1dHU1V6OFVHSE1Wd1NTS0Y2In0sIkZsYWdzIjoxMDQ4NTc2LCJGZWUiOiIxMiIsIlNlcXVlbmNlIjo2MDMwMCwiTGFzdExlZGdlclNlcXVlbmNlIjo4OTUxODEzNX0=",
        "referenceId": "c71ff35024f3435f8262c858c117cb5a"
    }
}
```

{% endtab %}
{% endtabs %}

[<mark style="color:blue;">back to top</mark>](#endpoints-available)

### Error Handling Details

<table><thead><tr><th width="253">Error</th><th>Description</th></tr></thead><tbody><tr><td>400 (Bad Request)</td><td>Indicates the request is invalid or missing the required parameters. The msg field will contain details about the error.</td></tr><tr><td>401 (Unauthorised)</td><td>Indicates the request lacks valid authentication credentials (API key). Ensure that you provide a valid API key in the request headers.</td></tr><tr><td>404 (Not Found)</td><td>Indicates that the specified endpoint or resource does not exist.</td></tr><tr><td>500 (Server Error)</td><td>Indicates an internal server error.</td></tr></tbody></table>

[<mark style="color:blue;">back to top</mark>](#endpoints-available)


# Bridges

We are providing connectivity across multiple chains via Bridges.&#x20;

Following are the common functions implemented for Bridge Protocol:&#x20;

<table><thead><tr><th width="150">Name</th><th width="150">Type</th><th>Description</th></tr></thead><tbody><tr><td>getprice</td><td>Read</td><td>Get the swap quotation for the given token pairs.</td></tr><tr><td>getliquidity</td><td>Read</td><td>Get the balance of a particular token pair of an account.</td></tr><tr><td>gettransaction</td><td>Read</td><td>Get details of a transaction.</td></tr><tr><td>getsignature</td><td>Read</td><td>Retrieves the signature details using the transaction hash of swap.</td></tr><tr><td>getsupportedchains</td><td>Read</td><td>Get the list of chains supported by Squid Router, on expand.network.</td></tr><tr><td>getsupportedtokens</td><td>Read</td><td>Get the list of tokens supported by Squid Router, on the specified chain, on expand.network.</td></tr><tr><td>getroute</td><td>Read</td><td><p>Get the route details as to how the tokens will be bridged, token amount, etc. </p><p>Available on Squid Router</p></td></tr><tr><td>swap</td><td>Write</td><td>Swap assets across multiple chains.</td></tr><tr><td>unlock</td><td>Write</td><td>Initiate the transaction to unlock asset on the destination chain.</td></tr><tr><td>addliquidity</td><td>Write</td><td>Loan your assets to the specified bridge.</td></tr><tr><td>removeliquidity</td><td>Write</td><td>Remove user liquidity across multiple chains.</td></tr><tr><td><a href="#quoteaggregator">quoteaggregator</a></td><td>Read</td><td>Returns a list of all the quotes on different bridges.</td></tr><tr><td><a href="#swapaggregator">swapaggregator</a></td><td>Write</td><td>Returns the aggregated prepared swap quotes for every Bridges, in which the swap is present.</td></tr><tr><td><a href="#swapwithapproval">swapwithapproval</a></td><td>Write</td><td>Returns the approve and swap transaction on a DEX supported by Expand.</td></tr><tr><td><a href="#tokens">tokens</a></td><td>Read</td><td>Returns a list of all the tokens on different Bridges.</td></tr></tbody></table>

### /quoteaggregator

Returns a list of all the quotes for a pool on different Bridges.

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

#### Query Parameters

<table><thead><tr><th width="198.30078125">Name</th><th width="87.109375">Type</th><th>Description</th></tr></thead><tbody><tr><td>srcChainId</td><td>String</td><td>Refer to the <a href="/pages/j8moVeo4hEN1sYiRHQ5x">Chain ID </a>page for details. </td></tr><tr><td>srcTokenSymbol<mark style="color:red;">*</mark></td><td>String</td><td>Source token symbol</td></tr><tr><td>dstChainId<mark style="color:red;">*</mark></td><td>String</td><td>Refer to the <a href="/pages/j8moVeo4hEN1sYiRHQ5x">Chain ID </a>page for details. </td></tr><tr><td>dstTokenSymbol<mark style="color:red;">*</mark></td><td>String</td><td>Destination token symbol</td></tr><tr><td>amountIn<mark style="color:red;">*</mark></td><td>String</td><td>Amount of source token.</td></tr><tr><td>excludedBridges</td><td>String</td><td>Comma-separated values of bridges to exclude.</td></tr></tbody></table>

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

```url
https://api.expand.network/bridge/quoteaggregator?srcTokenSymbol=USDC&srcChainId=10&dstChainId=1&dstTokenSymbol=USDC&amountIn=10000000
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": [
        {
            "bridgeId": "600",
            "bridgeName": "SquidRouterV2",
            "srcChainId": "10",
            "dstChainId": "1",
            "srcTokenSymbol": "USDC",
            "dstTokenSymbol": "USDC",
            "amountIn": "10000000",
            "amountsOut": [
                "10000000",
                "7054326"
            ]
        },
        {
            "bridgeId": "400",
            "bridgeName": "AllbridgeCore",
            "srcChainId": "10",
            "dstChainId": "1",
            "srcTokenSymbol": "USDC",
            "dstTokenSymbol": "USDC",
            "amountIn": "10000000",
            "amountsOut": [
                "10000000",
                "9990000"
            ]
        },
        {
            "bridgeId": "500",
            "bridgeName": "StargateV2",
            "srcChainId": "10",
            "dstChainId": "1",
            "srcTokenSymbol": "USDC",
            "dstTokenSymbol": "USDC",
            "amountIn": "10000000",
            "amountsOut": [
                "10000000",
                "9984999"
            ]
        }
    ]
}
```

{% endtab %}
{% endtabs %}

### /swapaggregator

Returns the aggregated prepared swap quotes for every Bridges, in which the swap is present.

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

#### Request Body

<table><thead><tr><th width="191.2578125">Name</th><th width="97.50390625">Type</th><th>Description</th></tr></thead><tbody><tr><td>srcChainId</td><td>String</td><td>Refer to the <a href="/pages/j8moVeo4hEN1sYiRHQ5x">Chain ID </a>page for details. </td></tr><tr><td>srcTokenSymbol<mark style="color:red;">*</mark></td><td>String</td><td>Source token symbol</td></tr><tr><td>dstChainId<mark style="color:red;">*</mark></td><td>String</td><td>Refer to the <a href="/pages/j8moVeo4hEN1sYiRHQ5x">Chain ID </a>page for details. </td></tr><tr><td>dstTokenSymbol<mark style="color:red;">*</mark></td><td>String</td><td>Destination token symbol</td></tr><tr><td>amountIn<mark style="color:red;">*</mark></td><td>String</td><td>Amount of source token.</td></tr><tr><td>from<mark style="color:red;">*</mark></td><td>String</td><td>Address of the sender of the token.</td></tr><tr><td>to<mark style="color:red;">*</mark></td><td>String</td><td>Address of the recipient of the token.</td></tr><tr><td>gas<mark style="color:red;">*</mark></td><td>String</td><td>Maximum gas limit provided by the sender, for the transaction.</td></tr><tr><td>excludedBridges</td><td>String</td><td>Comma-separated values of bridges to exclude.</td></tr><tr><td>bestNetPrice</td><td>Boolean</td><td>If true, the endpoint will sort the prepared transactions by amountsOut minus the amount of gas in descending order.<br><br><em>Note: If you select "true" for the "</em>bestQuote<em>", "</em>lowestGas<em>" and "</em>bestNetPrice" <em>parameters, the "</em>bestNetPrice<em>" parameter will apply.</em></td></tr><tr><td>bestQuote</td><td>Boolean</td><td>If true, the endpoint will sort the prepared transactions by amountsOut (the best quote) in descending order<br><br><em>Note: If you select "true" for the "</em>bestQuote<em>", "</em>lowestGas<em>" and "</em>bestNetPrice" <em>parameters, the "</em>bestNetPrice<em>" parameter will apply.</em></td></tr><tr><td>lowestGas</td><td>Boolean</td><td>If true, the endpoint will sort the prepared transactions by amount of gas in ascending order<br><br><em>Note: If you select "true" for the "</em>bestQuote<em>", "</em>lowestGas<em>" and "</em>bestNetPrice" <em>parameters, the "</em>bestNetPrice<em>" parameter will apply.</em></td></tr><tr><td>gasPriority</td><td>String</td><td>low, medium, or high.</td></tr></tbody></table>

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

```json
{
    "srcChainId": "10",
    "dstChainId": "1",
    "srcTokenSymbol": "USDC",
    "dstTokenSymbol": "USDC",
    "amountIn": "10000000",
    "gas": "3000",
    "from": "0xd8da6bf26964af9d7eed9e03e53415d37aa96045",
    "to": "0xd8da6bf26964af9d7eed9e03e53415d37aa96045",
    "cheapestSwap": false,
    "bestSwap": true,
    "bestNetPrice": false
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": [
        {
            "bridgeId": "400",
            "bridgeName": "AllbridgeCore",
            "chainId": "10",
            "gas": "3000",
            "from": "0xd8da6bf26964af9d7eed9e03e53415d37aa96045",
            "to": "0x08391edF36f41f05d27A1e0fD7a29448417C1CD0",
            "value": "2979066141683504",
            "data": "0x7dfb08f10000000000000000000000000000000000000000000000000000000000989680000000000000000000000000d8da6bf26964af9d7eed9e03e53415d37aa9604500000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000",
            "amountsOut": "9990000",
            "estimationCheck": true,
            "referenceId": "7dc5c003b1474a6b8042be19029a19fd"
        },
        {
            "bridgeId": "500",
            "bridgeName": "StargateV2",
            "chainId": "10",
            "from": "0xd8da6bf26964af9d7eed9e03e53415d37aa96045",
            "to": "0xcE8CcA271Ebc0533920C83d39F417ED6A0abB7D0",
            "value": "3275441876392045",
            "gas": "3000",
            "data": "0xc7c7f5b30000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000ba2ff3d86586d0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000d8da6bf26964af9d7eed9e03e53415d37aa960450000000000000000000000000000000000000000000000000000000000007595000000000000000000000000d8da6bf26964af9d7eed9e03e53415d37aa960450000000000000000000000000000000000000000000000000000000000989680000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010100000000000000000000000000000000000000000000000000000000000000",
            "amountsOut": "9984999",
            "estimationCheck": true,
            "referenceId": "7dc5c003b1474a6b8042be19029a19fd"
        }
    ]
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
**With gasPriority:**

```json
{
    "srcChainId": "10",
    "dstChainId": "1",
    "srcTokenSymbol": "USDC",
    "dstTokenSymbol": "USDC",
    "amountIn": "10000000",
    "gas": "3000",
    "from": "0xd8da6bf26964af9d7eed9e03e53415d37aa96045",
    "to": "0xd8da6bf26964af9d7eed9e03e53415d37aa96045",
    "cheapestSwap": false,
    "bestSwap": true,
    "bestNetPrice": false,
    "gasPriority": "medium"
}
```

{% endtab %}

{% tab title="Sample Response" %}
**With gasPriority:**

```json
{
    "status": 200,
    "msg": "success",
    "data": [
        {
            "bridgeId": "400",
            "bridgeName": "AllbridgeCore",
            "chainId": "10",
            "gas": "3000",
            "from": "0xd8da6bf26964af9d7eed9e03e53415d37aa96045",
            "to": "0x08391edF36f41f05d27A1e0fD7a29448417C1CD0",
            "value": "2979066141683504",
            "data": "0x7dfb08f10000000000000000000000000000000000000000000000000000000000989680000000000000000000000000d8da6bf26964af9d7eed9e03e53415d37aa9604500000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000",
            "gasPrice": "1200571",
            "amountsOut": "9990000",
            "estimationCheck": true,
            "referenceId": "0bf0efaaf78845b684dc360640c6b4a2"
        },
        {
            "bridgeId": "500",
            "bridgeName": "StargateV2",
            "chainId": "10",
            "from": "0xd8da6bf26964af9d7eed9e03e53415d37aa96045",
            "to": "0xcE8CcA271Ebc0533920C83d39F417ED6A0abB7D0",
            "value": "3275441876392045",
            "gas": "3000",
            "data": "0xc7c7f5b30000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000ba2ff3d86586d0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000d8da6bf26964af9d7eed9e03e53415d37aa960450000000000000000000000000000000000000000000000000000000000007595000000000000000000000000d8da6bf26964af9d7eed9e03e53415d37aa960450000000000000000000000000000000000000000000000000000000000989680000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010100000000000000000000000000000000000000000000000000000000000000",
            "gasPrice": "1200572",
            "amountsOut": "9984999",
            "estimationCheck": true,
            "referenceId": "0bf0efaaf78845b684dc360640c6b4a2"
        }
    ]
}
```

{% endtab %}
{% endtabs %}

### /swapwithapproval

Returns the approve and swap transaction on a DEX supported by Expand.

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

#### Request Body

<table data-full-width="false"><thead><tr><th>Name</th><th>Type</th><th>Description</th></tr></thead><tbody><tr><td>bridgeId</td><td>String</td><td>Refer to the <a href="/pages/ML7k06QLJEhgsTl9Nty4">Bridge_ID</a> page for details. </td></tr><tr><td>amountIn<mark style="color:red;">*</mark></td><td>String</td><td>Amount of src token</td></tr><tr><td>amountOutMin<mark style="color:red;">*</mark></td><td>String</td><td>Minimum amount accepted as the result of the swap.</td></tr><tr><td>srcChainId<mark style="color:red;">*</mark></td><td>String</td><td>The unique chain ID to specify the source chain.</td></tr><tr><td>srcTokenSymbol</td><td>String</td><td>Symbol of the token to swap.</td></tr><tr><td>dstChainId</td><td>String</td><td>The unique chain ID to specify the destination chain.</td></tr><tr><td>dstTokenSymbol</td><td>String</td><td>Symbol of the token to be received after the swap.</td></tr><tr><td>from</td><td>String</td><td>Address of the token sender.</td></tr><tr><td>to</td><td>String</td><td>Address of the token recipient.</td></tr><tr><td>enableFee</td><td>String</td><td>Flag to include a basis points fee transaction alongside the main transaction when set to true.</td></tr><tr><td>gasPriority</td><td>String</td><td>Specifies the priority level for gas fees (e.g., 'low', 'medium', or 'high'), which influences the transaction speed and cost.</td></tr><tr><td>gas</td><td>String</td><td>Maximum gas to be approved for the transaction.</td></tr><tr><td>slippage</td><td>String</td><td>Percentage of total swap value allowed for slippage. Default is 1 (0 &#x3C;= slippage &#x3C;= 100).</td></tr></tbody></table>

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

```json
{
  "bridgeId": "600",
  "srcChainId": "1",
  "dstChainId": "1",
  "srcTokenSymbol": "USDT",
  "dstTokenSymbol": "ETH",
  "amountIn": "10000",
  "amountOutMin": "0",
  "from": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
  "to": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
  "gasPriority": "low",
  "srcChainSymbol": "ETH"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": [
        {
            "chainId": "1",
            "from": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
            "to": "0xdac17f958d2ee523a2206206994597c13d831ec7",
            "gas": "58709",
            "value": "0",
            "data": "0x095ea7b3000000000000000000000000ce16f69375520ab01377ce7b88f5ba8c48f8d6660000000000000000000000000000000000000000000000000000000000002710",
            "estimationCheck": true,
            "referenceId": "c67d20eac12244afb44a7790f0e023a4"
        },
        {
            "chainId": "1",
            "from": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
            "to": "0xce16F69375520ab01377ce7B88f5BA8C48F8D666",
            "value": "0",
            "gas": "500000",
            "data": "0x58181a80000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec700000000000000000000000000000000000000000000000000000000000027100000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000002400000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000058000000000000000000000000000000000000000000000000000000000000007a000000000000000000000000000000000000000000000000000000000000009000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec7000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000044095ea7b3000000000000000000000000bebc44782c7db0a1a60cb6fe97d0b483032ff1c70000000000000000000000000000000000000000000000000000000000002710000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec700000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000bebc44782c7db0a1a60cb6fe97d0b483032ff1c7000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000000843df0212400000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000271000000000000000000000000000000000000000000000000000000000000026fe000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec700000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000044095ea7b300000000000000000000000068b3465833fb72a70ecdf485e0e4c7bd8665fc45ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb480000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000100000000000000000000000068b3465833fb72a70ecdf485e0e4c7bd8665fc45000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000001c000000000000000000000000000000000000000000000000000000000000000e404e45aaf000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc200000000000000000000000000000000000000000000000000000000000001f4000000000000000000000000ad6cea45f98444a922a2b4fe96b8c90f0862d2f40000000000000000000000000000000000000000000000000000000000002714000000000000000000000000000000000000000000000000000003a12a1bf34d0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb4800000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000001000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000242e1a7d4d0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000dae2f6eddda6fb4fb60cc02633de27e2b431b402000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000000000000000000eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee000000000000000000000000000000000000000000000000000000000000000032df1b90bfd291abb83ceefbd9fffb23",
            "gasPrice": "1008994442",
            "estimationCheck": "Returned error: execution reverted",
            "referenceId": "c67d20eac12244afb44a7790f0e023a4"
        }
    ]
}
```

{% endtab %}
{% endtabs %}

### /tokens

Returns a list of all the tokens on different Bridges.

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

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

```url
https://api.expand.network/bridge/tokens
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
  "status": 200,
  "msg": "success",
  "data": {
    "tokens": [
      {
        "tokenSymbol": "ETH",
        "tokenLogo": "https://images.ctfassets.net/hwqnbx905qdp/2V6xdLR6kRWA2CZw69FFFD/44d048754ba5d88972c7730428814e18/eip155_59144-0x0000000000000000000000000000000000000000.webp",
        "chainName": "Ethereum",
        "chainId": "1",
        "chainLogo": "https://images.ctfassets.net/hwqnbx905qdp/1uwuF76WP6poLF5am22HFZ/bcece6e735a0d8505d23de16fdd7b89f/Protocol_Ethereum.svg",
        "address": "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
        "decimals": "18",
        "Bridge": [
          {
            "name": "SquidRouterV2",
            "bridgeLogo": "https://images.ctfassets.net/hwqnbx905qdp/1ptMumndRYWNZkcuG7Y419/f05746309bec43247338bec4bd480072/Squid_Icon_Logo_Purple.svg"
          }
        ]
      },
      {
        "tokenSymbol": "MKR",
        "tokenLogo": "https://images.ctfassets.net/hwqnbx905qdp/4gAi9Le5bqRTPzbdcxjEA8/c3a165cd4c071a8d5c986c572020924e/eip155_137-0x6f7c932e7684666c9fd1d44527765433e01ff61d.webp",
        "chainName": "Ethereum",
        "chainId": "1",
        "chainLogo": "https://images.ctfassets.net/hwqnbx905qdp/1uwuF76WP6poLF5am22HFZ/bcece6e735a0d8505d23de16fdd7b89f/Protocol_Ethereum.svg",
        "address": "0x9f8f72aa9304c8b593d555f12ef6589cc3a579a2",
        "decimals": "18",
        "Bridge": [
          {
            "name": "SquidRouterV2",
            "bridgeLogo": "https://images.ctfassets.net/hwqnbx905qdp/1ptMumndRYWNZkcuG7Y419/f05746309bec43247338bec4bd480072/Squid_Icon_Logo_Purple.svg"
          }
        ]
      },
      {
        "tokenSymbol": "ARB",
        "tokenLogo": "https://images.ctfassets.net/hwqnbx905qdp/wdG5xcaZud3vJeNeeRHJN/c024fc6a9e986979bd6ceee302a4d019/eip155_42170-0xf823c3cd3cebe0a1fa952ba88dc9eef8e0bf46ad.webp",
        "chainName": "Ethereum",
        "chainId": "1",
        "chainLogo": "https://images.ctfassets.net/hwqnbx905qdp/1uwuF76WP6poLF5am22HFZ/bcece6e735a0d8505d23de16fdd7b89f/Protocol_Ethereum.svg",
        "address": "0xb50721bcf8d664c30412cfbc6cf7a15145234ad1",
        "decimals": "18",
        "Bridge": [
          {
            "name": "SquidRouterV2",
            "bridgeLogo": "https://images.ctfassets.net/hwqnbx905qdp/1ptMumndRYWNZkcuG7Y419/f05746309bec43247338bec4bd480072/Squid_Icon_Logo_Purple.svg"
          }
        ]
      },
      {
        "tokenSymbol": "BAL",
        "tokenLogo": "https://images.ctfassets.net/hwqnbx905qdp/60wYr5bMHrqQQ82l4LUdTr/1ef5ee96a9f71110c28c0696495ba4c6/eip155_8453-0x4158734d47fc9692176b5085e0f52ee0da5d47f1.webp",
        "chainName": "Ethereum",
        "chainId": "1",
        "chainLogo": "https://images.ctfassets.net/hwqnbx905qdp/1uwuF76WP6poLF5am22HFZ/bcece6e735a0d8505d23de16fdd7b89f/Protocol_Ethereum.svg",
        "address": "0xba100000625a3754423978a60c9317c58a424e3d",
        "decimals": "18",
        "Bridge": [
          {
            "name": "SquidRouterV2",
            "bridgeLogo": "https://images.ctfassets.net/hwqnbx905qdp/1ptMumndRYWNZkcuG7Y419/f05746309bec43247338bec4bd480072/Squid_Icon_Logo_Purple.svg"
          }
        ]
      }
    ]
  }
}
```

{% endtab %}
{% endtabs %}


# Stargate

### /getsupportedchains

Get the list of chains supported by Squid Router, on expand.network.

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

#### Query Parameters

| Name                                       | Type   | Description                                                 |
| ------------------------------------------ | ------ | ----------------------------------------------------------- |
| bridgeId<mark style="color:red;">\*</mark> | String | Refer to the [Bridge ID](/ids/bridge-ids) page for details. |
| rpc                                        | String | Remote procedural call URL.                                 |

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

```url
https://api.expand.network/bridge/getsupportedchains?bridgeId=100
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": [
        {
            "chainName": "Ethereum",
            "chainId": "1",
            "srcChainSupported": true,
            "dstChainSupported": true
        },
        {
            "chainName": "Optimism",
            "chainId": "10",
            "srcChainSupported": true,
            "dstChainSupported": true
        },
        {
            "chainName": "Binance Smart Chain",
            "chainId": "56",
            "srcChainSupported": true,
            "dstChainSupported": true
        },
        {
            "chainName": "Polygon",
            "chainId": "137",
            "srcChainSupported": true,
            "dstChainSupported": true
        },
        {
            "chainName": "Fantom",
            "chainId": "250",
            "srcChainSupported": true,
            "dstChainSupported": true
        },
        {
            "chainName": "Metis",
            "chainId": "1088",
            "srcChainSupported": false,
            "dstChainSupported": true
        },
        {
            "chainName": "Kava",
            "chainId": "2222",
            "srcChainSupported": false,
            "dstChainSupported": true
        },
        {
            "chainName": "Mantle",
            "chainId": "5000",
            "srcChainSupported": true,
            "dstChainSupported": true
        },
        {
            "chainName": "Base",
            "chainId": "8453",
            "srcChainSupported": true,
            "dstChainSupported": true
        },
        {
            "chainName": "Arbitrum",
            "chainId": "42161",
            "srcChainSupported": true,
            "dstChainSupported": true
        },
        {
            "chainName": "Avalanche",
            "chainId": "43114",
            "srcChainSupported": true,
            "dstChainSupported": true
        },
        {
            "chainName": "Linea",
            "chainId": "59144",
            "srcChainSupported": true,
            "dstChainSupported": true
        }
    ]
}
```

{% endtab %}
{% endtabs %}

### /getsupportedtokens

Get the list of tokens supported by Squid Router, on the specified chain, on expand.network.

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

#### Query Parameters

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

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

```url
https://api.expand.network/bridge/getsupportedtokens?bridgeId=100&chainId=1
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": [
        {
            "tokenSymbol": "USDC",
            "address": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"
        },
        {
            "tokenSymbol": "USDT",
            "address": "0xdAC17F958D2ee523a2206206994597C13D831ec7"
        },
        {
            "tokenSymbol": "USDD",
            "address": "0x0C10bF8FcB7Bf5412187A595ab97a3609160b5c6"
        },
        {
            "tokenSymbol": "SGETH",
            "address": "0x72E2F4830b9E45d52F80aC08CB2bEC0FeF72eD9c"
        },
        {
            "tokenSymbol": "DAI",
            "address": "0x6B175474E89094C44Da98b954EedeAC495271d0F"
        },
        {
            "tokenSymbol": "FRAX",
            "address": "0x853d955aCEf822Db058eb8505911ED77F175b99e"
        },
        {
            "tokenSymbol": "SUSD",
            "address": "0x57Ab1ec28D129707052df4dF418D58a2D46d5f51"
        },
        {
            "tokenSymbol": "LUSD",
            "address": "0x5f98805A4E8be255a32880FDeC7F6728C6568bA0"
        },
        {
            "tokenSymbol": "METIS",
            "address": "0x9e32b13ce7f2e80a01932b42553652e053d6ed8e"
        },
        {
            "tokenSymbol": "METH",
            "address": "0xd5F7838F5C461fefF7FE49ea5ebaF7728bB0ADfa"
        }
    ]
}
```

{% endtab %}
{% endtabs %}

### /getliquidity

Get the balance of a particular token pair of an account.

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

#### Query Parameters

| Name                                          | Type   | Description                                                 |
| --------------------------------------------- | ------ | ----------------------------------------------------------- |
| rpc                                           | String | Remote procedural call URL.                                 |
| poolAddress<mark style="color:red;">\*</mark> | String | Address of the pool.                                        |
| address                                       | String | Sender's public address.                                    |
| srcChainId                                    | String | Refer to the [Chain ID](/ids/chain-ids) page for details.   |
| bridgeId                                      | String | Refer to the [Bridge ID](/ids/bridge-ids) page for details. |
| srcChainSymbol                                | String | Source Chain Symbol.                                        |

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

```url
https://api.expand.network/bridge/getliquidity?bridgeId=100&poolAddress=0xdf0770dF86a8034b3EFEf0A1Bb3c889B8332FF56&srcChainId=1
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "poolId": "1",
        "poolName": "USD Coin-LP",
        "tokenAddress": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
        "totalLiquidity": "44319250983738"
    }
}
```

{% endtab %}
{% endtabs %}

### /gettransaction

Get details of a transaction.

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

#### Query Parameters

| Name                                              | Type   | Description                                                                                                                |
| ------------------------------------------------- | ------ | -------------------------------------------------------------------------------------------------------------------------- |
| rpc                                               | String | Remote procedural call URL.                                                                                                |
| transactionHash<mark style="color:red;">\*</mark> | String | The transaction hash.                                                                                                      |
| bridgeId                                          | String | Refer to the [Bridge ID](/ids/bridge-ids) page for details.                                                                |
| srcChainId                                        | String | <p>By default, Ethereum mainnet.<br>Refer to the <a href="/pages/5o1xMsQPqXw9GBfGTpdB">Chain ID </a>page for details. </p> |
| srcChainSymbol                                    | String | Source Chain Symbol.                                                                                                       |

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

```
https://api.expand.network/bridge/gettransaction?bridgeId=100&network=mainnet&srcChainId=137&transactionHash=0xe8a0ebe3d5c36879c5a951c9faf65608b8a9c8b2e7e3c8471e25f5767a390b28
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "status": "EXECUTED",
        "srcTx": {
            "chainId": "137",
            "hash": "0xe8a0ebe3d5c36879c5a951c9faf65608b8a9c8b2e7e3c8471e25f5767a390b28",
            "transactionStatus": true,
            "blockNumber": "46565902",
            "timestamp": null,
            "from": "0x23713B8033d058bF06AeEF1ac31f598FD6E63670",
            "to": "0xFFdF4Fe05899C4BdB1676e958FA9F21c19ECB9D5",
            "value": "2002624217015228761",
            "transactionFees": "20850741059037520",
            "gas": "302431",
            "gasPrice": "80611547567",
            "input": "0xcfc93274000000000000000000000000141a1fb33683c304da7c3fe6fc6a49b5c0c2dc4200000000000000000000000000000000000000000000000000000000000c6e5c000000000000000000000000000000000000000000000000000000000000006600000000000000000000000023713b8033d058bf06aeef1ac31f598fd6e6367000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000002200010000000000000000000000000000000000000000000000000000000000055730000000000000000000000000000000000000000000000000000000000000",
            "nonce": 11,
            "type": 2,
            "network": null,
            "v": "0x0",
            "r": "0x67567a964d1cc84ba5bb1e1f5450bdb6d3e6300036c2d187b976682652a9ee27",
            "s": "0x3536dda5e452136cf26158fa98b9a63c7e6970b9ecfb646035366b217f417f11",
            "yParity": "0x0",
            "transactionIndex": 32,
            "accessList": [],
            "maxFeePerGas": "100467218838",
            "maxPriorityFeePerGas": "30000000000",
            "logs": [
                {
                    "address": "0x0000000000000000000000000000000000001010",
                    "topics": [
                        "0xe6497e3ee548a3372136af2fcb0696db31fc6cf20260707645068bd3fe97f3c4",
                        "0x0000000000000000000000000000000000000000000000000000000000001010",
                        "0x00000000000000000000000023713b8033d058bf06aeef1ac31f598fd6e63670",
                        "0x000000000000000000000000ffdf4fe05899c4bdb1676e958fa9f21c19ecb9d5"
                    ],
                    "data": "0x0000000000000000000000000000000000000000000000001bcac01d71c999590000000000000000000000000000000000000000000000008a8c1252cc1222e00000000000000000000000000000000000000000000000a3d1497749a0ee00000000000000000000000000000000000000000000000000006ec152355a4889870000000000000000000000000000000000000000000000a3ed14376712b79959",
                    "blockNumber": 46565902,
                    "transactionHash": "0xe8a0ebe3d5c36879c5a951c9faf65608b8a9c8b2e7e3c8471e25f5767a390b28",
                    "transactionIndex": 32,
                    "blockHash": "0xe39eaa0b9001287d57e7c75b89c2012736f81616b94ac88020d873225249fe02",
                    "logIndex": 139,
                    "removed": false,
                    "id": "log_d25e2c3c"
                },
                {
                    "address": "0x141A1fb33683C304DA7C3fe6fC6a49B5C0c2dC42",
                    "topics": [
                        "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
                        "0x00000000000000000000000023713b8033d058bf06aeef1ac31f598fd6e63670",
                        "0x000000000000000000000000ffdf4fe05899c4bdb1676e958fa9f21c19ecb9d5",
                        "0x00000000000000000000000000000000000000000000000000000000000c6e5c"
                    ],
                    "data": "0x",
                    "blockNumber": 46565902,
                    "transactionHash": "0xe8a0ebe3d5c36879c5a951c9faf65608b8a9c8b2e7e3c8471e25f5767a390b28",
                    "transactionIndex": 32,
                    "blockHash": "0xe39eaa0b9001287d57e7c75b89c2012736f81616b94ac88020d873225249fe02",
                    "logIndex": 140,
                    "removed": false,
                    "id": "log_abf12cbf"
                },
                {
                    "address": "0x0000000000000000000000000000000000001010",
                    "topics": [
                        "0xe6497e3ee548a3372136af2fcb0696db31fc6cf20260707645068bd3fe97f3c4",
                        "0x0000000000000000000000000000000000000000000000000000000000001010",
                        "0x000000000000000000000000ffdf4fe05899c4bdb1676e958fa9f21c19ecb9d5",
                        "0x0000000000000000000000003c2269811836af69497e5f486a85d7316753cf62"
                    ],
                    "data": "0x00000000000000000000000000000000000000000000000017a0efb4592b99590000000000000000000000000000000000000000000000a3ed14376712b7995900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a3d57347b2b98c000000000000000000000000000000000000000000000000000017a0efb4592b9959",
                    "blockNumber": 46565902,
                    "transactionHash": "0xe8a0ebe3d5c36879c5a951c9faf65608b8a9c8b2e7e3c8471e25f5767a390b28",
                    "transactionIndex": 32,
                    "blockHash": "0xe39eaa0b9001287d57e7c75b89c2012736f81616b94ac88020d873225249fe02",
                    "logIndex": 141,
                    "removed": false,
                    "id": "log_bb2f74da"
                },
                {
                    "address": "0x0000000000000000000000000000000000001010",
                    "topics": [
                        "0xe6497e3ee548a3372136af2fcb0696db31fc6cf20260707645068bd3fe97f3c4",
                        "0x0000000000000000000000000000000000000000000000000000000000001010",
                        "0x0000000000000000000000003c2269811836af69497e5f486a85d7316753cf62",
                        "0x0000000000000000000000004d73adb72bc3dd368966edd0f0b2148401a178e2"
                    ],
                    "data": "0x00000000000000000000000000000000000000000000000017a0efb4592b995900000000000000000000000000000000000000000000000017a0efb4592b9959000000000000000000000000000000000000000000000ea895645259761089a10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ea8ad05420dcf3c22fa",
                    "blockNumber": 46565902,
                    "transactionHash": "0xe8a0ebe3d5c36879c5a951c9faf65608b8a9c8b2e7e3c8471e25f5767a390b28",
                    "transactionIndex": 32,
                    "blockHash": "0xe39eaa0b9001287d57e7c75b89c2012736f81616b94ac88020d873225249fe02",
                    "logIndex": 142,
                    "removed": false,
                    "id": "log_fd707542"
                },
                {
                    "address": "0x75dC8e5F50C8221a82CA6aF64aF811caA983B65f",
                    "topics": [
                        "0xdf21c415b78ed2552cc9971249e32a053abce6087a0ae0fbf3f78db5174a3493"
                    ],
                    "data": "0x0000000000000000000000000000000000000000000000000ef47d84108d1959",
                    "blockNumber": 46565902,
                    "transactionHash": "0xe8a0ebe3d5c36879c5a951c9faf65608b8a9c8b2e7e3c8471e25f5767a390b28",
                    "transactionIndex": 32,
                    "blockHash": "0xe39eaa0b9001287d57e7c75b89c2012736f81616b94ac88020d873225249fe02",
                    "logIndex": 143,
                    "removed": false,
                    "id": "log_33bb760e"
                },
                {
                    "address": "0x4D73AdB72bC3DD368966edD0f0b2148401A178E2",
                    "topics": [
                        "0xb0c632f55f1e1b3b2c3d82f41ee4716bb4c00f0f5d84cdafc141581bb8757a4f"
                    ],
                    "data": "0x00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000002200010000000000000000000000000000000000000000000000000000000000055730000000000000000000000000000000000000000000000000000000000000",
                    "blockNumber": 46565902,
                    "transactionHash": "0xe8a0ebe3d5c36879c5a951c9faf65608b8a9c8b2e7e3c8471e25f5767a390b28",
                    "transactionIndex": 32,
                    "blockHash": "0xe39eaa0b9001287d57e7c75b89c2012736f81616b94ac88020d873225249fe02",
                    "logIndex": 144,
                    "removed": false,
                    "id": "log_531e9881"
                },
                {
                    "address": "0x9D88a2f4253b106A1F8e169485490f7230b4276e",
                    "topics": [
                        "0xdaebd99ba0f67a2d7a70d027ab177cad40ce040f65a9c4d98544a5463a172ebd"
                    ],
                    "data": "0x000000000000000000000000000000000000000000000000000000000000006600000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000200000000000000000000000000ffdf4fe05899c4bdb1676e958fa9f21c19ecb9d500000000000000000000000000000000000000000000000008ac7230489e8000",
                    "blockNumber": 46565902,
                    "transactionHash": "0xe8a0ebe3d5c36879c5a951c9faf65608b8a9c8b2e7e3c8471e25f5767a390b28",
                    "transactionIndex": 32,
                    "blockHash": "0xe39eaa0b9001287d57e7c75b89c2012736f81616b94ac88020d873225249fe02",
                    "logIndex": 145,
                    "removed": false,
                    "id": "log_3f354a46"
                },
                {
                    "address": "0x4D73AdB72bC3DD368966edD0f0b2148401A178E2",
                    "topics": [
                        "0xe9bded5f24a4168e4f3bf44e00298c993b22376aad8c58c7dda9718a54cbea82"
                    ],
                    "data": "0x0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000012a0000000000019f11006dffdf4fe05899c4bdb1676e958fa9f21c19ecb9d500663668c325501322ceb5a624e95b9e16a019cdebe8141a1fb33683c304da7c3fe6fc6a49b5c0c2dc42006d50616e6472613a20506978656c50726f776c657200000000000000000000000050616e6472613a20506978656c50726f776c657200000000000000000000000000000000000000000000000000000000000000000000000000000000000c6e5c23713b8033d058bf06aeef1ac31f598fd6e63670006668747470733a2f2f676174657761792e70696e6174612e636c6f75642f697066732f516d57784262464733574a585654447172465550684d754c6d6548714b4e42426b7a5375765179796b37667466692f506978656c50726f776c65722d506f6c79676f6e2e6a736f6e00000000000000000000000000000000000000000000",
                    "blockNumber": 46565902,
                    "transactionHash": "0xe8a0ebe3d5c36879c5a951c9faf65608b8a9c8b2e7e3c8471e25f5767a390b28",
                    "transactionIndex": 32,
                    "blockHash": "0xe39eaa0b9001287d57e7c75b89c2012736f81616b94ac88020d873225249fe02",
                    "logIndex": 146,
                    "removed": false,
                    "id": "log_34d36b38"
                },
                {
                    "address": "0xFFdF4Fe05899C4BdB1676e958FA9F21c19ECB9D5",
                    "topics": [
                        "0xe11d2ca26838f15acb41450029a785bb3d6f909b7f622ebf9c45524ded76f411",
                        "0x0000000000000000000000000000000000000000000000000000000000019f11"
                    ],
                    "data": "0x000000000000000000000000141a1fb33683c304da7c3fe6fc6a49b5c0c2dc4200000000000000000000000000000000000000000000000000000000000c6e5c000000000000000000000000000000000000000000000000000000000000006600000000000000000000000023713b8033d058bf06aeef1ac31f598fd6e6367000000000000000000000000023713b8033d058bf06aeef1ac31f598fd6e63670",
                    "blockNumber": 46565902,
                    "transactionHash": "0xe8a0ebe3d5c36879c5a951c9faf65608b8a9c8b2e7e3c8471e25f5767a390b28",
                    "transactionIndex": 32,
                    "blockHash": "0xe39eaa0b9001287d57e7c75b89c2012736f81616b94ac88020d873225249fe02",
                    "logIndex": 147,
                    "removed": false,
                    "id": "log_828b2c95"
                },
                {
                    "address": "0x0000000000000000000000000000000000001010",
                    "topics": [
                        "0x4dfe1bbbcf077ddc3e01291eea2d5c70c2b422b415d95645b9adcfd678cb1d63",
                        "0x0000000000000000000000000000000000000000000000000000000000001010",
                        "0x00000000000000000000000023713b8033d058bf06aeef1ac31f598fd6e63670",
                        "0x000000000000000000000000a8b52f02108aa5f4b675bdcc973760022d7c6020"
                    ],
                    "data": "0x000000000000000000000000000000000000000000000000001b916a461c2c000000000000000000000000000000000000000000000000008ae2af4965357dd100000000000000000000000000000000000000000000033575fd8f56f4aa1dbd0000000000000000000000000000000000000000000000008ac71ddf1f1951d1000000000000000000000000000000000000000000000335761920c13ac649bd",
                    "blockNumber": 46565902,
                    "transactionHash": "0xe8a0ebe3d5c36879c5a951c9faf65608b8a9c8b2e7e3c8471e25f5767a390b28",
                    "transactionIndex": 32,
                    "blockHash": "0xe39eaa0b9001287d57e7c75b89c2012736f81616b94ac88020d873225249fe02",
                    "logIndex": 148,
                    "removed": false,
                    "id": "log_13d8fe42"
                }
            ]
        },
        "dstTx": {
            "chainId": "56",
            "hash": "0xefd030f66e9c0aaf9bab4006e5bc2c86fb7e3091f6fb4d4b14d96dd1de25927f",
            "transactionStatus": true,
            "blockNumber": "31038974",
            "timestamp": null,
            "from": "0xe93685f3bBA03016F02bD1828BaDD6195988D950",
            "to": "0xA27A2cA24DD28Ce14Fb5f5844b59851F03DCf182",
            "value": "0",
            "transactionFees": "807498000000000",
            "gas": "1743140",
            "gasPrice": "3600000000",
            "input": "0x252f7b01000000000000000000000000000000000000000000000000000000000000006d0000000000000000000000003668c325501322ceb5a624e95b9e16a019cdebe80000000000000000000000000000000000000000000000000000000000055730e39eaa0b9001287d57e7c75b89c2012736f81616b94ac88020d873225249fe026162a55473874a43b353c1b32efb170ff5fdd27e7a4febf9d6382fd50390dea000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000e8000000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000000700000000000000000000000000000000000000000000000000000000000000030000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000001e00000000000000000000000000000000000000000000000000000000000000093f891a04b37d5c424fc5e8ccb7c4b07169f5a73a3e3fbf9c513f93a4251184fba94a3e9a07787079f5830dcc472de67633c3391040053598530290d166d43d2861caf999fa0dfeb3ffddf7ebdd484fbb5f6cda490a79c175c387320766857fa28aed71e20ce8080808080a040889b98d35fa12c1dadd68c3f8cf8156188d96ca1ce9fcba6b15171be8ace3e8080808080808080000000000000000000000000000000000000000000000000000000000000000000000000000000000000000093f891a00a797c7f5429e959b5e69b473878199bb2c2483b69860089498da0f8673bdd03a06aa5d1ef923b055973445e2f02fa6089652ae37946b4c6279ad204c0352d78b0a093b0cc513f3c7582bc7ea8ab699a171475abd986822df5693f4bba86cde76869a0ae5d734859d9245d7282cdbe822bdc067ab995bfe0a88d27be099b8a146dc97a80808080808080808080808080000000000000000000000000000000000000000000000000000000000000000000000000000000000000000b7ef90b7b20b90b7702f90b7301835c643ab901000000000000000000000000000000000000004000000040000010000180000000000400000440040000000010011200000000c400000000000000000000000000006000000000000000000008000000800000000000000000100100000020000000040000000000000000000000500000000000000000000081000010000000000100000000000000000010001000080000000000280000040000000000000080202000000000025000000004040000000200000000000000000000000000804000001042800008000001000000001000800001000000c00000108000000000001000800000000000000000800000200000000000000000000000000000100000f90a68f9013d940000000000000000000000000000000000001010f884a0e6497e3ee548a3372136af2fcb0696db31fc6cf20260707645068bd3fe97f3c4a00000000000000000000000000000000000000000000000000000000000001010a000000000000000000000000023713b8033d058bf06aeef1ac31f598fd6e63670a0000000000000000000000000ffdf4fe05899c4bdb1676e958fa9f21c19ecb9d5b8a00000000000000000000000000000000000000000000000001bcac01d71c999590000000000000000000000000000000000000000000000008a8c1252cc1222e00000000000000000000000000000000000000000000000a3d1497749a0ee00000000000000000000000000000000000000000000000000006ec152355a4889870000000000000000000000000000000000000000000000a3ed14376712b79959f89c94141a1fb33683c304da7c3fe6fc6a49b5c0c2dc42f884a0ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa000000000000000000000000023713b8033d058bf06aeef1ac31f598fd6e63670a0000000000000000000000000ffdf4fe05899c4bdb1676e958fa9f21c19ecb9d5a000000000000000000000000000000000000000000000000000000000000c6e5c80f9013d940000000000000000000000000000000000001010f884a0e6497e3ee548a3372136af2fcb0696db31fc6cf20260707645068bd3fe97f3c4a00000000000000000000000000000000000000000000000000000000000001010a0000000000000000000000000ffdf4fe05899c4bdb1676e958fa9f21c19ecb9d5a00000000000000000000000003c2269811836af69497e5f486a85d7316753cf62b8a000000000000000000000000000000000000000000000000017a0efb4592b99590000000000000000000000000000000000000000000000a3ed14376712b7995900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a3d57347b2b98c000000000000000000000000000000000000000000000000000017a0efb4592b9959f9013d940000000000000000000000000000000000001010f884a0e6497e3ee548a3372136af2fcb0696db31fc6cf20260707645068bd3fe97f3c4a00000000000000000000000000000000000000000000000000000000000001010a00000000000000000000000003c2269811836af69497e5f486a85d7316753cf62a00000000000000000000000004d73adb72bc3dd368966edd0f0b2148401a178e2b8a000000000000000000000000000000000000000000000000017a0efb4592b995900000000000000000000000000000000000000000000000017a0efb4592b9959000000000000000000000000000000000000000000000ea895645259761089a10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ea8ad05420dcf3c22faf8589475dc8e5f50c8221a82ca6af64af811caa983b65fe1a0df21c415b78ed2552cc9971249e32a053abce6087a0ae0fbf3f78db5174a3493a00000000000000000000000000000000000000000000000000ef47d84108d1959f8d9944d73adb72bc3dd368966edd0f0b2148401a178e2e1a0b0c632f55f1e1b3b2c3d82f41ee4716bb4c00f0f5d84cdafc141581bb8757a4fb8a000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000002200010000000000000000000000000000000000000000000000000000000000055730000000000000000000000000000000000000000000000000000000000000f8d9949d88a2f4253b106a1f8e169485490f7230b4276ee1a0daebd99ba0f67a2d7a70d027ab177cad40ce040f65a9c4d98544a5463a172ebdb8a0000000000000000000000000000000000000000000000000000000000000006600000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000200000000000000000000000000ffdf4fe05899c4bdb1676e958fa9f21c19ecb9d500000000000000000000000000000000000000000000000008ac7230489e8000f901ba944d73adb72bc3dd368966edd0f0b2148401a178e2e1a0e9bded5f24a4168e4f3bf44e00298c993b22376aad8c58c7dda9718a54cbea82b901800000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000012a0000000000019f11006dffdf4fe05899c4bdb1676e958fa9f21c19ecb9d500663668c325501322ceb5a624e95b9e16a019cdebe8141a1fb33683c304da7c3fe6fc6a49b5c0c2dc42006d50616e6472613a20506978656c50726f776c657200000000000000000000000050616e6472613a20506978656c50726f776c657200000000000000000000000000000000000000000000000000000000000000000000000000000000000c6e5c23713b8033d058bf06aeef1ac31f598fd6e63670006668747470733a2f2f676174657761792e70696e6174612e636c6f75642f697066732f516d57784262464733574a585654447172465550684d754c6d6548714b4e42426b7a5375765179796b37667466692f506978656c50726f776c65722d506f6c79676f6e2e6a736f6e00000000000000000000000000000000000000000000f8fb94ffdf4fe05899c4bdb1676e958fa9f21c19ecb9d5f842a0e11d2ca26838f15acb41450029a785bb3d6f909b7f622ebf9c45524ded76f411a00000000000000000000000000000000000000000000000000000000000019f11b8a0000000000000000000000000141a1fb33683c304da7c3fe6fc6a49b5c0c2dc4200000000000000000000000000000000000000000000000000000000000c6e5c000000000000000000000000000000000000000000000000000000000000006600000000000000000000000023713b8033d058bf06aeef1ac31f598fd6e6367000000000000000000000000023713b8033d058bf06aeef1ac31f598fd6e63670f9013d940000000000000000000000000000000000001010f884a04dfe1bbbcf077ddc3e01291eea2d5c70c2b422b415d95645b9adcfd678cb1d63a00000000000000000000000000000000000000000000000000000000000001010a000000000000000000000000023713b8033d058bf06aeef1ac31f598fd6e63670a0000000000000000000000000a8b52f02108aa5f4b675bdcc973760022d7c6020b8a0000000000000000000000000000000000000000000000000001b916a461c2c000000000000000000000000000000000000000000000000008ae2af4965357dd100000000000000000000000000000000000000000000033575fd8f56f4aa1dbd0000000000000000000000000000000000000000000000008ac71ddf1f1951d1000000000000000000000000000000000000000000000335761920c13ac649bd00000000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001",
            "nonce": 6441901,
            "type": null,
            "network": null,
            "v": "0x94",
            "r": "0xc654980e14fa800c7913154d03fb92a64ad3ced94ebd0485d021dfbab29f7465",
            "s": "0x475936be140c7e220b47949a01a14c6236379d4863fa6a35787dc782cd6fe04",
            "yParity": null,
            "transactionIndex": 6,
            "accessList": null,
            "maxFeePerGas": null,
            "maxPriorityFeePerGas": null,
            "logs": [
                {
                    "address": "0x4D73AdB72bC3DD368966edD0f0b2148401A178E2",
                    "topics": [
                        "0x2bd2d8a84b748439fd50d79a49502b4eb5faa25b864da6a9ab5c150704be9a4d",
                        "0x000000000000000000000000000000000000000000000000000000000000006d",
                        "0x0000000000000000000000003668c325501322ceb5a624e95b9e16a019cdebe8"
                    ],
                    "data": "0x00000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000019f110ec307b880d2f445ef1988d9270c442f5d1acabf20ac7005c1be46bad84416990000000000000000000000000000000000000000000000000000000000000014ffdf4fe05899c4bdb1676e958fa9f21c19ecb9d5000000000000000000000000",
                    "blockNumber": 31038974,
                    "transactionHash": "0xefd030f66e9c0aaf9bab4006e5bc2c86fb7e3091f6fb4d4b14d96dd1de25927f",
                    "transactionIndex": 6,
                    "blockHash": "0x0a0898e738723fee44fdbf29932b7d5543ca7835a52790c0a73e89f002e47992",
                    "logIndex": 11,
                    "removed": false,
                    "id": "log_0985088b"
                },
                {
                    "address": "0x45eB7E752e446dB7e7C757b21B26cbc897345843",
                    "topics": [
                        "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
                        "0x0000000000000000000000000000000000000000000000000000000000000000",
                        "0x00000000000000000000000023713b8033d058bf06aeef1ac31f598fd6e63670",
                        "0x00000000000000000000000000000000000000000000000000000000000c6e5c"
                    ],
                    "data": "0x",
                    "blockNumber": 31038974,
                    "transactionHash": "0xefd030f66e9c0aaf9bab4006e5bc2c86fb7e3091f6fb4d4b14d96dd1de25927f",
                    "transactionIndex": 6,
                    "blockHash": "0x0a0898e738723fee44fdbf29932b7d5543ca7835a52790c0a73e89f002e47992",
                    "logIndex": 12,
                    "removed": false,
                    "id": "log_8ba00b7c"
                },
                {
                    "address": "0x3668c325501322CEB5a624E95b9E16A019cDEBe8",
                    "topics": [
                        "0x32aae95950c2e1f2c1a419165ba01c63c49604db10ee1b95d9960c0f5b9b9fa8",
                        "0x0000000000000000000000000000000000000000000000000000000000019f11"
                    ],
                    "data": "0x000000000000000000000000141a1fb33683c304da7c3fe6fc6a49b5c0c2dc4200000000000000000000000045eb7e752e446db7e7c757b21b26cbc89734584300000000000000000000000000000000000000000000000000000000000c6e5c000000000000000000000000000000000000000000000000000000000000006d000000000000000000000000000000000000000000000000000000000000006d00000000000000000000000023713b8033d058bf06aeef1ac31f598fd6e63670",
                    "blockNumber": 31038974,
                    "transactionHash": "0xefd030f66e9c0aaf9bab4006e5bc2c86fb7e3091f6fb4d4b14d96dd1de25927f",
                    "transactionIndex": 6,
                    "blockHash": "0x0a0898e738723fee44fdbf29932b7d5543ca7835a52790c0a73e89f002e47992",
                    "logIndex": 13,
                    "removed": false,
                    "id": "log_e6c53bb1"
                }
            ]
        }
    }
}
```

{% endtab %}
{% endtabs %}

### /swap

Swap assets across multiple chains.

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

#### Request Body

| Name                                             | Type   | Description                                                                                                                                 |
| ------------------------------------------------ | ------ | ------------------------------------------------------------------------------------------------------------------------------------------- |
| rpc                                              | String | Remote procedural call URL.                                                                                                                 |
| bridgeId                                         | String | Refer to the [Bridge ID](/ids/bridge-ids) page for details.                                                                                 |
| srcTokenSymbol<mark style="color:red;">\*</mark> | String | Symbol of token to swap.                                                                                                                    |
| dstChainId<mark style="color:red;">\*</mark>     | String | Destination chain Id. Refer to the [Chain ID ](/ids/chain-ids)page for details.                                                             |
| amountIn<mark style="color:red;">\*</mark>       | String | Amount of token to be swapped.                                                                                                              |
| from<mark style="color:red;">\*</mark>           | String | Address of the sender of the token.                                                                                                         |
| amountOutMin<mark style="color:red;">\*</mark>   | String | Minimum amount accepted as the result of swap.                                                                                              |
| gas<mark style="color:red;">\*</mark>            | String | Maximum gas limit provided by the sender, for the transaction.                                                                              |
| to                                               | String | Address of the recipient of the token.                                                                                                      |
| dstTokenSymbol                                   | String | Symbol of token to be received as a result of swap.                                                                                         |
| srcChainId                                       | String | <p>Source Chain Id. By default, Ethereum mainnet.<br>Refer to the <a href="/pages/5o1xMsQPqXw9GBfGTpdB">Chain ID </a>page for details. </p> |
| srcChainSymbol                                   | String | Source Chain Symbol.                                                                                                                        |
| slippage                                         | String | <p>Percentage of total swap value. <br>By default, 1.</p><p>0 <= slippage  value <= 100</p>                                                 |
| gasPriority                                      | String | low, medium, or high.                                                                                                                       |

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

<pre class="language-json"><code class="lang-json">{
    "srcTokenSymbol": "USDC",
    "amountIn": "10000",
    "amountOutMin": "1000",
    "gas": "10000",
    "from": "0xa67e9b68c41b0f26184d64c26e0b2b81466e5994",
    "dstChainId": "137"
<strong>}
</strong></code></pre>

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0xa67e9b68c41b0f26184d64c26e0b2b81466e5994",
        "to": "0x8731d54E9D02c286767d56ac03e8037C07e01e98",
        "value": "337237525068648",
        "gas": "10000",
        "data": "0x9fbf10fc000000000000000000000000000000000000000000000000000000000000006d00000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001000000000000000000000000a67e9b68c41b0f26184d64c26e0b2b81466e5994000000000000000000000000000000000000000000000000000000000000271000000000000000000000000000000000000000000000000000000000000003e8000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000001a000000000000000000000000000000000000000000000000000000000000001e000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000014a67e9b68c41b0f26184d64c26e0b2b81466e59940000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
        "referenceId": "d1ef36652b6c427e9a96ef4d9e151b09"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
**With gasPriority:**

```json
{
    "srcChainId": "1",
    "bridgeId": "100",
    "srcTokenSymbol": "USDC",
    "amountIn": "10000",
    "gas": "900000",
    "gasPriority": "low",
    "from": "0xa67E9B68c41b0f26184D64C26e0b2B81466E5994",
    "dstChainId": "137",
    "amountOutMin": "100"
}
```

{% endtab %}

{% tab title="Sample Response" %}
**With gasPriority:**

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0xa67E9B68c41b0f26184D64C26e0b2B81466E5994",
        "to": "0x8731d54E9D02c286767d56ac03e8037C07e01e98",
        "value": "337237525068648",
        "gas": "900000",
        "data": "0x9fbf10fc000000000000000000000000000000000000000000000000000000000000006d00000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001000000000000000000000000a67e9b68c41b0f26184d64c26e0b2b81466e599400000000000000000000000000000000000000000000000000000000000027100000000000000000000000000000000000000000000000000000000000000064000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000001a000000000000000000000000000000000000000000000000000000000000001e000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000014a67e9b68c41b0f26184d64c26e0b2b81466e59940000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
        "gasPrice": "2812377960",
        "referenceId": "6ec7cca14e90419c99e7c2e46f2c582c"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
**With slippage:**

```json
{
    "srcChainId": "1",
    "srcTokenSymbol": "USDC",
    "amountIn": "10000",
    "amountOutMin": "100",
    "gas": "10000",
    "slippage": "4",
    "from": "0xa67e9b68c41b0f26184d64c26e0b2b81466e5994",
    "dstChainId": "137"
}
```

{% endtab %}

{% tab title="Sample Response" %}
**With slippage:**

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0xa67e9b68c41b0f26184d64c26e0b2b81466e5994",
        "to": "0x8731d54E9D02c286767d56ac03e8037C07e01e98",
        "value": "337237525068648",
        "gas": "10000",
        "data": "0x9fbf10fc000000000000000000000000000000000000000000000000000000000000006d00000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001000000000000000000000000a67e9b68c41b0f26184d64c26e0b2b81466e599400000000000000000000000000000000000000000000000000000000000027100000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000001a000000000000000000000000000000000000000000000000000000000000001e000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000014a67e9b68c41b0f26184d64c26e0b2b81466e59940000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
        "referenceId": "7b29ce26591d45128c81c8461377fcbb"
    }
}
```

{% endtab %}
{% endtabs %}

### /addliquidity

Loan your assets to the specified bridge.

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

#### Request Body

| Name                                             | Type   | Description                                                                                                                                 |
| ------------------------------------------------ | ------ | ------------------------------------------------------------------------------------------------------------------------------------------- |
| bridgeId                                         | String | Refer to the [Bridge ID](/ids/bridge-ids) page for details.                                                                                 |
| rpc                                              | String | Remote procedural call URL.                                                                                                                 |
| srcChainId                                       | String | <p>Source Chain Id. By default, Ethereum mainnet.<br>Refer to the <a href="/pages/5o1xMsQPqXw9GBfGTpdB">Chain ID </a>page for details. </p> |
| srcTokenSymbol<mark style="color:red;">\*</mark> | String | Symbol of token to add liquidity.                                                                                                           |
| from<mark style="color:red;">\*</mark>           | String | Address of the sender of the token.                                                                                                         |
| amountIn<mark style="color:red;">\*</mark>       | String | Amount of token to add liquidity.                                                                                                           |
| gas<mark style="color:red;">\*</mark>            | String | Maximum gas limit provided by the sender, for the transaction.                                                                              |
| srcChainSymbol                                   | String | Source Chain Symbol.                                                                                                                        |
| gasPriority                                      | String | low, medium, or high.                                                                                                                       |

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

```json
{
    "srcChainId": "1",
    "bridgeId": "100",
    "srcTokenSymbol": "USDT",
    "amountIn": "10000000",
    "gas": "400000",
    "from": "0xa67e9b68c41b0f26184d64c26e0b2b81466e5994"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0xa67e9b68c41b0f26184d64c26e0b2b81466e5994",
        "to": "0x8731d54E9D02c286767d56ac03e8037C07e01e98",
        "value": "0",
        "gas": "400000",
        "data": "0x87b21efc00000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000989680000000000000000000000000a67e9b68c41b0f26184d64c26e0b2b81466e5994",
        "referenceId": "a7717ba0611041e293026d6f648596ee"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
**With gasPriority:**

```json
{
    "srcChainId": "1",
    "bridgeId": "100",
    "srcTokenSymbol": "USDC",
    "amountIn": "10000",
    "gas": "890000",
    "gasPriority": "medium",
    "from": "0xa67E9B68c41b0f26184D64C26e0b2B81466E5994"
}
```

{% endtab %}

{% tab title="Sample Response" %}
**With gasPriority:**

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0xa67E9B68c41b0f26184D64C26e0b2B81466E5994",
        "to": "0x8731d54E9D02c286767d56ac03e8037C07e01e98",
        "value": "0",
        "gas": "890000",
        "data": "0x87b21efc00000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000002710000000000000000000000000a67e9b68c41b0f26184d64c26e0b2b81466e5994",
        "gasPrice": "3209726245",
        "referenceId": "85b0dd61562f4982ba652a978c062bd5"
    }
}
```

{% endtab %}
{% endtabs %}

### /removeliquidity

Remove user liquidity across multiple chains.

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

#### Request Body

| Name                                             | Type   | Description                                                                                                                                 |
| ------------------------------------------------ | ------ | ------------------------------------------------------------------------------------------------------------------------------------------- |
| bridgeId                                         | String | Refer to the [Bridge ID](/ids/bridge-ids) page for details.                                                                                 |
| rpc                                              | String | Remote procedural call URL.                                                                                                                 |
| srcChainId                                       | String | <p>Source Chain Id. By default, Ethereum mainnet.<br>Refer to the <a href="/pages/5o1xMsQPqXw9GBfGTpdB">Chain ID </a>page for details. </p> |
| srcTokenSymbol<mark style="color:red;">\*</mark> | String | Symbol of token to add liquidity.                                                                                                           |
| from<mark style="color:red;">\*</mark>           | String | Address of the sender of the token.                                                                                                         |
| amountOut<mark style="color:red;">\*</mark>      | String | Amount of token to remove liquidity.                                                                                                        |
| gas<mark style="color:red;">\*</mark>            | String | Maximum gas limit provided by the sender, for the transaction.                                                                              |
| srcChainSymbol                                   | String | Source Chain Symbol.                                                                                                                        |
| gasPriority                                      | String | low, medium, or high.                                                                                                                       |

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

```json
{
    "srcChainId": "1",
    "bridgeId": "100",
    "srcTokenSymbol": "USDT",
    "amountOut": "10000000",
    "gas": "400000",
    "from": "0xa67e9b68c41b0f26184d64c26e0b2b81466e5994"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0xa67e9b68c41b0f26184d64c26e0b2b81466e5994",
        "to": "0x8731d54E9D02c286767d56ac03e8037C07e01e98",
        "value": "0",
        "gas": "400000",
        "data": "0xc4de93a500000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000989680000000000000000000000000a67e9b68c41b0f26184d64c26e0b2b81466e5994",
        "referenceId": "f760743bf970482a9130780cef63e3a6"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
**With gasPriority:**

```json
{
    "srcChainId": "1",
    "bridgeId": "100",
    "srcTokenSymbol": "USDC",
    "amountOut": "10000",
    "gas": "100000",
    "gasPriority": "high",
    "from": "0xa67e9b68c41b0f26184d64c26e0b2b81466e5994"
}
```

{% endtab %}

{% tab title="Sample Response" %}
**With gasPriority:**

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0xa67e9b68c41b0f26184d64c26e0b2b81466e5994",
        "to": "0x8731d54E9D02c286767d56ac03e8037C07e01e98",
        "value": "0",
        "gas": "100000",
        "data": "0xc4de93a500000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000002710000000000000000000000000a67e9b68c41b0f26184d64c26e0b2b81466e5994",
        "gasPrice": "4129882316",
        "referenceId": "8214d8913a5b45c3a00426c8fbc07313"
    }
}
```

{% endtab %}
{% endtabs %}


# Stargate V2

### /getsupportedchains

Get the list of chains supported by Squid Router, on expand.network.

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

#### Query Parameters

| Name                                       | Type   | Description                                                 |
| ------------------------------------------ | ------ | ----------------------------------------------------------- |
| bridgeId<mark style="color:red;">\*</mark> | String | Refer to the [Bridge ID](/ids/bridge-ids) page for details. |
| rpc                                        | String | Remote procedural call URL.                                 |

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

```url
https://api.expand.network/bridge/getsupportedchains?bridgeId=500
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": [
        {
            "chainName": "Ethereum",
            "chainId": "1",
            "srcChainSupported": true,
            "dstChainSupported": true
        },
        {
            "chainName": "Optimism",
            "chainId": "10",
            "srcChainSupported": true,
            "dstChainSupported": true
        },
        {
            "chainName": "Flare",
            "chainId": "14",
            "srcChainSupported": false,
            "dstChainSupported": true
        },
        {
            "chainName": "Rootstock",
            "chainId": "30",
            "srcChainSupported": false,
            "dstChainSupported": true
        },
        {
            "chainName": "Telos",
            "chainId": "40",
            "srcChainSupported": false,
            "dstChainSupported": true
        },
        {
            "chainName": "BNB Chain",
            "chainId": "56",
            "srcChainSupported": true,
            "dstChainSupported": true
        },
        {
            "chainName": "Gnosis",
            "chainId": "100",
            "srcChainSupported": false,
            "dstChainSupported": true
        },
        {
            "chainName": "Fuse",
            "chainId": "122",
            "srcChainSupported": false,
            "dstChainSupported": true
        },
        {
            "chainName": "Polygon",
            "chainId": "137",
            "srcChainSupported": true,
            "dstChainSupported": true
        },
        {
            "chainName": "Sonic",
            "chainId": "146",
            "srcChainSupported": true,
            "dstChainSupported": true
        },
        {
            "chainName": "Flow",
            "chainId": "747",
            "srcChainSupported": false,
            "dstChainSupported": true
        },
        {
            "chainName": "Metis",
            "chainId": "1088",
            "srcChainSupported": false,
            "dstChainSupported": true
        },
        {
            "chainName": "Core",
            "chainId": "1116",
            "srcChainSupported": false,
            "dstChainSupported": true
        },
        {
            "chainName": "Glue",
            "chainId": "1300",
            "srcChainSupported": false,
            "dstChainSupported": true
        },
        {
            "chainName": "Sei",
            "chainId": "1329",
            "srcChainSupported": false,
            "dstChainSupported": true
        },
        {
            "chainName": "Vana",
            "chainId": "1480",
            "srcChainSupported": false,
            "dstChainSupported": true
        },
        {
            "chainName": "Story",
            "chainId": "1514",
            "srcChainSupported": false,
            "dstChainSupported": true
        },
        {
            "chainName": "Gravity",
            "chainId": "1625",
            "srcChainSupported": false,
            "dstChainSupported": true
        },
        {
            "chainName": "Soneium",
            "chainId": "1868",
            "srcChainSupported": false,
            "dstChainSupported": true
        },
        {
            "chainName": "Lightlink",
            "chainId": "1890",
            "srcChainSupported": false,
            "dstChainSupported": true
        },
        {
            "chainName": "Kava",
            "chainId": "2222",
            "srcChainSupported": false,
            "dstChainSupported": true
        },
        {
            "chainName": "Goat",
            "chainId": "2345",
            "srcChainSupported": false,
            "dstChainSupported": true
        },
        {
            "chainName": "Abstract",
            "chainId": "2741",
            "srcChainSupported": false,
            "dstChainSupported": true
        },
        {
            "chainName": "Peaq",
            "chainId": "3338",
            "srcChainSupported": false,
            "dstChainSupported": true
        },
        {
            "chainName": "Mantle",
            "chainId": "5000",
            "srcChainSupported": true,
            "dstChainSupported": true
        },
        {
            "chainName": "Kaia",
            "chainId": "8217",
            "srcChainSupported": false,
            "dstChainSupported": true
        },
        {
            "chainName": "Base",
            "chainId": "8453",
            "srcChainSupported": true,
            "dstChainSupported": true
        },
        {
            "chainName": "lota",
            "chainId": "8822",
            "srcChainSupported": false,
            "dstChainSupported": true
        },
        {
            "chainName": "Apechain",
            "chainId": "33139",
            "srcChainSupported": false,
            "dstChainSupported": true
        },
        {
            "chainName": "Arbitrum",
            "chainId": "42161",
            "srcChainSupported": true,
            "dstChainSupported": true
        },
        {
            "chainName": "Hemi",
            "chainId": "43111",
            "srcChainSupported": false,
            "dstChainSupported": true
        },
        {
            "chainName": "Avalanche",
            "chainId": "43114",
            "srcChainSupported": true,
            "dstChainSupported": true
        },
        {
            "chainName": "Superposition",
            "chainId": "55244",
            "srcChainSupported": false,
            "dstChainSupported": true
        },
        {
            "chainName": "Ink",
            "chainId": "57073",
            "srcChainSupported": false,
            "dstChainSupported": true
        },
        {
            "chainName": "Linea",
            "chainId": "59144",
            "srcChainSupported": true,
            "dstChainSupported": true
        },
        {
            "chainName": "Bera",
            "chainId": "80094",
            "srcChainSupported": false,
            "dstChainSupported": true
        },
        {
            "chainName": "Codex",
            "chainId": "81224",
            "srcChainSupported": false,
            "dstChainSupported": true
        },
        {
            "chainName": "Plume",
            "chainId": "98866",
            "srcChainSupported": false,
            "dstChainSupported": true
        },
        {
            "chainName": "Taiko",
            "chainId": "167000",
            "srcChainSupported": false,
            "dstChainSupported": true
        },
        {
            "chainName": "Scroll",
            "chainId": "534352",
            "srcChainSupported": false,
            "dstChainSupported": true
        },
        {
            "chainName": "Degen",
            "chainId": "666666666",
            "srcChainSupported": false,
            "dstChainSupported": true
        },
        {
            "chainName": "Aurora",
            "chainId": "1313161554",
            "srcChainSupported": false,
            "dstChainSupported": true
        },
        {
            "chainName": "Rari Chain",
            "chainId": "1380012617",
            "srcChainSupported": false,
            "dstChainSupported": true
        }
    ]
}
```

{% endtab %}
{% endtabs %}

### /getsupportedtokens

Get the list of tokens supported by Squid Router, on the specified chain, on expand.network.

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

#### Query Parameters

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

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

```url
https://api.expand.network/bridge/getsupportedtokens?bridgeId=500&chainId=1
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": [
        {
            "tokenSymbol": "USDC",
            "address": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48"
        },
        {
            "tokenSymbol": "USDT",
            "address": "0xdac17f958d2ee523a2206206994597c13d831ec7"
        },
        {
            "tokenSymbol": "ETH",
            "address": "0x0000000000000000000000000000000000000000"
        },
        {
            "tokenSymbol": "METH",
            "address": "0xd5f7838f5c461feff7fe49ea5ebaf7728bb0adfa"
        }
    ]
}
```

{% endtab %}
{% endtabs %}

### /getprice

Get the swap quotation for the given token pairs.

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

#### Query Parameters

| Name                                             | Type   | Description                                                 |
| ------------------------------------------------ | ------ | ----------------------------------------------------------- |
| rpc                                              | String | Remote procedural call URL.                                 |
| amountIn<mark style="color:red;">\*</mark>       | String | Address of the pool.                                        |
| address                                          | String | Sender's public address.                                    |
| srcChainId                                       | String | Refer to the [Chain ID](/ids/chain-ids) page for details.   |
| bridgeId                                         | String | Refer to the [Bridge ID](/ids/bridge-ids) page for details. |
| dstChainId<mark style="color:red;">\*</mark>     | String | Destination Chain ID.                                       |
| srcTokenSymbol<mark style="color:red;">\*</mark> | String | Source token symbol                                         |
| dstTokenSymbol<mark style="color:red;">\*</mark> | String | Destination token symbol                                    |

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

```url
https://api.expand.network/bridge/getprice?bridgeId=500&srcTokenSymbol=USDC&srcChainId=8453&amountIn=100000000&dstChainId=42161&dstTokenSymbol=USDC
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "srcChainId": "8453",
        "dstChainId": "42161",
        "srcTokenSymbol": "USDC",
        "dstTokenSymbol": "USDC",
        "amountIn": "100000000",
        "amountsOut": [
            "100000000",
            "99994999"
        ]
    }
}
```

{% endtab %}
{% endtabs %}

### /getliquidity

Get the balance of a particular token pair of an account.

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

#### Query Parameters

| Name                                             | Type   | Description                                                 |
| ------------------------------------------------ | ------ | ----------------------------------------------------------- |
| rpc                                              | String | Remote procedural call URL.                                 |
| srcTokenSymbol<mark style="color:red;">\*</mark> | String | Source Token symbol                                         |
| address                                          | String | Sender's public address.                                    |
| srcChainId                                       | String | Refer to the [Chain ID](/ids/chain-ids) page for details.   |
| bridgeId                                         | String | Refer to the [Bridge ID](/ids/bridge-ids) page for details. |

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

```url
https://api.expand.network/bridge/getliquidity?bridgeId=500&srcTokenSymbol=USDC&srcChainId=1&address=0x384897A791f1553e0eB852Cac4476dd72e0794d1
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "token": "USDC",
        "tokenAddress": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
        "poolAddress": "0xc026395860Db2d07ee33e05fE50ed7bD583189C7",
        "totalLiquidity": "17043852488610",
        "userLiquidity": "1000000"
    }
}
```

{% endtab %}
{% endtabs %}

### /gettransaction

Get details of a transaction.

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

#### Query Parameters

| Name                                              | Type   | Description                                                                                                                |
| ------------------------------------------------- | ------ | -------------------------------------------------------------------------------------------------------------------------- |
| rpc                                               | String | Remote procedural call URL.                                                                                                |
| transactionHash<mark style="color:red;">\*</mark> | String | The transaction hash.                                                                                                      |
| bridgeId                                          | String | Refer to the [Bridge ID](/ids/bridge-ids) page for details.                                                                |
| srcChainid                                        | String | <p>By default, Ethereum mainnet.<br>Refer to the <a href="/pages/5o1xMsQPqXw9GBfGTpdB">Chain ID </a>page for details. </p> |

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

```
https://api.expand.network/bridge/gettransaction?transactionHash=0x8a1f55fe1b6362b998806e07bc6f1e3c93a97f4a5935d8e92042b9a616d4e81e&bridgeId=500
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "status": "EXECUTED",
        "srcTx": {
            "chainId": "8453",
            "hash": "0x8a1f55fe1b6362b998806e07bc6f1e3c93a97f4a5935d8e92042b9a616d4e81e",
            "transactionStatus": true,
            "blockNumber": "29964954",
            "timestamp": null,
            "from": "0x446A0fe937c5f8a45c44d6B7F8B99132803f89f2",
            "to": "0x6307119078556Fc8aD77781DFC67df20d75FB4f9",
            "value": "70533070227522",
            "transactionFees": "14678525224148",
            "gas": "976369",
            "gasPrice": "33795556",
            "input": "0x0193b9fc00000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000833589fcd6edb6e08f4c7c32d4f71b54bda029130000000000000000000000000000000000000000000000000000000008fd833f000000000000000000000000000000000000000000000000000000000000002100000000000000000000000000000000000000000000000000000000681cd90e00000000000000000000000000000000000000000000000000000000000004e000000000000000000000000000000000000000000000000000000000000003e414d53077000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000002002476a0182205afcee90222764b77fa4a289fe4889863737f26dbdbe80b8fb3b1000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000001800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000833589fcd6edb6e08f4c7c32d4f71b54bda02913000000000000000000000000446a0fe937c5f8a45c44d6b7f8b99132803f89f20000000000000000000000000000000000000000000000000000000008fd833f000000000000000000000000000000000000000000000000000000000000a86a00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a7374617267617465563200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000f6a756d7065722e65786368616e67650000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000004026429888420000000000000000000000000000000000000000000000000000000000000000000000000000000000000000446a0fe937c5f8a45c44d6b7f8b99132803f89f2000000000000000000000000000000000000000000000000000000000000759a000000000000000000000000446a0fe937c5f8a45c44d6b7f8b99132803f89f20000000000000000000000000000000000000000000000000000000008fd833f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000041d9b355ba7146c493a52a5d9139f335f92ee53b315c026320c922ef14149003d41932b20251e91e679380764466c6070cbe42285a0b9e650ad29e83dcbed186841b00000000000000000000000000000000000000000000000000000000000000",
            "nonce": 567,
            "type": 2,
            "network": null,
            "v": "0x1",
            "r": "0x6327c14bf808ae6151f4f085d3107ac8a0485d58821ccdf673b491965cebcc9a",
            "s": "0x337b85078ee9af3eb1c11fdd1a367373595d550f9276e38f2ddd73d0b75766fd",
            "yParity": "0x1",
            "transactionIndex": 51,
            "accessList": [],
            "maxFeePerGas": "59212629",
            "maxPriorityFeePerGas": "25269505",
            "logs": [
                {
                    "address": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
                    "topics": [
                        "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
                        "0x000000000000000000000000446a0fe937c5f8a45c44d6b7f8b99132803f89f2",
                        "0x0000000000000000000000006307119078556fc8ad77781dfc67df20d75fb4f9"
                    ],
                    "data": "0x0000000000000000000000000000000000000000000000000000000008fd833f",
                    "blockNumber": 29964954,
                    "transactionHash": "0x8a1f55fe1b6362b998806e07bc6f1e3c93a97f4a5935d8e92042b9a616d4e81e",
                    "transactionIndex": 51,
                    "blockHash": "0xd9abe0f0d1ca5db901f5a348dd5d61688cebd2ae23d9b99972bd8dddb600446f",
                    "logIndex": 161,
                    "removed": false,
                    "id": "log_48498ada"
                },
                {
                    "address": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
                    "topics": [
                        "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
                        "0x0000000000000000000000006307119078556fc8ad77781dfc67df20d75fb4f9",
                        "0x0000000000000000000000001231deb6f5749ef6ce6943a275a1d3e7486f4eae"
                    ],
                    "data": "0x0000000000000000000000000000000000000000000000000000000008fd833f",
                    "blockNumber": 29964954,
                    "transactionHash": "0x8a1f55fe1b6362b998806e07bc6f1e3c93a97f4a5935d8e92042b9a616d4e81e",
                    "transactionIndex": 51,
                    "blockHash": "0xd9abe0f0d1ca5db901f5a348dd5d61688cebd2ae23d9b99972bd8dddb600446f",
                    "logIndex": 162,
                    "removed": false,
                    "id": "log_9bd7f870"
                },
                {
                    "address": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
                    "topics": [
                        "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
                        "0x0000000000000000000000001231deb6f5749ef6ce6943a275a1d3e7486f4eae",
                        "0x00000000000000000000000027a16dc786820b16e5c9028b75b99f6f604b5d26"
                    ],
                    "data": "0x0000000000000000000000000000000000000000000000000000000008fd833f",
                    "blockNumber": 29964954,
                    "transactionHash": "0x8a1f55fe1b6362b998806e07bc6f1e3c93a97f4a5935d8e92042b9a616d4e81e",
                    "transactionIndex": 51,
                    "blockHash": "0xd9abe0f0d1ca5db901f5a348dd5d61688cebd2ae23d9b99972bd8dddb600446f",
                    "logIndex": 163,
                    "removed": false,
                    "id": "log_8040262c"
                },
                {
                    "address": "0xB5320B0B3a13cC860893E2Bd79FCd7e13484Dda2",
                    "topics": [
                        "0x61ed099e74a97a1d7f8bb0952a88ca8b7b8ebd00c126ea04671f92a81213318a"
                    ],
                    "data": "0x0000000000000000000000002cca08ae69e0c44b18a57ab2a87644234daebae400000000000000000000000000000000000000000000000000002d1741badd54",
                    "blockNumber": 29964954,
                    "transactionHash": "0x8a1f55fe1b6362b998806e07bc6f1e3c93a97f4a5935d8e92042b9a616d4e81e",
                    "transactionIndex": 51,
                    "blockHash": "0xd9abe0f0d1ca5db901f5a348dd5d61688cebd2ae23d9b99972bd8dddb600446f",
                    "logIndex": 164,
                    "removed": false,
                    "id": "log_aa33f158"
                },
                {
                    "address": "0xB5320B0B3a13cC860893E2Bd79FCd7e13484Dda2",
                    "topics": [
                        "0x07ea52d82345d6e838192107d8fd7123d9c2ec8e916cd0aad13fd2b60db24644"
                    ],
                    "data": "0x000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000002000000000000000000000000cd37ca043f8479064e10635020c65ffc005d36f6000000000000000000000000cdf31d62140204c08853b547e64707110fbc66800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000987806ed57700000000000000000000000000000000000000000000000000000987806ed577",
                    "blockNumber": 29964954,
                    "transactionHash": "0x8a1f55fe1b6362b998806e07bc6f1e3c93a97f4a5935d8e92042b9a616d4e81e",
                    "transactionIndex": 51,
                    "blockHash": "0xd9abe0f0d1ca5db901f5a348dd5d61688cebd2ae23d9b99972bd8dddb600446f",
                    "logIndex": 165,
                    "removed": false,
                    "id": "log_7df2e372"
                },
                {
                    "address": "0x1a44076050125825900e736c501f859c50fE728c",
                    "topics": [
                        "0x1ab700d4ced0c005b164c0f789fd09fcbb0156d4c2041b8a3bfbcd961cd1567f"
                    ],
                    "data": "0x00000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000120000000000000000000000000b5320b0b3a13cc860893e2bd79fcd7e13484dda2000000000000000000000000000000000000000000000000000000000000009c01000000000000304c000075e80000000000000000000000005634c4a5fed09819e3c46d86a965dd9447d86e470000759a00000000000000000000000017e450be3ba9557f2378e20d64ad417e59ef9a34bc3dba1b033d80f0cc1cec5c10f24565caae16f1411721f9eb6bd87913a129fe010001000000000000000000000000446a0fe937c5f8a45c44d6b7f8b99132803f89f20000000008fd65c9000000000000000000000000000000000000000000000000000000000000000000000016000301001101000000000000000000000000000249f000000000000000000000",
                    "blockNumber": 29964954,
                    "transactionHash": "0x8a1f55fe1b6362b998806e07bc6f1e3c93a97f4a5935d8e92042b9a616d4e81e",
                    "transactionIndex": 51,
                    "blockHash": "0xd9abe0f0d1ca5db901f5a348dd5d61688cebd2ae23d9b99972bd8dddb600446f",
                    "logIndex": 166,
                    "removed": false,
                    "id": "log_bafa60c1"
                },
                {
                    "address": "0x27a16dc786820B16E5c9028b75B99F6f604b5d26",
                    "topics": [
                        "0x85496b760a4b7f8d66384b9df21b381f5d1b1e79f229a47aaf4c232edc2fe59a",
                        "0xbc3dba1b033d80f0cc1cec5c10f24565caae16f1411721f9eb6bd87913a129fe",
                        "0x0000000000000000000000001231deb6f5749ef6ce6943a275a1d3e7486f4eae"
                    ],
                    "data": "0x000000000000000000000000000000000000000000000000000000000000759a0000000000000000000000000000000000000000000000000000000008fd833f0000000000000000000000000000000000000000000000000000000008fd65c9",
                    "blockNumber": 29964954,
                    "transactionHash": "0x8a1f55fe1b6362b998806e07bc6f1e3c93a97f4a5935d8e92042b9a616d4e81e",
                    "transactionIndex": 51,
                    "blockHash": "0xd9abe0f0d1ca5db901f5a348dd5d61688cebd2ae23d9b99972bd8dddb600446f",
                    "logIndex": 167,
                    "removed": false,
                    "id": "log_c6e637ba"
                },
                {
                    "address": "0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE",
                    "topics": [
                        "0xcba69f43792f9f399347222505213b55af8e0b0b54b893085c2e27ecbe1644f1"
                    ],
                    "data": "0x00000000000000000000000000000000000000000000000000000000000000202476a0182205afcee90222764b77fa4a289fe4889863737f26dbdbe80b8fb3b1000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000001800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000833589fcd6edb6e08f4c7c32d4f71b54bda02913000000000000000000000000446a0fe937c5f8a45c44d6b7f8b99132803f89f20000000000000000000000000000000000000000000000000000000008fd833f000000000000000000000000000000000000000000000000000000000000a86a00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a7374617267617465563200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000f6a756d7065722e65786368616e67650000000000000000000000000000000000",
                    "blockNumber": 29964954,
                    "transactionHash": "0x8a1f55fe1b6362b998806e07bc6f1e3c93a97f4a5935d8e92042b9a616d4e81e",
                    "transactionIndex": 51,
                    "blockHash": "0xd9abe0f0d1ca5db901f5a348dd5d61688cebd2ae23d9b99972bd8dddb600446f",
                    "logIndex": 168,
                    "removed": false,
                    "id": "log_1e0ceb4a"
                }
            ]
        },
        "dstTx": {
            "chainId": "43114",
            "hash": "0x58ec8ac4291698cc14759926b701301214a1df7ca65850873e4b87ae3dffc15a",
            "transactionStatus": true,
            "blockNumber": "61672682",
            "timestamp": null,
            "from": "0xe93685f3bBA03016F02bD1828BaDD6195988D950",
            "to": "0x90E595783E43eb89fF07f63d27B8430e6B44bD9c",
            "value": "0",
            "transactionFees": "1611522777528396",
            "gas": "450020",
            "gasPrice": "12092073876",
            "input": "0xcfc32570000000000000000000000000000000000000000000000000000000000000002000000000000000000000000017e450be3ba9557f2378e20d64ad417e59ef9a3400000000000000000000000000000000000000000000000000000000000075e80000000000000000000000005634c4a5fed09819e3c46d86a965dd9447d86e47000000000000000000000000000000000000000000000000000000000000304cbc3dba1b033d80f0cc1cec5c10f24565caae16f1411721f9eb6bd87913a129fe000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001600000000000000000000000000000000000000000000000000000000000029428000000000000000000000000000000000000000000000000000000000000002b010001000000000000000000000000446a0fe937c5f8a45c44d6b7f8b99132803f89f20000000008fd65c90000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
            "nonce": 10181473,
            "type": null,
            "network": null,
            "v": "0x150f8",
            "r": "0x4aca6fc5395aa3ad557e64e2acbd1f83e1819f808af76bb059e4de4676be968d",
            "s": "0x4fbe87728d4b2a9fa5f636d7aaa5578171dfa3d90daf6f5e41bd697bd8f0f469",
            "yParity": null,
            "transactionIndex": 7,
            "accessList": null,
            "maxFeePerGas": null,
            "maxPriorityFeePerGas": null,
            "logs": [
                {
                    "address": "0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E",
                    "topics": [
                        "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
                        "0x0000000000000000000000005634c4a5fed09819e3c46d86a965dd9447d86e47",
                        "0x000000000000000000000000446a0fe937c5f8a45c44d6b7f8b99132803f89f2"
                    ],
                    "data": "0x0000000000000000000000000000000000000000000000000000000008fd65c9",
                    "blockNumber": 61672682,
                    "transactionHash": "0x58ec8ac4291698cc14759926b701301214a1df7ca65850873e4b87ae3dffc15a",
                    "transactionIndex": 7,
                    "blockHash": "0xaf34d35ca4e13dd1b14e257747c27c93b89e968a3488ce242833dec385460f35",
                    "logIndex": 40,
                    "removed": false,
                    "id": "log_f335ad63"
                },
                {
                    "address": "0x5634c4a5FEd09819E3c46D86A965Dd9447d86e47",
                    "topics": [
                        "0xefed6d3500546b29533b128a29e3a94d70788727f0507505ac12eaf2e578fd9c",
                        "0xbc3dba1b033d80f0cc1cec5c10f24565caae16f1411721f9eb6bd87913a129fe",
                        "0x000000000000000000000000446a0fe937c5f8a45c44d6b7f8b99132803f89f2"
                    ],
                    "data": "0x00000000000000000000000000000000000000000000000000000000000075e80000000000000000000000000000000000000000000000000000000008fd65c9",
                    "blockNumber": 61672682,
                    "transactionHash": "0x58ec8ac4291698cc14759926b701301214a1df7ca65850873e4b87ae3dffc15a",
                    "transactionIndex": 7,
                    "blockHash": "0xaf34d35ca4e13dd1b14e257747c27c93b89e968a3488ce242833dec385460f35",
                    "logIndex": 41,
                    "removed": false,
                    "id": "log_6c6ca837"
                },
                {
                    "address": "0x1a44076050125825900e736c501f859c50fE728c",
                    "topics": [
                        "0x3cd5e48f9730b129dc7550f0fcea9c767b7be37837cd10e55eb35f734f4bca04"
                    ],
                    "data": "0x00000000000000000000000000000000000000000000000000000000000075e80000000000000000000000005634c4a5fed09819e3c46d86a965dd9447d86e47000000000000000000000000000000000000000000000000000000000000304c00000000000000000000000017e450be3ba9557f2378e20d64ad417e59ef9a34",
                    "blockNumber": 61672682,
                    "transactionHash": "0x58ec8ac4291698cc14759926b701301214a1df7ca65850873e4b87ae3dffc15a",
                    "transactionIndex": 7,
                    "blockHash": "0xaf34d35ca4e13dd1b14e257747c27c93b89e968a3488ce242833dec385460f35",
                    "logIndex": 42,
                    "removed": false,
                    "id": "log_a6c6498d"
                }
            ]
        }
    }
}
```

{% endtab %}
{% endtabs %}

### /swap

Swap assets across multiple chains.

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

#### Request Body

| Name                                             | Type   | Description                                                                                                                                 |
| ------------------------------------------------ | ------ | ------------------------------------------------------------------------------------------------------------------------------------------- |
| rpc                                              | String | Remote procedural call URL.                                                                                                                 |
| bridgeId                                         | String | Refer to the [Bridge ID](/ids/bridge-ids) page for details.                                                                                 |
| srcTokenSymbol<mark style="color:red;">\*</mark> | String | Symbol of token to swap.                                                                                                                    |
| dstChainId<mark style="color:red;">\*</mark>     | String | Destination chain Id. Refer to the [Chain ID ](/ids/chain-ids)page for details.                                                             |
| amountIn<mark style="color:red;">\*</mark>       | String | Amount of token to be swapped.                                                                                                              |
| from<mark style="color:red;">\*</mark>           | String | Address of the sender of the token.                                                                                                         |
| amountOutMin<mark style="color:red;">\*</mark>   | String | Minimum amount accepted as the result of swap.                                                                                              |
| gas<mark style="color:red;">\*</mark>            | String | Maximum gas limit provided by the sender, for the transaction.                                                                              |
| to                                               | String | Address of the recipient of the token.                                                                                                      |
| dstTokenSymbol                                   | String | Symbol of token to be received as a result of swap.                                                                                         |
| srcChainId                                       | String | <p>Source Chain Id. By default, Ethereum mainnet.<br>Refer to the <a href="/pages/5o1xMsQPqXw9GBfGTpdB">Chain ID </a>page for details. </p> |
| srcChainSymbol                                   | String | Source Chain Symbol.                                                                                                                        |
| slippage                                         | String | <p>Percentage of total swap value. <br>By default, 1.</p><p>0 <= slippage  value <= 100</p>                                                 |
| gasPriority                                      | String | low, medium, or high.                                                                                                                       |
| transferMode                                     | String | Mode of transport-`bus` or `taxi`. By default, `taxi`                                                                                       |

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

```json
{
    "srcChainId": "8453",
    "dstChainId": "1",
    "srcTokenSymbol": "ETH",
    "dstTokenSymbol": "ETH",
    "amountIn": "10000000000000000",
    "gas": "80000",
    "bridgeId": "500",
    "from": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
    "to": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
    "amountOutMin": "0",    
    "transferMode": "bus"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "8453",
        "from": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
        "to": "0xdc181Bd607330aeeBEF6ea62e03e5e1Fb4B6F7C7",
        "value": "20667275745583704",
        "gas": "80000",
        "data": "0xc7c7f5b300000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000025e5d4ad8962560000000000000000000000000000000000000000000000000000000000000000000000000000000000000000dae2f6eddda6fb4fb60cc02633de27e2b431b4020000000000000000000000000000000000000000000000000000000000007595000000000000000000000000dae2f6eddda6fb4fb60cc02633de27e2b431b402000000000000000000000000000000000000000000000000002386f26fc10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010100000000000000000000000000000000000000000000000000000000000000",
        "estimationCheck": true,
        "referenceId": "7deb208a16e5441d98f0703c1eac132d"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
**With gasPriority:**

```json
{
    "srcChainId": "8453",
    "dstChainId": "1",
    "srcTokenSymbol": "ETH",
    "dstTokenSymbol": "ETH",
    "amountIn": "10000000000000000",
    "gas": "80000",
    "bridgeId": "500",
    "from": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
    "to": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
    "amountOutMin": "0",
    "transferMode": "bus",
    "gasPriority": "low"
}
```

{% endtab %}

{% tab title="Sample Response" %}
**With gasPriority:**

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "8453",
        "from": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
        "to": "0xdc181Bd607330aeeBEF6ea62e03e5e1Fb4B6F7C7",
        "value": "20667275745583704",
        "gas": "80000",
        "data": "0xc7c7f5b300000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000025e5d4ad8962560000000000000000000000000000000000000000000000000000000000000000000000000000000000000000dae2f6eddda6fb4fb60cc02633de27e2b431b4020000000000000000000000000000000000000000000000000000000000007595000000000000000000000000dae2f6eddda6fb4fb60cc02633de27e2b431b402000000000000000000000000000000000000000000000000002386f26fc10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010100000000000000000000000000000000000000000000000000000000000000",
        "gasPrice": "7825180",
        "estimationCheck": "Returned error: failed with 140000000 gas: insufficient funds for gas * price + value: address 0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402 have 0 want 20667275745583704",
        "referenceId": "de4c9482c5834faaa1c984928fe84200"
    }
}
```

{% endtab %}
{% endtabs %}

### /addliquidity

Loan your assets to the specified bridge.

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

#### Request Body

| Name                                             | Type   | Description                                                                                                                                 |
| ------------------------------------------------ | ------ | ------------------------------------------------------------------------------------------------------------------------------------------- |
| bridgeId                                         | String | Refer to the [Bridge ID](/ids/bridge-ids) page for details.                                                                                 |
| rpc                                              | String | Remote procedural call URL.                                                                                                                 |
| srcChainId                                       | String | <p>Source Chain Id. By default, Ethereum mainnet.<br>Refer to the <a href="/pages/5o1xMsQPqXw9GBfGTpdB">Chain ID </a>page for details. </p> |
| srcTokenSymbol<mark style="color:red;">\*</mark> | String | Symbol of token to add liquidity.                                                                                                           |
| from<mark style="color:red;">\*</mark>           | String | Address of the sender of the token.                                                                                                         |
| amountIn<mark style="color:red;">\*</mark>       | String | Amount of token to add liquidity.                                                                                                           |
| gas<mark style="color:red;">\*</mark>            | String | Maximum gas limit provided by the sender, for the transaction.                                                                              |
| gasPriority                                      | String | low, medium, or high.                                                                                                                       |

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

```json
{
    "from": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
    "amountIn": "10000000000000000",
    "srcChainId": "8453",
    "srcTokenSymbol": "ETH",
    "gas": "2002",
    "bridgeId": "500"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "8453",
        "from": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
        "to": "0xdc181Bd607330aeeBEF6ea62e03e5e1Fb4B6F7C7",
        "value": "10000000000000000",
        "gas": "2002",
        "data": "0x47e7ef24000000000000000000000000dae2f6eddda6fb4fb60cc02633de27e2b431b402000000000000000000000000000000000000000000000000002386f26fc10000",
        "estimationCheck": true,
        "referenceId": "b368c9f69c0447059b2bf6bba32ff766"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
**With gasPriority:**

```json
{
    "from": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
    "amountIn": "10000000000000000",
    "srcChainId": "8453",
    "srcTokenSymbol": "ETH",
    "gas": "2002",
    "bridgeId": "500",
   "gasPriority": "medium"
}
```

{% endtab %}

{% tab title="Sample Response" %}
**With gasPriority:**

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "8453",
        "from": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
        "to": "0xdc181Bd607330aeeBEF6ea62e03e5e1Fb4B6F7C7",
        "value": "10000000000000000",
        "gas": "2002",
        "data": "0x47e7ef24000000000000000000000000dae2f6eddda6fb4fb60cc02633de27e2b431b402000000000000000000000000000000000000000000000000002386f26fc10000",
        "gasPrice": "9165589",
        "estimationCheck": true,
        "referenceId": "b0d590d48c10479eabbe5fd8cbb352fc"
    }
}
```

{% endtab %}
{% endtabs %}

### /removeliquidity

Remove user liquidity across multiple chains.

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

#### Request Body

| Name                                             | Type   | Description                                                                                                                                 |
| ------------------------------------------------ | ------ | ------------------------------------------------------------------------------------------------------------------------------------------- |
| bridgeId                                         | String | Refer to the [Bridge ID](/ids/bridge-ids) page for details.                                                                                 |
| rpc                                              | String | Remote procedural call URL.                                                                                                                 |
| srcChainId                                       | String | <p>Source Chain Id. By default, Ethereum mainnet.<br>Refer to the <a href="/pages/5o1xMsQPqXw9GBfGTpdB">Chain ID </a>page for details. </p> |
| srcTokenSymbol<mark style="color:red;">\*</mark> | String | Symbol of token to add liquidity.                                                                                                           |
| from<mark style="color:red;">\*</mark>           | String | Address of the sender of the token.                                                                                                         |
| to<mark style="color:red;">\*</mark>             | String | Address of the reciever of the token.                                                                                                       |
| amountOut<mark style="color:red;">\*</mark>      | String | Amount of token to remove liquidity.                                                                                                        |
| gas<mark style="color:red;">\*</mark>            | String | Maximum gas limit provided by the sender, for the transaction.                                                                              |
| gasPriority                                      | String | low, medium, or high.                                                                                                                       |

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

```json
{
    "srcChainId": "1",
    "bridgeId": "500",
    "srcTokenSymbol": "ETH",
    "amountOut": "10000000",
    "gas": "400000",
    "from": "0xe58Aa11A1AD425b12B4a3155124245cd36DA4f5e",
    "to": "0xe58Aa11A1AD425b12B4a3155124245cd36DA4f5e"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0xe58Aa11A1AD425b12B4a3155124245cd36DA4f5e",
        "to": "0x77b2043768d28E9C9aB44E1aBfC95944bcE57931",
        "value": "0",
        "gas": "47589",
        "data": "0x7bde82f20000000000000000000000000000000000000000000000000000000000989680000000000000000000000000e58aa11a1ad425b12b4a3155124245cd36da4f5e",
        "estimationCheck": true,
        "referenceId": "4d56aef5b4c94408b983c10bfbb5e4a6"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
**With gasPriority:**

```json
{
    "srcChainId": "1",
    "bridgeId": "500",
    "srcTokenSymbol": "ETH",
    "amountOut": "10000000",
    "gas": "400000",
    "from": "0xe58Aa11A1AD425b12B4a3155124245cd36DA4f5e",
    "to": "0xe58Aa11A1AD425b12B4a3155124245cd36DA4f5e",
    "gasPriority": "high"
}
```

{% endtab %}

{% tab title="Sample Response" %}
**With gasPriority:**

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0xe58Aa11A1AD425b12B4a3155124245cd36DA4f5e",
        "to": "0x77b2043768d28E9C9aB44E1aBfC95944bcE57931",
        "value": "0",
        "gas": "47589",
        "data": "0x7bde82f20000000000000000000000000000000000000000000000000000000000989680000000000000000000000000e58aa11a1ad425b12b4a3155124245cd36da4f5e",
        "gasPrice": "36342138491",
        "estimationCheck": true,
        "referenceId": "aeb9a7490c744503902302842b9c31b5"
    }
}
```

{% endtab %}
{% endtabs %}


# Squid Router

### Note- SquidRouter V1 is deprecated. Kindly use bridgeId 600 for SquidRouter V2.

### /getsupportedchains

Get the list of chains supported by Squid Router, on expand.network.

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

#### Query Parameters

| Name                                       | Type   | Description                                                 |
| ------------------------------------------ | ------ | ----------------------------------------------------------- |
| bridgeId<mark style="color:red;">\*</mark> | String | Refer to the [Bridge ID](/ids/bridge-ids) page for details. |
| rpc                                        | String | Remote procedural call URL.                                 |

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

```url
https://api.expand.network/bridge/getsupportedchains?bridgeId=200
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": [
        {
            "chainName": "Ethereum",
            "chainId": "1"
        },
        {
            "chainName": "Arbitrum",
            "chainId": "42161"
        },
        {
            "chainName": "optimism",
            "chainId": "10"
        },
        {
            "chainName": "linea",
            "chainId": "59144"
        },
        {
            "chainName": "base",
            "chainId": "8453"
        },
        {
            "chainName": "Avalanche",
            "chainId": "43114"
        },
        {
            "chainName": "Polygon",
            "chainId": "137"
        },
        {
            "chainName": "binance",
            "chainId": "56"
        },
        {
            "chainName": "Fantom",
            "chainId": "250"
        },
        {
            "chainName": "Moonbeam",
            "chainId": "1284"
        },
        {
            "chainName": "mantle",
            "chainId": "5000"
        },
        {
            "chainName": "celo",
            "chainId": "42220"
        },
        {
            "chainName": "kava",
            "chainId": "2222"
        },
        {
            "chainName": "filecoin",
            "chainId": "314"
        },
        {
            "chainName": "osmosis",
            "chainId": "osmosis-1"
        },
        {
            "chainName": "cosmoshub",
            "chainId": "cosmoshub-4"
        },
        {
            "chainName": "kujira",
            "chainId": "kaiyo-1"
        },
        {
            "chainName": "neutron",
            "chainId": "neutron-1"
        },
        {
            "chainName": "stargaze",
            "chainId": "stargaze-1"
        },
        {
            "chainName": "axelarnet",
            "chainId": "axelar-dojo-1"
        },
        {
            "chainName": "umee",
            "chainId": "umee-1"
        },
        {
            "chainName": "persistence",
            "chainId": "core-1"
        },
        {
            "chainName": "sommelier",
            "chainId": "sommelier-3"
        },
        {
            "chainName": "stride",
            "chainId": "stride-1"
        },
        {
            "chainName": "crescent",
            "chainId": "crescent-1"
        },
        {
            "chainName": "juno",
            "chainId": "juno-1"
        },
        {
            "chainName": "carbon",
            "chainId": "carbon-1"
        },
        {
            "chainName": "regen",
            "chainId": "regen-1"
        },
        {
            "chainName": "agoric",
            "chainId": "agoric-3"
        },
        {
            "chainName": "chihuahua",
            "chainId": "chihuahua-1"
        },
        {
            "chainName": "akash",
            "chainId": "akashnet-2"
        },
        {
            "chainName": "comdex",
            "chainId": "comdex-1"
        },
        {
            "chainName": "archway",
            "chainId": "archway-1"
        },
        {
            "chainName": "quicksilver",
            "chainId": "quicksilver-2"
        },
        {
            "chainName": "omniflixhub",
            "chainId": "omniflixhub-1"
        },
        {
            "chainName": "migaloo",
            "chainId": "migaloo-1"
        },
        {
            "chainName": "mars",
            "chainId": "mars-1"
        },
        {
            "chainName": "terra",
            "chainId": "columbus-5"
        },
        {
            "chainName": "assetmantle",
            "chainId": "mantle-1"
        },
        {
            "chainName": "gravitybridge",
            "chainId": "gravity-bridge-3"
        },
        {
            "chainName": "bitcanna",
            "chainId": "bitcanna-1"
        },
        {
            "chainName": "bitsong",
            "chainId": "bitsong-2b"
        },
        {
            "chainName": "cheqd",
            "chainId": "cheqd-mainnet-1"
        },
        {
            "chainName": "decentr",
            "chainId": "mainnet-3"
        },
        {
            "chainName": "desmos",
            "chainId": "desmos-mainnet"
        },
        {
            "chainName": "irisnet",
            "chainId": "irishub-1"
        },
        {
            "chainName": "impacthub",
            "chainId": "ixo-5"
        },
        {
            "chainName": "jackal",
            "chainId": "jackal-1"
        },
        {
            "chainName": "likecoin",
            "chainId": "likecoin-mainnet-2"
        },
        {
            "chainName": "lumnetwork",
            "chainId": "lum-network-1"
        },
        {
            "chainName": "sentinel",
            "chainId": "sentinelhub-2"
        }
    ]
}
```

{% endtab %}
{% endtabs %}

### /getsupportedtokens

Get the list of tokens supported by Squid Router, on the specified chain, on expand.network.

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

#### Query Parameters

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

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

```url
https://api.expand.network/bridge/getsupportedtokens?bridgeId=200&chainId=1
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": [
        {
            "tokenSymbol": "USDC",
            "address": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"
        },
        {
            "tokenSymbol": "ETH",
            "address": "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE"
        },
        {
            "tokenSymbol": "USDT",
            "address": "0xdAC17F958D2ee523a2206206994597C13D831ec7"
        },
        {
            "tokenSymbol": "WETH",
            "address": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"
        },
        {
            "tokenSymbol": "WBTC",
            "address": "0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599"
        },
        {
            "tokenSymbol": "AXL",
            "address": "0x467719aD09025FcC6cF6F8311755809d45a5E5f3"
        },
        {
            "tokenSymbol": "DAI",
            "address": "0x6B175474E89094C44Da98b954EedeAC495271d0F"
        },
        {
            "tokenSymbol": "WMAI",
            "address": "0x05770332D4410b6D7f07Fd497E4c00F8F7bFb74A"
        },
        {
            "tokenSymbol": "FRAX",
            "address": "0x853d955aCEf822Db058eb8505911ED77F175b99e"
        },
        {
            "tokenSymbol": "CRV",
            "address": "0xD533a949740bb3306d119CC777fa900bA034cd52"
        },
        {
            "tokenSymbol": "UNI",
            "address": "0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984"
        },
        {
            "tokenSymbol": "MKR",
            "address": "0x9f8F72aA9304c8B593d555F12eF6589cC3A579A2"
        },
        {
            "tokenSymbol": "ARB",
            "address": "0xB50721BCf8d664c30412Cfbc6cf7a15145234ad1"
        },
        {
            "tokenSymbol": "LINK",
            "address": "0x514910771AF9Ca656af840dff83E8264EcF986CA"
        },
        {
            "tokenSymbol": "KNC",
            "address": "0xdeFA4e8a7bcBA345F687a2f1456F5Edd9CE97202"
        },
        {
            "tokenSymbol": "YFI",
            "address": "0x0bc529c00C6401aEF6D220BE8C6Ea1667F6Ad93e"
        },
        {
            "tokenSymbol": "REN",
            "address": "0x408e41876cCCDC0F92210600ef50372656052a38"
        },
        {
            "tokenSymbol": "FIDU",
            "address": "0x6a445E9F40e0b97c92d0b8a3366cEF1d67F700BF"
        },
        {
            "tokenSymbol": "GRT",
            "address": "0xc944E90C64B2c07662A292be6244BDf05Cda44a7"
        },
        {
            "tokenSymbol": "SNX",
            "address": "0xC011a73ee8576Fb46F5E1c5751cA3B9Fe0af2a6F"
        },
        {
            "tokenSymbol": "MANA",
            "address": "0x0F5D2fB29fb7d3CFeE444a200298f468908cC942"
        },
        {
            "tokenSymbol": "ANT",
            "address": "0xa117000000f279D81A1D3cc75430fAA017FA5A2e"
        },
        {
            "tokenSymbol": "MLN",
            "address": "0xec67005c4E498Ec7f55E092bd1d35cbC47C91892"
        },
        {
            "tokenSymbol": "MATIC",
            "address": "0x7D1AfA7B718fb893dB30A3aBc0Cfc608AaCfeBB0"
        },
        {
            "tokenSymbol": "1INCH",
            "address": "0x111111111117dC0aa78b770fA6A738034120C302"
        },
        {
            "tokenSymbol": "BLZ",
            "address": "0x5732046A883704404F284Ce41FfADd5b007FD668"
        },
        {
            "tokenSymbol": "RAI",
            "address": "0x03ab458634910AaD20eF5f1C8ee96F1D6ac54919"
        },
        {
            "tokenSymbol": "ERN",
            "address": "0xBBc2AE13b23d715c30720F079fcd9B4a74093505"
        },
        {
            "tokenSymbol": "COTI",
            "address": "0xDDB3422497E61e13543BeA06989C0789117555c5"
        },
        {
            "tokenSymbol": "SUPER",
            "address": "0xe53EC727dbDEB9E2d5456c3be40cFF031AB40A55"
        },
        {
            "tokenSymbol": "DIA",
            "address": "0x84cA8bc7997272c7CfB4D0Cd3D55cd942B3c9419"
        },
        {
            "tokenSymbol": "RBC",
            "address": "0xA4EED63db85311E22dF4473f87CcfC3DaDCFA3E3"
        },
        {
            "tokenSymbol": "ENJ",
            "address": "0xF629cBd94d3791C9250152BD8dfBDF380E2a3B9c"
        },
        {
            "tokenSymbol": "TOKE",
            "address": "0x2e9d63788249371f1DFC918a52f8d799F4a38C94"
        },
        {
            "tokenSymbol": "GLM",
            "address": "0x7DD9c5Cba05E151C895FDe1CF355C9A1D5DA6429"
        },
        {
            "tokenSymbol": "HIGH",
            "address": "0x71Ab77b7dbB4fa7e017BC15090b2163221420282"
        },
        {
            "tokenSymbol": "INV",
            "address": "0x41D5D79431A913C4aE7d69a668ecdfE5fF9DFB68"
        },
        {
            "tokenSymbol": "QNT",
            "address": "0x4a220E6096B25EADb88358cb44068A3248254675"
        },
        {
            "tokenSymbol": "RLY",
            "address": "0xf1f955016EcbCd7321c7266BccFB96c68ea5E49b"
        },
        {
            "tokenSymbol": "REQ",
            "address": "0x8f8221aFbB33998d8584A2B05749bA73c37a938a"
        },
        {
            "tokenSymbol": "RBN",
            "address": "0x6123B0049F904d730dB3C36a31167D9d4121fA6B"
        },
        {
            "tokenSymbol": "FOX",
            "address": "0xc770EEfAd204B5180dF6a14Ee197D99d808ee52d"
        },
        {
            "tokenSymbol": "SHIB",
            "address": "0x95aD61b0a150d79219dCF64E1E6Cc01f0B64C4cE"
        },
        {
            "tokenSymbol": "SUSHI",
            "address": "0x6B3595068778DD592e39A122f4f5a5cF09C90fE2"
        },
        {
            "tokenSymbol": "FXS",
            "address": "0x3432B6A60D23Ca0dFCa7761B7ab56459D9C964D0"
        },
        {
            "tokenSymbol": "OCEAN",
            "address": "0x967da4048cD07aB37855c090aAF366e4ce1b9F48"
        },
        {
            "tokenSymbol": "PAXG",
            "address": "0x45804880De22913dAFE09f4980848ECE6EcbAf78"
        },
        {
            "tokenSymbol": "SAND",
            "address": "0x3845badAde8e6dFF049820680d1F14bD3903a5d0"
        },
        {
            "tokenSymbol": "AUDIO",
            "address": "0x18aAA7115705e8be94bfFEBDE57Af9BFc265B998"
        },
        {
            "tokenSymbol": "ELON",
            "address": "0x761D38e5ddf6ccf6Cf7c55759d5210750B5D60F3"
        },
        {
            "tokenSymbol": "MC",
            "address": "0x949D48EcA67b17269629c7194F4b727d4Ef9E5d6"
        },
        {
            "tokenSymbol": "CUBE",
            "address": "0xDf801468a808a32656D2eD2D2d80B72A129739f4"
        },
        {
            "tokenSymbol": "ADX",
            "address": "0xADE00C28244d5CE17D72E40330B1c318cD12B7c3"
        },
        {
            "tokenSymbol": "DEXT",
            "address": "0xfB7B4564402E5500dB5bB6d63Ae671302777C75a"
        },
        {
            "tokenSymbol": "DPI",
            "address": "0x1494CA1F11D487c2bBe4543E90080AeBa4BA3C2b"
        },
        {
            "tokenSymbol": "METIS",
            "address": "0x9E32b13ce7f2E80A01932B42553652E053D6ed8e"
        },
        {
            "tokenSymbol": "MONA",
            "address": "0x275f5Ad03be0Fa221B4C6649B8AeE09a42D9412A"
        },
        {
            "tokenSymbol": "MUSE",
            "address": "0xB6Ca7399B4F9CA56FC27cBfF44F4d2e4Eef1fc81"
        },
        {
            "tokenSymbol": "ROOK",
            "address": "0xfA5047c9c78B8877af97BDcb85Db743fD7313d4a"
        },
        {
            "tokenSymbol": "SYLO",
            "address": "0xf293d23BF2CDc05411Ca0edDD588eb1977e8dcd4"
        },
        {
            "tokenSymbol": "TVK",
            "address": "0xd084B83C305daFD76AE3E1b4E1F1fe2eCcCb3988"
        },
        {
            "tokenSymbol": "WOO",
            "address": "0x4691937a7508860F876c9c0a2a617E7d9E945D4B"
        },
        {
            "tokenSymbol": "XCN",
            "address": "0xA2cd3D43c775978A96BdBf12d733D5A1ED94fb18"
        },
        {
            "tokenSymbol": "BUSD",
            "address": "0x4Fabb145d64652a948d72533023f6E7A623C7C53"
        },
        {
            "tokenSymbol": "AAVE",
            "address": "0x7Fc66500c84A76Ad7e9c93437bFc5Ac33E2DDaE9"
        },
        {
            "tokenSymbol": "ALCX",
            "address": "0xdBdb4d16EdA451D0503b854CF79D55697F90c8DF"
        },
        {
            "tokenSymbol": "ALPHA",
            "address": "0xa1faa113cbE53436Df28FF0aEe54275c13B40975"
        },
        {
            "tokenSymbol": "AMP",
            "address": "0xfF20817765cB7f73d4bde2e66e067E58D11095C2"
        },
        {
            "tokenSymbol": "APW",
            "address": "0x4104b135DBC9609Fc1A9490E61369036497660c8"
        },
        {
            "tokenSymbol": "ASTRAFER",
            "address": "0x97Bbbc5d96875fB78D2F14b7FF8d7a3a74106F17"
        },
        {
            "tokenSymbol": "AUCTION",
            "address": "0xA9B1Eb5908CfC3cdf91F9B8B3a74108598009096"
        },
        {
            "tokenSymbol": "BAND",
            "address": "0xBA11D00c5f74255f56a5E366F4F77f5A186d7f55"
        },
        {
            "tokenSymbol": "BANK",
            "address": "0x24A6A37576377F63f194Caa5F518a60f45b42921"
        },
        {
            "tokenSymbol": "BAO",
            "address": "0x374CB8C27130E2c9E04F44303f3c8351B9De61C1"
        },
        {
            "tokenSymbol": "BDI",
            "address": "0x0309c98B1bffA350bcb3F9fB9780970CA32a5060"
        },
        {
            "tokenSymbol": "BICO",
            "address": "0xF17e65822b568B3903685a7c9F496CF7656Cc6C2"
        },
        {
            "tokenSymbol": "BIFI",
            "address": "0x2791BfD60D232150Bff86b39B7146c0eaAA2BA81"
        },
        {
            "tokenSymbol": "BIT",
            "address": "0x1A4b46696b2bB4794Eb3D4c26f1c55F9170fa4C5"
        },
        {
            "tokenSymbol": "BLOCKS",
            "address": "0x8a6D4C8735371EBAF8874fBd518b56Edd66024eB"
        },
        {
            "tokenSymbol": "BMI",
            "address": "0x725C263e32c72dDC3A19bEa12C5a0479a81eE688"
        },
        {
            "tokenSymbol": "BPT",
            "address": "0x0eC9F76202a7061eB9b3a7D6B59D36215A7e37da"
        },
        {
            "tokenSymbol": "C98",
            "address": "0xAE12C5930881c53715B369ceC7606B70d8EB229f"
        },
        {
            "tokenSymbol": "CIG",
            "address": "0xCB56b52316041A62B6b5D0583DcE4A8AE7a3C629"
        },
        {
            "tokenSymbol": "COMP",
            "address": "0xc00e94Cb662C3520282E6f5717214004A7f26888"
        },
        {
            "tokenSymbol": "CREAM",
            "address": "0x2ba592F78dB6436527729929AAf6c908497cB200"
        },
        {
            "tokenSymbol": "CVX",
            "address": "0x4e3FBD56CD56c3e72c1403e103b45Db9da5B9D2B"
        },
        {
            "tokenSymbol": "DAOX",
            "address": "0xE00639A1f59B52773b7d39d9F9beF07F6248dbAe"
        },
        {
            "tokenSymbol": "DELTA",
            "address": "0x9EA3b5b4EC044b70375236A281986106457b20EF"
        },
        {
            "tokenSymbol": "DOG",
            "address": "0xBAac2B4491727D78D2b78815144570b9f2Fe8899"
        },
        {
            "tokenSymbol": "DOUGH",
            "address": "0xad32A8e6220741182940c5aBF610bDE99E737b2D"
        },
        {
            "tokenSymbol": "DYDX",
            "address": "0x92D6C1e31e14520e676a687F0a93788B716BEff5"
        },
        {
            "tokenSymbol": "EDEN",
            "address": "0x1559FA1b8F28238FD5D76D9f434ad86FD20D1559"
        },
        {
            "tokenSymbol": "ENS",
            "address": "0xC18360217D8F7Ab5e7c516566761Ea12Ce7F9D72"
        },
        {
            "tokenSymbol": "FLOAT",
            "address": "0xb05097849BCA421A3f51B249BA6CCa4aF4b97cb9"
        },
        {
            "tokenSymbol": "FNC",
            "address": "0x7f280daC515121DcdA3EaC69eB4C13a52392CACE"
        },
        {
            "tokenSymbol": "FODL",
            "address": "0x4C2e59D098DF7b6cBaE0848d66DE2f8A4889b9C3"
        },
        {
            "tokenSymbol": "FOLD",
            "address": "0xd084944d3c05CD115C09d072B9F44bA3E0E45921"
        },
        {
            "tokenSymbol": "FTM",
            "address": "0x4E15361FD6b4BB609Fa63C81A2be19d873717870"
        },
        {
            "tokenSymbol": "FTT",
            "address": "0x50D1c9771902476076eCFc8B2A83Ad6b9355a4c9"
        },
        {
            "tokenSymbol": "GET",
            "address": "0x8a854288a5976036A725879164Ca3e91d30c6A1B"
        },
        {
            "tokenSymbol": "GODS",
            "address": "0xccC8cb5229B0ac8069C51fd58367Fd1e622aFD97"
        },
        {
            "tokenSymbol": "GOG",
            "address": "0x9AB7bb7FdC60f4357ECFef43986818A2A3569c62"
        },
        {
            "tokenSymbol": "HOP",
            "address": "0xc5102fE9359FD9a28f877a67E36B0F050d81a3CC"
        },
        {
            "tokenSymbol": "ICE",
            "address": "0xf16e81dce15B08F326220742020379B855B87DF9"
        },
        {
            "tokenSymbol": "ICHI",
            "address": "0x903bEF1736CDdf2A537176cf3C64579C3867A881"
        },
        {
            "tokenSymbol": "ILSI",
            "address": "0x0acC0FEE1D86D2cD5AF372615bf59b298D50cd69"
        },
        {
            "tokenSymbol": "ILV",
            "address": "0x767FE9EDC9E0dF98E07454847909b5E959D7ca0E"
        },
        {
            "tokenSymbol": "IMX",
            "address": "0xF57e7e7C23978C3cAEC3C3548E3D615c346e79fF"
        },
        {
            "tokenSymbol": "INJ",
            "address": "0xe28b3B32B6c345A34Ff64674606124Dd5Aceca30"
        },
        {
            "tokenSymbol": "IQ",
            "address": "0x579CEa1889991f68aCc35Ff5c3dd0621fF29b0C9"
        },
        {
            "tokenSymbol": "JPEG",
            "address": "0xE80C0cd204D654CEbe8dd64A4857cAb6Be8345a3"
        },
        {
            "tokenSymbol": "KP3R",
            "address": "0x1cEB5cB57C4D4E2b2433641b95Dd330A33185A44"
        },
        {
            "tokenSymbol": "LDO",
            "address": "0x5A98FcBEA516Cf06857215779Fd812CA3beF1B32"
        },
        {
            "tokenSymbol": "LYRA",
            "address": "0x01BA67AAC7f75f647D94220Cc98FB30FCc5105Bf"
        },
        {
            "tokenSymbol": "MAID",
            "address": "0x4Af698B479D0098229DC715655c667Ceb6cd8433"
        },
        {
            "tokenSymbol": "MARS4",
            "address": "0x16CDA4028e9E872a38AcB903176719299beAed87"
        },
        {
            "tokenSymbol": "MASQ",
            "address": "0x06F3C323f0238c72BF35011071f2b5B7F43A054c"
        },
        {
            "tokenSymbol": "MIM",
            "address": "0x99D8a9C45b2ecA8864373A26D1459e3Dff1e17F3"
        },
        {
            "tokenSymbol": "MULTI",
            "address": "0x65Ef703f5594D2573eb71Aaf55BC0CB548492df4"
        },
        {
            "tokenSymbol": "NFD",
            "address": "0xDFDb7f72c1F195C5951a234e8DB9806EB0635346"
        },
        {
            "tokenSymbol": "NFTL",
            "address": "0x3c8D2FCE49906e11e71cB16Fa0fFeB2B16C29638"
        },
        {
            "tokenSymbol": "OOKI",
            "address": "0x0De05F6447ab4D22c8827449EE4bA2D5C288379B"
        },
        {
            "tokenSymbol": "PENDLE",
            "address": "0x808507121B80c02388fAd14726482e061B8da827"
        },
        {
            "tokenSymbol": "PICKLE",
            "address": "0x429881672B9AE42b8EbA0E26cD9C73711b891Ca5"
        },
        {
            "tokenSymbol": "POND",
            "address": "0x57B946008913B82E4dF85f501cbAeD910e58D26C"
        },
        {
            "tokenSymbol": "PREMIA",
            "address": "0x6399C842dD2bE3dE30BF99Bc7D1bBF6Fa3650E70"
        },
        {
            "tokenSymbol": "RADAR",
            "address": "0x44709a920fCcF795fbC57BAA433cc3dd53C44DbE"
        },
        {
            "tokenSymbol": "RAIL",
            "address": "0xe76C6c83af64e4C60245D8C7dE953DF673a7A33D"
        },
        {
            "tokenSymbol": "RLC",
            "address": "0x607F4C5BB672230e8672085532f7e901544a7375"
        },
        {
            "tokenSymbol": "RUNE",
            "address": "0x3155BA85D5F96b2d030a4966AF206230e46849cb"
        },
        {
            "tokenSymbol": "SAK3",
            "address": "0xe9F84dE264E91529aF07Fa2C746e934397810334"
        },
        {
            "tokenSymbol": "SOS",
            "address": "0x3b484b82567a09e2588A13D54D032153f0c0aEe0"
        },
        {
            "tokenSymbol": "SPELL",
            "address": "0x090185f2135308BaD17527004364eBcC2D37e5F6"
        },
        {
            "tokenSymbol": "SPS",
            "address": "0x00813E3421E1367353BfE7615c7f7f133C89df74"
        },
        {
            "tokenSymbol": "SRM",
            "address": "0x476c5E26a75bd202a9683ffD34359C0CC15be0fF"
        },
        {
            "tokenSymbol": "SYN",
            "address": "0x0f2D719407FdBeFF09D87557AbB7232601FD9F29"
        },
        {
            "tokenSymbol": "TGT",
            "address": "0x108a850856Db3f85d0269a2693D896B394C80325"
        },
        {
            "tokenSymbol": "THOR",
            "address": "0xa5f2211B9b8170F694421f2046281775E8468044"
        },
        {
            "tokenSymbol": "TLOS",
            "address": "0x7825e833D495F3d1c28872415a4aee339D26AC88"
        },
        {
            "tokenSymbol": "TRU",
            "address": "0x4C19596f5aAfF459fA38B0f7eD92F11AE6543784"
        },
        {
            "tokenSymbol": "TUSD",
            "address": "0x0000000000085d4780B73119b644AE5ecd22b376"
        },
        {
            "tokenSymbol": "UMA",
            "address": "0x04Fa0d235C4abf4BcF4787aF4CF447DE572eF828"
        },
        {
            "tokenSymbol": "VEGA",
            "address": "0xcB84d72e61e383767C4DFEb2d8ff7f4FB89abc6e"
        },
        {
            "tokenSymbol": "WNCG",
            "address": "0xf203Ca1769ca8e9e8FE1DA9D147DB68B6c919817"
        },
        {
            "tokenSymbol": "XFT",
            "address": "0xABe580E7ee158dA464b51ee1a83Ac0289622e6be"
        },
        {
            "tokenSymbol": "XRUNE",
            "address": "0x69fa0feE221AD11012BAb0FdB45d444D3D2Ce71c"
        },
        {
            "tokenSymbol": "YAM",
            "address": "0x0AaCfbeC6a24756c20D41914F2caba817C0d8521"
        },
        {
            "tokenSymbol": "YEL",
            "address": "0x7815bDa662050D84718B988735218CFfd32f75ea"
        },
        {
            "tokenSymbol": "YGG",
            "address": "0x25f8087EAD173b73D6e8B84329989A8eEA16CF73"
        },
        {
            "tokenSymbol": "XEN",
            "address": "0x06450dEe7FD2Fb8E39061434BAbCFC05599a6Fb8"
        },
        {
            "tokenSymbol": "SILO",
            "address": "0x6f80310ca7f2c654691d1383149fa1a57d8ab1f8"
        },
        {
            "tokenSymbol": "WLD",
            "address": "0x163f8c2467924be0ae7b5347228cabf260318753"
        },
        {
            "tokenSymbol": "BABYDOGE",
            "address": "0xAC57De9C1A09FeC648E93EB98875B212DB0d460B"
        },
        {
            "tokenSymbol": "OATH",
            "address": "0xd20523b39fAF1D6e9023a4D6085f87B7b0DE7926"
        },
        {
            "tokenSymbol": "GDX",
            "address": "0x89901994b5Ed81cbbcBC4E5A7e0cC4e7F58e5458"
        },
        {
            "tokenSymbol": "SWAP",
            "address": "0xcc4304a31d09258b0029ea7fe63d032f52e44efe"
        },
        {
            "tokenSymbol": "POLS",
            "address": "0x83e6f1E41cdd28eAcEB20Cb649155049Fac3D5Aa"
        },
        {
            "tokenSymbol": "ORBS",
            "address": "0xff56Cc6b1E6dEd347aA0B7676C85AB0B3D08B0FA"
        },
        {
            "tokenSymbol": "LUSD",
            "address": "0x5f98805A4E8be255a32880FDeC7F6728C6568bA0"
        },
        {
            "tokenSymbol": "CBETH",
            "address": "0xbe9895146f7af43049ca1c1ae358b0541ea49704"
        },
        {
            "tokenSymbol": "RETH",
            "address": "0xae78736Cd615f374D3085123A210448E74Fc6393"
        },
        {
            "tokenSymbol": "REPV2",
            "address": "0x221657776846890989a759BA2973e427DfF5C9bB"
        },
        {
            "tokenSymbol": "KNC_E",
            "address": "0x18fA72e0EE4C580a129b0CE5bD0694d716C7443E"
        },
        {
            "tokenSymbol": "SUSD",
            "address": "0x57Ab1ec28D129707052df4dF418D58a2D46d5f51"
        },
        {
            "tokenSymbol": "PWING",
            "address": "0xDb0f18081b505A7DE20B18ac41856BCB4Ba86A1a"
        },
        {
            "tokenSymbol": "STKATOM",
            "address": "0x44017598f2AF1bD733F9D87b5017b4E7c1B28DDE"
        },
        {
            "tokenSymbol": "UWU",
            "address": "0x55C08ca52497e2f1534B59E2917BF524D4765257"
        },
        {
            "tokenSymbol": "XSUSHI",
            "address": "0x8798249c2E607446EfB7Ad49eC89dD1865Ff4272"
        },
        {
            "tokenSymbol": "YVBOOST",
            "address": "0x9d409a0A012CFbA9B15F6D4B36Ac57A46966Ab9a"
        },
        {
            "tokenSymbol": "AXLFIL",
            "address": "0x6A7b717aE5Ed65F85BA25403D5063D368239828e"
        },
        {
            "tokenSymbol": "STERN",
            "address": "0xeA0cFDC2667bE69ED724c8069d358502fF41cA18"
        },
        {
            "tokenSymbol": "AXLDEUS",
            "address": "0x69e557b926F4eEf6d9400e36DBBFEb9600Af2880"
        },
        {
            "tokenSymbol": "AXLLQDR",
            "address": "0x98504C8afa7c74c87a0641a7bb0F7968d4e8F471"
        },
        {
            "tokenSymbol": "WSTETH",
            "address": "0x7f39c581f595b53c5cb19bd0b3f8da6c935e2ca0"
        },
        {
            "tokenSymbol": "SFRXETH",
            "address": "0xac3E018457B222d93114458476f3E3416Abbe38F"
        }
    ]
}
```

{% endtab %}
{% endtabs %}

### /gettransaction

Get details of a transaction.

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

#### Query Parameters

| Name                                              | Type   | Description                                                 |
| ------------------------------------------------- | ------ | ----------------------------------------------------------- |
| rpc                                               | String | Remote procedural call URL.                                 |
| transactionHash<mark style="color:red;">\*</mark> | String | The transaction hash.                                       |
| bridgeId<mark style="color:red;">\*</mark>        | String | Refer to the [Bridge ID](/ids/bridge-ids) page for details. |

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

```url
https://api.expand.network/bridge/gettransaction?bridgeId=200&transactionHash=0x06477aa2bc628a40caeaae660c1ac0e3acb18b4131aae55525d591fafe0cbc7c
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "srcTx": {
            "transactionId": "0x06477aa2bc628a40caeaae660c1ac0e3acb18b4131aae55525d591fafe0cbc7c",
            "blockNumber": 18268161,
            "callEventStatus": "",
            "callEventLog": [],
            "chainData": {
                "chainName": "Ethereum",
                "chainType": "evm",
                "rpc": "https://ethereum.publicnode.com",
                "networkName": "Ethereum",
                "chainId": 1,
                "nativeCurrency": {
                    "name": "Ethereum",
                    "symbol": "ETH",
                    "decimals": 18,
                    "icon": "https://raw.githubusercontent.com/0xsquid/assets/main/images/tokens/eth.svg"
                },
                "swapAmountForGas": "2000000",
                "chainIconURI": "https://raw.githubusercontent.com/0xsquid/assets/main/images/tokens/eth.svg",
                "blockExplorerUrls": [
                    "https://etherscan.io/"
                ],
                "chainNativeContracts": {
                    "wrappedNativeToken": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
                    "ensRegistry": "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",
                    "multicall": "0xcA11bde05977b3631167028862bE2a173976CA11",
                    "usdcToken": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"
                },
                "axelarContracts": {
                    "gateway": "0x4F4495243837681061C4743b74B3eEdf548D56A5",
                    "forecallable": ""
                },
                "squidContracts": {
                    "squidRouter": "0xce16F69375520ab01377ce7B88f5BA8C48F8D666",
                    "defaultCrosschainToken": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
                    "squidMulticall": "0xEa749Fd6bA492dbc14c24FE8A3d08769229b896c",
                    "squidFeeCollector": "0x19cd4F3820E7BBed45762a30BFA37dFC6c9C145b"
                },
                "estimatedRouteDuration": 960,
                "estimatedExpressRouteDuration": 20
            },
            "transactionUrl": "https://etherscan.io/tx/0x06477aa2bc628a40caeaae660c1ac0e3acb18b4131aae55525d591fafe0cbc7c"
        },
        "dstTx": {
            "transactionId": "0x299de1b382b8b9636f6d5db1fb3b86ef1751405bc6f7f2c8bf80fe333e18e8e9",
            "blockNumber": 48266930,
            "callEventStatus": "CrossMulticallExecuted",
            "callEventLog": [
                {
                    "contractAddress": "0xce16F69375520ab01377ce7B88f5BA8C48F8D666",
                    "args": {
                        "eventFragment": {
                            "name": "CrossMulticallExecuted",
                            "anonymous": false,
                            "inputs": [
                                {
                                    "name": "payloadHash",
                                    "type": "bytes32",
                                    "indexed": true,
                                    "components": null,
                                    "arrayLength": null,
                                    "arrayChildren": null,
                                    "baseType": "bytes32",
                                    "_isParamType": true
                                }
                            ],
                            "type": "event",
                            "_isFragment": true
                        },
                        "name": "CrossMulticallExecuted",
                        "signature": "CrossMulticallExecuted(bytes32)",
                        "topic": "0x7c3aa10c5d96985be6de7d2e6fa79bdef95a95a9cb272f4113b3fe1ca89fedae",
                        "args": [
                            "0xc7dfe38f4bb44d51e72b967887a89b438b8daf162529b917bcd7b75e7d469505"
                        ]
                    }
                }
            ],
            "chainData": {
                "chainName": "Polygon",
                "chainType": "evm",
                "rpc": "https://polygon-rpc.com",
                "networkName": "Polygon",
                "chainId": 137,
                "nativeCurrency": {
                    "name": "Polygon",
                    "symbol": "MATIC",
                    "decimals": 18,
                    "icon": "https://raw.githubusercontent.com/axelarnetwork/axelar-docs/main/public/images/chains/polygon.svg"
                },
                "swapAmountForGas": "2000000",
                "chainIconURI": "https://raw.githubusercontent.com/axelarnetwork/axelar-docs/main/public/images/chains/polygon.svg",
                "blockExplorerUrls": [
                    "https://polygonscan.com/"
                ],
                "chainNativeContracts": {
                    "wrappedNativeToken": "0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270",
                    "ensRegistry": "",
                    "multicall": "0xcA11bde05977b3631167028862bE2a173976CA11",
                    "usdcToken": "0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174"
                },
                "axelarContracts": {
                    "gateway": "0x6f015F16De9fC8791b234eF68D486d2bF203FBA8",
                    "forecallable": "0x2d5d7d31F671F86C782533cc367F14109a082712"
                },
                "squidContracts": {
                    "squidRouter": "0xce16F69375520ab01377ce7B88f5BA8C48F8D666",
                    "defaultCrosschainToken": "0x750e4C4984a9e0f12978eA6742Bc1c5D248f40ed",
                    "squidMulticall": "0xEa749Fd6bA492dbc14c24FE8A3d08769229b896c",
                    "squidFeeCollector": "0x19cd4F3820E7BBed45762a30BFA37dFC6c9C145b"
                },
                "estimatedRouteDuration": 360,
                "estimatedExpressRouteDuration": 20
            },
            "transactionUrl": "https://polygonscan.com/tx/0x299de1b382b8b9636f6d5db1fb3b86ef1751405bc6f7f2c8bf80fe333e18e8e9"
        }
    }
}
```

{% endtab %}
{% endtabs %}

### /getprice

Get the swap quotation for the given token pairs.

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

#### Query Parameters

| Name                                             | Type   | Description                                                                          |
| ------------------------------------------------ | ------ | ------------------------------------------------------------------------------------ |
| rpc                                              | String | Remote procedural call URL.                                                          |
| srcChainId                                       | String | [Chain Id](/ids/bridge-ids/internal-chain-ids-for-bridges) of the source chain.      |
| bridgeId<mark style="color:red;">\*</mark>       | String | Refer to the [Bridge ID](/ids/bridge-ids) page for details.                          |
| dstChainId<mark style="color:red;">\*</mark>     | String | [Chain Id](/ids/bridge-ids/internal-chain-ids-for-bridges) of the destination chain. |
| srcTokenSymbol<mark style="color:red;">\*</mark> | String | Source token symbol.                                                                 |
| dstTokenSymbol<mark style="color:red;">\*</mark> | String | Destination token symbol.                                                            |
| amountIn<mark style="color:red;">\*</mark>       | String | Amount of token.                                                                     |

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

```url
https://api.expand.network/bridge/getprice?bridgeId=200&srcTokenSymbol=WBTC&dstTokenSymbol=BNB&srcChainId=1&amountIn=100000&dstChainId=56
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "srcChainId": "1",
        "dstChainId": "56",
        "srcTokenSymbol": "WBTC",
        "dstTokenSymbol": "BNB",
        "amountIn": "100000",
        "amountsOut": [
            "100000",
            "108764511504023747"
        ]
    }
}
```

{% endtab %}
{% endtabs %}

### /getroute

Get the route details as to how the tokens will be bridged, token amount, etc.&#x20;

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

#### Query Parameters

| Name                                             | Type   | Description                                                                          |
| ------------------------------------------------ | ------ | ------------------------------------------------------------------------------------ |
| rpc                                              | String | Remote procedural call URL.                                                          |
| srcChainId                                       | String | [Chain Id](/ids/bridge-ids/internal-chain-ids-for-bridges) of the source chain.      |
| bridgeId<mark style="color:red;">\*</mark>       | String | Refer to the [Bridge ID](/ids/bridge-ids) page for details.                          |
| dstChainId<mark style="color:red;">\*</mark>     | String | [Chain Id](/ids/bridge-ids/internal-chain-ids-for-bridges) of the destination chain. |
| srcTokenSymbol<mark style="color:red;">\*</mark> | String | Source token symbol.                                                                 |
| dstTokenSymbol<mark style="color:red;">\*</mark> | String | Destination token symbol.                                                            |
| amountIn<mark style="color:red;">\*</mark>       | String | Amount of token.                                                                     |

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

```url
https://api.expand.network/bridge/getroute?bridgeId=200&dstChainId=137&srcTokenSymbol=ETH&dstTokenSymbol=USDC&amountIn=100000000000
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "fromAmount": "100000000000",
        "sendAmount": "312",
        "toAmount": "311",
        "toAmountMin": "308",
        "fromAmountUSD": "0.0003",
        "route": {
            "fromChain": [
                {
                    "type": "SWAP",
                    "dex": {
                        "chainName": "Ethereum",
                        "dexName": "Pancakeswap_v3",
                        "swapRouter": "0x1b81D678ffb9C0263b24A97847620C99d213eB14",
                        "quoter": "0xB048Bbc1Ee6b733FFfCFb9e9CeF7375518e25997",
                        "isCrypto": true,
                        "isStable": false
                    },
                    "target": "0x1b81D678ffb9C0263b24A97847620C99d213eB14",
                    "path": [
                        "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
                        "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"
                    ],
                    "poolFees": [
                        100
                    ],
                    "swapType": "crypto",
                    "squidCallType": 2,
                    "fromToken": {
                        "chainId": 1,
                        "address": "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE",
                        "name": "Ethereum",
                        "symbol": "ETH",
                        "decimals": 18,
                        "logoURI": "https://raw.githubusercontent.com/0xsquid/assets/main/images/tokens/eth.svg",
                        "coingeckoId": "ethereum",
                        "commonKey": "weth-wei"
                    },
                    "toToken": {
                        "name": "USDCoin",
                        "address": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
                        "symbol": "USDC",
                        "decimals": 6,
                        "chainId": 1,
                        "logoURI": "https://raw.githubusercontent.com/0xsquid/assets/main/images/tokens/usdc.svg",
                        "coingeckoId": "usd-coin",
                        "commonKey": "uusdc"
                    },
                    "fromAmount": "100000000000",
                    "toAmount": "312",
                    "toAmountMin": "309",
                    "exchangeRate": "3120.0",
                    "priceImpact": "-0.6451612903225806",
                    "isFrom": true,
                    "dynamicSlippage": 0.8016032064128265
                }
            ],
            "toChain": [
                {
                    "type": "SWAP",
                    "dex": {
                        "chainName": "Polygon",
                        "dexName": "Quickswap_v3",
                        "swapRouter": "0xf5b509bb0909a69b1c207e495f687a596c168e12",
                        "deployer": "0x2D98E2FA9da15aa6dC9581AB097Ced7af697CB92",
                        "quoter": "0xa15F0D7377B2A0C0c10db057f641beD21028FC89",
                        "isStable": true,
                        "isCrypto": true
                    },
                    "target": "0xf5b509bb0909a69b1c207e495f687a596c168e12",
                    "path": [
                        "0x750e4C4984a9e0f12978eA6742Bc1c5D248f40ed",
                        "0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174"
                    ],
                    "poolFees": [
                        100
                    ],
                    "swapType": "stable",
                    "squidCallType": 1,
                    "fromToken": {
                        "chainId": 137,
                        "address": "0x750e4C4984a9e0f12978eA6742Bc1c5D248f40ed",
                        "name": "axlUSDC",
                        "symbol": "axlUSDC",
                        "decimals": 6,
                        "logoURI": "https://raw.githubusercontent.com/0xsquid/assets/main/images/tokens/usdc.svg",
                        "coingeckoId": "axlusdc",
                        "commonKey": "uusdc"
                    },
                    "toToken": {
                        "name": "USD Coin (PoS)",
                        "address": "0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174",
                        "symbol": "USDC.e",
                        "decimals": 6,
                        "chainId": 137,
                        "logoURI": "https://raw.githubusercontent.com/0xsquid/assets/main/images/tokens/usdc.svg",
                        "coingeckoId": "usd-coin",
                        "commonKey": "polygon-uusdc"
                    },
                    "fromAmount": "312",
                    "toAmount": "311",
                    "toAmountMin": "308",
                    "exchangeRate": "0.996794871794871794",
                    "priceImpact": "-3.0021367521367521",
                    "isFrom": false,
                    "dynamicSlippage": 1
                }
            ]
        },
        "feeCosts": [
            {
                "name": "Gas Receiver Fee",
                "description": "Estimated Gas Receiver fee",
                "percentage": "0",
                "token": {
                    "chainId": 1,
                    "address": "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE",
                    "name": "Ethereum",
                    "symbol": "ETH",
                    "decimals": 18,
                    "logoURI": "https://raw.githubusercontent.com/0xsquid/assets/main/images/tokens/eth.svg",
                    "coingeckoId": "ethereum",
                    "commonKey": "weth-wei"
                },
                "amount": "67539969647756",
                "amountUSD": "0.2107"
            },
            {
                "name": "Express Fee",
                "description": "Estimated Express fee",
                "percentage": "0",
                "token": {
                    "chainId": 1,
                    "address": "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE",
                    "name": "Ethereum",
                    "symbol": "ETH",
                    "decimals": 18,
                    "logoURI": "https://raw.githubusercontent.com/0xsquid/assets/main/images/tokens/eth.svg",
                    "coingeckoId": "ethereum",
                    "commonKey": "weth-wei"
                },
                "amount": "1781107776000",
                "amountUSD": "0.0056"
            }
        ],
        "gasCosts": [
            {
                "type": "executeCall",
                "token": {
                    "chainId": 1,
                    "address": "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE",
                    "name": "Ethereum",
                    "symbol": "ETH",
                    "decimals": 18,
                    "logoURI": "https://raw.githubusercontent.com/0xsquid/assets/main/images/tokens/eth.svg",
                    "coingeckoId": "ethereum",
                    "commonKey": "weth-wei"
                },
                "amount": "2184589823528896",
                "amountUSD": "6.8152",
                "gasPrice": "4284051088",
                "maxFeePerGas": "10066102176",
                "maxPriorityFeePerGas": "1500000000",
                "estimate": "377692",
                "limit": "377692"
            }
        ],
        "estimatedRouteDuration": 20,
        "isExpressSupported": true,
        "exchangeRate": "3110.0",
        "aggregatePriceImpact": "-3.67",
        "toAmountUSD": "0.0003",
        "toAmountMinUSD": "0.0003"
    }
}
```

{% endtab %}
{% endtabs %}

### /swap

Swap assets across multiple chains.

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

#### Request Body

| Name                                             | Type   | Description                                                                                                                                                                           |
| ------------------------------------------------ | ------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| rpc                                              | String | Remote procedural call URL.                                                                                                                                                           |
| bridgeId                                         | String | Refer to the [Bridge ID](/ids/bridge-ids) page for details.                                                                                                                           |
| srcChainId                                       | String | <p>Source Chain Id. By default, Ethereum mainnet.<br>Refer to the <a href="/pages/j8moVeo4hEN1sYiRHQ5x">Chain Id</a><a href="/pages/5o1xMsQPqXw9GBfGTpdB"> </a>page for details. </p> |
| dstChainId<mark style="color:red;">\*</mark>     | String | Destination chain id.                                                                                                                                                                 |
| srcTokenSymbol<mark style="color:red;">\*</mark> | String | Source Token Symbol.                                                                                                                                                                  |
| dstTokenSymbol<mark style="color:red;">\*</mark> | String | Destination Token Symbol.                                                                                                                                                             |
| amountIn<mark style="color:red;">\*</mark>       | String | Amount of token.                                                                                                                                                                      |
| from<mark style="color:red;">\*</mark>           | String | Address of the sender of the token.                                                                                                                                                   |
| gas<mark style="color:red;">\*</mark>            | String | Maximum gas limit provided by the sender, for the transaction.                                                                                                                        |
| to<mark style="color:red;">\*</mark>             | String | Address of the recipient of the token.                                                                                                                                                |
| gasPriority                                      | String | low, medium, or high.                                                                                                                                                                 |
| slippage                                         | String | <p>Percentage of total swap value. <br>By default, 1.</p><p>0 <= slippage  value <= 100</p>                                                                                           |

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

```json
{
    "bridgeId": "200",
    "srcChainId": "1",
    "dstChainId": "137",
    "srcTokenSymbol": "WETH",
    "dstTokenSymbol": "USDC",
    "amountIn": "100000000000000",
    "from": "0xa67E9B68c41b0f26184D64C26e0b2B81466E5994",
    "gas": "920000",
    "to": "0xa67E9B68c41b0f26184D64C26e0b2B81466E5994"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0xa67E9B68c41b0f26184D64C26e0b2B81466E5994",
        "to": "0xce16F69375520ab01377ce7B88f5BA8C48F8D666",
        "value": "76857666753062",
        "gas": "920000",
        "data": "0x846a1bc6000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc200000000000000000000000000000000000000000000000000005af3107a4000000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000004a000000000000000000000000000000000000000000000000000000000000004e000000000000000000000000000000000000000000000000000000000000005200000000000000000000000000000000000000000000000000000000000000580000000000000000000000000a67e9b68c41b0f26184d64c26e0b2b81466e599400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000001800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000044095ea7b300000000000000000000000068b3465833fb72a70ecdf485e0e4c7bd8665fc4500000000000000000000000000000000000000000000000000005af3107a4000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000068b3465833fb72a70ecdf485e0e4c7bd8665fc45000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000001c000000000000000000000000000000000000000000000000000000000000000e404e45aaf000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb480000000000000000000000000000000000000000000000000000000000000064000000000000000000000000ce16f69375520ab01377ce7b88f5ba8c48f8d66600000000000000000000000000000000000000000000000000005af3107a4000000000000000000000000000000000000000000000000000000000000003f3230000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000455534443000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007506f6c79676f6e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002a3078636531364636393337353532306162303133373763653742383866354241384334384638443636360000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000009800000000000000000000000000000000000000000000000000000000000000040000000000000000000000000a67e9b68c41b0f26184d64c26e0b2b81466e5994000000000000000000000000000000000000000000000000000000000000000500000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000001a00000000000000000000000000000000000000000000000000000000000000320000000000000000000000000000000000000000000000000000000000000054000000000000000000000000000000000000000000000000000000000000006c000000000000000000000000000000000000000000000000000000000000000030000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000750e4c4984a9e0f12978ea6742bc1c5d248f40ed0000000000000000000000000000000000000000000000000000000000000001000000000000000000000000750e4c4984a9e0f12978ea6742bc1c5d248f40ed000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000044095ea7b3000000000000000000000000f5b509bb0909a69b1c207e495f687a596c168e120000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000000000000000000750e4c4984a9e0f12978ea6742bc1c5d248f40ed00000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001000000000000000000000000f5b509bb0909a69b1c207e495f687a596c168e12000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000001c000000000000000000000000000000000000000000000000000000000000000e4bc651188000000000000000000000000750e4c4984a9e0f12978ea6742bc1c5d248f40ed0000000000000000000000002791bca1f2de4661ed88a30c99a7a9449aa84174000000000000000000000000ea749fd6ba492dbc14c24fe8a3d08769229b896c0000000000000000000000000000000000000000000000000000019175bcbd9d000000000000000000000000000000000000000000000000000000000003f737000000000000000000000000000000000000000000000000000000000003f10a0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000000000000000000750e4c4984a9e0f12978ea6742bc1c5d248f40ed000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000010000000000000000000000002791bca1f2de4661ed88a30c99a7a9449aa84174000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000044095ea7b300000000000000000000000068b3465833fb72a70ecdf485e0e4c7bd8665fc4500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000400000000000000000000000002791bca1f2de4661ed88a30c99a7a9449aa841740000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000100000000000000000000000068b3465833fb72a70ecdf485e0e4c7bd8665fc45000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000124b858183f00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000080000000000000000000000000a67e9b68c41b0f26184d64c26e0b2b81466e5994000000000000000000000000000000000000000000000000000000000003f725000000000000000000000000000000000000000000000000000000000003ed6d00000000000000000000000000000000000000000000000000000000000000422791bca1f2de4661ed88a30c99a7a9449aa841740000640d500b1d8e8ef31e21c99d1db9a6444d3adf1270000bb83c499c542cef5e3811e1192ce70d8cc03d5c33590000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000400000000000000000000000002791bca1f2de4661ed88a30c99a7a9449aa841740000000000000000000000000000000000000000000000000000000000000003",
        "referenceId": "41ce7e7edbb048ec9183e27f6303cc45"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
**With gasPriority:**

```json
{
    "bridgeId": "200",
    "srcChainId": "1",
    "dstChainId": "137",
    "srcTokenSymbol": "WETH",
    "dstTokenSymbol": "USDC",
    "amountIn": "1000000000000",
    "from": "0xa67E9B68c41b0f26184D64C26e0b2B81466E5994",
    "gas": "920000",
    "gasPriority": "medium",
    "to": "0xa67E9B68c41b0f26184D64C26e0b2B81466E5994"
}
```

{% endtab %}

{% tab title="Sample Response" %}
**With gasPriority:**

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0xa67E9B68c41b0f26184D64C26e0b2B81466E5994",
        "to": "0xce16F69375520ab01377ce7B88f5BA8C48F8D666",
        "value": "77843322742717",
        "gas": "920000",
        "data": "0x846a1bc6000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2000000000000000000000000000000000000000000000000000000e8d4a51000000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000004a000000000000000000000000000000000000000000000000000000000000004e000000000000000000000000000000000000000000000000000000000000005200000000000000000000000000000000000000000000000000000000000000580000000000000000000000000a67e9b68c41b0f26184d64c26e0b2b81466e599400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000001800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000044095ea7b300000000000000000000000068b3465833fb72a70ecdf485e0e4c7bd8665fc45000000000000000000000000000000000000000000000000000000e8d4a51000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000068b3465833fb72a70ecdf485e0e4c7bd8665fc45000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000001c000000000000000000000000000000000000000000000000000000000000000e404e45aaf000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb480000000000000000000000000000000000000000000000000000000000000064000000000000000000000000ce16f69375520ab01377ce7b88f5ba8c48f8d666000000000000000000000000000000000000000000000000000000e8d4a510000000000000000000000000000000000000000000000000000000000000000a1c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000455534443000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007506f6c79676f6e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002a3078636531364636393337353532306162303133373763653742383866354241384334384638443636360000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000009800000000000000000000000000000000000000000000000000000000000000040000000000000000000000000a67e9b68c41b0f26184d64c26e0b2b81466e5994000000000000000000000000000000000000000000000000000000000000000500000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000001a00000000000000000000000000000000000000000000000000000000000000320000000000000000000000000000000000000000000000000000000000000054000000000000000000000000000000000000000000000000000000000000006c000000000000000000000000000000000000000000000000000000000000000030000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000750e4c4984a9e0f12978ea6742bc1c5d248f40ed0000000000000000000000000000000000000000000000000000000000000001000000000000000000000000750e4c4984a9e0f12978ea6742bc1c5d248f40ed000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000044095ea7b3000000000000000000000000f5b509bb0909a69b1c207e495f687a596c168e120000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000000000000000000750e4c4984a9e0f12978ea6742bc1c5d248f40ed00000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001000000000000000000000000f5b509bb0909a69b1c207e495f687a596c168e12000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000001c000000000000000000000000000000000000000000000000000000000000000e4bc651188000000000000000000000000750e4c4984a9e0f12978ea6742bc1c5d248f40ed0000000000000000000000002791bca1f2de4661ed88a30c99a7a9449aa84174000000000000000000000000ea749fd6ba492dbc14c24fe8a3d08769229b896c0000000000000000000000000000000000000000000000000000019175bcf7760000000000000000000000000000000000000000000000000000000000000a260000000000000000000000000000000000000000000000000000000000000a150000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000000000000000000750e4c4984a9e0f12978ea6742bc1c5d248f40ed000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000010000000000000000000000002791bca1f2de4661ed88a30c99a7a9449aa84174000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000044095ea7b300000000000000000000000068b3465833fb72a70ecdf485e0e4c7bd8665fc4500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000400000000000000000000000002791bca1f2de4661ed88a30c99a7a9449aa841740000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000100000000000000000000000068b3465833fb72a70ecdf485e0e4c7bd8665fc45000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000124b858183f00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000080000000000000000000000000a67e9b68c41b0f26184d64c26e0b2b81466e59940000000000000000000000000000000000000000000000000000000000000a250000000000000000000000000000000000000000000000000000000000000a0d00000000000000000000000000000000000000000000000000000000000000422791bca1f2de4661ed88a30c99a7a9449aa841740000640d500b1d8e8ef31e21c99d1db9a6444d3adf12700001f43c499c542cef5e3811e1192ce70d8cc03d5c33590000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000400000000000000000000000002791bca1f2de4661ed88a30c99a7a9449aa841740000000000000000000000000000000000000000000000000000000000000003",
        "gasPrice": "3259971154",
        "referenceId": "bfdc2bb5280943f096edd90022d1fa75"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
**With slippage:**

```json
{
    "bridgeId": "200",
    "srcChainId": "1",
    "dstChainId": "137",
    "srcTokenSymbol": "WETH",
    "dstTokenSymbol": "MATIC",
    "amountIn": "1000000000000",
    "from": "0xa67E9B68c41b0f26184D64C26e0b2B81466E5994",
    "gas": "920000",
    "to": "0xa67E9B68c41b0f26184D64C26e0b2B81466E5994",
    "slippage": "3"
}
```

{% endtab %}

{% tab title="Sample Response" %}
**With slippage:**

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0xa67E9B68c41b0f26184D64C26e0b2B81466E5994",
        "to": "0xce16F69375520ab01377ce7B88f5BA8C48F8D666",
        "value": "73416159810217",
        "gas": "920000",
        "data": "0x846a1bc6000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2000000000000000000000000000000000000000000000000000000e8d4a51000000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000004a000000000000000000000000000000000000000000000000000000000000004e000000000000000000000000000000000000000000000000000000000000005200000000000000000000000000000000000000000000000000000000000000580000000000000000000000000a67e9b68c41b0f26184d64c26e0b2b81466e599400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000001800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000044095ea7b300000000000000000000000068b3465833fb72a70ecdf485e0e4c7bd8665fc45000000000000000000000000000000000000000000000000000000e8d4a51000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000068b3465833fb72a70ecdf485e0e4c7bd8665fc45000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000001c000000000000000000000000000000000000000000000000000000000000000e404e45aaf000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb480000000000000000000000000000000000000000000000000000000000000064000000000000000000000000ce16f69375520ab01377ce7b88f5ba8c48f8d666000000000000000000000000000000000000000000000000000000e8d4a510000000000000000000000000000000000000000000000000000000000000000a010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000455534443000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007506f6c79676f6e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002a307863653136463639333735353230616230313337376365374238386635424138433438463844363636000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000be00000000000000000000000000000000000000000000000000000000000000040000000000000000000000000a67e9b68c41b0f26184d64c26e0b2b81466e5994000000000000000000000000000000000000000000000000000000000000000700000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000001e000000000000000000000000000000000000000000000000000000000000003600000000000000000000000000000000000000000000000000000000000000580000000000000000000000000000000000000000000000000000000000000070000000000000000000000000000000000000000000000000000000000000009400000000000000000000000000000000000000000000000000000000000000aa000000000000000000000000000000000000000000000000000000000000000030000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000750e4c4984a9e0f12978ea6742bc1c5d248f40ed0000000000000000000000000000000000000000000000000000000000000001000000000000000000000000750e4c4984a9e0f12978ea6742bc1c5d248f40ed000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000044095ea7b3000000000000000000000000f5b509bb0909a69b1c207e495f687a596c168e120000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000000000000000000750e4c4984a9e0f12978ea6742bc1c5d248f40ed00000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001000000000000000000000000f5b509bb0909a69b1c207e495f687a596c168e12000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000001c000000000000000000000000000000000000000000000000000000000000000e4bc651188000000000000000000000000750e4c4984a9e0f12978ea6742bc1c5d248f40ed0000000000000000000000002791bca1f2de4661ed88a30c99a7a9449aa84174000000000000000000000000ea749fd6ba492dbc14c24fe8a3d08769229b896c0000000000000000000000000000000000000000000000000000019175bd2b2a0000000000000000000000000000000000000000000000000000000000000a2600000000000000000000000000000000000000000000000000000000000009fb0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000000000000000000750e4c4984a9e0f12978ea6742bc1c5d248f40ed000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000010000000000000000000000002791bca1f2de4661ed88a30c99a7a9449aa84174000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000044095ea7b3000000000000000000000000f9c2b5746c946ef883ab2660bbbb1f10a5bdeab400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000400000000000000000000000002791bca1f2de4661ed88a30c99a7a9449aa8417400000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001000000000000000000000000f9c2b5746c946ef883ab2660bbbb1f10a5bdeab4000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000001e00000000000000000000000000000000000000000000000000000000000000104a8c9ed670000000000000000000000002791bca1f2de4661ed88a30c99a7a9449aa841740000000000000000000000000d500b1d8e8ef31e21c99d1db9a6444d3adf12700000000000000000000000000000000000000000000000000000000000000064000000000000000000000000ea749fd6ba492dbc14c24fe8a3d08769229b896c0000000000000000000000000000000000000000000000000000019175bd2b2b0000000000000000000000000000000000000000000000000000000000000a2500000000000000000000000000000000000000000000000000133171a47354da00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000400000000000000000000000002791bca1f2de4661ed88a30c99a7a9449aa84174000000000000000000000000000000000000000000000000000000000000000500000000000000000000000000000000000000000000000000000000000000010000000000000000000000000d500b1d8e8ef31e21c99d1db9a6444d3adf1270000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000242e1a7d4d00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000d500b1d8e8ef31e21c99d1db9a6444d3adf127000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000a67e9b68c41b0f26184d64c26e0b2b81466e5994000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
        "referenceId": "d18b0afc415c4295b6583cba09be6e8e"
    }
}
```

{% endtab %}
{% endtabs %}


# Squid Router V2

### /getsupportedchains

Get the list of chains supported by Squid Router, on expand.network.

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

#### Query Parameters

| Name                                       | Type   | Description                                                 |
| ------------------------------------------ | ------ | ----------------------------------------------------------- |
| bridgeId<mark style="color:red;">\*</mark> | String | Refer to the [Bridge ID](/ids/bridge-ids) page for details. |
| rpc                                        | String | Remote procedural call URL.                                 |

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

```url
https://api.expand.network/bridge/getsupportedchains?bridgeId=600
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": [
        {
            "chainName": "Ethereum",
            "chainId": "1",
            "srcChainSupported": true,
            "dstChainSupported": true
        },
        {
            "chainName": "Optimism",
            "chainId": "10",
            "srcChainSupported": true,
            "dstChainSupported": true
        },
        {
            "chainName": "BNB Chain",
            "chainId": "56",
            "srcChainSupported": true,
            "dstChainSupported": true
        },
        {
            "chainName": "Polygon",
            "chainId": "137",
            "srcChainSupported": true,
            "dstChainSupported": true
        },
        {
            "chainName": "Fraxtal",
            "chainId": "252",
            "srcChainSupported": false,
            "dstChainSupported": true
        },
        {
            "chainName": "Filecoin",
            "chainId": "314",
            "srcChainSupported": false,
            "dstChainSupported": true
        },
        {
            "chainName": "Solana",
            "chainId": "900",
            "srcChainSupported": true,
            "dstChainSupported": true
        },
        {
            "chainName": "Moonbeam",
            "chainId": "1284",
            "srcChainSupported": false,
            "dstChainSupported": true
        },
        {
            "chainName": "Bitcoin",
            "chainId": "1800",
            "srcChainSupported": true,
            "dstChainSupported": true
        },
        {
            "chainName": "Kava EVM",
            "chainId": "2222",
            "srcChainSupported": false,
            "dstChainSupported": true
        },
        {
            "chainName": "Mantle",
            "chainId": "5000",
            "srcChainSupported": true,
            "dstChainSupported": true
        },
        {
            "chainName": "SagaEVM",
            "chainId": "5464",
            "srcChainSupported": false,
            "dstChainSupported": true
        },
        {
            "chainName": "Base",
            "chainId": "8453",
            "srcChainSupported": true,
            "dstChainSupported": true
        },
        {
            "chainName": "Immutable zkEVM",
            "chainId": "13371",
            "srcChainSupported": false,
            "dstChainSupported": true
        },
        {
            "chainName": "Arbitrum",
            "chainId": "42161",
            "srcChainSupported": true,
            "dstChainSupported": true
        },
        {
            "chainName": "Celo",
            "chainId": "42220",
            "srcChainSupported": false,
            "dstChainSupported": true
        },
        {
            "chainName": "Avalanche",
            "chainId": "43114",
            "srcChainSupported": true,
            "dstChainSupported": true
        },
        {
            "chainName": "Linea",
            "chainId": "59144",
            "srcChainSupported": true,
            "dstChainSupported": true
        },
        {
            "chainName": "Berachain",
            "chainId": "80094",
            "srcChainSupported": false,
            "dstChainSupported": true
        },
        {
            "chainName": "Blast",
            "chainId": "81457",
            "srcChainSupported": false,
            "dstChainSupported": true
        },
        {
            "chainName": "Scroll",
            "chainId": "534352",
            "srcChainSupported": false,
            "dstChainSupported": true
        },
        {
            "chainName": "Osmosis",
            "chainId": "osmosis-1",
            "srcChainSupported": true,
            "dstChainSupported": true
        },
        {
            "chainName": "Noble",
            "chainId": "noble-1",
            "srcChainSupported": false,
            "dstChainSupported": true
        },
        {
            "chainName": "DYDX",
            "chainId": "dydx-mainnet-1",
            "srcChainSupported": false,
            "dstChainSupported": true
        },
        {
            "chainName": "Neutron",
            "chainId": "neutron-1",
            "srcChainSupported": false,
            "dstChainSupported": true
        },
        {
            "chainName": "Crescent",
            "chainId": "crescent-1",
            "srcChainSupported": false,
            "dstChainSupported": true
        },
        {
            "chainName": "Kujira",
            "chainId": "kaiyo-1",
            "srcChainSupported": false,
            "dstChainSupported": true
        },
        {
            "chainName": "Umee",
            "chainId": "umee-1",
            "srcChainSupported": false,
            "dstChainSupported": true
        },
        {
            "chainName": "Comdex",
            "chainId": "comdex-1",
            "srcChainSupported": false,
            "dstChainSupported": true
        },
        {
            "chainName": "Juno",
            "chainId": "juno-1",
            "srcChainSupported": false,
            "dstChainSupported": true
        },
        {
            "chainName": "Terra",
            "chainId": "phoenix-1",
            "srcChainSupported": false,
            "dstChainSupported": true
        },
        {
            "chainName": "Evmos",
            "chainId": "evmos_9001-2",
            "srcChainSupported": false,
            "dstChainSupported": true
        },
        {
            "chainName": "Regen",
            "chainId": "regen-1",
            "srcChainSupported": false,
            "dstChainSupported": true
        },
        {
            "chainName": "Stargaze",
            "chainId": "stargaze-1",
            "srcChainSupported": false,
            "dstChainSupported": true
        },
        {
            "chainName": "Cosmos Hub",
            "chainId": "cosmoshub-4",
            "srcChainSupported": true,
            "dstChainSupported": true
        },
        {
            "chainName": "Agoric",
            "chainId": "agoric-3",
            "srcChainSupported": false,
            "dstChainSupported": true
        },
        {
            "chainName": "Ki",
            "chainId": "kichain-2",
            "srcChainSupported": false,
            "dstChainSupported": true
        },
        {
            "chainName": "Injective",
            "chainId": "injective-1",
            "srcChainSupported": false,
            "dstChainSupported": true
        },
        {
            "chainName": "Fetch",
            "chainId": "fetchhub-4",
            "srcChainSupported": false,
            "dstChainSupported": true
        },
        {
            "chainName": "AssetMantle",
            "chainId": "mantle-1",
            "srcChainSupported": false,
            "dstChainSupported": true
        },
        {
            "chainName": "Carbon",
            "chainId": "carbon-1",
            "srcChainSupported": false,
            "dstChainSupported": true
        },
        {
            "chainName": "Stride",
            "chainId": "stride-1",
            "srcChainSupported": false,
            "dstChainSupported": true
        },
        {
            "chainName": "Archway",
            "chainId": "archway-1",
            "srcChainSupported": false,
            "dstChainSupported": true
        },
        {
            "chainName": "Axelar",
            "chainId": "axelar-dojo-1",
            "srcChainSupported": false,
            "dstChainSupported": true
        },
        {
            "chainName": "Impact Hub",
            "chainId": "ixo-5",
            "srcChainSupported": false,
            "dstChainSupported": true
        },
        {
            "chainName": "Chain4Energy",
            "chainId": "perun-1",
            "srcChainSupported": false,
            "dstChainSupported": true
        },
        {
            "chainName": "Chihuahua",
            "chainId": "chihuahua-1",
            "srcChainSupported": false,
            "dstChainSupported": true
        },
        {
            "chainName": "Nolus",
            "chainId": "pirin-1",
            "srcChainSupported": false,
            "dstChainSupported": true
        },
        {
            "chainName": "Persistence",
            "chainId": "core-1",
            "srcChainSupported": false,
            "dstChainSupported": true
        },
        {
            "chainName": "Migaloo",
            "chainId": "migaloo-1",
            "srcChainSupported": false,
            "dstChainSupported": true
        },
        {
            "chainName": "Secret",
            "chainId": "secret-4",
            "srcChainSupported": false,
            "dstChainSupported": true
        },
        {
            "chainName": "Sei",
            "chainId": "pacific-1",
            "srcChainSupported": false,
            "dstChainSupported": true
        },
        {
            "chainName": "Dymension",
            "chainId": "dymension_1100-1",
            "srcChainSupported": false,
            "dstChainSupported": true
        },
        {
            "chainName": "Nibiru",
            "chainId": "cataclysm-1",
            "srcChainSupported": false,
            "dstChainSupported": true
        },
        {
            "chainName": "Celestia",
            "chainId": "celestia",
            "srcChainSupported": false,
            "dstChainSupported": true
        },
        {
            "chainName": "BitSong",
            "chainId": "bitsong-2b",
            "srcChainSupported": false,
            "dstChainSupported": true
        },
        {
            "chainName": "Sommelier",
            "chainId": "sommelier-3",
            "srcChainSupported": false,
            "dstChainSupported": true
        },
        {
            "chainName": "Terra Classic",
            "chainId": "columbus-5",
            "srcChainSupported": false,
            "dstChainSupported": true
        },
        {
            "chainName": "Teritori",
            "chainId": "teritori-1",
            "srcChainSupported": false,
            "dstChainSupported": true
        },
        {
            "chainName": "Saga",
            "chainId": "ssc-1",
            "srcChainSupported": false,
            "dstChainSupported": true
        },
        {
            "chainName": "Quicksilver",
            "chainId": "quicksilver-2",
            "srcChainSupported": false,
            "dstChainSupported": true
        },
        {
            "chainName": "Desmos",
            "chainId": "desmos-mainnet",
            "srcChainSupported": false,
            "dstChainSupported": true
        },
        {
            "chainName": "Akash",
            "chainId": "akashnet-2",
            "srcChainSupported": false,
            "dstChainSupported": true
        },
        {
            "chainName": "Mars Hub",
            "chainId": "mars-1",
            "srcChainSupported": false,
            "dstChainSupported": true
        },
        {
            "chainName": "Sentinel",
            "chainId": "sentinelhub-2",
            "srcChainSupported": false,
            "dstChainSupported": true
        },
        {
            "chainName": "LikeCoin",
            "chainId": "likecoin-mainnet-2",
            "srcChainSupported": false,
            "dstChainSupported": true
        },
        {
            "chainName": "Kava IBC",
            "chainId": "kava_2222-10",
            "srcChainSupported": false,
            "dstChainSupported": true
        },
        {
            "chainName": "Decentr",
            "chainId": "mainnet-3",
            "srcChainSupported": false,
            "dstChainSupported": true
        },
        {
            "chainName": "BitCanna",
            "chainId": "bitcanna-1",
            "srcChainSupported": false,
            "dstChainSupported": true
        },
        {
            "chainName": "Coreum",
            "chainId": "coreum-mainnet-1",
            "srcChainSupported": false,
            "dstChainSupported": true
        },
        {
            "chainName": "Gravity Bridge",
            "chainId": "gravity-bridge-3",
            "srcChainSupported": false,
            "dstChainSupported": true
        },
        {
            "chainName": "Jackal",
            "chainId": "jackal-1",
            "srcChainSupported": false,
            "dstChainSupported": true
        },
        {
            "chainName": "Cheqd",
            "chainId": "cheqd-mainnet-1",
            "srcChainSupported": false,
            "dstChainSupported": true
        },
        {
            "chainName": "Lum Network",
            "chainId": "lum-network-1",
            "srcChainSupported": false,
            "dstChainSupported": true
        },
        {
            "chainName": "IRISnet",
            "chainId": "irishub-1",
            "srcChainSupported": false,
            "dstChainSupported": true
        },
        {
            "chainName": "OmniFlix",
            "chainId": "omniflixhub-1",
            "srcChainSupported": false,
            "dstChainSupported": true
        },
        {
            "chainName": "Kyve",
            "chainId": "kyve-1",
            "srcChainSupported": false,
            "dstChainSupported": true
        },
        {
            "chainName": "Lava",
            "chainId": "lava-mainnet-1",
            "srcChainSupported": false,
            "dstChainSupported": true
        },
        {
            "chainName": "Humans.ai",
            "chainId": "humans_1089-1",
            "srcChainSupported": false,
            "dstChainSupported": true
        },
        {
            "chainName": "Xion",
            "chainId": "xion-mainnet-1",
            "srcChainSupported": false,
            "dstChainSupported": true
        },
        {
            "chainName": "Elys",
            "chainId": "elys-1",
            "srcChainSupported": false,
            "dstChainSupported": true
        },
        {
            "chainName": "Babylon",
            "chainId": "bbn-1",
            "srcChainSupported": false,
            "dstChainSupported": true
        }
    ]
}
```

{% endtab %}
{% endtabs %}

### /getsupportedtokens

Get the list of tokens supported by Squid Router, on the specified chain, on expand.network.

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

#### Query Parameters

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

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

```url
https://api.expand.network/bridge/getsupportedtokens?bridgeId=600&chainId=10
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": [
        {
            "tokenSymbol": "ETH",
            "address": "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee"
        },
        {
            "tokenSymbol": "LUSD",
            "address": "0xc40f949f8a4e094d1b49a23ea9241d289b7b2819"
        },
        {
            "tokenSymbol": "DAI",
            "address": "0xda10009cbd5d07dd0cecc66161fc93d7c9000da1"
        },
        {
            "tokenSymbol": "MAI",
            "address": "0xdfa46478f9e5ea86d57387849598dbfb2e964b02"
        },
        {
            "tokenSymbol": "USDC",
            "address": "0x0b2c639c533813f4aa9d7837caf62653d097ff85"
        },
        {
            "tokenSymbol": "RETH",
            "address": "0x9bcef72be871e61ed4fbbc7630889bee758eb81d"
        },
        {
            "tokenSymbol": "WSTETH.AXL",
            "address": "0x9cfb13e6c11054ac9fcb92ba89644f30775436e4"
        },
        {
            "tokenSymbol": "BAL.AXL",
            "address": "0x11c1879227d463b60db18c17c20ae739ae8e961a"
        },
        {
            "tokenSymbol": "VELO",
            "address": "0x3c8b650257cfb5f272f799f5e2b4e65093a11a05"
        },
        {
            "tokenSymbol": "SNX",
            "address": "0x8700daec35af8ff88c16bdf0418774cb3d7599b4"
        },
        {
            "tokenSymbol": "WPFIL",
            "address": "0xbdba1194775b9a76498a7f690eae41b059a06dfc"
        },
        {
            "tokenSymbol": "FRXETH.AXL",
            "address": "0xecc68d0451e20292406967fe7c04280e5238ac7d"
        },
        {
            "tokenSymbol": "DAI+",
            "address": "0x970d50d09f3a656b43e11b0d45241a84e3a6e011"
        },
        {
            "tokenSymbol": "OOOOOO",
            "address": "0xddf7d080c82b8048baae54e376a3406572429b4e"
        },
        {
            "tokenSymbol": "DAI.AXL",
            "address": "0x5c7e299cf531eb66f2a1df637d37abb78e6200c7"
        },
        {
            "tokenSymbol": "WBTC.AXL",
            "address": "0x1a35ee4640b0a3b87705b0a4b45d227ba60ca2ad"
        },
        {
            "tokenSymbol": "ETH.AXL",
            "address": "0xb829b68f57cc546da7e5806a929e53be32a4625d"
        },
        {
            "tokenSymbol": "OVN",
            "address": "0x3b08fcd15280e7b5a6e404c4abb87f7c774d1b2e"
        },
        {
            "tokenSymbol": "FRAX.AXL",
            "address": "0x406cde76a3fd20e48bc1e0f60651e60ae204b040"
        },
        {
            "tokenSymbol": "MILKTIA",
            "address": "0x4aa81d7ab59c775fe6f9f45e6941a0fb8cd692a6"
        },
        {
            "tokenSymbol": "LAVA",
            "address": "0x11e969e9b3f89cb16d686a03cd8508c9fc0361af"
        },
        {
            "tokenSymbol": "WETH",
            "address": "0x4200000000000000000000000000000000000006"
        },
        {
            "tokenSymbol": "OP",
            "address": "0x4200000000000000000000000000000000000042"
        },
        {
            "tokenSymbol": "MTA",
            "address": "0x929b939f8524c3be977af57a4a0ad3fb1e374b50"
        },
        {
            "tokenSymbol": "GRAIN",
            "address": "0xfd389dc9533717239856190f42475d3f263a270d"
        },
        {
            "tokenSymbol": "ZYB",
            "address": "0xb4f2cf13b262c9f0ddb9b2a9143af753ef184e98"
        },
        {
            "tokenSymbol": "WSTETH",
            "address": "0x1f32b1c2345538c0c6f582fcb022739c4a194ebb"
        },
        {
            "tokenSymbol": "LDO",
            "address": "0xfdb794692724153d1488ccdbe0c56c252596735f"
        },
        {
            "tokenSymbol": "WLD",
            "address": "0xdc6ff44d5d932cbd77b52e5612ba0529dc6226f1"
        },
        {
            "tokenSymbol": "CDFI",
            "address": "0x527856315a4bcd2f428ea7fa05ea251f7e96a50a"
        },
        {
            "tokenSymbol": "DACKIE",
            "address": "0x47c337bd5b9344a6f3d6f58c474d9d8cd419d8ca"
        },
        {
            "tokenSymbol": "QUACK",
            "address": "0x59debed8d46a0cb823d8be8b957add987ead39aa"
        },
        {
            "tokenSymbol": "WMAI.AXL",
            "address": "0x88dfaaabaf06f3a41d2606ea98bc8eda109abebb"
        },
        {
            "tokenSymbol": "LQDR.AXL",
            "address": "0x332c72dd7e77070740f01d2d35851c461585d5d0"
        },
        {
            "tokenSymbol": "RING",
            "address": "0x259c1c2ed264402b5ed2f02bc7dc25a15c680c18"
        },
        {
            "tokenSymbol": "GDX",
            "address": "0x91c415fecd651f11d24ac4b72ed08dbeb9868d43"
        },
        {
            "tokenSymbol": "KUJI",
            "address": "0x3a18dcc9745edcd1ef33ecb93b0b6eba5671e7ca"
        },
        {
            "tokenSymbol": "UNV",
            "address": "0x51707dc661630f8fd624b985fa6ef4f1d4d919db"
        },
        {
            "tokenSymbol": "SONNE",
            "address": "0x1db2466d9f5e10d7090e7152b68d62703a2245f0"
        },
        {
            "tokenSymbol": "STRD",
            "address": "0x05931d5e2f7e1c1a710c9c1dcdd94e413652376f"
        },
        {
            "tokenSymbol": "FPI",
            "address": "0x219279953d8d23520b7878447e8a6c266a51de2f"
        },
        {
            "tokenSymbol": "FRAX",
            "address": "0x2e3d870790dc77a83dd1d18184acc7439a53f475"
        },
        {
            "tokenSymbol": "USDC.AXL",
            "address": "0xeb466342c4d449bc9f53a865d5cb90586f405215"
        },
        {
            "tokenSymbol": "ERN",
            "address": "0xc5b001dc33727f8f26880b184090d3e252470d45"
        },
        {
            "tokenSymbol": "KNC",
            "address": "0xa00e3a3511aac35ca78530c85007afcd31753819"
        },
        {
            "tokenSymbol": "RSTK",
            "address": "0xeceb8927fed5f612879f79d7d3af2e39c7fd168b"
        },
        {
            "tokenSymbol": "KWENTA",
            "address": "0x920cf626a271321c151d027030d5d08af699456b"
        },
        {
            "tokenSymbol": "SPEED",
            "address": "0xb01cf1be9568f09449382a47cd5bf58e2a9d5922"
        },
        {
            "tokenSymbol": "AGEUR",
            "address": "0x9485aca5bbbe1667ad97c7fe7c4531a624c8b1ed"
        },
        {
            "tokenSymbol": "THALES",
            "address": "0x217d47011b23bb961eb6d93ca9945b7501a5bb11"
        },
        {
            "tokenSymbol": "LVN",
            "address": "0xc35294306b17fa2a30eda3bdd345630e516111f5"
        },
        {
            "tokenSymbol": "OATH",
            "address": "0x00e1724885473b63bce08a9f0a52f35b0979e35a"
        },
        {
            "tokenSymbol": "ALUSD",
            "address": "0xcb8fa9a76b8e203d8c3797bf438d8fb81ea3326a"
        },
        {
            "tokenSymbol": "LYRA",
            "address": "0x50c5725949a6f0c72e6c4a641f24049a917db0cb"
        },
        {
            "tokenSymbol": "AELIN",
            "address": "0x61baadcf22d2565b0f471b291c475db5555e0b76"
        },
        {
            "tokenSymbol": "TORI",
            "address": "0x809c55916bb542c1419724022b3f0162087e3c88"
        },
        {
            "tokenSymbol": "XPRT",
            "address": "0xc7edf7b7b3667a06992508e7b156eff794a9e1c8"
        },
        {
            "tokenSymbol": "HUAHUA",
            "address": "0x64d599b3d0c5f1375e5e639e98ab86298261a30b"
        },
        {
            "tokenSymbol": "ISLM",
            "address": "0x2a98d978817949d45a5528013850772e762b7f12"
        },
        {
            "tokenSymbol": "ATOM.AXL",
            "address": "0x06bee9e7238a331b68d83df3b5b9b16d5dba83ff"
        },
        {
            "tokenSymbol": "SOMM.AXL",
            "address": "0x4e914bbdcde0f455a8ac9d59d3bf739c46287ed2"
        },
        {
            "tokenSymbol": "TIA.AXL",
            "address": "0x41b94c5867f7f6217c9a30520cb3e793b1ee1b97"
        },
        {
            "tokenSymbol": "C4E",
            "address": "0x520391d410314451e12a85d79970a61915bc315d"
        },
        {
            "tokenSymbol": "USDC.E",
            "address": "0x7f5c764cbc14f9669b88837ca1490cca17c31607"
        },
        {
            "tokenSymbol": "WBTC",
            "address": "0x68f180fcce6836688e9084f035309e29bf0a2095"
        },
        {
            "tokenSymbol": "USDT",
            "address": "0x94b008aa00579c1307b0ef2c499ad98a8ce58e58"
        },
        {
            "tokenSymbol": "USX",
            "address": "0xbfd291da8a403daaf7e5e9dc1ec0aceacd4848b9"
        },
        {
            "tokenSymbol": "WUSDR",
            "address": "0xc03b43d492d904406db2d7d57e67c7e8234ba752"
        },
        {
            "tokenSymbol": "AI",
            "address": "0x2598c30330d5771ae9f983979209486ae26de875"
        },
        {
            "tokenSymbol": "PSTAKE",
            "address": "0x023550adde4fa2f90d63a41d9282bee0294c04cd"
        },
        {
            "tokenSymbol": "DEUS.AXL",
            "address": "0xebd4a18034c78a415088df8508f102421ed693b1"
        },
        {
            "tokenSymbol": "SUSD",
            "address": "0x8c6f28f2f1a3c87f0f938b96d27520d9751ec8d9"
        },
        {
            "tokenSymbol": "UNIDX",
            "address": "0x28b42698caf46b4b012cf38b6c75867e0762186d"
        },
        {
            "tokenSymbol": "SFRXETH",
            "address": "0x4f74ca4a686203a5d4ebf6e8868c5ebc450bf283"
        },
        {
            "tokenSymbol": "STTIA.AXL",
            "address": "0x789cbbe5d19f04f38ec9790b28ecb07ba5617f61"
        },
        {
            "tokenSymbol": "USD+",
            "address": "0x73cb180bf0521828d8849bc8cf2b920918e23032"
        },
        {
            "tokenSymbol": "WAXL",
            "address": "0x23ee2343b892b1bb63503a4fabc840e0e2c6810f"
        },
        {
            "tokenSymbol": "FXS.AXL",
            "address": "0x5860a0bf37133f8461b2dede7c80e55d6bff3721"
        },
        {
            "tokenSymbol": "KNC.AXL",
            "address": "0xb448ec505c924944ca8b2c55ef05c299ee0781df"
        },
        {
            "tokenSymbol": "MIM",
            "address": "0xb153fb3d196a8eb25522705560ac152eeec57901"
        },
        {
            "tokenSymbol": "DOLA",
            "address": "0x8ae125e8653821e851f12a49f7765db9a9ce7384"
        },
        {
            "tokenSymbol": "BOB",
            "address": "0xb0b195aefa3650a6908f15cdac7d92f8a5791b0b"
        },
        {
            "tokenSymbol": "USDT.AXL",
            "address": "0x7f5373ae26c3e8ffc4c77b7255df7ec1a9af52a6"
        },
        {
            "tokenSymbol": "STATOM",
            "address": "0x7ba861c07d40e3341b901fd6f418e96e0132e25b"
        },
        {
            "tokenSymbol": "STARS.AXL",
            "address": "0xd58dc7aa4827cc51169b68e64f0fd4ea7fac557d"
        },
        {
            "tokenSymbol": "BTSG",
            "address": "0x225cf2027458f534c29c95a679e885b4e8bdddf7"
        },
        {
            "tokenSymbol": "SAGA.AXL",
            "address": "0x86e650048a20e0646d14e974d76109e16a0605d7"
        },
        {
            "tokenSymbol": "FIL.AXL",
            "address": "0x5e2cf56a562b1bdd32ec26315063074adc420c73"
        },
        {
            "tokenSymbol": "SCRT",
            "address": "0x308717203ab045d4a8fe49ecd149ab14f0eb16c5"
        },
        {
            "tokenSymbol": "USDGLO",
            "address": "0x4f604735c1cf31399c6e711d5962b2b3e0225ad3"
        },
        {
            "tokenSymbol": "MOLLARS",
            "address": "0xd2d0a80fe1da849ee817494bc2df7ee4367e61f6"
        },
        {
            "tokenSymbol": "STERN",
            "address": "0x3ee6107d9c93955acbb3f39871d32b02f82b78ab"
        },
        {
            "tokenSymbol": "YUM",
            "address": "0x9f41b34f42058a7b74672055a5fae22c4b113fd1"
        },
        {
            "tokenSymbol": "CATE",
            "address": "0x051fb509e4a775fabd257611eea1efaed8f91359"
        },
        {
            "tokenSymbol": "SFRAX",
            "address": "0xf3602c5a7f625181659445c8dddde73da15c22e3"
        },
        {
            "tokenSymbol": "MOLTEN",
            "address": "0x66e535e8d2ebf13f49f3d49e5c50395a97c137b1"
        },
        {
            "tokenSymbol": "AGETH.AXL",
            "address": "0x1bd0fe8e92a157d3ef66c9fb9e38621252b407c2"
        },
        {
            "tokenSymbol": "WRSETH",
            "address": "0x87eee96d50fb761ad85b1c982d28a042169d61b1"
        },
        {
            "tokenSymbol": "KATA",
            "address": "0x02454a97a8372f3a760a033dbb39e67d73bd6d87"
        },
        {
            "tokenSymbol": "KLAUS",
            "address": "0xf0baf295ddc6b2aaa49a962eed26fe14b26c67cd"
        },
        {
            "tokenSymbol": "CRV",
            "address": "0x0994206dfe8de6ec6920ff4d779b0d950605fb53"
        },
        {
            "tokenSymbol": "MEGALAND",
            "address": "0x4541561cf67eae3993218ab3fdad2e85e0707c14"
        },
        {
            "tokenSymbol": "AETX",
            "address": "0x323bae8ea748a3c3e48b544063febc0e7424c04a"
        },
        {
            "tokenSymbol": "VOLS",
            "address": "0x9c94e82d8751f16953f9c86e13ed9cd0414e6e97"
        },
        {
            "tokenSymbol": "BAVA",
            "address": "0x3fbde9864362ce4abb244ebef2ef0482aba8ea39"
        },
        {
            "tokenSymbol": "ENSURE",
            "address": "0x0ea010dcb1dfbe5c9d1ac475901a59642bad90f4"
        },
        {
            "tokenSymbol": "USDFI",
            "address": "0x65c52d273ed3570218df81e5a09e357f95265e21"
        },
        {
            "tokenSymbol": "STABLE",
            "address": "0x5120daf6f323e03b70efa289f1edf0e5019d5436"
        },
        {
            "tokenSymbol": "REGEN",
            "address": "0x2e6c05f1f7d1f4eb9a088bf12257f1647682b754"
        },
        {
            "tokenSymbol": "WHALEAXL",
            "address": "0xdc2de7817c2eea7c967b99921ba52018efcdaeb2"
        },
        {
            "tokenSymbol": "EARTH",
            "address": "0xbe4247bdf0e161b65747e4fefbd4821d21ed05d2"
        },
        {
            "tokenSymbol": "IXO",
            "address": "0x1eb5a1470af3cf2d5d2c69e987574c069e4e3037"
        },
        {
            "tokenSymbol": "XION",
            "address": "0xe4c3461a20f50dad7b9e88ca0222a255c4126fc0"
        }
    ]
}
```

{% endtab %}
{% endtabs %}

### /getprice

Get the swap quotation for the given srctoken and dsttoken pair&#x20;

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

#### Query Parameters

| Name                                             | Type   | Description                                                                          |
| ------------------------------------------------ | ------ | ------------------------------------------------------------------------------------ |
| rpc                                              | String | Remote procedural call URL.                                                          |
| srcChainId                                       | String | [Chain Id](/ids/bridge-ids/internal-chain-ids-for-bridges) of the source chain.      |
| bridgeId<mark style="color:red;">\*</mark>       | String | Refer to the [Bridge ID](/ids/bridge-ids) page for details.                          |
| dstChainId<mark style="color:red;">\*</mark>     | String | [Chain Id](/ids/bridge-ids/internal-chain-ids-for-bridges) of the destination chain. |
| srcTokenSymbol<mark style="color:red;">\*</mark> | String | Source token symbol.                                                                 |
| dstTokenSymbol<mark style="color:red;">\*</mark> | String | Destination token symbol.                                                            |
| amountIn<mark style="color:red;">\*</mark>       | String | Amount of token.                                                                     |

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

```url
https://api.expand.network/bridge/getprice?bridgeId=600&srcTokenSymbol=eth&dstTokenSymbol=eth&srcChainId=1&amountIn=1000000000000&dstChainId=10
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "srcChainId": "1",
        "dstChainId": "10",
        "srcTokenSymbol": "eth",
        "dstTokenSymbol": "eth",
        "amountIn": "1000000000000",
        "amountsOut": [
            "1000000000000",
            "997366732144"
        ]
    }
}
```

{% endtab %}
{% endtabs %}

### /getroute

Get the route details as to how the tokens will be bridged, token amount, etc.&#x20;

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

#### Query Parameters

| Name                                             | Type   | Description                                                                          |
| ------------------------------------------------ | ------ | ------------------------------------------------------------------------------------ |
| rpc                                              | String | Remote procedural call URL.                                                          |
| srcChainId                                       | String | [Chain Id](/ids/bridge-ids/internal-chain-ids-for-bridges) of the source chain.      |
| bridgeId<mark style="color:red;">\*</mark>       | String | Refer to the [Bridge ID](/ids/bridge-ids) page for details.                          |
| dstChainId<mark style="color:red;">\*</mark>     | String | [Chain Id](/ids/bridge-ids/internal-chain-ids-for-bridges) of the destination chain. |
| srcTokenSymbol<mark style="color:red;">\*</mark> | String | Source token symbol.                                                                 |
| dstTokenSymbol<mark style="color:red;">\*</mark> | String | Destination token symbol.                                                            |
| amountIn<mark style="color:red;">\*</mark>       | String | Amount of token.                                                                     |

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

```url
https://api.expand.network/bridge/getroute?bridgeId=600&srcTokenSymbol=eth&dstTokenSymbol=eth&srcChainId=1&amountIn=1000000000000&dstChainId=10
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "actions": [
            {
                "type": "wrap",
                "chainType": "evm",
                "data": {
                    "address": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
                    "chainId": "1",
                    "enabled": true,
                    "type": "WrappedNative",
                    "path": [
                        "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
                        "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"
                    ],
                    "id": "1_0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
                    "name": "Native Wrapper",
                    "logoURI": "https://raw.githubusercontent.com/0xsquid/assets/main/images/master/providers/squid-purple.svg",
                    "properties": {
                        "address": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
                        "coinAddresses": [
                            "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
                            "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"
                        ],
                        "type": "WrappedNative"
                    },
                    "target": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
                    "direction": "wrap"
                },
                "fromChain": "1",
                "toChain": "1",
                "fromToken": {
                    "id": "1_0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
                    "symbol": "ETH",
                    "address": "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
                    "chainId": "1",
                    "name": "ETH",
                    "decimals": 18,
                    "coingeckoId": "ethereum",
                    "type": "evm",
                    "logoURI": "https://raw.githubusercontent.com/0xsquid/assets/main/images/tokens/eth.svg",
                    "axelarNetworkSymbol": "ETH",
                    "subGraphOnly": false,
                    "subGraphIds": [
                        "weth-wei",
                        "chainflip-bridge",
                        "immutable-eth"
                    ],
                    "enabled": true,
                    "active": true,
                    "visible": true,
                    "usdPrice": 1575.19305042
                },
                "toToken": {
                    "id": "1_0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
                    "symbol": "WETH",
                    "address": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
                    "chainId": "1",
                    "name": "Wrapped ETH",
                    "decimals": 18,
                    "interchainTokenId": null,
                    "coingeckoId": "weth",
                    "type": "evm",
                    "logoURI": "https://raw.githubusercontent.com/axelarnetwork/axelar-configs/main/images/tokens/weth.svg",
                    "axelarNetworkSymbol": "WETH",
                    "subGraphOnly": false,
                    "subGraphIds": [
                        "weth-wei",
                        "immutable-weth"
                    ],
                    "enabled": true,
                    "active": true,
                    "visible": true,
                    "usdPrice": 1575.19305042
                },
                "aggregatedVolatility": 4,
                "fromAmount": "1000000000000",
                "toAmount": "1000000000000",
                "toAmountMin": "1000000000000",
                "exchangeRate": "1.0",
                "priceImpact": "0.00",
                "stage": 0,
                "provider": "Native Wrapper",
                "logoURI": "https://raw.githubusercontent.com/0xsquid/assets/main/images/master/providers/squid-purple.svg",
                "description": "Wrap ETH to WETH"
            },
            {
                "type": "swap",
                "chainType": "evm",
                "data": {
                    "address": "0x88e6a0c2ddd26feeb64f039a2c41296fcb3f5640",
                    "chainId": "1",
                    "coinAddresses": [
                        "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
                        "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"
                    ],
                    "dex": "Uniswap V3",
                    "enabled": true,
                    "path": [
                        "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
                        "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48"
                    ],
                    "slippage": 0.004411764705882353,
                    "aggregateSlippage": 0.004411764705882353,
                    "target": "0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45"
                },
                "fromChain": "1",
                "toChain": "1",
                "fromToken": {
                    "id": "1_0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
                    "symbol": "WETH",
                    "address": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
                    "chainId": "1",
                    "name": "Wrapped ETH",
                    "decimals": 18,
                    "interchainTokenId": null,
                    "coingeckoId": "weth",
                    "type": "evm",
                    "logoURI": "https://raw.githubusercontent.com/axelarnetwork/axelar-configs/main/images/tokens/weth.svg",
                    "axelarNetworkSymbol": "WETH",
                    "subGraphOnly": false,
                    "subGraphIds": [
                        "weth-wei",
                        "immutable-weth"
                    ],
                    "enabled": true,
                    "active": true,
                    "visible": true,
                    "usdPrice": 1575.19305042
                },
                "toToken": {
                    "id": "1_0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
                    "symbol": "USDC",
                    "address": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
                    "chainId": "1",
                    "name": "USDC",
                    "decimals": 6,
                    "interchainTokenId": null,
                    "coingeckoId": "usd-coin",
                    "type": "evm",
                    "logoURI": "https://raw.githubusercontent.com/axelarnetwork/axelar-configs/main/images/tokens/usdc.svg",
                    "axelarNetworkSymbol": "USDC",
                    "subGraphOnly": false,
                    "subGraphIds": [
                        "uusdc",
                        "cctp-uusdc-ethereum-to-noble",
                        "chainflip-bridge",
                        "immutable-usdc",
                        "immutable-USDC-USDC"
                    ],
                    "enabled": true,
                    "active": true,
                    "visible": true,
                    "usdPrice": 0.99998273
                },
                "aggregatedVolatility": 2,
                "fromAmount": "1000000000000",
                "toAmount": "1574",
                "toAmountMin": "1567",
                "exchangeRate": "1574.0",
                "priceImpact": "-0.254777070063694211",
                "stage": 0,
                "provider": "Uniswap V3",
                "logoURI": "https://raw.githubusercontent.com/0xsquid/assets/main/images/providers/uniswap.svg",
                "description": "Swap WETH to USDC"
            },
            {
                "type": "bridge",
                "chainType": "evm",
                "data": {
                    "enabled": true,
                    "name": "uusdc",
                    "provider": "Axelar",
                    "type": "axelar-gmp",
                    "logoURI": "https://raw.githubusercontent.com/0xsquid/assets/main/images/master/providers/axelar.svg"
                },
                "fromChain": "1",
                "toChain": "10",
                "fromToken": {
                    "id": "1_0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
                    "symbol": "USDC",
                    "address": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
                    "chainId": "1",
                    "name": "USDC",
                    "decimals": 6,
                    "interchainTokenId": null,
                    "coingeckoId": "usd-coin",
                    "type": "evm",
                    "logoURI": "https://raw.githubusercontent.com/axelarnetwork/axelar-configs/main/images/tokens/usdc.svg",
                    "axelarNetworkSymbol": "USDC",
                    "subGraphOnly": false,
                    "subGraphIds": [
                        "uusdc",
                        "cctp-uusdc-ethereum-to-noble",
                        "chainflip-bridge",
                        "immutable-usdc",
                        "immutable-USDC-USDC"
                    ],
                    "enabled": true,
                    "active": true,
                    "visible": true,
                    "usdPrice": 0.99998273
                },
                "toToken": {
                    "id": "10_0xeb466342c4d449bc9f53a865d5cb90586f405215",
                    "symbol": "USDC.axl",
                    "address": "0xeb466342c4d449bc9f53a865d5cb90586f405215",
                    "chainId": "10",
                    "name": " USDC (Axelar)",
                    "decimals": 6,
                    "interchainTokenId": null,
                    "coingeckoId": "usd-coin",
                    "type": "evm",
                    "logoURI": "https://raw.githubusercontent.com/axelarnetwork/axelar-configs/main/images/tokens/usdc.svg",
                    "axelarNetworkSymbol": "axlUSDC",
                    "subGraphOnly": false,
                    "subGraphIds": [
                        "uusdc"
                    ],
                    "enabled": true,
                    "active": true,
                    "visible": true,
                    "usdPrice": 0.999897395434
                },
                "aggregatedVolatility": 0,
                "fromAmount": "1574",
                "toAmount": "1574",
                "toAmountMin": "1574",
                "exchangeRate": "1.0",
                "priceImpact": "0",
                "stage": 0,
                "provider": "Axelar",
                "logoURI": "https://raw.githubusercontent.com/0xsquid/assets/main/images/master/providers/axelar.svg",
                "description": "Bridge USDC to Optimism",
                "estimatedDuration": 80
            },
            {
                "type": "swap",
                "chainType": "evm",
                "data": {
                    "address": "0xa8a5356ee5d02fe33d72355e4f698782f8f199e8",
                    "chainId": "10",
                    "coinAddresses": [
                        "0x7f5c764cbc14f9669b88837ca1490cca17c31607",
                        "0xeb466342c4d449bc9f53a865d5cb90586f405215"
                    ],
                    "dex": "Uniswap V3",
                    "enabled": true,
                    "path": [
                        "0xeb466342c4d449bc9f53a865d5cb90586f405215",
                        "0x7f5c764cbc14f9669b88837ca1490cca17c31607"
                    ],
                    "slippage": 0.0011764705882352942,
                    "aggregateSlippage": 0.005588235294117647,
                    "target": "0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45"
                },
                "fromChain": "10",
                "toChain": "10",
                "fromToken": {
                    "id": "10_0xeb466342c4d449bc9f53a865d5cb90586f405215",
                    "symbol": "USDC.axl",
                    "address": "0xeb466342c4d449bc9f53a865d5cb90586f405215",
                    "chainId": "10",
                    "name": " USDC (Axelar)",
                    "decimals": 6,
                    "interchainTokenId": null,
                    "coingeckoId": "usd-coin",
                    "type": "evm",
                    "logoURI": "https://raw.githubusercontent.com/axelarnetwork/axelar-configs/main/images/tokens/usdc.svg",
                    "axelarNetworkSymbol": "axlUSDC",
                    "subGraphOnly": false,
                    "subGraphIds": [
                        "uusdc"
                    ],
                    "enabled": true,
                    "active": true,
                    "visible": true,
                    "usdPrice": 0.999897395434
                },
                "toToken": {
                    "id": "10_0x7f5c764cbc14f9669b88837ca1490cca17c31607",
                    "symbol": "USDC.e",
                    "address": "0x7f5c764cbc14f9669b88837ca1490cca17c31607",
                    "chainId": "10",
                    "name": "USDC.e",
                    "decimals": 6,
                    "coingeckoId": "usd-coin",
                    "type": "evm",
                    "logoURI": "https://raw.githubusercontent.com/0xsquid/assets/main/images/tokens/usdc.svg",
                    "axelarNetworkSymbol": "USDC.e",
                    "subGraphOnly": false,
                    "subGraphIds": [],
                    "enabled": true,
                    "active": true,
                    "visible": true,
                    "usdPrice": 0.99998273
                },
                "aggregatedVolatility": 0,
                "fromAmount": "1574",
                "toAmount": "1572",
                "toAmountMin": "1563",
                "exchangeRate": "0.998729351969504447",
                "priceImpact": "-1.161618231749805386",
                "stage": 1,
                "provider": "Uniswap V3",
                "logoURI": "https://raw.githubusercontent.com/0xsquid/assets/main/images/providers/uniswap.svg",
                "description": "Swap USDC.axl to USDC.e"
            },
            {
                "type": "swap",
                "chainType": "evm",
                "data": {
                    "address": "0x85149247691df622eaf1a8bd0cafd40bc45154a9",
                    "chainId": "10",
                    "coinAddresses": [
                        "0x4200000000000000000000000000000000000006",
                        "0x7f5c764cbc14f9669b88837ca1490cca17c31607"
                    ],
                    "dex": "Uniswap V3",
                    "enabled": true,
                    "path": [
                        "0x7f5c764cbc14f9669b88837ca1490cca17c31607",
                        "0x4200000000000000000000000000000000000006"
                    ],
                    "slippage": 0.004411764705882353,
                    "aggregateSlippage": 0.01,
                    "target": "0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45"
                },
                "fromChain": "10",
                "toChain": "10",
                "fromToken": {
                    "id": "10_0x7f5c764cbc14f9669b88837ca1490cca17c31607",
                    "symbol": "USDC.e",
                    "address": "0x7f5c764cbc14f9669b88837ca1490cca17c31607",
                    "chainId": "10",
                    "name": "USDC.e",
                    "decimals": 6,
                    "coingeckoId": "usd-coin",
                    "type": "evm",
                    "logoURI": "https://raw.githubusercontent.com/0xsquid/assets/main/images/tokens/usdc.svg",
                    "axelarNetworkSymbol": "USDC.e",
                    "subGraphOnly": false,
                    "subGraphIds": [],
                    "enabled": true,
                    "active": true,
                    "visible": true,
                    "usdPrice": 0.99998273
                },
                "toToken": {
                    "id": "10_0x4200000000000000000000000000000000000006",
                    "symbol": "WETH",
                    "address": "0x4200000000000000000000000000000000000006",
                    "chainId": "10",
                    "name": "Wrapped ETH",
                    "decimals": 18,
                    "coingeckoId": "weth",
                    "type": "evm",
                    "logoURI": "https://raw.githubusercontent.com/0xsquid/assets/main/images/tokens/weth.svg",
                    "axelarNetworkSymbol": "WETH",
                    "subGraphOnly": false,
                    "subGraphIds": [],
                    "enabled": true,
                    "active": true,
                    "visible": true,
                    "usdPrice": 1575.00100994
                },
                "aggregatedVolatility": 2,
                "fromAmount": "1572",
                "toAmount": "997366732144",
                "toAmountMin": "987393064822",
                "exchangeRate": "0.000634457208743002",
                "priceImpact": "-0.577004350618023132",
                "stage": 1,
                "provider": "Uniswap V3",
                "logoURI": "https://raw.githubusercontent.com/0xsquid/assets/main/images/providers/uniswap.svg",
                "description": "Swap USDC.e to WETH"
            },
            {
                "type": "wrap",
                "chainType": "evm",
                "data": {
                    "address": "0x4200000000000000000000000000000000000006",
                    "chainId": "10",
                    "enabled": true,
                    "type": "WrappedNative",
                    "path": [
                        "0x4200000000000000000000000000000000000006",
                        "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee"
                    ],
                    "id": "10_0x4200000000000000000000000000000000000006",
                    "name": "Native Wrapper",
                    "logoURI": "https://raw.githubusercontent.com/0xsquid/assets/main/images/master/providers/squid-purple.svg",
                    "properties": {
                        "address": "0x4200000000000000000000000000000000000006",
                        "coinAddresses": [
                            "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
                            "0x4200000000000000000000000000000000000006"
                        ],
                        "type": "WrappedNative"
                    },
                    "target": "0x4200000000000000000000000000000000000006",
                    "direction": "unwrap"
                },
                "fromChain": "10",
                "toChain": "10",
                "fromToken": {
                    "id": "10_0x4200000000000000000000000000000000000006",
                    "symbol": "WETH",
                    "address": "0x4200000000000000000000000000000000000006",
                    "chainId": "10",
                    "name": "Wrapped ETH",
                    "decimals": 18,
                    "coingeckoId": "weth",
                    "type": "evm",
                    "logoURI": "https://raw.githubusercontent.com/0xsquid/assets/main/images/tokens/weth.svg",
                    "axelarNetworkSymbol": "WETH",
                    "subGraphOnly": false,
                    "subGraphIds": [],
                    "enabled": true,
                    "active": true,
                    "visible": true,
                    "usdPrice": 1575.00100994
                },
                "toToken": {
                    "id": "10_0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
                    "symbol": "ETH",
                    "address": "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
                    "chainId": "10",
                    "name": "ETH",
                    "decimals": 18,
                    "coingeckoId": "ethereum",
                    "type": "evm",
                    "logoURI": "https://raw.githubusercontent.com/0xsquid/assets/main/images/tokens/eth.svg",
                    "axelarNetworkSymbol": "ETH",
                    "subGraphOnly": false,
                    "subGraphIds": [],
                    "enabled": true,
                    "active": true,
                    "visible": true,
                    "usdPrice": 1575.00100994
                },
                "aggregatedVolatility": 4,
                "fromAmount": "997366732144",
                "toAmount": "997366732144",
                "toAmountMin": "987393064822",
                "exchangeRate": "1.0",
                "priceImpact": "0.00",
                "stage": 1,
                "provider": "Native Wrapper",
                "logoURI": "https://raw.githubusercontent.com/0xsquid/assets/main/images/master/providers/squid-purple.svg",
                "description": "Unwrap WETH to ETH"
            }
        ],
        "fromAmount": "1000000000000",
        "toAmount": "997366732144",
        "toAmountMin": "987393064822",
        "exchangeRate": "0.997366732144",
        "aggregatePriceImpact": "-2.0",
        "fromAmountUSD": "0.00",
        "toAmountUSD": "0.00",
        "toAmountMinUSD": "0.00",
        "aggregateSlippage": 1,
        "fromToken": {
            "id": "1_0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
            "symbol": "ETH",
            "address": "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
            "chainId": "1",
            "name": "ETH",
            "decimals": 18,
            "coingeckoId": "ethereum",
            "type": "evm",
            "logoURI": "https://raw.githubusercontent.com/0xsquid/assets/main/images/tokens/eth.svg",
            "volatility": 2,
            "axelarNetworkSymbol": "ETH",
            "subGraphOnly": false,
            "subGraphIds": [
                "weth-wei",
                "chainflip-bridge",
                "immutable-eth"
            ],
            "enabled": true,
            "active": true,
            "visible": true,
            "usdPrice": 1575.19305042
        },
        "toToken": {
            "id": "10_0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
            "symbol": "ETH",
            "address": "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
            "chainId": "10",
            "name": "ETH",
            "decimals": 18,
            "coingeckoId": "ethereum",
            "type": "evm",
            "logoURI": "https://raw.githubusercontent.com/0xsquid/assets/main/images/tokens/eth.svg",
            "volatility": 2,
            "axelarNetworkSymbol": "ETH",
            "subGraphOnly": false,
            "subGraphIds": [],
            "enabled": true,
            "active": true,
            "visible": true,
            "usdPrice": 1575.00100994
        },
        "isBoostSupported": true,
        "feeCosts": [
            {
                "amount": "67652120767967",
                "amountUsd": "0.11",
                "description": "Gas receiver fee",
                "gasLimit": "807267",
                "gasMultiplier": 1.1550000000000002,
                "name": "Gas receiver fee",
                "token": {
                    "id": "1_0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
                    "symbol": "ETH",
                    "address": "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
                    "chainId": "1",
                    "name": "ETH",
                    "decimals": 18,
                    "coingeckoId": "ethereum",
                    "type": "evm",
                    "logoURI": "https://raw.githubusercontent.com/0xsquid/assets/main/images/tokens/eth.svg",
                    "volatility": 2,
                    "axelarNetworkSymbol": "ETH",
                    "subGraphOnly": false,
                    "subGraphIds": [
                        "weth-wei",
                        "chainflip-bridge",
                        "immutable-eth"
                    ],
                    "enabled": true,
                    "active": true,
                    "visible": true,
                    "usdPrice": 1575.19305042
                },
                "logoURI": "https://raw.githubusercontent.com/0xsquid/assets/main/images/master/providers/axelar.svg",
                "data": {
                    "axelarFeeData": {
                        "baseFee": 0.07318330635741165,
                        "expressFee": 0,
                        "executeMultiplier": 1.1550000000000002,
                        "expressMultiplier": 1.1550000000000002,
                        "expressSupported": true
                    },
                    "toChainFeeData": {
                        "lastBaseFeePerGas": "1007066",
                        "maxFeePerGas": "1502014132",
                        "maxPriorityFeePerGas": "1500000000",
                        "gasPrice": "2007066"
                    }
                }
            },
            {
                "amount": "0",
                "amountUsd": "0.00",
                "description": "Boost fee for Ethereum to Optimism",
                "name": "Boost fee",
                "token": {
                    "id": "1_0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
                    "symbol": "ETH",
                    "address": "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
                    "chainId": "1",
                    "name": "ETH",
                    "decimals": 18,
                    "coingeckoId": "ethereum",
                    "type": "evm",
                    "logoURI": "https://raw.githubusercontent.com/0xsquid/assets/main/images/tokens/eth.svg",
                    "volatility": 2,
                    "axelarNetworkSymbol": "ETH",
                    "subGraphOnly": false,
                    "subGraphIds": [
                        "weth-wei",
                        "chainflip-bridge",
                        "immutable-eth"
                    ],
                    "enabled": true,
                    "active": true,
                    "visible": true,
                    "usdPrice": 1575.19305042
                },
                "logoURI": "https://raw.githubusercontent.com/0xsquid/assets/main/images/master/providers/axelar.svg"
            }
        ],
        "gasCosts": [
            {
                "type": "executeCall",
                "token": {
                    "id": "1_0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
                    "symbol": "ETH",
                    "address": "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
                    "chainId": "1",
                    "name": "ETH",
                    "decimals": 18,
                    "coingeckoId": "ethereum",
                    "type": "evm",
                    "logoURI": "https://raw.githubusercontent.com/0xsquid/assets/main/images/tokens/eth.svg",
                    "volatility": 2,
                    "axelarNetworkSymbol": "ETH",
                    "subGraphOnly": false,
                    "subGraphIds": [
                        "weth-wei",
                        "chainflip-bridge",
                        "immutable-eth"
                    ],
                    "enabled": true,
                    "active": true,
                    "visible": true,
                    "usdPrice": 1575.19305042
                },
                "amount": "164204208896000",
                "gasLimit": "469000",
                "amountUsd": "0.26"
            }
        ],
        "estimatedRouteDuration": 80
    }
}
```

{% endtab %}
{% endtabs %}

### /gettransaction

Get details of a transaction.

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

#### Query Parameters

| Name                                              | Type   | Description                                                                                                                |
| ------------------------------------------------- | ------ | -------------------------------------------------------------------------------------------------------------------------- |
| rpc                                               | String | Remote procedural call URL.                                                                                                |
| transactionHash<mark style="color:red;">\*</mark> | String | The transaction hash.                                                                                                      |
| bridgeId<mark style="color:red;">\*</mark>        | String | Refer to the [Bridge ID](/ids/bridge-ids) page for details.                                                                |
| srcChainId                                        | String | <p>By default, Ethereum mainnet.<br>Refer to the <a href="/pages/5o1xMsQPqXw9GBfGTpdB">Chain ID </a>page for details. </p> |

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

```url
https://api.expand.network/bridge/gettransaction?bridgeId=600&transactionHash=0x9e14580ebe9f0d36023e8ad758fbc02407406dfb0bf25d18c90567437d747ac8&srcChainId=56
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "status": "EXECUTED",
        "srcTx": {
            "chainId": "56",
            "hash": "0x9e14580ebe9f0d36023e8ad758fbc02407406dfb0bf25d18c90567437d747ac8",
            "transactionStatus": true,
            "blockNumber": "51317102",
            "timestamp": null,
            "from": "0x77e9278B76E3b454CCC43451da59CA66fef309d8",
            "to": "0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE",
            "value": "187390702048411",
            "transactionFees": "44613300000000",
            "gas": "604806",
            "gasPrice": "100000000",
            "input": "0xa8f6666600000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000220000000000000000000000000000000000000000000000000000000000000068013762d2881593e65267b8ec85f994cac06daebdaf7f898ba0622e1547e88dbc500000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000180000000000000000000000000b4f34d09124b8c9712957b76707b42510041ecbb0000000000000000000000004268b8f0b87b6eae5d897996e6b845ddbd99adf300000000000000000000000077e9278b76e3b454ccc43451da59ca66fef309d800000000000000000000000000000000000000000000000000000000000ec1db0000000000000000000000000000000000000000000000000000000000000089000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005737175696400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000077361666570616c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000001e0000000000000000000000000bd6c7b0d2f68c2b7805d88388319cfb6ecb50ea9000000000000000000000000bd6c7b0d2f68c2b7805d88388319cfb6ecb50ea900000000000000000000000055d398326f99059ff775485246999027b319795500000000000000000000000055d398326f99059ff775485246999027b31979550000000000000000000000000000000000000000000000000de0b6b3a764000000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000084eedd56e100000000000000000000000055d398326f99059ff775485246999027b31979550000000000000000000000000000000000000000000000000004bccfa9ced8000000000000000000000000000000000000000000000000000005ebac4484a80000000000000000000000000037e945ed26b17a631d7df3382c2808cc1c7f07ed000000000000000000000000000000000000000000000000000000000000000000000000000000006140b987d6b51fd75b66c3b07733beb5167c42fc0000000000000000000000006140b987d6b51fd75b66c3b07733beb5167c42fc00000000000000000000000055d398326f99059ff775485246999027b31979550000000000000000000000004268b8f0b87b6eae5d897996e6b845ddbd99adf30000000000000000000000000000000000000000000000000dd60e37b910800000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001442646478b00000000000000000000000055d398326f99059ff775485246999027b31979550000000000000000000000000000000000000000000000000dd60e37b91080000000000000000000000000004268b8f0b87b6eae5d897996e6b845ddbd99adf300000000000000000000000000000000000000000000000000000000000f0fc00000000000000000000000001231deb6f5749ef6ce6943a275a1d3e7486f4eae00000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000420255d398326f99059ff775485246999027b319795501ffff01803036ac78752ef599ec75c500ac8b0ac0be67df001231deb6f5749ef6ce6943a275a1d3e7486f4eae0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000001c00000000000000000000000004268b8f0b87b6eae5d897996e6b845ddbd99adf3000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000003200000000000000000000000000000000000000000000000000000aa6e4c3ad49b00000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000007506f6c79676f6e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002a30786365313646363933373535323061623031333737636537423838663542413843343846384436363600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000761786c55534443000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c10000000000000000000000000000000000000000000000000000000000000004000000000000000000000000077e9278b76e3b454ccc43451da59ca66fef309d8000000000000000000000000000000000000000000000000000000000000000700000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000001e000000000000000000000000000000000000000000000000000000000000003600000000000000000000000000000000000000000000000000000000000000580000000000000000000000000000000000000000000000000000000000000070000000000000000000000000000000000000000000000000000000000000009200000000000000000000000000000000000000000000000000000000000000a8000000000000000000000000000000000000000000000000000000000000000030000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000750e4c4984a9e0f12978ea6742bc1c5d248f40ed0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000750e4c4984a9e0f12978ea6742bc1c5d248f40ed000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000044095ea7b300000000000000000000000068b3465833fb72a70ecdf485e0e4c7bd8665fc45ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000000000000000000750e4c4984a9e0f12978ea6742bc1c5d248f40ed0000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000100000000000000000000000068b3465833fb72a70ecdf485e0e4c7bd8665fc45000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000001c000000000000000000000000000000000000000000000000000000000000000e404e45aaf000000000000000000000000750e4c4984a9e0f12978ea6742bc1c5d248f40ed0000000000000000000000002791bca1f2de4661ed88a30c99a7a9449aa841740000000000000000000000000000000000000000000000000000000000000064000000000000000000000000ad6cea45f98444a922a2b4fe96b8c90f0862d2f400000000000000000000000000000000000000000000000000000000000f0fc000000000000000000000000000000000000000000000000000000000000f07950000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000000000000000000750e4c4984a9e0f12978ea6742bc1c5d248f40ed000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000000000000000000000000002791bca1f2de4661ed88a30c99a7a9449aa84174000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000044095ea7b300000000000000000000000068b3465833fb72a70ecdf485e0e4c7bd8665fc45ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000400000000000000000000000002791bca1f2de4661ed88a30c99a7a9449aa841740000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000100000000000000000000000068b3465833fb72a70ecdf485e0e4c7bd8665fc45000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000001c000000000000000000000000000000000000000000000000000000000000000e404e45aaf0000000000000000000000002791bca1f2de4661ed88a30c99a7a9449aa841740000000000000000000000000d500b1d8e8ef31e21c99d1db9a6444d3adf127000000000000000000000000000000000000000000000000000000000000001f4000000000000000000000000ad6cea45f98444a922a2b4fe96b8c90f0862d2f400000000000000000000000000000000000000000000000000000000000f0fae0000000000000000000000000000000000000000000000003d5ee3c6b963d3ee00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000400000000000000000000000002791bca1f2de4661ed88a30c99a7a9449aa84174000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000010000000000000000000000000d500b1d8e8ef31e21c99d1db9a6444d3adf1270000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000242e1a7d4d00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000d500b1d8e8ef31e21c99d1db9a6444d3adf12700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000200000000000000000000000077e9278b76e3b454ccc43451da59ca66fef309d8000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000000000000000000eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee000000000000000000000000000000000000000000000000000000000000000012c6ece5482500a6a11237f7b8e858a300000000000000000000000000000000",
            "nonce": 308,
            "type": null,
            "network": null,
            "v": "0x93",
            "r": "0xa7740dfbe0b51f7311863a1cc634c819480b76b9502f98a98607908bc4f14179",
            "s": "0x3ec3746e95429ed5fc1c054cab529d20162e06535440ffb977f70de635a8e057",
            "yParity": null,
            "transactionIndex": 313,
            "accessList": null,
            "maxFeePerGas": null,
            "maxPriorityFeePerGas": null,
            "logs": [
                {
                    "address": "0x55d398326f99059fF775485246999027B3197955",
                    "topics": [
                        "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
                        "0x00000000000000000000000077e9278b76e3b454ccc43451da59ca66fef309d8",
                        "0x0000000000000000000000001231deb6f5749ef6ce6943a275a1d3e7486f4eae"
                    ],
                    "data": "0x0000000000000000000000000000000000000000000000000de0b6b3a7640000",
                    "blockNumber": 51317102,
                    "transactionHash": "0x9e14580ebe9f0d36023e8ad758fbc02407406dfb0bf25d18c90567437d747ac8",
                    "transactionIndex": 313,
                    "blockHash": "0xb06b3a0d14c37461a16e7d13e862607c0208c9dcd18cca1c65fe2290a40273f3",
                    "logIndex": 2102,
                    "removed": false,
                    "id": "log_732b5dcb"
                },
                {
                    "address": "0x55d398326f99059fF775485246999027B3197955",
                    "topics": [
                        "0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925",
                        "0x00000000000000000000000077e9278b76e3b454ccc43451da59ca66fef309d8",
                        "0x0000000000000000000000001231deb6f5749ef6ce6943a275a1d3e7486f4eae"
                    ],
                    "data": "0x0000000000000000000000000000000000000000000000000000000000000000",
                    "blockNumber": 51317102,
                    "transactionHash": "0x9e14580ebe9f0d36023e8ad758fbc02407406dfb0bf25d18c90567437d747ac8",
                    "transactionIndex": 313,
                    "blockHash": "0xb06b3a0d14c37461a16e7d13e862607c0208c9dcd18cca1c65fe2290a40273f3",
                    "logIndex": 2103,
                    "removed": false,
                    "id": "log_cf1921db"
                },
                {
                    "address": "0x55d398326f99059fF775485246999027B3197955",
                    "topics": [
                        "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
                        "0x0000000000000000000000001231deb6f5749ef6ce6943a275a1d3e7486f4eae",
                        "0x000000000000000000000000bd6c7b0d2f68c2b7805d88388319cfb6ecb50ea9"
                    ],
                    "data": "0x000000000000000000000000000000000000000000000000000aa87bee538000",
                    "blockNumber": 51317102,
                    "transactionHash": "0x9e14580ebe9f0d36023e8ad758fbc02407406dfb0bf25d18c90567437d747ac8",
                    "transactionIndex": 313,
                    "blockHash": "0xb06b3a0d14c37461a16e7d13e862607c0208c9dcd18cca1c65fe2290a40273f3",
                    "logIndex": 2104,
                    "removed": false,
                    "id": "log_bfbc29aa"
                },
                {
                    "address": "0x55d398326f99059fF775485246999027B3197955",
                    "topics": [
                        "0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925",
                        "0x0000000000000000000000001231deb6f5749ef6ce6943a275a1d3e7486f4eae",
                        "0x000000000000000000000000bd6c7b0d2f68c2b7805d88388319cfb6ecb50ea9"
                    ],
                    "data": "0xffffffffffffffffffffffffffffffffffffffffffffe94a6ddba6942319f341",
                    "blockNumber": 51317102,
                    "transactionHash": "0x9e14580ebe9f0d36023e8ad758fbc02407406dfb0bf25d18c90567437d747ac8",
                    "transactionIndex": 313,
                    "blockHash": "0xb06b3a0d14c37461a16e7d13e862607c0208c9dcd18cca1c65fe2290a40273f3",
                    "logIndex": 2105,
                    "removed": false,
                    "id": "log_46199e76"
                },
                {
                    "address": "0xbD6C7B0d2f68c2b7805d88388319cfB6EcB50eA9",
                    "topics": [
                        "0x28a87b6059180e46de5fb9ab35eb043e8fe00ab45afcc7789e3934ecbbcde3ea",
                        "0x00000000000000000000000055d398326f99059ff775485246999027b3197955",
                        "0x00000000000000000000000037e945ed26b17a631d7df3382c2808cc1c7f07ed"
                    ],
                    "data": "0x0000000000000000000000000000000000000000000000000004bccfa9ced8000000000000000000000000000000000000000000000000000005ebac4484a800",
                    "blockNumber": 51317102,
                    "transactionHash": "0x9e14580ebe9f0d36023e8ad758fbc02407406dfb0bf25d18c90567437d747ac8",
                    "transactionIndex": 313,
                    "blockHash": "0xb06b3a0d14c37461a16e7d13e862607c0208c9dcd18cca1c65fe2290a40273f3",
                    "logIndex": 2106,
                    "removed": false,
                    "id": "log_ffa0865e"
                },
                {
                    "address": "0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE",
                    "topics": [
                        "0x7bfdfdb5e3a3776976e53cb0607060f54c5312701c8cba1155cc4d5394440b38"
                    ],
                    "data": "0x13762d2881593e65267b8ec85f994cac06daebdaf7f898ba0622e1547e88dbc5000000000000000000000000bd6c7b0d2f68c2b7805d88388319cfb6ecb50ea900000000000000000000000055d398326f99059ff775485246999027b319795500000000000000000000000055d398326f99059ff775485246999027b31979550000000000000000000000000000000000000000000000000de0b6b3a76400000000000000000000000000000000000000000000000000000dd60e37b910800000000000000000000000000000000000000000000000000000000000684a9ac4",
                    "blockNumber": 51317102,
                    "transactionHash": "0x9e14580ebe9f0d36023e8ad758fbc02407406dfb0bf25d18c90567437d747ac8",
                    "transactionIndex": 313,
                    "blockHash": "0xb06b3a0d14c37461a16e7d13e862607c0208c9dcd18cca1c65fe2290a40273f3",
                    "logIndex": 2107,
                    "removed": false,
                    "id": "log_c165ca6a"
                },
                {
                    "address": "0x55d398326f99059fF775485246999027B3197955",
                    "topics": [
                        "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
                        "0x0000000000000000000000001231deb6f5749ef6ce6943a275a1d3e7486f4eae",
                        "0x0000000000000000000000006140b987d6b51fd75b66c3b07733beb5167c42fc"
                    ],
                    "data": "0x0000000000000000000000000000000000000000000000000dd60e37b9108000",
                    "blockNumber": 51317102,
                    "transactionHash": "0x9e14580ebe9f0d36023e8ad758fbc02407406dfb0bf25d18c90567437d747ac8",
                    "transactionIndex": 313,
                    "blockHash": "0xb06b3a0d14c37461a16e7d13e862607c0208c9dcd18cca1c65fe2290a40273f3",
                    "logIndex": 2108,
                    "removed": false,
                    "id": "log_a0cd7cc5"
                },
                {
                    "address": "0x55d398326f99059fF775485246999027B3197955",
                    "topics": [
                        "0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925",
                        "0x0000000000000000000000001231deb6f5749ef6ce6943a275a1d3e7486f4eae",
                        "0x0000000000000000000000006140b987d6b51fd75b66c3b07733beb5167c42fc"
                    ],
                    "data": "0xffffffffffffffffffffffffffffffffffffffffffee50c4643973fac20e48f8",
                    "blockNumber": 51317102,
                    "transactionHash": "0x9e14580ebe9f0d36023e8ad758fbc02407406dfb0bf25d18c90567437d747ac8",
                    "transactionIndex": 313,
                    "blockHash": "0xb06b3a0d14c37461a16e7d13e862607c0208c9dcd18cca1c65fe2290a40273f3",
                    "logIndex": 2109,
                    "removed": false,
                    "id": "log_794e5d32"
                },
                {
                    "address": "0x4268B8F0B87b6Eae5d897996E6b845ddbD99Adf3",
                    "topics": [
                        "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
                        "0x000000000000000000000000803036ac78752ef599ec75c500ac8b0ac0be67df",
                        "0x0000000000000000000000001231deb6f5749ef6ce6943a275a1d3e7486f4eae"
                    ],
                    "data": "0x00000000000000000000000000000000000000000000000000000000000f36b3",
                    "blockNumber": 51317102,
                    "transactionHash": "0x9e14580ebe9f0d36023e8ad758fbc02407406dfb0bf25d18c90567437d747ac8",
                    "transactionIndex": 313,
                    "blockHash": "0xb06b3a0d14c37461a16e7d13e862607c0208c9dcd18cca1c65fe2290a40273f3",
                    "logIndex": 2110,
                    "removed": false,
                    "id": "log_13115258"
                },
                {
                    "address": "0x55d398326f99059fF775485246999027B3197955",
                    "topics": [
                        "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
                        "0x0000000000000000000000006140b987d6b51fd75b66c3b07733beb5167c42fc",
                        "0x000000000000000000000000803036ac78752ef599ec75c500ac8b0ac0be67df"
                    ],
                    "data": "0x0000000000000000000000000000000000000000000000000dd60e37b9108000",
                    "blockNumber": 51317102,
                    "transactionHash": "0x9e14580ebe9f0d36023e8ad758fbc02407406dfb0bf25d18c90567437d747ac8",
                    "transactionIndex": 313,
                    "blockHash": "0xb06b3a0d14c37461a16e7d13e862607c0208c9dcd18cca1c65fe2290a40273f3",
                    "logIndex": 2111,
                    "removed": false,
                    "id": "log_a5a83eb3"
                },
                {
                    "address": "0x803036AC78752EF599EC75c500ac8B0Ac0bE67dF",
                    "topics": [
                        "0x19b47279256b2a23a1665c810c8d55a1758940ee09377d4f8d26497a3577dc83",
                        "0x0000000000000000000000006140b987d6b51fd75b66c3b07733beb5167c42fc",
                        "0x0000000000000000000000001231deb6f5749ef6ce6943a275a1d3e7486f4eae"
                    ],
                    "data": "0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0c94d0000000000000000000000000000000000000000000000000dd60e37b910800000000000000000000000000000000000000f41f83a0276a0d2ca223e50e07c6f00000000000000000000000000000000000000000000001edbd9973b516755980000000000000000000000000000000000000000000000000000000000043762000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001dec5c6af200",
                    "blockNumber": 51317102,
                    "transactionHash": "0x9e14580ebe9f0d36023e8ad758fbc02407406dfb0bf25d18c90567437d747ac8",
                    "transactionIndex": 313,
                    "blockHash": "0xb06b3a0d14c37461a16e7d13e862607c0208c9dcd18cca1c65fe2290a40273f3",
                    "logIndex": 2112,
                    "removed": false,
                    "id": "log_77385165"
                },
                {
                    "address": "0x6140b987d6B51Fd75b66C3B07733Beb5167c42fc",
                    "topics": [
                        "0x2db5ddd0b42bdbca0d69ea16f234a870a485854ae0d91f16643d6f317d8b8994",
                        "0x0000000000000000000000001231deb6f5749ef6ce6943a275a1d3e7486f4eae",
                        "0x00000000000000000000000055d398326f99059ff775485246999027b3197955",
                        "0x0000000000000000000000004268b8f0b87b6eae5d897996e6b845ddbd99adf3"
                    ],
                    "data": "0x0000000000000000000000001231deb6f5749ef6ce6943a275a1d3e7486f4eae0000000000000000000000000000000000000000000000000dd60e37b910800000000000000000000000000000000000000000000000000000000000000f0fc000000000000000000000000000000000000000000000000000000000000f36b3",
                    "blockNumber": 51317102,
                    "transactionHash": "0x9e14580ebe9f0d36023e8ad758fbc02407406dfb0bf25d18c90567437d747ac8",
                    "transactionIndex": 313,
                    "blockHash": "0xb06b3a0d14c37461a16e7d13e862607c0208c9dcd18cca1c65fe2290a40273f3",
                    "logIndex": 2113,
                    "removed": false,
                    "id": "log_27afb23f"
                },
                {
                    "address": "0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE",
                    "topics": [
                        "0x7bfdfdb5e3a3776976e53cb0607060f54c5312701c8cba1155cc4d5394440b38"
                    ],
                    "data": "0x13762d2881593e65267b8ec85f994cac06daebdaf7f898ba0622e1547e88dbc50000000000000000000000006140b987d6b51fd75b66c3b07733beb5167c42fc00000000000000000000000055d398326f99059ff775485246999027b31979550000000000000000000000004268b8f0b87b6eae5d897996e6b845ddbd99adf30000000000000000000000000000000000000000000000000dd60e37b910800000000000000000000000000000000000000000000000000000000000000f36b300000000000000000000000000000000000000000000000000000000684a9ac4",
                    "blockNumber": 51317102,
                    "transactionHash": "0x9e14580ebe9f0d36023e8ad758fbc02407406dfb0bf25d18c90567437d747ac8",
                    "transactionIndex": 313,
                    "blockHash": "0xb06b3a0d14c37461a16e7d13e862607c0208c9dcd18cca1c65fe2290a40273f3",
                    "logIndex": 2114,
                    "removed": false,
                    "id": "log_8885d5a9"
                },
                {
                    "address": "0x4268B8F0B87b6Eae5d897996E6b845ddbD99Adf3",
                    "topics": [
                        "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
                        "0x0000000000000000000000001231deb6f5749ef6ce6943a275a1d3e7486f4eae",
                        "0x000000000000000000000000ce16f69375520ab01377ce7b88f5ba8c48f8d666"
                    ],
                    "data": "0x00000000000000000000000000000000000000000000000000000000000f36b3",
                    "blockNumber": 51317102,
                    "transactionHash": "0x9e14580ebe9f0d36023e8ad758fbc02407406dfb0bf25d18c90567437d747ac8",
                    "transactionIndex": 313,
                    "blockHash": "0xb06b3a0d14c37461a16e7d13e862607c0208c9dcd18cca1c65fe2290a40273f3",
                    "logIndex": 2115,
                    "removed": false,
                    "id": "log_e0e2e2f2"
                },
                {
                    "address": "0x2d5d7d31F671F86C782533cc367F14109a082712",
                    "topics": [
                        "0x8c092067e86e85e8cfbaf187202ef580cdfd7ec37fbec89191607de73ca80005",
                        "0x000000000000000000000000ce16f69375520ab01377ce7b88f5ba8c48f8d666",
                        "0xbb1600ff05ad96437cdb143b7291dc141da0c9a4acefc3cfbcc65b7cd8d52952"
                    ],
                    "data": "0x00000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000f36b30000000000000000000000000000000000000000000000000000aa6e4c3ad49b00000000000000000000000077e9278b76e3b454ccc43451da59ca66fef309d80000000000000000000000000000000000000000000000000000000000000007506f6c79676f6e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002a30786365313646363933373535323061623031333737636537423838663542413843343846384436363600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000761786c5553444300000000000000000000000000000000000000000000000000",
                    "blockNumber": 51317102,
                    "transactionHash": "0x9e14580ebe9f0d36023e8ad758fbc02407406dfb0bf25d18c90567437d747ac8",
                    "transactionIndex": 313,
                    "blockHash": "0xb06b3a0d14c37461a16e7d13e862607c0208c9dcd18cca1c65fe2290a40273f3",
                    "logIndex": 2116,
                    "removed": false,
                    "id": "log_99373617"
                },
                {
                    "address": "0x4268B8F0B87b6Eae5d897996E6b845ddbD99Adf3",
                    "topics": [
                        "0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925",
                        "0x000000000000000000000000ce16f69375520ab01377ce7b88f5ba8c48f8d666",
                        "0x000000000000000000000000304acf330bbe08d1e512eefaa92f6a57871fd895"
                    ],
                    "data": "0xfffffffffffffffffffffffffffffffffffffffffffffffffffe307574627fbc",
                    "blockNumber": 51317102,
                    "transactionHash": "0x9e14580ebe9f0d36023e8ad758fbc02407406dfb0bf25d18c90567437d747ac8",
                    "transactionIndex": 313,
                    "blockHash": "0xb06b3a0d14c37461a16e7d13e862607c0208c9dcd18cca1c65fe2290a40273f3",
                    "logIndex": 2117,
                    "removed": false,
                    "id": "log_f9619570"
                },
                {
                    "address": "0x4268B8F0B87b6Eae5d897996E6b845ddbD99Adf3",
                    "topics": [
                        "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
                        "0x000000000000000000000000ce16f69375520ab01377ce7b88f5ba8c48f8d666",
                        "0x0000000000000000000000000000000000000000000000000000000000000000"
                    ],
                    "data": "0x00000000000000000000000000000000000000000000000000000000000f36b3",
                    "blockNumber": 51317102,
                    "transactionHash": "0x9e14580ebe9f0d36023e8ad758fbc02407406dfb0bf25d18c90567437d747ac8",
                    "transactionIndex": 313,
                    "blockHash": "0xb06b3a0d14c37461a16e7d13e862607c0208c9dcd18cca1c65fe2290a40273f3",
                    "logIndex": 2118,
                    "removed": false,
                    "id": "log_5df149cd"
                },
                {
                    "address": "0x304acf330bbE08d1e512eefaa92F6a57871fD895",
                    "topics": [
                        "0x7e50569d26be643bda7757722291ec66b1be66d8283474ae3fab5a98f878a7a2",
                        "0x000000000000000000000000ce16f69375520ab01377ce7b88f5ba8c48f8d666",
                        "0xbb1600ff05ad96437cdb143b7291dc141da0c9a4acefc3cfbcc65b7cd8d52952"
                    ],
                    "data": "0x00000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000d8000000000000000000000000000000000000000000000000000000000000f36b30000000000000000000000000000000000000000000000000000000000000007506f6c79676f6e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002a307863653136463639333735353230616230313337376365374238386635424138433438463844363636000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c10000000000000000000000000000000000000000000000000000000000000004000000000000000000000000077e9278b76e3b454ccc43451da59ca66fef309d8000000000000000000000000000000000000000000000000000000000000000700000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000001e000000000000000000000000000000000000000000000000000000000000003600000000000000000000000000000000000000000000000000000000000000580000000000000000000000000000000000000000000000000000000000000070000000000000000000000000000000000000000000000000000000000000009200000000000000000000000000000000000000000000000000000000000000a8000000000000000000000000000000000000000000000000000000000000000030000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000750e4c4984a9e0f12978ea6742bc1c5d248f40ed0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000750e4c4984a9e0f12978ea6742bc1c5d248f40ed000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000044095ea7b300000000000000000000000068b3465833fb72a70ecdf485e0e4c7bd8665fc45ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000000000000000000750e4c4984a9e0f12978ea6742bc1c5d248f40ed0000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000100000000000000000000000068b3465833fb72a70ecdf485e0e4c7bd8665fc45000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000001c000000000000000000000000000000000000000000000000000000000000000e404e45aaf000000000000000000000000750e4c4984a9e0f12978ea6742bc1c5d248f40ed0000000000000000000000002791bca1f2de4661ed88a30c99a7a9449aa841740000000000000000000000000000000000000000000000000000000000000064000000000000000000000000ad6cea45f98444a922a2b4fe96b8c90f0862d2f400000000000000000000000000000000000000000000000000000000000f0fc000000000000000000000000000000000000000000000000000000000000f07950000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000000000000000000750e4c4984a9e0f12978ea6742bc1c5d248f40ed000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000000000000000000000000002791bca1f2de4661ed88a30c99a7a9449aa84174000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000044095ea7b300000000000000000000000068b3465833fb72a70ecdf485e0e4c7bd8665fc45ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000400000000000000000000000002791bca1f2de4661ed88a30c99a7a9449aa841740000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000100000000000000000000000068b3465833fb72a70ecdf485e0e4c7bd8665fc45000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000001c000000000000000000000000000000000000000000000000000000000000000e404e45aaf0000000000000000000000002791bca1f2de4661ed88a30c99a7a9449aa841740000000000000000000000000d500b1d8e8ef31e21c99d1db9a6444d3adf127000000000000000000000000000000000000000000000000000000000000001f4000000000000000000000000ad6cea45f98444a922a2b4fe96b8c90f0862d2f400000000000000000000000000000000000000000000000000000000000f0fae0000000000000000000000000000000000000000000000003d5ee3c6b963d3ee00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000400000000000000000000000002791bca1f2de4661ed88a30c99a7a9449aa84174000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000010000000000000000000000000d500b1d8e8ef31e21c99d1db9a6444d3adf1270000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000242e1a7d4d00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000d500b1d8e8ef31e21c99d1db9a6444d3adf12700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000200000000000000000000000077e9278b76e3b454ccc43451da59ca66fef309d8000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000000000000000000eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee000000000000000000000000000000000000000000000000000000000000000012c6ece5482500a6a11237f7b8e858a300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000761786c5553444300000000000000000000000000000000000000000000000000",
                    "blockNumber": 51317102,
                    "transactionHash": "0x9e14580ebe9f0d36023e8ad758fbc02407406dfb0bf25d18c90567437d747ac8",
                    "transactionIndex": 313,
                    "blockHash": "0xb06b3a0d14c37461a16e7d13e862607c0208c9dcd18cca1c65fe2290a40273f3",
                    "logIndex": 2119,
                    "removed": false,
                    "id": "log_ea75b4a7"
                },
                {
                    "address": "0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE",
                    "topics": [
                        "0xcba69f43792f9f399347222505213b55af8e0b0b54b893085c2e27ecbe1644f1"
                    ],
                    "data": "0x000000000000000000000000000000000000000000000000000000000000002013762d2881593e65267b8ec85f994cac06daebdaf7f898ba0622e1547e88dbc500000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000180000000000000000000000000b4f34d09124b8c9712957b76707b42510041ecbb0000000000000000000000004268b8f0b87b6eae5d897996e6b845ddbd99adf300000000000000000000000077e9278b76e3b454ccc43451da59ca66fef309d800000000000000000000000000000000000000000000000000000000000f36b30000000000000000000000000000000000000000000000000000000000000089000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005737175696400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000077361666570616c00000000000000000000000000000000000000000000000000",
                    "blockNumber": 51317102,
                    "transactionHash": "0x9e14580ebe9f0d36023e8ad758fbc02407406dfb0bf25d18c90567437d747ac8",
                    "transactionIndex": 313,
                    "blockHash": "0xb06b3a0d14c37461a16e7d13e862607c0208c9dcd18cca1c65fe2290a40273f3",
                    "logIndex": 2120,
                    "removed": false,
                    "id": "log_6fc8bbaa"
                }
            ]
        },
        "dstTx": {
            "chainId": "137",
            "hash": "0x3fb90809695fe7cb06f6786b169c0ce36b0561edada5830b66dafd4612f9ba41",
            "transactionStatus": true,
            "blockNumber": "72671451",
            "timestamp": null,
            "from": "0xE743a49F04F2f77eB2D3b753aE3AD599dE8CEA84",
            "to": "0xce16F69375520ab01377ce7B88f5BA8C48F8D666",
            "value": "0",
            "transactionFees": "26195710713699972",
            "gas": "596959",
            "gasPrice": "67712270629",
            "input": "0xe4a974cc21419a11750092db299070455055f81157acb3ab41915fe56061df5d490a16d400000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001600000000000000000000000000000000000000000000000000000000000000da000000000000000000000000000000000000000000000000000000000000f36b3000000000000000000000000000000000000000000000000000000000000000762696e616e636500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002a307863653136463639333735353230616230313337376365374238386635424138433438463844363636000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c10000000000000000000000000000000000000000000000000000000000000004000000000000000000000000077e9278b76e3b454ccc43451da59ca66fef309d8000000000000000000000000000000000000000000000000000000000000000700000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000001e000000000000000000000000000000000000000000000000000000000000003600000000000000000000000000000000000000000000000000000000000000580000000000000000000000000000000000000000000000000000000000000070000000000000000000000000000000000000000000000000000000000000009200000000000000000000000000000000000000000000000000000000000000a8000000000000000000000000000000000000000000000000000000000000000030000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000750e4c4984a9e0f12978ea6742bc1c5d248f40ed0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000750e4c4984a9e0f12978ea6742bc1c5d248f40ed000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000044095ea7b300000000000000000000000068b3465833fb72a70ecdf485e0e4c7bd8665fc45ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000000000000000000750e4c4984a9e0f12978ea6742bc1c5d248f40ed0000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000100000000000000000000000068b3465833fb72a70ecdf485e0e4c7bd8665fc45000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000001c000000000000000000000000000000000000000000000000000000000000000e404e45aaf000000000000000000000000750e4c4984a9e0f12978ea6742bc1c5d248f40ed0000000000000000000000002791bca1f2de4661ed88a30c99a7a9449aa841740000000000000000000000000000000000000000000000000000000000000064000000000000000000000000ad6cea45f98444a922a2b4fe96b8c90f0862d2f400000000000000000000000000000000000000000000000000000000000f0fc000000000000000000000000000000000000000000000000000000000000f07950000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000000000000000000750e4c4984a9e0f12978ea6742bc1c5d248f40ed000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000000000000000000000000002791bca1f2de4661ed88a30c99a7a9449aa84174000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000044095ea7b300000000000000000000000068b3465833fb72a70ecdf485e0e4c7bd8665fc45ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000400000000000000000000000002791bca1f2de4661ed88a30c99a7a9449aa841740000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000100000000000000000000000068b3465833fb72a70ecdf485e0e4c7bd8665fc45000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000001c000000000000000000000000000000000000000000000000000000000000000e404e45aaf0000000000000000000000002791bca1f2de4661ed88a30c99a7a9449aa841740000000000000000000000000d500b1d8e8ef31e21c99d1db9a6444d3adf127000000000000000000000000000000000000000000000000000000000000001f4000000000000000000000000ad6cea45f98444a922a2b4fe96b8c90f0862d2f400000000000000000000000000000000000000000000000000000000000f0fae0000000000000000000000000000000000000000000000003d5ee3c6b963d3ee00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000400000000000000000000000002791bca1f2de4661ed88a30c99a7a9449aa84174000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000010000000000000000000000000d500b1d8e8ef31e21c99d1db9a6444d3adf1270000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000242e1a7d4d00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000d500b1d8e8ef31e21c99d1db9a6444d3adf12700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000200000000000000000000000077e9278b76e3b454ccc43451da59ca66fef309d8000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000000000000000000eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee000000000000000000000000000000000000000000000000000000000000000012c6ece5482500a6a11237f7b8e858a300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000761786c5553444300000000000000000000000000000000000000000000000000",
            "nonce": 280172,
            "type": 2,
            "network": null,
            "v": "0x1",
            "r": "0x97dd96e54d4d42adc079a86dc5aa14b2e5f168399885a1a8e7c8b8ea4ddc4b00",
            "s": "0x18c3998e100012334b9e3f48e258ac41705289065f401c253f98e355389b250f",
            "yParity": "0x1",
            "transactionIndex": 5,
            "accessList": [],
            "maxFeePerGas": "67790439698",
            "maxPriorityFeePerGas": "67597044160",
            "logs": [
                {
                    "address": "0xce16F69375520ab01377ce7B88f5BA8C48F8D666",
                    "topics": [
                        "0x5844b8bbe3fd2b0354e73f27bfde28d2e6d991f14139c382876ec4360391a47b",
                        "0x21419a11750092db299070455055f81157acb3ab41915fe56061df5d490a16d4",
                        "0x00000000000000000000000000000000000000000000000000000000000f36b3",
                        "0x000000000000000000000000e743a49f04f2f77eb2d3b753ae3ad599de8cea84"
                    ],
                    "data": "0x000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c0bb1600ff05ad96437cdb143b7291dc141da0c9a4acefc3cfbcc65b7cd8d529520000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000000762696e616e636500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002a30786365313646363933373535323061623031333737636537423838663542413843343846384436363600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000761786c5553444300000000000000000000000000000000000000000000000000",
                    "blockNumber": 72671451,
                    "transactionHash": "0x3fb90809695fe7cb06f6786b169c0ce36b0561edada5830b66dafd4612f9ba41",
                    "transactionIndex": 5,
                    "blockHash": "0xac51ee900edcb0726925ea90fe91d8f0d9d572a8e81356aac4c0bdb23eaad9d6",
                    "logIndex": 10,
                    "removed": false,
                    "id": "log_67ba6e86"
                },
                {
                    "address": "0x750e4C4984a9e0f12978eA6742Bc1c5D248f40ed",
                    "topics": [
                        "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
                        "0x000000000000000000000000e743a49f04f2f77eb2d3b753ae3ad599de8cea84",
                        "0x000000000000000000000000ce16f69375520ab01377ce7b88f5ba8c48f8d666"
                    ],
                    "data": "0x00000000000000000000000000000000000000000000000000000000000f36b3",
                    "blockNumber": 72671451,
                    "transactionHash": "0x3fb90809695fe7cb06f6786b169c0ce36b0561edada5830b66dafd4612f9ba41",
                    "transactionIndex": 5,
                    "blockHash": "0xac51ee900edcb0726925ea90fe91d8f0d9d572a8e81356aac4c0bdb23eaad9d6",
                    "logIndex": 11,
                    "removed": false,
                    "id": "log_cff4780e"
                },
                {
                    "address": "0x750e4C4984a9e0f12978eA6742Bc1c5D248f40ed",
                    "topics": [
                        "0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925",
                        "0x000000000000000000000000e743a49f04f2f77eb2d3b753ae3ad599de8cea84",
                        "0x000000000000000000000000ce16f69375520ab01377ce7b88f5ba8c48f8d666"
                    ],
                    "data": "0xffffffffffffffffffffffffffffffffffffffffffffffffffffde1a02de9dcf",
                    "blockNumber": 72671451,
                    "transactionHash": "0x3fb90809695fe7cb06f6786b169c0ce36b0561edada5830b66dafd4612f9ba41",
                    "transactionIndex": 5,
                    "blockHash": "0xac51ee900edcb0726925ea90fe91d8f0d9d572a8e81356aac4c0bdb23eaad9d6",
                    "logIndex": 12,
                    "removed": false,
                    "id": "log_04e6a9c4"
                },
                {
                    "address": "0x750e4C4984a9e0f12978eA6742Bc1c5D248f40ed",
                    "topics": [
                        "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
                        "0x000000000000000000000000ce16f69375520ab01377ce7b88f5ba8c48f8d666",
                        "0x000000000000000000000000ad6cea45f98444a922a2b4fe96b8c90f0862d2f4"
                    ],
                    "data": "0x00000000000000000000000000000000000000000000000000000000000f36b3",
                    "blockNumber": 72671451,
                    "transactionHash": "0x3fb90809695fe7cb06f6786b169c0ce36b0561edada5830b66dafd4612f9ba41",
                    "transactionIndex": 5,
                    "blockHash": "0xac51ee900edcb0726925ea90fe91d8f0d9d572a8e81356aac4c0bdb23eaad9d6",
                    "logIndex": 13,
                    "removed": false,
                    "id": "log_f3842c90"
                },
                {
                    "address": "0x750e4C4984a9e0f12978eA6742Bc1c5D248f40ed",
                    "topics": [
                        "0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925",
                        "0x000000000000000000000000ce16f69375520ab01377ce7b88f5ba8c48f8d666",
                        "0x000000000000000000000000ad6cea45f98444a922a2b4fe96b8c90f0862d2f4"
                    ],
                    "data": "0xffffffffffffffffffffffffffffffffffffffffffffffffffffe3a7a306f06a",
                    "blockNumber": 72671451,
                    "transactionHash": "0x3fb90809695fe7cb06f6786b169c0ce36b0561edada5830b66dafd4612f9ba41",
                    "transactionIndex": 5,
                    "blockHash": "0xac51ee900edcb0726925ea90fe91d8f0d9d572a8e81356aac4c0bdb23eaad9d6",
                    "logIndex": 14,
                    "removed": false,
                    "id": "log_5da8713d"
                },
                {
                    "address": "0x750e4C4984a9e0f12978eA6742Bc1c5D248f40ed",
                    "topics": [
                        "0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925",
                        "0x000000000000000000000000ad6cea45f98444a922a2b4fe96b8c90f0862d2f4",
                        "0x00000000000000000000000068b3465833fb72a70ecdf485e0e4c7bd8665fc45"
                    ],
                    "data": "0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",
                    "blockNumber": 72671451,
                    "transactionHash": "0x3fb90809695fe7cb06f6786b169c0ce36b0561edada5830b66dafd4612f9ba41",
                    "transactionIndex": 5,
                    "blockHash": "0xac51ee900edcb0726925ea90fe91d8f0d9d572a8e81356aac4c0bdb23eaad9d6",
                    "logIndex": 15,
                    "removed": false,
                    "id": "log_808a19fd"
                },
                {
                    "address": "0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174",
                    "topics": [
                        "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
                        "0x000000000000000000000000647fb01a63de9a551b39c7915693b25e6bcec502",
                        "0x000000000000000000000000ad6cea45f98444a922a2b4fe96b8c90f0862d2f4"
                    ],
                    "data": "0x00000000000000000000000000000000000000000000000000000000000f36a1",
                    "blockNumber": 72671451,
                    "transactionHash": "0x3fb90809695fe7cb06f6786b169c0ce36b0561edada5830b66dafd4612f9ba41",
                    "transactionIndex": 5,
                    "blockHash": "0xac51ee900edcb0726925ea90fe91d8f0d9d572a8e81356aac4c0bdb23eaad9d6",
                    "logIndex": 16,
                    "removed": false,
                    "id": "log_bbd46482"
                },
                {
                    "address": "0x750e4C4984a9e0f12978eA6742Bc1c5D248f40ed",
                    "topics": [
                        "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
                        "0x000000000000000000000000ad6cea45f98444a922a2b4fe96b8c90f0862d2f4",
                        "0x000000000000000000000000647fb01a63de9a551b39c7915693b25e6bcec502"
                    ],
                    "data": "0x00000000000000000000000000000000000000000000000000000000000f36b3",
                    "blockNumber": 72671451,
                    "transactionHash": "0x3fb90809695fe7cb06f6786b169c0ce36b0561edada5830b66dafd4612f9ba41",
                    "transactionIndex": 5,
                    "blockHash": "0xac51ee900edcb0726925ea90fe91d8f0d9d572a8e81356aac4c0bdb23eaad9d6",
                    "logIndex": 17,
                    "removed": false,
                    "id": "log_a4a8f2a1"
                },
                {
                    "address": "0x750e4C4984a9e0f12978eA6742Bc1c5D248f40ed",
                    "topics": [
                        "0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925",
                        "0x000000000000000000000000ad6cea45f98444a922a2b4fe96b8c90f0862d2f4",
                        "0x00000000000000000000000068b3465833fb72a70ecdf485e0e4c7bd8665fc45"
                    ],
                    "data": "0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0c94c",
                    "blockNumber": 72671451,
                    "transactionHash": "0x3fb90809695fe7cb06f6786b169c0ce36b0561edada5830b66dafd4612f9ba41",
                    "transactionIndex": 5,
                    "blockHash": "0xac51ee900edcb0726925ea90fe91d8f0d9d572a8e81356aac4c0bdb23eaad9d6",
                    "logIndex": 18,
                    "removed": false,
                    "id": "log_70dec6f8"
                },
                {
                    "address": "0x647fb01A63DE9A551B39C7915693B25E6bceC502",
                    "topics": [
                        "0xc42079f94a6350d7e6235f29174924f928cc2ac818eb64fed8004e115fbcca67",
                        "0x00000000000000000000000068b3465833fb72a70ecdf485e0e4c7bd8665fc45",
                        "0x000000000000000000000000ad6cea45f98444a922a2b4fe96b8c90f0862d2f4"
                    ],
                    "data": "0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0c95f00000000000000000000000000000000000000000000000000000000000f36b30000000000000000000000000000000000000000fffd498928bf69cd09f2a12f0000000000000000000000000000000000000000000000000001148f91822027ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",
                    "blockNumber": 72671451,
                    "transactionHash": "0x3fb90809695fe7cb06f6786b169c0ce36b0561edada5830b66dafd4612f9ba41",
                    "transactionIndex": 5,
                    "blockHash": "0xac51ee900edcb0726925ea90fe91d8f0d9d572a8e81356aac4c0bdb23eaad9d6",
                    "logIndex": 19,
                    "removed": false,
                    "id": "log_d339b567"
                },
                {
                    "address": "0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174",
                    "topics": [
                        "0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925",
                        "0x000000000000000000000000ad6cea45f98444a922a2b4fe96b8c90f0862d2f4",
                        "0x00000000000000000000000068b3465833fb72a70ecdf485e0e4c7bd8665fc45"
                    ],
                    "data": "0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",
                    "blockNumber": 72671451,
                    "transactionHash": "0x3fb90809695fe7cb06f6786b169c0ce36b0561edada5830b66dafd4612f9ba41",
                    "transactionIndex": 5,
                    "blockHash": "0xac51ee900edcb0726925ea90fe91d8f0d9d572a8e81356aac4c0bdb23eaad9d6",
                    "logIndex": 20,
                    "removed": false,
                    "id": "log_0db654ed"
                },
                {
                    "address": "0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270",
                    "topics": [
                        "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
                        "0x000000000000000000000000a374094527e1673a86de625aa59517c5de346d32",
                        "0x000000000000000000000000ad6cea45f98444a922a2b4fe96b8c90f0862d2f4"
                    ],
                    "data": "0x0000000000000000000000000000000000000000000000003e93735679742935",
                    "blockNumber": 72671451,
                    "transactionHash": "0x3fb90809695fe7cb06f6786b169c0ce36b0561edada5830b66dafd4612f9ba41",
                    "transactionIndex": 5,
                    "blockHash": "0xac51ee900edcb0726925ea90fe91d8f0d9d572a8e81356aac4c0bdb23eaad9d6",
                    "logIndex": 21,
                    "removed": false,
                    "id": "log_e017c686"
                },
                {
                    "address": "0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174",
                    "topics": [
                        "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
                        "0x000000000000000000000000ad6cea45f98444a922a2b4fe96b8c90f0862d2f4",
                        "0x000000000000000000000000a374094527e1673a86de625aa59517c5de346d32"
                    ],
                    "data": "0x00000000000000000000000000000000000000000000000000000000000f36a1",
                    "blockNumber": 72671451,
                    "transactionHash": "0x3fb90809695fe7cb06f6786b169c0ce36b0561edada5830b66dafd4612f9ba41",
                    "transactionIndex": 5,
                    "blockHash": "0xac51ee900edcb0726925ea90fe91d8f0d9d572a8e81356aac4c0bdb23eaad9d6",
                    "logIndex": 22,
                    "removed": false,
                    "id": "log_0efb2f20"
                },
                {
                    "address": "0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174",
                    "topics": [
                        "0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925",
                        "0x000000000000000000000000ad6cea45f98444a922a2b4fe96b8c90f0862d2f4",
                        "0x00000000000000000000000068b3465833fb72a70ecdf485e0e4c7bd8665fc45"
                    ],
                    "data": "0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0c95e",
                    "blockNumber": 72671451,
                    "transactionHash": "0x3fb90809695fe7cb06f6786b169c0ce36b0561edada5830b66dafd4612f9ba41",
                    "transactionIndex": 5,
                    "blockHash": "0xac51ee900edcb0726925ea90fe91d8f0d9d572a8e81356aac4c0bdb23eaad9d6",
                    "logIndex": 23,
                    "removed": false,
                    "id": "log_7fa0729b"
                },
                {
                    "address": "0xA374094527e1673A86dE625aa59517c5dE346d32",
                    "topics": [
                        "0xc42079f94a6350d7e6235f29174924f928cc2ac818eb64fed8004e115fbcca67",
                        "0x00000000000000000000000068b3465833fb72a70ecdf485e0e4c7bd8665fc45",
                        "0x000000000000000000000000ad6cea45f98444a922a2b4fe96b8c90f0862d2f4"
                    ],
                    "data": "0xffffffffffffffffffffffffffffffffffffffffffffffffc16c8ca9868bd6cb00000000000000000000000000000000000000000000000000000000000f36a10000000000000000000000000000000000000000000007e31ce01eac727ffc450000000000000000000000000000000000000000000000003c0f36ed1036aec7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffb8da3",
                    "blockNumber": 72671451,
                    "transactionHash": "0x3fb90809695fe7cb06f6786b169c0ce36b0561edada5830b66dafd4612f9ba41",
                    "transactionIndex": 5,
                    "blockHash": "0xac51ee900edcb0726925ea90fe91d8f0d9d572a8e81356aac4c0bdb23eaad9d6",
                    "logIndex": 24,
                    "removed": false,
                    "id": "log_d9eb3257"
                },
                {
                    "address": "0x0000000000000000000000000000000000001010",
                    "topics": [
                        "0xe6497e3ee548a3372136af2fcb0696db31fc6cf20260707645068bd3fe97f3c4",
                        "0x0000000000000000000000000000000000000000000000000000000000001010",
                        "0x0000000000000000000000000d500b1d8e8ef31e21c99d1db9a6444d3adf1270",
                        "0x000000000000000000000000ad6cea45f98444a922a2b4fe96b8c90f0862d2f4"
                    ],
                    "data": "0x0000000000000000000000000000000000000000000000003e93735679742935000000000000000000000000000000000000000000eeb5456a5e9b5d69c46e3d0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000eeb5452bcb2806f05045080000000000000000000000000000000000000000000000003e93735679742935",
                    "blockNumber": 72671451,
                    "transactionHash": "0x3fb90809695fe7cb06f6786b169c0ce36b0561edada5830b66dafd4612f9ba41",
                    "transactionIndex": 5,
                    "blockHash": "0xac51ee900edcb0726925ea90fe91d8f0d9d572a8e81356aac4c0bdb23eaad9d6",
                    "logIndex": 25,
                    "removed": false,
                    "id": "log_8becf93d"
                },
                {
                    "address": "0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270",
                    "topics": [
                        "0x7fcf532c15f0a6db0bd6d0e038bea71d30d808c7d98cb3bf7268a95bf5081b65",
                        "0x000000000000000000000000ad6cea45f98444a922a2b4fe96b8c90f0862d2f4"
                    ],
                    "data": "0x0000000000000000000000000000000000000000000000003e93735679742935",
                    "blockNumber": 72671451,
                    "transactionHash": "0x3fb90809695fe7cb06f6786b169c0ce36b0561edada5830b66dafd4612f9ba41",
                    "transactionIndex": 5,
                    "blockHash": "0xac51ee900edcb0726925ea90fe91d8f0d9d572a8e81356aac4c0bdb23eaad9d6",
                    "logIndex": 26,
                    "removed": false,
                    "id": "log_2691c531"
                },
                {
                    "address": "0x0000000000000000000000000000000000001010",
                    "topics": [
                        "0xe6497e3ee548a3372136af2fcb0696db31fc6cf20260707645068bd3fe97f3c4",
                        "0x0000000000000000000000000000000000000000000000000000000000001010",
                        "0x000000000000000000000000ad6cea45f98444a922a2b4fe96b8c90f0862d2f4",
                        "0x00000000000000000000000077e9278b76e3b454ccc43451da59ca66fef309d8"
                    ],
                    "data": "0x0000000000000000000000000000000000000000000000003e937356797429350000000000000000000000000000000000000000000000003e93735679742935000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003e93735679742935",
                    "blockNumber": 72671451,
                    "transactionHash": "0x3fb90809695fe7cb06f6786b169c0ce36b0561edada5830b66dafd4612f9ba41",
                    "transactionIndex": 5,
                    "blockHash": "0xac51ee900edcb0726925ea90fe91d8f0d9d572a8e81356aac4c0bdb23eaad9d6",
                    "logIndex": 27,
                    "removed": false,
                    "id": "log_379d636a"
                },
                {
                    "address": "0xce16F69375520ab01377ce7B88f5BA8C48F8D666",
                    "topics": [
                        "0x7c3aa10c5d96985be6de7d2e6fa79bdef95a95a9cb272f4113b3fe1ca89fedae",
                        "0xbb1600ff05ad96437cdb143b7291dc141da0c9a4acefc3cfbcc65b7cd8d52952"
                    ],
                    "data": "0x",
                    "blockNumber": 72671451,
                    "transactionHash": "0x3fb90809695fe7cb06f6786b169c0ce36b0561edada5830b66dafd4612f9ba41",
                    "transactionIndex": 5,
                    "blockHash": "0xac51ee900edcb0726925ea90fe91d8f0d9d572a8e81356aac4c0bdb23eaad9d6",
                    "logIndex": 28,
                    "removed": false,
                    "id": "log_9c827195"
                },
                {
                    "address": "0x0000000000000000000000000000000000001010",
                    "topics": [
                        "0x4dfe1bbbcf077ddc3e01291eea2d5c70c2b422b415d95645b9adcfd678cb1d63",
                        "0x0000000000000000000000000000000000000000000000000000000000001010",
                        "0x000000000000000000000000e743a49f04f2f77eb2d3b753ae3ad599de8cea84",
                        "0x0000000000000000000000001efecb61a2f80aa34d3b9218b564a64d05946290"
                    ],
                    "data": "0x000000000000000000000000000000000000000000000000005ce85131a23b0000000000000000000000000000000000000000000000004be20731fd723a5dbf00000000000000000000000000000000000000000000473b1c1c24aa9c8dffc100000000000000000000000000000000000000000000004be1aa49ac409822bf00000000000000000000000000000000000000000000473b1c790cfbce303ac1",
                    "blockNumber": 72671451,
                    "transactionHash": "0x3fb90809695fe7cb06f6786b169c0ce36b0561edada5830b66dafd4612f9ba41",
                    "transactionIndex": 5,
                    "blockHash": "0xac51ee900edcb0726925ea90fe91d8f0d9d572a8e81356aac4c0bdb23eaad9d6",
                    "logIndex": 29,
                    "removed": false,
                    "id": "log_9596a4ac"
                }
            ]
        }
    }
}
```

{% endtab %}
{% endtabs %}

### /swap

Swap assets across multiple chains.

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

#### Request Body

| Name                                             | Type   | Description                                                                                                                                                                           |
| ------------------------------------------------ | ------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| rpc                                              | String | Remote procedural call URL.                                                                                                                                                           |
| bridgeId                                         | String | Refer to the [Bridge ID](/ids/bridge-ids) page for details.                                                                                                                           |
| srcChainId                                       | String | <p>Source Chain Id. By default, Ethereum mainnet.<br>Refer to the <a href="/pages/j8moVeo4hEN1sYiRHQ5x">Chain Id</a><a href="/pages/5o1xMsQPqXw9GBfGTpdB"> </a>page for details. </p> |
| dstChainId<mark style="color:red;">\*</mark>     | String | Destination chain id.                                                                                                                                                                 |
| srcTokenSymbol<mark style="color:red;">\*</mark> | String | Source Token Symbol.                                                                                                                                                                  |
| dstTokenSymbol<mark style="color:red;">\*</mark> | String | Destination Token Symbol.                                                                                                                                                             |
| amountIn<mark style="color:red;">\*</mark>       | String | Amount of token.                                                                                                                                                                      |
| from<mark style="color:red;">\*</mark>           | String | Address of the sender of the token.                                                                                                                                                   |
| gas<mark style="color:red;">\*</mark>            | String | Maximum gas limit provided by the sender, for the transaction.                                                                                                                        |
| to<mark style="color:red;">\*</mark>             | String | Address of the recipient of the token.                                                                                                                                                |
| gasPriority                                      | String | low, medium, or high.                                                                                                                                                                 |
| slippage                                         | String | <p>Percentage of total swap value. <br>By default, 1.</p><p>0 <= slippage  value <= 100</p>                                                                                           |

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

```json
{
    "bridgeId": "600",
    "srcChainId": "1",
    "dstChainId": "137",
    "srcTokenSymbol": "ETH",
    "dstTokenSymbol": "USDC",
    "amountIn": "100000000000000",
    "from": "0x1BD3fC5AC794E7Af8e834A8a4D25B08acD9266ce",
    "gas": "920000",
    "to": "0x1BD3fC5AC794E7Af8e834A8a4D25B08acD9266ce"
}

```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x1BD3fC5AC794E7Af8e834A8a4D25B08acD9266ce",
        "to": "0xdf4ffda22270c12d0b5b3788f1669d709476111e",
        "value": "100000000000000",
        "gas": "61210",
        "data": "0x0d77797c0000000000000000000000001bd3fc5ac794e7af8e834a8a4d25b08acd9266ce0000000000000000000000001bd3fc5ac794e7af8e834a8a4d25b08acd9266ce000000000000000000000000ade3867e7e2dace6fa60f21db2cc89f8fb624452000000000000000000000000eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee0000000000000000000000003c499c542cef5e3811e1192ce70d8cc03d5c33590000000000000000000000000000000000000000000000000000000068072c0b00000000000000000000000000000000000000000000000000005af3107a4000000000000000000000000000000000000000000000000000000000000002602c0000000000000000000000000000000000000000000000000000000000002901000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000890000000000000000000000000000000000000000000000000000000000000000",
        "estimationCheck": true,
        "referenceId": "02d77280fa124bc0b49c88356a7bd2bf"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
**With gasPriority:**

```json
{
    "bridgeId": "600",
    "srcChainId": "1",
    "dstChainId": "137",
    "srcTokenSymbol": "ETH",
    "dstTokenSymbol": "USDC",
    "amountIn": "100000000000000",
    "from": "0x1BD3fC5AC794E7Af8e834A8a4D25B08acD9266ce",
    "gas": "920000",
    "gasPriority": "medium",
    "to": "0x1BD3fC5AC794E7Af8e834A8a4D25B08acD9266ce"
}
```

{% endtab %}

{% tab title="Sample Response" %}
**With gasPriority:**

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x1BD3fC5AC794E7Af8e834A8a4D25B08acD9266ce",
        "to": "0xdf4ffda22270c12d0b5b3788f1669d709476111e",
        "value": "100000000000000",
        "gas": "61210",
        "data": "0x0d77797c0000000000000000000000001bd3fc5ac794e7af8e834a8a4d25b08acd9266ce0000000000000000000000001bd3fc5ac794e7af8e834a8a4d25b08acd9266ce000000000000000000000000ade3867e7e2dace6fa60f21db2cc89f8fb624452000000000000000000000000eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee0000000000000000000000003c499c542cef5e3811e1192ce70d8cc03d5c33590000000000000000000000000000000000000000000000000000000068072be400000000000000000000000000000000000000000000000000005af3107a4000000000000000000000000000000000000000000000000000000000000002603500000000000000000000000000000000000000000000000000000000000028da000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000890000000000000000000000000000000000000000000000000000000000000000",
        "gasPrice": "357677923",
        "estimationCheck": true,
        "referenceId": "7bc47f417b9944cda66cb5a54d32fd5f"
    }
}
```

{% endtab %}
{% endtabs %}


# Allbridge Classic

### /getsupportedchains

Get the list of chains supported by Squid Router, on expand.network.

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

#### Query Parameters

| Name                                       | Type   | Description                                                 |
| ------------------------------------------ | ------ | ----------------------------------------------------------- |
| bridgeId<mark style="color:red;">\*</mark> | String | Refer to the [Bridge ID](/ids/bridge-ids) page for details. |
| rpc                                        | String | Remote procedural call URL.                                 |

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

```url
https://api.expand.network/bridge/getsupportedchains?bridgeId=300
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": [
        {
            "chainName": "Ethereum",
            "chainId": "1",
            "srcChainSupported": true,
            "dstChainSupported": true
        },
        {
            "chainName": "Binance Smart Chain",
            "chainId": "56",
            "srcChainSupported": true,
            "dstChainSupported": true
        },
        {
            "chainName": "Fuse",
            "chainId": "122",
            "srcChainSupported": false,
            "dstChainSupported": true
        },
        {
            "chainName": "Polygon",
            "chainId": "137",
            "srcChainSupported": true,
            "dstChainSupported": true
        },
        {
            "chainName": "Fantom",
            "chainId": "250",
            "srcChainSupported": true,
            "dstChainSupported": true
        },
        {
            "chainName": "Solana",
            "chainId": "900",
            "srcChainSupported": false,
            "dstChainSupported": true
        },
        {
            "chainName": "Near",
            "chainId": "1200",
            "srcChainSupported": false,
            "dstChainSupported": true
        },
        {
            "chainName": "Stellar",
            "chainId": "1500",
            "srcChainSupported": true,
            "dstChainSupported": true
        },
        {
            "chainName": "XRP Ledger",
            "chainId": "1600",
            "srcChainSupported": true,
            "dstChainSupported": true
        },
        {
            "chainName": "Stacks",
            "chainId": "1700",
            "srcChainSupported": false,
            "dstChainSupported": true
        },
        {
            "chainName": "KOII",
            "chainId": "7777",
            "srcChainSupported": false,
            "dstChainSupported": true
        },
        {
            "chainName": "Kaia",
            "chainId": "8217",
            "srcChainSupported": false,
            "dstChainSupported": true
        },
        {
            "chainName": "Celo",
            "chainId": "42220",
            "srcChainSupported": false,
            "dstChainSupported": true
        },
        {
            "chainName": "Avalanche",
            "chainId": "43114",
            "srcChainSupported": true,
            "dstChainSupported": true
        },
        {
            "chainName": "Harmony",
            "chainId": "1666600000",
            "srcChainSupported": false,
            "dstChainSupported": true
        }
    ]
}
```

{% endtab %}
{% endtabs %}

### /getsupportedtokens

Get the list of tokens supported by Squid Router, on the specified chain, on expand.network.

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

#### Query Parameters

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

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

```url
https://api.expand.network/bridge/getsupportedtokens?bridgeId=300&chainId=1
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": [
        {
            "tokenSymbol": "APYS",
            "address": "0xf7413489c474ca4399eeE604716c72879Eea3615"
        },
        {
            "tokenSymbol": "HAPI",
            "address": "0xD9c2D319Cd7e6177336b0a9c93c21cb48d84Fb54"
        },
        {
            "tokenSymbol": "ABR",
            "address": "0xa11bD36801d8fa4448F0ac4ea7A62e3634cE8C7C"
        },
        {
            "tokenSymbol": "ETH",
            "address": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"
        },
        {
            "tokenSymbol": "USDC",
            "address": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"
        },
        {
            "tokenSymbol": "USDT",
            "address": "0xdAC17F958D2ee523a2206206994597C13D831ec7"
        },
        {
            "tokenSymbol": "ARDN",
            "address": "0xb1c9bc94aCd2fAE6aABf4ffae4429B93512a81D2"
        },
        {
            "tokenSymbol": "DUCKIES",
            "address": "0x90b7E285ab6cf4e3A2487669dba3E339dB8a3320"
        },
        {
            "tokenSymbol": "WBTC",
            "address": "0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599"
        },
        {
            "tokenSymbol": "PEN",
            "address": "0x5Ee3188A3f8aDee1D736EdD4AE85000105C88f66"
        },
        {
            "tokenSymbol": "KOII",
            "address": "0xAC5C23Cc0bF378B2f2D53da71d407B6Deb94C294"
        }
    ]
}
```

{% endtab %}
{% endtabs %}

### /getprice

Get the swap quotation for the given token pairs.

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

#### Query Parameter

| Name                                             | Type   | Description                                                                                                             |
| ------------------------------------------------ | ------ | ----------------------------------------------------------------------------------------------------------------------- |
| rpc                                              | String | Remote procedural call URL.                                                                                             |
| bridgeId<mark style="color:red;">\*</mark>       | String | Refer to the [Bridge ID](https://docs.expand.network/important-ids/bridge-id) page for details.                         |
| srcChainId<mark style="color:red;">\*</mark>     | String | [Chain Id](https://docs.expand.network/important-ids/bridge-id/internal-chain-ids-for-bridge) of the source chain.      |
| dstChainId<mark style="color:red;">\*</mark>     | String | [Chain Id](https://docs.expand.network/important-ids/bridge-id/internal-chain-ids-for-bridge) of the destination chain. |
| srcTokenSymbol<mark style="color:red;">\*</mark> | String | Source token symbol.                                                                                                    |
| amountIn<mark style="color:red;">\*</mark>       | String | Amount of token.                                                                                                        |

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

```url
https://api.expand.network/bridge/getprice?bridgeId=300&srcTokenSymbol=ABR&amountIn=1000000&dstChainId=137&srcChainId=1
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "srcChainId": "1",
        "dstChainId": "137",
        "srcTokenSymbol": "ABR",
        "amountIn": "1000000",
        "amountsOut": [
            "1000000",
            "999000"
        ]
    }
}
```

{% endtab %}
{% endtabs %}

### /getsignature

Retrieves the signature details using the transaction hash of swap.

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

#### Query Parameter

| Name                                              | Type   | Description                                                                                     |
| ------------------------------------------------- | ------ | ----------------------------------------------------------------------------------------------- |
| rpc                                               | String | Remote procedural call URL.                                                                     |
| bridgeId<mark style="color:red;">\*</mark>        | String | Refer to the [Bridge ID](https://docs.expand.network/important-ids/bridge-id) page for details. |
| transactionHash<mark style="color:red;">\*</mark> | String | Transaction hash.                                                                               |

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

```url
https://api.expand.network/bridge/getsignature?bridgeId=300&transactionHash=0x99a84b7795cb31c11eb70282ef7d8ae3e214edb36b1bea8a65419478130335e8
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "block": "19912625",
        "lockId": "1560796505155024044581883139481320798",
        "srcChainId": "1",
        "dstChainId": "56",
        "srcToken": "0xa11bd36801d8fa4448f0ac4ea7a62e3634ce8c7c000000000000000000000000",
        "amount": "4720825560495",
        "receiver": "0x65a8f07bd9a8598e1b5b6c0a88f4779dbc077675",
        "primarySignature": "0x2731e3f1a9385f1fec164b4e4c5745763faddfdc544c725bed6dc64ae1fc8758787250ccb12467ee27c6aa2c6b331ea483104bdb5aeba802f7f50d9f31580d851c"
    }
}
```

{% endtab %}
{% endtabs %}

### /gettransaction

Retrieves the details of the transaction.

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

#### Query Parameter

| Name                                              | Type   | Description                                                                                                                                                                                        |
| ------------------------------------------------- | ------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| rpc                                               | String | Remote procedural call URL.                                                                                                                                                                        |
| bridgeId<mark style="color:red;">\*</mark>        | String | Refer to the [Bridge ID](https://docs.expand.network/important-ids/bridge-id) page for details.                                                                                                    |
| transactionHash<mark style="color:red;">\*</mark> | String | Transaction hash.                                                                                                                                                                                  |
| srcChainId                                        | String | <p> <a href="https://docs.expand.network/important-ids/bridge-id/internal-chain-ids-for-bridge">Chain Id</a> of the source chain.<br>If txn involve Stellar, use Stellar chainId as srcChainId</p> |

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

```url
https://api.expand.network/bridge/gettransaction?bridgeId=300&transactionHash=0x6cb511887f3c4dfbc8e2eacd346c7a8959f9debfcffc347862957ac41a0dfae1&srcChainId=56
```

{% endtab %}

{% tab title="Sample Response" %}

```
{
    "status": 200,
    "msg": "success",
    "data": {
        "status": "EXECUTED",
        "srcTx": {
            "chainId": "56",
            "hash": "0x6cb511887f3c4dfbc8e2eacd346c7a8959f9debfcffc347862957ac41a0dfae1",
            "transactionStatus": true,
            "blockNumber": "39529386",
            "timestamp": null,
            "from": "0x8c463874382b7F8582ED01650f8B30a82690612f",
            "to": "0xBBbD1BbB4f9b936C3604906D7592A644071dE884",
            "value": "0",
            "transactionFees": "738948000000000",
            "gas": "251116",
            "gasPrice": "3000000000",
            "input": "0x7bacc91e000000000000000000000000000000000194a8da392a86e5105f3e70f723a08c00000000000000000000000068784ffaa6ff05e3e04575df77960dc1d9f42b4a76657274612e6e656172000000000000000000000000000000000000000000004e45415200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000065afd0425c28a6611e",
            "nonce": 73564,
            "type": 2,
            "network": null,
            "v": "0x1",
            "r": "0xc9e8a7cabed672570a9abf2681fa0d93ffaf00c7e36fa8608170542d32a9acb",
            "s": "0x6728f9251da97ab85b9db6d1c52c01c697019cd0139f18c7dab20e64d1821646",
            "yParity": "0x1",
            "transactionIndex": 12,
            "accessList": [],
            "maxFeePerGas": "3000000000",
            "maxPriorityFeePerGas": "3000000000",
            "logs": [
                {
                    "address": "0xBBbD1BbB4f9b936C3604906D7592A644071dE884",
                    "topics": [
                        "0x884a8def17f0d5bbb3fef53f3136b5320c9b39f75afb8985eeab9ea1153ee56d",
                        "0x76657274612e6e65617200000000000000000000000000000000000000000000",
                        "0x000000000000000000000000000000000194a8da392a86e5105f3e70f723a08c"
                    ],
                    "data": "0x4554480000000000000000000000000000000000000000000000000000000000a11bd36801d8fa4448f0ac4ea7a62e3634ce8c7c0000000000000000000000000000000000000000000000008c463874382b7f8582ed01650f8b30a82690612f00000000000000000000000000000000000000000000006525091f579ebe611e4e45415200000000000000000000000000000000000000000000000000000000",
                    "blockNumber": 39529386,
                    "transactionHash": "0x6cb511887f3c4dfbc8e2eacd346c7a8959f9debfcffc347862957ac41a0dfae1",
                    "transactionIndex": 12,
                    "blockHash": "0x65b4085c6ae79c78b26bb5646c20c1e9d2cd204489edf5fa918f2458595f2343",
                    "logIndex": 21,
                    "removed": false,
                    "id": "log_5c6b3e1a"
                },
                {
                    "address": "0x68784ffaa6Ff05E3e04575DF77960DC1D9F42b4a",
                    "topics": [
                        "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
                        "0x0000000000000000000000008c463874382b7f8582ed01650f8b30a82690612f",
                        "0x0000000000000000000000000000000000000000000000000000000000000000"
                    ],
                    "data": "0x00000000000000000000000000000000000000000000006525091f579ebe611e",
                    "blockNumber": 39529386,
                    "transactionHash": "0x6cb511887f3c4dfbc8e2eacd346c7a8959f9debfcffc347862957ac41a0dfae1",
                    "transactionIndex": 12,
                    "blockHash": "0x65b4085c6ae79c78b26bb5646c20c1e9d2cd204489edf5fa918f2458595f2343",
                    "logIndex": 22,
                    "removed": false,
                    "id": "log_b247da24"
                },
                {
                    "address": "0x68784ffaa6Ff05E3e04575DF77960DC1D9F42b4a",
                    "topics": [
                        "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
                        "0x0000000000000000000000008c463874382b7f8582ed01650f8b30a82690612f",
                        "0x00000000000000000000000083f53c078bf81f6d8b79e01e2ed36c473a960c5e"
                    ],
                    "data": "0x0000000000000000000000000000000000000000000000008ac7230489e80000",
                    "blockNumber": 39529386,
                    "transactionHash": "0x6cb511887f3c4dfbc8e2eacd346c7a8959f9debfcffc347862957ac41a0dfae1",
                    "transactionIndex": 12,
                    "blockHash": "0x65b4085c6ae79c78b26bb5646c20c1e9d2cd204489edf5fa918f2458595f2343",
                    "logIndex": 23,
                    "removed": false,
                    "id": "log_b4d84d4d"
                },
                {
                    "address": "0x68784ffaa6Ff05E3e04575DF77960DC1D9F42b4a",
                    "topics": [
                        "0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925",
                        "0x0000000000000000000000008c463874382b7f8582ed01650f8b30a82690612f",
                        "0x000000000000000000000000bbbd1bbb4f9b936c3604906d7592a644071de884"
                    ],
                    "data": "0x000000000000000000000000000000000000000000001522b60047f4ba480000",
                    "blockNumber": 39529386,
                    "transactionHash": "0x6cb511887f3c4dfbc8e2eacd346c7a8959f9debfcffc347862957ac41a0dfae1",
                    "transactionIndex": 12,
                    "blockHash": "0x65b4085c6ae79c78b26bb5646c20c1e9d2cd204489edf5fa918f2458595f2343",
                    "logIndex": 24,
                    "removed": false,
                    "id": "log_a078cf3d"
                }
            ]
        },
        "dstTx": {
            "hash": "GqcEiarbVVS69GoVJmZ3BPN1CL1hUr2RoqVp8pi4S5JW",
            "blockNumber": "6DD2AVD1RKsbSn6ia58EFUbK4eNPxAF6752JsJ2v7YmW",
            "timestamp": null,
            "from": "verta.near",
            "to": "bridge.a11bd.near",
            "value": null,
            "transactionFees": "2349472694870800300000",
            "gas": null,
            "gasPrice": null,
            "input": [
                {
                    "FunctionCall": {
                        "args": "eyJ1bmxvY2tfYXJncyI6eyJsb2NrX2lkIjoiMjEwMTExMjY2NTA5Mjk2OTQxOTAxNjQ1MDA4NDY5NjIwMzQwNCIsInJlY2lwaWVudCI6InZlcnRhLm5lYXIiLCJhbW91bnQiOiIxODY1Nzg5ODUwMTYwIiwibG9ja19zb3VyY2UiOiJCU0MiLCJ0b2tlbl9zb3VyY2UiOiJFVEgiLCJ0b2tlbl9zb3VyY2VfYWRkcmVzcyI6IjB4YTExYmQzNjgwMWQ4ZmE0NDQ4ZjBhYzRlYTdhNjJlMzYzNGNlOGM3YzAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMCIsInNpZ25hdHVyZSI6IjNpbWpYRDhDVWNmU0dERk9NdTNtV1JQMll4UXZHeTVhM0NtL1d0bzJkSEVXSExGSWVwM0g1bGw4V2RIT2J1ajRnWnd3SFBYazIwdXBUUElhZFE3ZEZocz0ifX0=",
                        "deposit": "900000000000000000000",
                        "gas": 300000000000000,
                        "method_name": "unlock"
                    }
                }
            ],
            "network": null
        }
    }
}
```

{% endtab %}
{% endtabs %}

### /swap

Initiates a transaction to swap assets accross multiple chains.

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

#### Request Body

| Name                                             | Type   | Description                                                                                                             |
| ------------------------------------------------ | ------ | ----------------------------------------------------------------------------------------------------------------------- |
| rpc                                              | String | Remote procedural call URL.                                                                                             |
| bridgeId<mark style="color:red;">\*</mark>       | String | Refer to the [Bridge ID](https://docs.expand.network/important-ids/bridge-id) page for details.                         |
| srcChainId<mark style="color:red;">\*</mark>     | String | [Chain Id](https://docs.expand.network/important-ids/bridge-id/internal-chain-ids-for-bridge) of the source chain.      |
| dstChainId<mark style="color:red;">\*</mark>     | String | [Chain Id](https://docs.expand.network/important-ids/bridge-id/internal-chain-ids-for-bridge) of the destination chain. |
| srcTokenSymbol<mark style="color:red;">\*</mark> | String | Source token symbol.                                                                                                    |
| amountIn<mark style="color:red;">\*</mark>       | String | Amount of token.                                                                                                        |
| gas<mark style="color:red;">\*</mark>            | String | Maximum gas limit provided by the sender, for the transaction.                                                          |
| gas priority                                     | String | Low, medium, or high.                                                                                                   |
| from<mark style="color:red;">\*</mark>           | String | Address of the sender of the token.                                                                                     |
| to<mark style="color:red;">\*</mark>             | String | Address of the recipient of the token.                                                                                  |

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

```json
{
    "amountIn": "1064785710830000000000",
    "dstChainId": "56",
    "srcChainId": "1",
    "from": "0x7aeaefe59a06c965aa3e93ea31be01d3b625bf18",
    "to": "0x68C7cE94055f927ea7D6331a199cec69ca2d518B",
    "srcTokenSymbol": "HAPI",
    "gas": "100",
    "bridgeId": "300"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x7aeaefe59a06c965aa3e93ea31be01d3b625bf18",
        "to": "0xBBbD1BbB4f9b936C3604906D7592A644071dE884",
        "value": "0",
        "gas": "100",
        "data": "0x7bacc91e00000000000000000000000000000000019fd468745942f3a38e627e633d543b000000000000000000000000d9c2d319cd7e6177336b0a9c93c21cb48d84fb5468c7ce94055f927ea7d6331a199cec69ca2d518b0000000000000000000000004253430000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000039b8dec285fdf3cc00",
        "referenceId": "7a50195a407c41829cc6e624758b514f"
    }
}
```

{% endtab %}
{% endtabs %}

#### With Gas Priority

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

```json
{
    "amountIn": "1064785710830000000000",
    "dstChainId": "56",
    "srcChainId": "1",
    "from": "0x7aeaefe59a06c965aa3e93ea31be01d3b625bf18",
    "to": "0x68C7cE94055f927ea7D6331a199cec69ca2d518B",
    "srcTokenSymbol": "HAPI",
    "gas": "100",
    "bridgeId": "300",
    "gasPriority": "low"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x7aeaefe59a06c965aa3e93ea31be01d3b625bf18",
        "to": "0xBBbD1BbB4f9b936C3604906D7592A644071dE884",
        "value": "0",
        "gas": "100",
        "data": "0x7bacc91e000000000000000000000000000000000192c0b3f89d18ad2f12310bc2c48b29000000000000000000000000d9c2d319cd7e6177336b0a9c93c21cb48d84fb5468c7ce94055f927ea7d6331a199cec69ca2d518b0000000000000000000000004253430000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000039b8dec285fdf3cc00",
        "gasPrice": "2706399108",
        "referenceId": "7c3f65bd7ec84449b759101328d1be1f"
    }
}
```

{% endtab %}
{% endtabs %}

### /unlock

Initiate the transaction to unlock asset on the destination chain.

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

#### Request Body

| Name                                               | Type   | Description                                                                                                             |
| -------------------------------------------------- | ------ | ----------------------------------------------------------------------------------------------------------------------- |
| rpc                                                | String | Remote procedural call URL.                                                                                             |
| bridgeId<mark style="color:red;">\*</mark>         | String | Refer to the [Bridge ID](https://docs.expand.network/important-ids/bridge-id) page for details.                         |
| srcChainId<mark style="color:red;">\*</mark>       | String | [Chain Id](https://docs.expand.network/important-ids/bridge-id/internal-chain-ids-for-bridge) of the source chain.      |
| dstChainId<mark style="color:red;">\*</mark>       | String | [Chain Id](https://docs.expand.network/important-ids/bridge-id/internal-chain-ids-for-bridge) of the destination chain. |
| dstTokenSymbol<mark style="color:red;">\*</mark>   | String | Destination token symbol.                                                                                               |
| amount<mark style="color:red;">\*</mark>           | String | Amount of token.                                                                                                        |
| gas<mark style="color:red;">\*</mark>              | String | Maximum gas limit provided by the sender, for the transaction.                                                          |
| gas priority                                       | String | Low, medium, or high.                                                                                                   |
| receiver<mark style="color:red;">\*</mark>         | String | Address of the receiver.                                                                                                |
| primarySignature<mark style="color:red;">\*</mark> | String | Signature required for EVM to EVM to unlock transaction.                                                                |
| secondarySignature                                 | String | Signature required for Stellar to EVM or vice - versa to unlock transaction.                                            |
| lockId<mark style="color:red;">\*</mark>           | String | Lock Id.                                                                                                                |

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

```json
{
    "lockId": "2344087691488240225697848222060823058",
    "srcChainId": "1500",
    "dstChainId": "137",
    "amount": "200000000",
    "receiver": "0xB409cB0b5DB9f148d0bc491E140D9E0FDd789C11",
    "dstTokenSymbol": "USDC",
    "primarySignature": "0x426361bb4b3317c04cf61ea9f1b1c736568e37468e042fb485905c984e8f548d2424ebbe6e89762a9d5925140acfacdb789bdc029f4d7095cc982b94530e73211b",
    "secondarySignature": "0xb41459682c24b425f86a3d3d24f7c424025a01a92413cdaa028519c4aa8023ac38a9f23e37b97c9fa2da99f4292d647d0494f23c94658828f8846bcba8164b4b1c",
    "gas": "20000",
    "bridgeId": "300"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "137",
        "from": "0xB409cB0b5DB9f148d0bc491E140D9E0FDd789C11",
        "to": "0xD5D6B2f2D7a7506C49Bb0cb6FB39a67F065d6FC4",
        "value": "0",
        "gas": "20000",
        "data": "0xb43d20c30000000000000000000000000000000001c37472362b414ea769f6366bf6c212000000000000000000000000b409cb0b5db9f148d0bc491e140d9e0fdd789c11000000000000000000000000000000000000000000000000000000000bebc200584c4d0000000000000000000000000000000000000000000000000000000000584c4d00000000000000000000000000000000000000000000000000000000002791bca1f2de4661ed88a30c99a7a9449aa84174000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001800000000000000000000000000000000000000000000000000000000000000041426361bb4b3317c04cf61ea9f1b1c736568e37468e042fb485905c984e8f548d2424ebbe6e89762a9d5925140acfacdb789bdc029f4d7095cc982b94530e73211b000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000041b41459682c24b425f86a3d3d24f7c424025a01a92413cdaa028519c4aa8023ac38a9f23e37b97c9fa2da99f4292d647d0494f23c94658828f8846bcba8164b4b1c00000000000000000000000000000000000000000000000000000000000000",
        "referenceId": "db6520b0a0c04b8e85245b9e6add6ce6"
    }
}
```

{% endtab %}
{% endtabs %}

#### With  Gas Priority

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

```json
{
    "lockId": "2344087691488240225697848222060823058",
    "srcChainId": "1500",
    "dstChainId": "137",
    "amount": "200000000",
    "receiver": "0xB409cB0b5DB9f148d0bc491E140D9E0FDd789C11",
    "dstTokenSymbol": "USDC",
    "primarySignature": "0x426361bb4b3317c04cf61ea9f1b1c736568e37468e042fb485905c984e8f548d2424ebbe6e89762a9d5925140acfacdb789bdc029f4d7095cc982b94530e73211b",
    "secondarySignature": "0xb41459682c24b425f86a3d3d24f7c424025a01a92413cdaa028519c4aa8023ac38a9f23e37b97c9fa2da99f4292d647d0494f23c94658828f8846bcba8164b4b1c",
    "gas": "20000",
    "gasPriority": "low",
    "bridgeId": "300"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "137",
        "from": "0xB409cB0b5DB9f148d0bc491E140D9E0FDd789C11",
        "to": "0xD5D6B2f2D7a7506C49Bb0cb6FB39a67F065d6FC4",
        "value": "0",
        "gas": "20000",
        "data": "0xb43d20c30000000000000000000000000000000001c37472362b414ea769f6366bf6c212000000000000000000000000b409cb0b5db9f148d0bc491e140d9e0fdd789c11000000000000000000000000000000000000000000000000000000000bebc200584c4d0000000000000000000000000000000000000000000000000000000000584c4d00000000000000000000000000000000000000000000000000000000002791bca1f2de4661ed88a30c99a7a9449aa84174000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001800000000000000000000000000000000000000000000000000000000000000041426361bb4b3317c04cf61ea9f1b1c736568e37468e042fb485905c984e8f548d2424ebbe6e89762a9d5925140acfacdb789bdc029f4d7095cc982b94530e73211b000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000041b41459682c24b425f86a3d3d24f7c424025a01a92413cdaa028519c4aa8023ac38a9f23e37b97c9fa2da99f4292d647d0494f23c94658828f8846bcba8164b4b1c00000000000000000000000000000000000000000000000000000000000000",
        "gasPrice": "2771815236",
        "referenceId": "50faed4f35a44a8f981c44c8e80c3ed2"
    }
}
```

{% endtab %}
{% endtabs %}

####


# Allbridge Core

### Supported Chains

Available on **Ethereum, Arbitrum, Avalanche, Base, Optimism, Binance Smart Chain, Tron, Polygon, Solana, Sui and Stellar**

### Available Endpoints:

*Click on the endpoint to jump to the section with full details*

* [**/**<mark style="color:blue;">**getprice**</mark>](#getprice) <mark style="color:blue;">`GET`</mark> - Returns the swap quotation for a given token pair.
* [<mark style="color:blue;">**/**</mark>](#getuserliquidity)[<mark style="color:blue;">**getsupportedchains**</mark><mark style="color:blue;">`GET`</mark>](#getsupportedchains) - Retrieves the list of chains supported by Allbridge Core , on expand.network.
* [**/**](#getpoolliquidity)[<mark style="color:blue;">**getsupportedtokens**</mark><mark style="color:blue;">`GET`</mark>](#getsupportedtokens) - Retrieves the list of tokens supported by Allbridge Core, on expand.network.
* [**/**](#gettokenliquidity)[<mark style="color:blue;">**gettransaction**</mark>](#gettransaction) <mark style="color:blue;">`GET`</mark> - Retrieves the details of the transaction.
* [**/**<mark style="color:blue;">**swap**</mark>](#swap) <mark style="color:green;">`POST`</mark> - Initiates a transaction to swap assets accross multiple chains.

### Bridge ID

Many endpoints have a parameter where you can provide a Bridge ID.&#x20;

Below is a list of Bridge ID related to Allbridge Core. Please see the [Bridge ID Page](/ids/bridge-ids) for a complete Bridge ID list and more information.

| Bridge Name    | Bridge ID |
| -------------- | --------- |
| Allbridge Core | 400       |

## Endpoint Details

### /getsupportedchains

Get the list of chains supported by Squid Router, on expand.network.

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

#### Query Parameters

| Name                                       | Type   | Description                                                 |
| ------------------------------------------ | ------ | ----------------------------------------------------------- |
| bridgeId<mark style="color:red;">\*</mark> | String | Refer to the [Bridge ID](/ids/bridge-ids) page for details. |
| rpc                                        | String | Remote procedural call URL.                                 |

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

```url
https://api.expand.network/bridge/getsupportedchains?bridgeId=400
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": [
        {
            "chainName": "Ethereum",
            "chainId": "1",
            "srcChainSupported": true,
            "dstChainSupported": true
        },
        {
            "chainName": "Optimism",
            "chainId": "10",
            "srcChainSupported": true,
            "dstChainSupported": true
        },
        {
            "chainName": "Binance Smart Chain",
            "chainId": "56",
            "srcChainSupported": true,
            "dstChainSupported": true
        },
        {
            "chainName": "Sui",
            "chainId": "101",
            "srcChainSupported": true,
            "dstChainSupported": true
        },
        {
            "chainName": "Polygon",
            "chainId": "137",
            "srcChainSupported": true,
            "dstChainSupported": true
        },
        {
            "chainName": "Solana",
            "chainId": "900",
            "srcChainSupported": true,
            "dstChainSupported": true
        },
        {
            "chainName": "Tron",
            "chainId": "1000",
            "srcChainSupported": true,
            "dstChainSupported": true
        },
        {
            "chainName": "Stellar",
            "chainId": "1500",
            "srcChainSupported": true,
            "dstChainSupported": true
        },
        {
            "chainName": "Base",
            "chainId": "8453",
            "srcChainSupported": true,
            "dstChainSupported": true
        },
        {
            "chainName": "Arbitrum One",
            "chainId": "42161",
            "srcChainSupported": true,
            "dstChainSupported": true
        },
        {
            "chainName": "Celo",
            "chainId": "42220",
            "srcChainSupported": false,
            "dstChainSupported": true
        },
        {
            "chainName": "Avalanche C-Chain",
            "chainId": "43114",
            "srcChainSupported": true,
            "dstChainSupported": true
        }
    ]
}
```

{% endtab %}
{% endtabs %}

### /getsupportedtokens

Get the list of tokens supported by Squid Router, on the specified chain, on expand.network.

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

#### Query Parameters

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

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

```url
https://api.expand.network/bridge/getsupportedtokens?bridgeId=400&chainId=1
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": [
        {
            "tokenSymbol": "USDC",
            "address": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"
        },
        {
            "tokenSymbol": "USDT",
            "address": "0xdAC17F958D2ee523a2206206994597C13D831ec7"
        }
    ]
}
```

{% endtab %}
{% endtabs %}

### /getprice

Get the swap quotation for the given token pairs.

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

#### Query Parameter

| Name                                             | Type   | Description                                                                                                                                                        |
| ------------------------------------------------ | ------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| rpc                                              | String | Remote procedural call URL.                                                                                                                                        |
| bridgeId<mark style="color:red;">\*</mark>       | String | Refer to the [Bridge ID](https://docs.expand.network/important-ids/bridge-id) page for details.                                                                    |
| srcChainId                                       | String | <p><a href="https://docs.expand.network/important-ids/bridge-id/internal-chain-ids-for-bridge">Chain Id</a> of the source chain.<br>By default, Ethereum chain</p> |
| dstChainId<mark style="color:red;">\*</mark>     | String | [Chain Id](https://docs.expand.network/important-ids/bridge-id/internal-chain-ids-for-bridge) of the destination chain.                                            |
| srcTokenSymbol<mark style="color:red;">\*</mark> | String | Source token symbol.                                                                                                                                               |
| dstTokenSymbol<mark style="color:red;">\*</mark> | String | Destination token symbol.                                                                                                                                          |
| amountIn<mark style="color:red;">\*</mark>       | String | Amount of token.                                                                                                                                                   |

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

```url
https://api.expand.network/bridge/getprice?amountIn=1000000&srcChainId=900&dstChainId=900&srcTokenSymbol=usdc&dstTokenSymbol=usdt&bridgeId=400
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "srcChainId": "900",
        "dstChainId": "900",
        "srcTokenSymbol": "usdc",
        "dstTokenSymbol": "usdt",
        "amountIn": "1000000",
        "amountsOut": [
            "1000000",
            "994506"
        ]
    }
}
```

{% endtab %}
{% endtabs %}

### /gettransaction

Retrieves the details of the transaction.

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

#### Query Parameter

| Name                                              | Type   | Description                                                                                                                                                                                        |
| ------------------------------------------------- | ------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| rpc                                               | String | Remote procedural call URL.                                                                                                                                                                        |
| bridgeId<mark style="color:red;">\*</mark>        | String | Refer to the [Bridge ID](https://docs.expand.network/important-ids/bridge-id) page for details.                                                                                                    |
| transactionHash<mark style="color:red;">\*</mark> | String | Transaction hash.                                                                                                                                                                                  |
| srcChainId                                        | String | <p> <a href="https://docs.expand.network/important-ids/bridge-id/internal-chain-ids-for-bridge">Chain Id</a> of the source chain.<br>If txn involve Stellar, use Stellar chainId as srcChainId</p> |

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

```url
https://api.expand.network/bridge/gettransaction?bridgeId=400&srcChainId=900&transactionHash=3uTxUbsYbXYL6xNjdxZZaqt7R69ZzgEPDZzVF5JG8pnM8AxJhVJAUEfE5eysEJvfJsGpbfuzoYE6z286KWZ2wTaf
```

{% endtab %}

{% tab title="Sample Response" %}

```
{
    "status": 200,
    "msg": "success",
    "data": {
        "status": "EXECUTED",
        "srcTx": {
            "hash": "3uTxUbsYbXYL6xNjdxZZaqt7R69ZzgEPDZzVF5JG8pnM8AxJhVJAUEfE5eysEJvfJsGpbfuzoYE6z286KWZ2wTaf",
            "transactionStatus": true,
            "blockNumber": 310769741,
            "timestamp": 1735562150,
            "from": "GAnBH3Cnyz5eT34P6VdNZY3tHESSWK7Kwa4zMxCprdda",
            "to": "8jjWmLhYdqrtFMcEkiMDdqkEN85cvEFnNS4LFgNf5NRv",
            "value": "3521756",
            "transactionFees": 105000,
            "gas": null,
            "gasPrice": null,
            "input": "Fhr4xw,3gJqkocMWaMm,MmvJP4vqoG7gvPRcxpVfeA1T8q6SJXR2SHjtporuM6cn9XMH,3vG348ZJzGA23xZSyoxshFuogcjWfqoNumzpA4iBKwtcfSUubkADTX226ZdVjK4o4yi4tyx8VJL2HncHLzr7EcnqDRoQmBncUbdM8MFNjj9fdhk4zCtFCaUdC3vFBtXHywBsKuiq4oXTZVu7Di86anbXEa3",
            "nonce": null,
            "network": null
        },
        "dstTx": {
            "chainId": "137",
            "hash": "0xad479da4569fbba967f3f297c5a35ea3d8816a3c8af0a90e9b26f400d816316f",
            "transactionStatus": true,
            "blockNumber": "66101722",
            "timestamp": null,
            "from": "0xf27D86EFA125Ab1ff059D1858c07A24cDc18aeC4",
            "to": "0x7775d63836987f444E2F14AA0fA2602204D7D3E0",
            "value": "0",
            "transactionFees": "44622856311400180",
            "gas": "300000",
            "gasPrice": "305479077949",
            "input": "0xe43bfe5e0000000000000000000000000000000000000000000000000000000000002c200000000000000000000000006b14f5ccb78fbb80e6d931d66bd42e71b253730800000000000000000000000000000000000000000000000000000000000000040000000000000000000000002791bca1f2de4661ed88a30c99a7a9449aa84174b60be2af1439c94c72a5f085eb9f9cd1129a1f34bb75d8e0078aab722909eaed00000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000aa8cb3",
            "nonce": 153166,
            "type": 2,
            "network": null,
            "v": "0x0",
            "r": "0x8c23c3f7164304174d376f909e90dcd8eceada06a299bd61193fa69ba6573cf1",
            "s": "0x2a2bd1220aa7bec3866c65fb79054ab9e1e8c59f19628c95a5fb24d3520be7ec",
            "yParity": "0x0",
            "transactionIndex": 30,
            "accessList": [],
            "maxFeePerGas": "448320440133",
            "maxPriorityFeePerGas": "84882656379",
            "logs": [
                {
                    "address": "0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174",
                    "topics": [
                        "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
                        "0x00000000000000000000000058cc621c62b0aa9babfae5651202a932279437da",
                        "0x0000000000000000000000006b14f5ccb78fbb80e6d931d66bd42e71b2537308"
                    ],
                    "data": "0x0000000000000000000000000000000000000000000000000000000000ac45b8",
                    "blockNumber": 66101722,
                    "transactionHash": "0xad479da4569fbba967f3f297c5a35ea3d8816a3c8af0a90e9b26f400d816316f",
                    "transactionIndex": 30,
                    "blockHash": "0x2cc708b9fbaa9b35fdf6915aa9d6aa08023c8750fefdbf0bb582eccb91f8cde6",
                    "logIndex": 69,
                    "removed": false,
                    "id": "log_c8b9d859"
                },
                {
                    "address": "0x58Cc621c62b0aa9bABfae5651202A932279437DA",
                    "topics": [
                        "0xfc1df7b9ba72a13350b8a4e0f094e232eebded9edd179950e74a852a0f405112"
                    ],
                    "data": "0x0000000000000000000000006b14f5ccb78fbb80e6d931d66bd42e71b25373080000000000000000000000002791bca1f2de4661ed88a30c99a7a9449aa841740000000000000000000000000000000000000000000000000000000000002c200000000000000000000000000000000000000000000000000000000000ac45b80000000000000000000000000000000000000000000000000000000000004240",
                    "blockNumber": 66101722,
                    "transactionHash": "0xad479da4569fbba967f3f297c5a35ea3d8816a3c8af0a90e9b26f400d816316f",
                    "transactionIndex": 30,
                    "blockHash": "0x2cc708b9fbaa9b35fdf6915aa9d6aa08023c8750fefdbf0bb582eccb91f8cde6",
                    "logIndex": 70,
                    "removed": false,
                    "id": "log_7b4b53f7"
                },
                {
                    "address": "0x7775d63836987f444E2F14AA0fA2602204D7D3E0",
                    "topics": [
                        "0xe9d840d27ab4032a839c20760fb995af8e3ad1980b9428980ca1c7e072acd87a"
                    ],
                    "data": "0x0000000000000000000000000000000000000000000000000000000000ac45b80000000000000000000000006b14f5ccb78fbb80e6d931d66bd42e71b2537308b60be2af1439c94c72a5f085eb9f9cd1129a1f34bb75d8e0078aab722909eaed000000000000000000000000000000000000000000000000000000000000000104054c0a8d76b15e6dbab8949fe5c253ab235e91e9274f0c6485a330100b7d8e",
                    "blockNumber": 66101722,
                    "transactionHash": "0xad479da4569fbba967f3f297c5a35ea3d8816a3c8af0a90e9b26f400d816316f",
                    "transactionIndex": 30,
                    "blockHash": "0x2cc708b9fbaa9b35fdf6915aa9d6aa08023c8750fefdbf0bb582eccb91f8cde6",
                    "logIndex": 71,
                    "removed": false,
                    "id": "log_7e84248d"
                },
                {
                    "address": "0x0000000000000000000000000000000000001010",
                    "topics": [
                        "0x4dfe1bbbcf077ddc3e01291eea2d5c70c2b422b415d95645b9adcfd678cb1d63",
                        "0x0000000000000000000000000000000000000000000000000000000000001010",
                        "0x000000000000000000000000f27d86efa125ab1ff059d1858c07a24cdc18aec4",
                        "0x000000000000000000000000794e44d1334a56fea7f4df12633b88820d0c5888"
                    ],
                    "data": "0x000000000000000000000000000000000000000000000000002c0d09a3e0ec7900000000000000000000000000000000000000000000000ab5b110650ff69f1b000000000000000000000000000000000000000000000e83d3397b9ff4356c1800000000000000000000000000000000000000000000000ab585035b6c15b2a2000000000000000000000000000000000000000000000e83d36588a998165891",
                    "blockNumber": 66101722,
                    "transactionHash": "0xad479da4569fbba967f3f297c5a35ea3d8816a3c8af0a90e9b26f400d816316f",
                    "transactionIndex": 30,
                    "blockHash": "0x2cc708b9fbaa9b35fdf6915aa9d6aa08023c8750fefdbf0bb582eccb91f8cde6",
                    "logIndex": 72,
                    "removed": false,
                    "id": "log_a600d4fa"
                }
            ]
        }
    }
}
```

{% endtab %}
{% endtabs %}

### /swap

Initiates a transaction to swap assets accross multiple chains.

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

#### Request Body

| Name                                             | Type   | Description                                                                                                             |
| ------------------------------------------------ | ------ | ----------------------------------------------------------------------------------------------------------------------- |
| rpc                                              | String | Remote procedural call URL.                                                                                             |
| bridgeId<mark style="color:red;">\*</mark>       | String | Refer to the [Bridge ID](https://docs.expand.network/important-ids/bridge-id) page for details.                         |
| srcChainId<mark style="color:red;">\*</mark>     | String | [Chain Id](https://docs.expand.network/important-ids/bridge-id/internal-chain-ids-for-bridge) of the source chain.      |
| dstChainId<mark style="color:red;">\*</mark>     | String | [Chain Id](https://docs.expand.network/important-ids/bridge-id/internal-chain-ids-for-bridge) of the destination chain. |
| srcTokenSymbol<mark style="color:red;">\*</mark> | String | Source token symbol.                                                                                                    |
| dstTokenSymbol<mark style="color:red;">\*</mark> | String | Destination token symbol.                                                                                               |
| amountIn<mark style="color:red;">\*</mark>       | String | Amount of token.                                                                                                        |
| gas<mark style="color:red;">\*</mark>            | String | Maximum gas limit provided by the sender, for the transaction.                                                          |
| gas priority                                     | String | Low, medium, or high.                                                                                                   |
| from<mark style="color:red;">\*</mark>           | String | Address of the sender of the token.                                                                                     |
| to<mark style="color:red;">\*</mark>             | String | Address of the recipient of the token.                                                                                  |

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

```json
{
    "to": "0x0CDA40b49c94502cdb58d4Ec507Fc4c842D8AF47",
    "from": "53unSgGWqEWANcPYRF35B2Bgf8BkszUtcccKiXwGGLyr",
    "srcChainId": "900",
    "dstChainId": "1",
    "srcTokenSymbol": "USDt",
    "dstTokenSymbol": "USDC",
    "bridgeId": "400",
    "amountIn": "10000000",
    "gas": "30000"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "900",
        "from": "53unSgGWqEWANcPYRF35B2Bgf8BkszUtcccKiXwGGLyr",
        "data": "AgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACkiVq4ARfMLdm5S8RbD25uG2SDbygb8qFUQUfzuhPMkr3Q7c2Wup8vMQCTTuNwCSCDb4bmQ4ydES/zhXCIh0YNgAIABQw8LZeA9qBvRbVQG5heYfyIuwarnP0Gu9tInqEHyOcglWbZK0ObGjN9q0xuRL0TUp872ZtuqzYYwm02RZXc48A+d2Gw7xpFthANVe3z0H+3p4X63midbZ0clwJz/UoaiCm5vh9YFiRrv4KzgxptVtUhoKpS+UTfyeoGgye1cN2ZtB0V2Rb9ZE0XVXPsit1LZw9urS8OZ3hmHBEVzT7XwPO8VBJRjgXCFp1PQJxqv1nDL57Hzqu6pEmojfmqT93QYzAx1DzF2wqb2QsGAV6qtX/Co/01QmyoV/2QWBlHV/r8gAMGRm/lIRcy/+ytunLDm+e8jOW7xfcSayxDmzpAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAChS802Aur3zrKUdfAJQH3aEEEs3IW1yCrPU1c5i+1xGM4BDmCv7bInF71jGS9UFFo/llozu4LSxwKess4eIIJkDgpYmkGlX71mxSpHXy2SptPcm0dHEUy5r4JamLVF085ITWCGCO8HhORNHkyfBbuHH/7aV9ZpK5q6ThKNcyBGcwQHAAUCP0IPAAgCAAwMAgAAAGQAAAAAAAAACRkAAAIKDQ4DBBESEwUUFQ8LEAEGDBYXGBkIcSlbybSWdZpB9s+SKRv0w3w5oe6HdsaDJ9uB5YE1dBj7zlOfqK3ODHUAAAAAAAAAAAAAAAAM2kC0nJRQLNtY1OxQf8TIQtivRwEAAAAAAAAAAAAAAACguGmRxiGLNsHRnUounrDONgbrSOEmAAAAAAAABwAJAw0AAAAAAAAAARNeVVcDfq5Iw8yNHuzl4KtuQqQCxlZJPgFeCVKg3hG2BSEBFh8gCRgJGQseJyMkDA==",
        "referenceId": "ca464066b53746868f9c04df914a789c"
    }
}
```

{% endtab %}
{% endtabs %}

#### With Gas Priority

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

```json
{
    "to": "TT2T17KZhoDu47i2E4FWxfG79zdkEWkU9N",
    "from": "0xB409cB0b5DB9f148d0bc491E140D9E0FDd789C11",
    "srcChainId": "1",
    "dstChainId": "1000",
    "srcTokenSymbol": "usdc",
    "dstTokenSymbol": "usdt",
    "bridgeId": "400",
    "amountIn": "1000000",
    "gas": "30000",
    "gasPriority":"high"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "gas": "30000",
        "from": "0xB409cB0b5DB9f148d0bc491E140D9E0FDd789C11",
        "to": "0x609c690e8F7D68a59885c9132e812eEbDaAf0c9e",
        "value": "3365697621963008",
        "data": "0x4cd480bd000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb4800000000000000000000000000000000000000000000000000000000000f4240000000000000000000000000bb1712d44d09feee51d071219b4c5d9792b76b290000000000000000000000000000000000000000000000000000000000000003000000000000000000000000a614f803b6fd780986a42c78ec9c7f77e6ded13c2b9dda041cc773e74cbf5f5571fc7a788943b5f36c697133cb905448300ad72700000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000",
        "gasPrice": "15182277713",
        "estimationCheck": true,
        "referenceId": "29e3be4965c74071b126b8dcb6fb9ac0"
    }
}
```

{% endtab %}
{% endtabs %}


# Aptos Bridge

### Supported Chains

Available on **Ethereum, Optimism, Binance Smart Chain, Polygon, Aptos, Arbitrum, Avalanche**

### Available Endpoints:

*Click on the endpoint to jump to the section with full details*

* [**/**<mark style="color:blue;">**getprice**</mark>](#getprice) <mark style="color:blue;">`GET`</mark> - Returns the swap quotation for a given token pair.
* [<mark style="color:blue;">**/**</mark>](#getuserliquidity)[<mark style="color:blue;">**getsupportedchains**</mark><mark style="color:blue;">`GET`</mark>](#getsupportedchains) - Retrieves the list of chains supported by Allbridge Core , on expand.network.
* [**/**](#getpoolliquidity)[<mark style="color:blue;">**getsupportedtokens**</mark><mark style="color:blue;">`GET`</mark>](#getsupportedtokens) - Retrieves the list of tokens supported by Allbridge Core, on expand.network.
* [**/**](#gettokenliquidity)[<mark style="color:blue;">**gettransaction**</mark>](#gettransaction) <mark style="color:blue;">`GET`</mark> - Retrieves the details of the transaction.
* [**/**<mark style="color:blue;">**swap**</mark>](#swap) <mark style="color:green;">`POST`</mark> - Initiates a transaction to swap assets accross multiple chains.

### Bridge ID

Many endpoints have a parameter where you can provide a Bridge ID.&#x20;

Below is a list of Bridge ID related to Allbridge Core. Please see the [Bridge ID Page](/ids/bridge-ids) for a complete Bridge ID list and more information.

| Bridge Name    | Bridge ID |
| -------------- | --------- |
| Allbridge Core | 400       |

## Endpoint Details

### /getsupportedchains

Get the list of chains supported by Squid Router, on expand.network.

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

#### Query Parameters

| Name                                       | Type   | Description                                                 |
| ------------------------------------------ | ------ | ----------------------------------------------------------- |
| bridgeId<mark style="color:red;">\*</mark> | String | Refer to the [Bridge ID](/ids/bridge-ids) page for details. |

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

```url
https://api.expand.network/bridge/getsupportedchains?bridgeId=700
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": [
        {
            "chainName": "Ethereum",
            "chainId": "1",
            "srcChainSupported": true,
            "dstChainSupported": true
        },
        {
            "chainName": "Optimism",
            "chainId": "10",
            "srcChainSupported": true,
            "dstChainSupported": true
        },
        {
            "chainName": "Binance Smart Chain",
            "chainId": "56",
            "srcChainSupported": true,
            "dstChainSupported": true
        },
        {
            "chainName": "Polygon",
            "chainId": "137",
            "srcChainSupported": true,
            "dstChainSupported": true
        },
        {
            "chainName": "Aptos",
            "chainId": "1400",
            "srcChainSupported": true,
            "dstChainSupported": true
        },
        {
            "chainName": "Arbitrum",
            "chainId": "42161",
            "srcChainSupported": true,
            "dstChainSupported": true
        },
        {
            "chainName": "Avalanche",
            "chainId": "43114",
            "srcChainSupported": true,
            "dstChainSupported": true
        }
    ]
}
```

{% endtab %}
{% endtabs %}

### /getsupportedtokens

Get the list of tokens supported by Squid Router, on the specified chain, on expand.network.

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

#### Query Parameters

| Name                                       | Type   | Description                                                 |
| ------------------------------------------ | ------ | ----------------------------------------------------------- |
| bridgeId<mark style="color:red;">\*</mark> | String | Refer to the [Bridge ID](/ids/bridge-ids) page for details. |

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

```url
https://api.expand.network/bridge/getsupportedtokens?bridgeId=700
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": [
        {
            "tokenSymbol": "ETH",
            "tokenLogo": "https://images.ctfassets.net/hwqnbx905qdp/2V6xdLR6kRWA2CZw69FFFD/44d048754ba5d88972c7730428814e18/eip155_59144-0x0000000000000000000000000000000000000000.webp",
            "chains": [
                {
                    "chainName": "Ethereum",
                    "chainId": "1",
                    "chainLogo": "https://images.ctfassets.net/hwqnbx905qdp/1uwuF76WP6poLF5am22HFZ/bcece6e735a0d8505d23de16fdd7b89f/Protocol_Ethereum.svg",
                    "address": "0x0000000000000000000000000000000000000000",
                    "decimals": "18"
                },
                {
                    "chainName": "Optimism",
                    "chainId": "10",
                    "chainLogo": "https://images.ctfassets.net/hwqnbx905qdp/3gTN1NWH1VElNEBJUzAmrp/59eea2cbd4a14435efea0b3b00d2b65d/eip155_10-0x4200000000000000000000000000000000000042.webp",
                    "address": "0x0000000000000000000000000000000000000000",
                    "decimals": "18"
                },
                {
                    "chainName": "Arbitrum",
                    "chainId": "42161",
                    "chainLogo": "https://images.ctfassets.net/hwqnbx905qdp/wdG5xcaZud3vJeNeeRHJN/c024fc6a9e986979bd6ceee302a4d019/eip155_42170-0xf823c3cd3cebe0a1fa952ba88dc9eef8e0bf46ad.webp",
                    "address": "0x0000000000000000000000000000000000000000",
                    "decimals": "18"
                }
            ]
        },
        {
            "tokenSymbol": "WETH",
            "tokenLogo": "https://images.ctfassets.net/hwqnbx905qdp/3CYK0uSFEP6QIljwqebBMe/f4a25b02e6c4e74c92e4a442dfa3246d/eip155_8453-0x4200000000000000000000000000000000000006.webp",
            "chains": [
                {
                    "chainName": "Ethereum",
                    "chainId": "1",
                    "chainLogo": "https://images.ctfassets.net/hwqnbx905qdp/1uwuF76WP6poLF5am22HFZ/bcece6e735a0d8505d23de16fdd7b89f/Protocol_Ethereum.svg",
                    "address": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
                    "decimals": "18"
                },
                {
                    "chainName": "Optimism",
                    "chainId": "10",
                    "chainLogo": "https://images.ctfassets.net/hwqnbx905qdp/3gTN1NWH1VElNEBJUzAmrp/59eea2cbd4a14435efea0b3b00d2b65d/eip155_10-0x4200000000000000000000000000000000000042.webp",
                    "address": "0x4200000000000000000000000000000000000006",
                    "decimals": "18"
                },
                {
                    "chainName": "Aptos",
                    "chainId": "1400",
                    "chainLogo": "https://images.ctfassets.net/hwqnbx905qdp/5EgKZrdoIMKG6zfJM1MOCv/4473b2e29db42374a909d934f51fc7a6/aptos_1-0x0000000000000000000000000000000000000000.webp",
                    "address": "0xf22bede237a07e121b56d91a491eb7bcdfd1f5907926a9e58338f964a01b17fa::asset::WETH",
                    "decimals": "6"
                },
                {
                    "chainName": "Arbitrum",
                    "chainId": "42161",
                    "chainLogo": "https://images.ctfassets.net/hwqnbx905qdp/wdG5xcaZud3vJeNeeRHJN/c024fc6a9e986979bd6ceee302a4d019/eip155_42170-0xf823c3cd3cebe0a1fa952ba88dc9eef8e0bf46ad.webp",
                    "address": "0x82aF49447D8a07e3bd95BD0d56f35241523fBab1",
                    "decimals": "18"
                }
            ]
        },
        {
            "tokenSymbol": "USDC",
            "tokenLogo": "https://images.ctfassets.net/hwqnbx905qdp/6893oiNfpI3av9Hns9C9Pr/4737a606c9622327353ac12ba58819d8/eip155_8453-0x833589fcd6edb6e08f4c7c32d4f71b54bda02913.webp",
            "chains": [
                {
                    "chainName": "Ethereum",
                    "chainId": "1",
                    "chainLogo": "https://images.ctfassets.net/hwqnbx905qdp/1uwuF76WP6poLF5am22HFZ/bcece6e735a0d8505d23de16fdd7b89f/Protocol_Ethereum.svg",
                    "address": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
                    "decimals": "6"
                },
                {
                    "chainName": "Optimism",
                    "chainId": "10",
                    "chainLogo": "https://images.ctfassets.net/hwqnbx905qdp/3gTN1NWH1VElNEBJUzAmrp/59eea2cbd4a14435efea0b3b00d2b65d/eip155_10-0x4200000000000000000000000000000000000042.webp",
                    "address": "0x7F5c764cBc14f9669B88837ca1490cCa17c31607",
                    "decimals": "6"
                },
                {
                    "chainName": "Binance Smart Chain",
                    "chainId": "56",
                    "chainLogo": "https://images.ctfassets.net/hwqnbx905qdp/4lToZjRQXkpr9xb34e5PEZ/0591c40dbafe060739489d232bc87950/eip155_1284-0xc9baa8cfdde8e328787e29b4b078abf2dadc2055.webp",
                    "address": "0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d",
                    "decimals": "18"
                },
                {
                    "chainName": "Polygon",
                    "chainId": "137",
                    "chainLogo": "https://images.ctfassets.net/hwqnbx905qdp/Gk0M0TjvKl5OMLor03LpV/448163986bfe9319a5128b7ab734b68c/eip155_56-0xcc42724c6683b7e57334c4e856f4c9965ed682bd.webp",
                    "address": "0x2791bca1f2de4661ed88a30c99a7a9449aa84174",
                    "decimals": "6"
                },
                {
                    "chainName": "Aptos",
                    "chainId": "1400",
                    "chainLogo": "https://images.ctfassets.net/hwqnbx905qdp/5EgKZrdoIMKG6zfJM1MOCv/4473b2e29db42374a909d934f51fc7a6/aptos_1-0x0000000000000000000000000000000000000000.webp",
                    "address": "0xf22bede237a07e121b56d91a491eb7bcdfd1f5907926a9e58338f964a01b17fa::asset::USDC",
                    "decimals": "6"
                },
                {
                    "chainName": "Arbitrum",
                    "chainId": "42161",
                    "chainLogo": "https://images.ctfassets.net/hwqnbx905qdp/wdG5xcaZud3vJeNeeRHJN/c024fc6a9e986979bd6ceee302a4d019/eip155_42170-0xf823c3cd3cebe0a1fa952ba88dc9eef8e0bf46ad.webp",
                    "address": "0xFF970A61A04b1cA14834A43f5dE4533eBDDB5CC8",
                    "decimals": "6"
                },
                {
                    "chainName": "Avalanche",
                    "chainId": "43114",
                    "chainLogo": "https://images.ctfassets.net/hwqnbx905qdp/7sdZNsYGFV8zfUNnFrMlXb/7eeee545a13447a0018ce3162ff21d76/eip155_59144-0x5471ea8f739dd37e9b81be9c5c77754d8aa953e4.webp",
                    "address": "0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E",
                    "decimals": "6"
                }
            ]
        },
        {
            "tokenSymbol": "USDT",
            "tokenLogo": "https://images.ctfassets.net/hwqnbx905qdp/6gHHp1dKMN94clQB2BZxWt/b1acaba653bb940969555c2bf2541ab8/eip155_8217-0x9025095263d1e548dc890a7589a4c78038ac40ab.webp",
            "chains": [
                {
                    "chainName": "Ethereum",
                    "chainId": "1",
                    "chainLogo": "https://images.ctfassets.net/hwqnbx905qdp/1uwuF76WP6poLF5am22HFZ/bcece6e735a0d8505d23de16fdd7b89f/Protocol_Ethereum.svg",
                    "address": "0xdAC17F958D2ee523a2206206994597C13D831ec7",
                    "decimals": "6"
                },
                {
                    "chainName": "Binance Smart Chain",
                    "chainId": "56",
                    "chainLogo": "https://images.ctfassets.net/hwqnbx905qdp/4lToZjRQXkpr9xb34e5PEZ/0591c40dbafe060739489d232bc87950/eip155_1284-0xc9baa8cfdde8e328787e29b4b078abf2dadc2055.webp",
                    "address": "0x55d398326f99059fF775485246999027B3197955",
                    "decimals": "18"
                },
                {
                    "chainName": "Polygon",
                    "chainId": "137",
                    "chainLogo": "https://images.ctfassets.net/hwqnbx905qdp/Gk0M0TjvKl5OMLor03LpV/448163986bfe9319a5128b7ab734b68c/eip155_56-0xcc42724c6683b7e57334c4e856f4c9965ed682bd.webp",
                    "address": "0xc2132D05D31c914a87C6611C10748AEb04B58e8F",
                    "decimals": "6"
                },
                {
                    "chainName": "Aptos",
                    "chainId": "1400",
                    "chainLogo": "https://images.ctfassets.net/hwqnbx905qdp/5EgKZrdoIMKG6zfJM1MOCv/4473b2e29db42374a909d934f51fc7a6/aptos_1-0x0000000000000000000000000000000000000000.webp",
                    "address": "0xf22bede237a07e121b56d91a491eb7bcdfd1f5907926a9e58338f964a01b17fa::asset::USDT",
                    "decimals": "6"
                },
                {
                    "chainName": "Avalanche",
                    "chainId": "43114",
                    "chainLogo": "https://images.ctfassets.net/hwqnbx905qdp/7sdZNsYGFV8zfUNnFrMlXb/7eeee545a13447a0018ce3162ff21d76/eip155_59144-0x5471ea8f739dd37e9b81be9c5c77754d8aa953e4.webp",
                    "address": "0x9702230A8Ea53601f5cD2dc00fDBc13d4dF4A8c7",
                    "decimals": "6"
                }
            ]
        },
        {
            "tokenSymbol": "WBTC",
            "tokenLogo": "https://images.ctfassets.net/hwqnbx905qdp/2ILv9flOf27yZeSfyF8K9F/8f77a74b6c7cd5ab69760bfc1f4bd2a4/eip155_1-0x2260fac5e5542a773aa44fbcfedf7c193bc2c599.webp",
            "chains": [
                {
                    "chainName": "Ethereum",
                    "chainId": "1",
                    "chainLogo": "https://images.ctfassets.net/hwqnbx905qdp/1uwuF76WP6poLF5am22HFZ/bcece6e735a0d8505d23de16fdd7b89f/Protocol_Ethereum.svg",
                    "address": "0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599",
                    "decimals": "8"
                },
                {
                    "chainName": "Aptos",
                    "chainId": "1400",
                    "chainLogo": "https://images.ctfassets.net/hwqnbx905qdp/5EgKZrdoIMKG6zfJM1MOCv/4473b2e29db42374a909d934f51fc7a6/aptos_1-0x0000000000000000000000000000000000000000.webp",
                    "address": "0xf22bede237a07e121b56d91a491eb7bcdfd1f5907926a9e58338f964a01b17fa::asset::WBTC",
                    "decimals": "6"
                }
            ]
        },
        {
            "tokenSymbol": "USDD",
            "tokenLogo": "https://images.ctfassets.net/hwqnbx905qdp/6A2YXqRm8OWOHo9ExBgSsL/a9451feabed36f924b2b9bdbbcd6251a/eip155_56-0xd17479997F34dd9156Deef8F95A52D81D265be9c.webp",
            "chains": [
                {
                    "chainName": "Ethereum",
                    "chainId": "1",
                    "chainLogo": "https://images.ctfassets.net/hwqnbx905qdp/1uwuF76WP6poLF5am22HFZ/bcece6e735a0d8505d23de16fdd7b89f/Protocol_Ethereum.svg",
                    "address": "0x3D7975EcCFc61a2102b08925CbBa0a4D4dBB6555",
                    "decimals": "18"
                },
                {
                    "chainName": "Aptos",
                    "chainId": "1400",
                    "chainLogo": "https://images.ctfassets.net/hwqnbx905qdp/5EgKZrdoIMKG6zfJM1MOCv/4473b2e29db42374a909d934f51fc7a6/aptos_1-0x0000000000000000000000000000000000000000.webp",
                    "address": "0xf22bede237a07e121b56d91a491eb7bcdfd1f5907926a9e58338f964a01b17fa::asset::USDD",
                    "decimals": "6"
                }
            ]
        }
    ]
}
```

{% endtab %}
{% endtabs %}

### /getprice

Get the swap quotation for the given token pairs.

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

#### Query Parameter

| Name                                             | Type   | Description                                                                                                                                                        |
| ------------------------------------------------ | ------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| rpc                                              | String | Remote procedural call URL.                                                                                                                                        |
| bridgeId<mark style="color:red;">\*</mark>       | String | Refer to the [Bridge ID](https://docs.expand.network/important-ids/bridge-id) page for details.                                                                    |
| srcChainId                                       | String | <p><a href="https://docs.expand.network/important-ids/bridge-id/internal-chain-ids-for-bridge">Chain Id</a> of the source chain.<br>By default, Ethereum chain</p> |
| dstChainId<mark style="color:red;">\*</mark>     | String | [Chain Id](https://docs.expand.network/important-ids/bridge-id/internal-chain-ids-for-bridge) of the destination chain.                                            |
| srcTokenSymbol<mark style="color:red;">\*</mark> | String | Source token symbol.                                                                                                                                               |
| dstTokenSymbol<mark style="color:red;">\*</mark> | String | Destination token symbol.                                                                                                                                          |
| amountIn<mark style="color:red;">\*</mark>       | String | Amount of token.                                                                                                                                                   |

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

```url
https://api.expand.network/bridge/getprice?bridgeId=700&srcChainId=1400&amountIn=10000000000000&srcTokenSymbol=usdc&dstChainId=1&dstTokenSymbol=usdc
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "srcChainId": "1400",
        "dstChainId": "1",
        "srcTokenSymbol": "USDC",
        "dstTokenSymbol": "USDC",
        "amountIn": "10000000000000",
        "amountsOut": [
            "10000000000000",
            "9993000000000"
        ]
    }
}
```

{% endtab %}
{% endtabs %}

### /gettransaction

Retrieves the details of the transaction.

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

#### Query Parameter

| Name                                              | Type   | Description                                                                                                                                                                                        |
| ------------------------------------------------- | ------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| rpc                                               | String | Remote procedural call URL.                                                                                                                                                                        |
| bridgeId<mark style="color:red;">\*</mark>        | String | Refer to the [Bridge ID](https://docs.expand.network/important-ids/bridge-id) page for details.                                                                                                    |
| transactionHash<mark style="color:red;">\*</mark> | String | Transaction hash.                                                                                                                                                                                  |
| srcChainId                                        | String | <p> <a href="https://docs.expand.network/important-ids/bridge-id/internal-chain-ids-for-bridge">Chain Id</a> of the source chain.<br>If txn involve Stellar, use Stellar chainId as srcChainId</p> |

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

```url
https://api.expand.network/bridge/gettransaction?bridgeId=700&transactionHash=0x265a27de084fadb2747ce263c8a5c994b58a2290cfd4274c9329f362e9f83e19WZ2wTaf
```

{% endtab %}

{% tab title="Sample Response" %}

```
{
    "status": 200,
    "msg": "success",
    "data": {
        "status": "EXECUTED",
        "srcTx": {
            "chainId": "1400",
            "hash": "0x265a27de084fadb2747ce263c8a5c994b58a2290cfd4274c9329f362e9f83e19",
            "transactionStatus": true,
            "timestamp": "1749187550147236",
            "from": "0xb3c5ca5b5597c85e04f8b1f38f8f4d9dfe140294654cb072a9bc559b9f31c151",
            "to": null,
            "value": null,
            "transactionFees": "71",
            "gas": "80000",
            "gasPrice": "100",
            "input": null,
            "nonce": null,
            "network": null
        },
        "dstTx": {
            "chainId": "1",
            "hash": "0xd12c4c4c8d53481383851ec57696e56f4af0c10f9778a2ef2f37fbc407f33311",
            "transactionStatus": true,
            "blockNumber": "22643465",
            "timestamp": null,
            "from": "0xe93685f3bBA03016F02bD1828BaDD6195988D950",
            "to": "0x902F09715B6303d4173037652FA7377e5b98089E",
            "value": "0",
            "transactionFees": "203255553475938",
            "gas": "1021020",
            "gasPrice": "1262119766",
            "input": "0x252f7b01000000000000000000000000000000000000000000000000000000000000006c00000000000000000000000050002cdfe7ccb0c41f519c6eb0653158d11cd9070000000000000000000000000000000000000000000000000000000000030d40aacbfaaa9f35c5aaada617cd0010311800772e4b533058333acac42d22848f11aacbfaaa9f35c5aaada617cd0010311800772e4b533058333acac42d22848f1100000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000aa54ad3d30af77b60d939ae356e6606de9a4da67583f02b962d2d3f2e481484e9000000000000043fd006cf22bede237a07e121b56d91a491eb7bcdfd1f5907926a9e58338f964a01b17fa006550002cdfe7ccb0c41f519c6eb0653158d11cd90701000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48000000000000000000000000a80c8ff4118884f63329ec6c7d6c220e356d419f000000000008c3680000000000000000000000000000000000000000000000",
            "nonce": 2017561,
            "type": 2,
            "network": null,
            "v": "0x1",
            "r": "0x610639b506f51cd4a6d2993941097e5a6114c815de50bc0d6ad0844d6a962acb",
            "s": "0x4e5d371d161385b6554c8d2f54e55ec5d2435f9fb3ae593aa0a1267647a57b1c",
            "yParity": "0x1",
            "transactionIndex": 59,
            "accessList": [],
            "maxFeePerGas": "1442810191",
            "maxPriorityFeePerGas": "358667641",
            "logs": [
                {
                    "address": "0x4D73AdB72bC3DD368966edD0f0b2148401A178E2",
                    "topics": [
                        "0x2bd2d8a84b748439fd50d79a49502b4eb5faa25b864da6a9ab5c150704be9a4d",
                        "0x000000000000000000000000000000000000000000000000000000000000006c",
                        "0x00000000000000000000000050002cdfe7ccb0c41f519c6eb0653158d11cd907"
                    ],
                    "data": "0x000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000043fd594be327f2abea1f377b4722bd320c09a79b499e1dd894b3321977ebb1dc09270000000000000000000000000000000000000000000000000000000000000020f22bede237a07e121b56d91a491eb7bcdfd1f5907926a9e58338f964a01b17fa",
                    "blockNumber": 22643465,
                    "transactionHash": "0xd12c4c4c8d53481383851ec57696e56f4af0c10f9778a2ef2f37fbc407f33311",
                    "transactionIndex": 59,
                    "blockHash": "0x0a84cf58f9b2de351b2c7e7c9c54c3b0a484507e0ac28dbc77f7d25719dcfaed",
                    "logIndex": 65,
                    "removed": false,
                    "id": "log_8ec4b37b"
                }
            ]
        }
    }
}
```

{% endtab %}
{% endtabs %}

### /swap

Initiates a transaction to swap assets accross multiple chains.

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

#### Request Body

| Name                                             | Type   | Description                                                                                                             |
| ------------------------------------------------ | ------ | ----------------------------------------------------------------------------------------------------------------------- |
| rpc                                              | String | Remote procedural call URL.                                                                                             |
| bridgeId<mark style="color:red;">\*</mark>       | String | Refer to the [Bridge ID](https://docs.expand.network/important-ids/bridge-id) page for details.                         |
| srcChainId<mark style="color:red;">\*</mark>     | String | [Chain Id](https://docs.expand.network/important-ids/bridge-id/internal-chain-ids-for-bridge) of the source chain.      |
| dstChainId<mark style="color:red;">\*</mark>     | String | [Chain Id](https://docs.expand.network/important-ids/bridge-id/internal-chain-ids-for-bridge) of the destination chain. |
| srcTokenSymbol<mark style="color:red;">\*</mark> | String | Source token symbol.                                                                                                    |
| dstTokenSymbol<mark style="color:red;">\*</mark> | String | Destination token symbol.                                                                                               |
| amountIn<mark style="color:red;">\*</mark>       | String | Amount of token.                                                                                                        |
| gas                                              | String | Maximum gas limit provided by the sender, for the transaction.                                                          |
| gas priority                                     | String | Low, medium, or high.                                                                                                   |
| from<mark style="color:red;">\*</mark>           | String | Address of the sender of the token.                                                                                     |
| to<mark style="color:red;">\*</mark>             | String | Address of the recipient of the token.                                                                                  |

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

```json
{
    "amountIn": "10647857100000",
    "amountOutMin": "0",
    "dstChainId": "1",
    "srcChainId": "1400",
    "to": "0xa80c8Ff4118884f63329eC6C7D6c220E356D419f",
    "from": "0xb3c5ca5b5597c85e04f8b1f38f8f4d9dfe140294654cb072a9bc559b9f31c151",
    "srcTokenSymbol": "WETH",
    "dstTokenSymbol": "ETH",
    "gas": "100",
    "bridgeId": "700"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "900",
        "from": "53unSgGWqEWANcPYRF35B2Bgf8BkszUtcccKiXwGGLyr",
        "data": "AgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACkiVq4ARfMLdm5S8RbD25uG2SDbygb8qFUQUfzuhPMkr3Q7c2Wup8vMQCTTuNwCSCDb4bmQ4ydES/zhXCIh0YNgAIABQw8LZeA9qBvRbVQG5heYfyIuwarnP0Gu9tInqEHyOcglWbZK0ObGjN9q0xuRL0TUp872ZtuqzYYwm02RZXc48A+d2Gw7xpFthANVe3z0H+3p4X63midbZ0clwJz/UoaiCm5vh9YFiRrv4KzgxptVtUhoKpS+UTfyeoGgye1cN2ZtB0V2Rb9ZE0XVXPsit1LZw9urS8OZ3hmHBEVzT7XwPO8VBJRjgXCFp1PQJxqv1nDL57Hzqu6pEmojfmqT93QYzAx1DzF2wqb2QsGAV6qtX/Co/01QmyoV/2QWBlHV/r8gAMGRm/lIRcy/+ytunLDm+e8jOW7xfcSayxDmzpAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAChS802Aur3zrKUdfAJQH3aEEEs3IW1yCrPU1c5i+1xGM4BDmCv7bInF71jGS9UFFo/llozu4LSxwKess4eIIJkDgpYmkGlX71mxSpHXy2SptPcm0dHEUy5r4JamLVF085ITWCGCO8HhORNHkyfBbuHH/7aV9ZpK5q6ThKNcyBGcwQHAAUCP0IPAAgCAAwMAgAAAGQAAAAAAAAACRkAAAIKDQ4DBBESEwUUFQ8LEAEGDBYXGBkIcSlbybSWdZpB9s+SKRv0w3w5oe6HdsaDJ9uB5YE1dBj7zlOfqK3ODHUAAAAAAAAAAAAAAAAM2kC0nJRQLNtY1OxQf8TIQtivRwEAAAAAAAAAAAAAAACguGmRxiGLNsHRnUounrDONgbrSOEmAAAAAAAABwAJAw0AAAAAAAAAARNeVVcDfq5Iw8yNHuzl4KtuQqQCxlZJPgFeCVKg3hG2BSEBFh8gCRgJGQseJyMkDA==",
        "referenceId": "ca464066b53746868f9c04df914a789c"
    }
}
```

{% endtab %}
{% endtabs %}

#### With Gas Priority

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

```json
{
    "amountIn": "10647857100000",
    "amountOutMin": "0",
    "dstChainId": "1",
    "srcChainId": "1400",
    "to": "0xa80c8Ff4118884f63329eC6C7D6c220E356D419f",
    "from": "0xb3c5ca5b5597c85e04f8b1f38f8f4d9dfe140294654cb072a9bc559b9f31c151",
    "srcTokenSymbol": "WETH",
    "dstTokenSymbol": "ETH",
    "gas": "100",
    "gasPriority":"high",
    "bridgeId": "700"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1400",
        "from": "0xb3c5ca5b5597c85e04f8b1f38f8f4d9dfe140294654cb072a9bc559b9f31c151",
        "to": "0xf22bede237a07e121b56d91a491eb7bcdfd1f5907926a9e58338f964a01b17fa",
        "data": "s8XKW1WXyF4E+LHzj49Nnf4UApRlTLByqbxVm58xwVEbAAAAAAAAAALyK+3iN6B+EhtW2RpJHre839H1kHkmqeWDOPlkoBsX+gtjb2luX2JyaWRnZQ5zZW5kX2NvaW5fZnJvbQEH8ivt4jegfhIbVtkaSR63vN/R9ZB5Jqnlgzj5ZKAbF/oFYXNzZXQEV0VUSAAICGUAAAAAAAAAISAAAAAAAAAAAAAAAACoDI/0EYiE9jMp7Gx9bCIONW1BnwjgdL0lrwkAAAgF5mEKAAAAAAgAAAAAAAAAAAEBCwoAAQAAAAAAAw1AAQBkAAAAAAAAAGQAAAAAAAAAv7JbaAAAAAAB",
        "referenceId": "3fdee48a99494279ba926e83e3654987"
    }
}    
```

{% endtab %}
{% endtabs %}


# DEX & DEX Aggregators

Provides connectivity across the various **decentralized exchanges** available on the EVM and Non-EVM chains.&#x20;

Below are descriptions of the endpoints we support for DEXs and DEX Aggregators:&#x20;

<table><thead><tr><th width="245">Name</th><th>Description</th></tr></thead><tbody><tr><td>getprice <code>GET</code></td><td>Returns the swap quotation for the given token pairs for the specified DEX.</td></tr><tr><td>getuserliquidity <code>GET</code></td><td>Returns the balance of a particular token pair of an account.</td></tr><tr><td>getpoolliquidity <code>GET</code></td><td>Returns the total liquidity for a specified pool.</td></tr><tr><td>gettokenliquidity <code>GET</code></td><td>Returns the individual token liquidity within the specified liquidity pool.</td></tr><tr><td>getliquidityholders <code>GET</code></td><td>Returns the total number of liquidity holders in the specified pool.</td></tr><tr><td>getindividualposition <code>GET</code></td><td>Returns the liquidity position for a specified user address across all the pools for a specified DEX.</td></tr><tr><td>getliquiditysources <code>GET</code></td><td>Get the liquidity sources for the specified dex aggregator(on the basis of chain), supported by expand.network.</td></tr><tr><td><a href="#getpools"><mark style="color:blue;">getpools</mark></a> <code>GET</code></td><td>Returns a list of all the quotes for a pool on different DEXs.</td></tr><tr><td>gethistoricaltimeseries <code>GET</code></td><td>Get the historical time series transactions for a specific pool address.</td></tr><tr><td>gethistoricaltransactions <code>GET</code></td><td>Get the historical transactions focusing on swaps associated with a specific pool address.</td></tr><tr><td><a href="#gethistoricalpoolchartdata">gethistoricalpoolchartdata </a> <code>GET</code></td><td>Source OHCLV (Open, High, Close, Low, Volume) data for a specified pool address for a particular time interval (15, 30, 60, or 90 minutes). Available for Uniswap <a href="/pages/CbN6wja4QIPgCmBFbpuu#gethistoricalpoolchartdata">V2</a> and <a href="/pages/Jh1nnGrfGiqPJvyw89ri#gethistoricalpoolchartdata">V3</a>, <a href="/pages/KvEPHgIzjTYrwSB9JovJ#gethistoricalpoolchartdata">Balancer</a>, <a href="/pages/EcaOamHbAnVF5SWxL9s0#gethistoricalpoolchartdata">Curve V2</a>, and <a href="/pages/lnCPd0fNrcJvO25y1PcX#gethistoricalpoolchartdata">Sushiswap</a>.</td></tr><tr><td>getpooltradedata <code>GET</code></td><td>Get the trade data from the pool within a specified block range, for the specified event type.</td></tr><tr><td>getpoolindividualliquidity  <code>GET</code></td><td>Get all user addresses, block numbers, and token position details for a specified pool address. Available for Uniswap V2,V3 and Sushiswap only.</td></tr><tr><td><a href="#getwalletposition"><mark style="color:blue;">getwalletposition</mark></a> <code>GET</code></td><td>Get detailed information for user transactions on various DEXs, including transaction type, block-related details, decoded parameters and many more.</td></tr><tr><td><a href="#quoteaggregator"><mark style="color:blue;">quoteaggregator</mark></a> <code>GET</code></td><td>Retrieves quotes from various DEXs &#x26; aggregators in a unified manner. For a specified pair address, this endpoint will return the respective quotes for each DEX in which the pair address is present.</td></tr><tr><td>swap <code>POST</code></td><td>Initiate a swap transaction on a specified DEX.</td></tr><tr><td>addliquidity <code>POST</code></td><td>Add liquidity to a specified pool in a specified DEX.</td></tr><tr><td>removeliquidity <code>POST</code></td><td>Remove liquidity from a specified pool for a specified DEX.</td></tr><tr><td><a href="#swapaggregator"><mark style="color:blue;">swapaggregator</mark></a> <code>POST</code></td><td>Returns the aggregated prepared swap quotes for every DEX, in which the pair address is present.</td></tr><tr><td><a href="#dex-screen">dex/screen</a> <code>GET</code></td><td>This endpoint provides data on top activity pools across multiple DEXs (Uni V2, Uni V3, and Sushiswap V2) on Ethereum, offering key metrics like transactions, makers, buyers, sellers, volume, market cap, and liquidity with time intervals from 5 minutes to 24 hours.</td></tr><tr><td><a href="#swapwithapproval"><mark style="color:blue;">swapwithapproval</mark></a> <code>POST</code></td><td>Returns the approve and swap transaction on a DEX supported by Expand.</td></tr><tr><td><a href="#getliquiditybytick">getliquiditybytick</a></td><td>This endpoint provides the amount of liquidity distributed across different ticks for UniswapV3, TraderJoe and PancakeswapV3. Currently available for Ethereum,Avalanche, Binance and Polygon</td></tr><tr><td>getusertokenids</td><td>This endpoint provides the token IDs of all the active position NFTs the user holds.</td></tr></tbody></table>

Please see the attached document for information about error messages you may encounter when transacting using these endpoints:<https://docs.google.com/document/d/1SuBJwPOmvJtUUf-9QJiBcTr0l2zbWlusMTUOGfC8S50/edit?usp=sharing>

### /getpools

Returns a list of all the quotes for a pool on different DEXs.

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

#### Query Parameters

| Name                                       | Type   | Description                                                                                                    |
| ------------------------------------------ | ------ | -------------------------------------------------------------------------------------------------------------- |
| dexId<mark style="color:red;">\*</mark>    | String | Comma-separated values of Dex Id. Refer to the [DEX ID](broken://pages/8x8qwIu19Aq8uFsjOXvI) page for details. |
| path<mark style="color:red;">\*</mark>     | String | Comma-separated values of token pair.                                                                          |
| amountIn<mark style="color:red;">\*</mark> | String | Amount of token.                                                                                               |

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

```url
https://api.expand.network/dex/getpools?dexId=1500,1400,1300&path=0x6b175474e89094c44da98b954eedeac495271d0f,0xdac17f958d2ee523a2206206994597c13d831ec7&amountIn=100000000000000000
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": [
        {
            "dexId": "1300",
            "value": "99431"
        },
        {
            "dexId": "1400",
            "value": "130999"
        },
        {
            "dexId": "1500",
            "value": "99977"
        }
    ]
}
```

{% endtab %}
{% endtabs %}

### /gethistoricalpoolchartdata

Source OHCLV (Open, High, Close, Low, Volume) data for a specified pool address for a particular time interval (15, 30, 60, or 90 minutes). Available for Uniswap [V2](/integrations/dex-and-dex-aggregators/uniswap-v2#gethistoricalpoolchartdata) and [V3](/integrations/dex-and-dex-aggregators/uniswap-v3#gethistoricalpoolchartdata), [Balancer](/integrations/dex-and-dex-aggregators/balancer-v2#gethistoricalpoolchartdata), [Curve V2](/integrations/dex-and-dex-aggregators/curve-v2#gethistoricalpoolchartdata), and [Sushiswap](/integrations/dex-and-dex-aggregators/sushiswap-v2#gethistoricalpoolchartdata).

### /quoteaggregator

Returns a list of all the quotes for a pool on different DEXs.\
Available on EVM and Non-EVM chains

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

#### Query Parameters

| Name                                       | Type   | Description                                                           |
| ------------------------------------------ | ------ | --------------------------------------------------------------------- |
| chainId                                    | String | Refer to the [Chain ID ](/ids/chain-ids)page for details.             |
| path<mark style="color:red;">\*</mark>     | String | Comma-separated values of token pair.                                 |
| amountIn<mark style="color:red;">\*</mark> | String | Amount of token.                                                      |
| chainSymbol                                | String | Refer to the [Chain ID ](/ids/chain-ids)page for details.             |
| excludedDexes                              | String | Comma-separated values of dexes to exclude.                           |
| poolFees                                   | String | Different pool based on the fees. By default, it is selected as 3000. |

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

```url
https://api.expand.network/dex/quoteaggregator?amountIn=1000000000000000000&chainId=56&path=0xa2b726b1145a4773f68593cf171187d8ebe4d495%2C0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c&poolFees=10000
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": [
        {
            "dexId": "2201",
            "dexName": "Kyberswap",
            "amountIn": "1000000000000000000",
            "path": [
                "0xa2b726b1145a4773f68593cf171187d8ebe4d495",
                "0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c"
            ],
            "amountsOut": [
                "1000000000000000000",
                "14798692142552944"
            ]
        },
        {
            "dexId": "1200",
            "dexName": "PancakeV2",
            "amountIn": "1000000000000000000",
            "path": [
                "0xa2b726b1145a4773f68593cf171187d8ebe4d495",
                "0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c"
            ],
            "amountsOut": [
                "1000000000000000000",
                "14798544157111373"
            ]
        },
        {
            "bridgeId": "600",
            "bridgeName": "SquidRouterV2",
            "path": [
                "0xa2b726b1145a4773f68593cf171187d8ebe4d495",
                "0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c"
            ],
            "amountIn": "1000000000000000000",
            "amountsOut": [
                "1000000000000000000",
                "14798544157111373"
            ]
        },
        {
            "dexId": "1604",
            "dexName": "0x",
            "amountIn": "1000000000000000000",
            "path": [
                "0xa2b726b1145a4773f68593cf171187d8ebe4d495",
                "0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c"
            ],
            "amountsOut": [
                "1000000000000000000",
                "14776346340875706"
            ]
        },
        {
            "dexId": "1306",
            "dexName": "UniswapV3",
            "amountIn": "1000000000000000000",
            "path": [
                "0xa2b726b1145a4773f68593cf171187d8ebe4d495",
                "0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c"
            ],
            "amountsOut": [
                "1000000000000000000",
                "14668717523072865"
            ]
        },
        {
            "dexId": "2800",
            "dexName": "PancakeV3",
            "amountIn": "1000000000000000000",
            "path": [
                "0xa2b726b1145a4773f68593cf171187d8ebe4d495",
                "0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c"
            ],
            "amountsOut": [
                "1000000000000000000",
                "14620841622715545"
            ]
        }
    ]
}
```

{% endtab %}
{% endtabs %}

### /getwalletposition

Get the detailed DEXs positions for a wallet address. \
Available for Uniswap V2, Uniswap V3, Pancakeswap V2, Pancakeswap V3 and SushiSwap V2. \
Available on Ethereum only.

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

#### Query Parameters

| Name                                      | Type   | Description                 |
| ----------------------------------------- | ------ | --------------------------- |
| address<mark style="color:red;">\*</mark> | String | Public address of the user. |

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

```url
https://historicallp.api.expand.network/dex/getwalletposition?address=0x28A5eC068ae7500cbf21B989D62C7a81e2665B18
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
  "status": 200,
  "msg": "success",
  "data": [
    {
      "protocol_name": "Uniswap v2",
      "protocol_id": "uniswap-v2",
      "protocol_url": "https://app.uniswap.org/pools/v2",
      "account_data": {},
      "total_projected_earnings_usd": {
        "daily": null,
        "weekly": null,
        "monthly": null,
        "yearly": null
      },
      "position": {
        "label": "liquidity",
        "tokens": [
          {
            "token_type": "supplied",
            "name": "Ocean Token",
            "symbol": "OCEAN",
            "contract_address": "0x7afebbb46fdb47ed17b22ed075cde2447694fb9e",
            "decimals": "18",
            "balance": "1.6081842334083308815902940220990230780999386e+23",
            "usd_price": 0.3606446348915287
          },
          {
            "token_type": "supplied",
            "name": "Wrapped Ether",
            "symbol": "WETH",
            "contract_address": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
            "decimals": "18",
            "balance": "164740674239285818005.81690560285198009496",
            "usd_price": 3711.793202043769
          },
          {
            "token_type": "defi-token",
            "name": "Uniswap V2",
            "symbol": "UNI-V2",
            "contract_address": "0xf063806d07fe742b031a543145fb46d1bc670fe8",
            "decimals": "18",
            "balance": "4814188687222267334774",
            "usd_price": null
          }
        ],
        "address": "0xf063806d07fe742b031a543145fb46d1bc670fe8",
        "balance_usd": 669481.6163110741,
        "total_unclaimed_usd_value": null,
        "position_details": {
          "reserve0": "160818.42334083308815902940220990230780999386",
          "reserve1": "164.74067423928581800581690560285198009496",
          "factory": "0x5c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f",
          "pair": "0xf063806d07fe742b031a543145fb46d1bc670fe8",
          "share_of_pool": 26.97033761448816
        }
      }
    },
    {
      "protocol_name": "Uniswap v3",
      "protocol_id": "uniswap-v3",
      "protocol_url": "https://app.uniswap.org",
      "account_data": {},
      "total_projected_earnings_usd": {
        "daily": null,
        "weekly": null,
        "monthly": null,
        "yearly": null
      },
      "position": {
        "label": "Liquidity",
        "balance_usd": 92.79077171190019,
        "total_unclaimed_usd_value": 0,
        "tokens": [
          {
            "token_type": "supplied",
            "name": "USD Coin",
            "symbol": "USDC",
            "contract_address": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
            "decimals": "6",
            "balance": "0",
            "usd_price": 0.9984084045632092
          },
          {
            "token_type": "supplied",
            "name": "Wrapped Ether",
            "symbol": "WETH",
            "contract_address": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
            "decimals": "18",
            "balance": "24998906636503404",
            "usd_price": 3711.793202043769
          },
          {
            "token_type": "reward",
            "name": "USD Coin",
            "symbol": "USDC",
            "contract_address": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
            "decimals": "6",
            "balance": "0",
            "usd_price": 0.9984084045632092
          },
          {
            "token_type": "reward",
            "name": "Wrapped Ether",
            "symbol": "WETH",
            "contract_address": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
            "decimals": "18",
            "balance": "0",
            "usd_price": 3711.793202043769
          }
        ]
      }
    }
  ]
}
```

{% endtab %}
{% endtabs %}

### /swapaggregator

Returns the aggregated prepared swap quotes for every DEX, in which the pair address is present.\
Available on EVM and Non-EVM chains.

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

#### Request Body

<table><thead><tr><th width="175">Name</th><th width="93">Type</th><th>Description</th></tr></thead><tbody><tr><td>chainId</td><td>String</td><td>Refer to the <a href="/pages/5o1xMsQPqXw9GBfGTpdB">Chain ID </a>page for details. </td></tr><tr><td>path<mark style="color:red;">*</mark></td><td>String</td><td>Comma-separated values of token pair.</td></tr><tr><td>amountIn<mark style="color:red;">*</mark></td><td>String</td><td>Amount of token.</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>from<mark style="color:red;">*</mark></td><td>String</td><td>Address of the sender of the token.</td></tr><tr><td>gas</td><td>String</td><td>Maximum gas limit provided by the sender, for the transaction.</td></tr><tr><td>to<mark style="color:red;">*</mark></td><td>String</td><td>Address of the recipient of the token.</td></tr><tr><td>poolFees</td><td>String</td><td>Different pool based on the fees. <br>By default, it is selected as 3000.</td></tr><tr><td>excludedDexes</td><td>String</td><td>Comma-separated values of dexes to exclude.</td></tr><tr><td>bestNetPrice</td><td>Boolean</td><td>If true, the endpoint will sort the prepared transactions by amountsOut minus the amount of gas in descending order.<br><br><em>Note: If you select "true" for the "</em>bestQuote<em>", "</em>lowestGas<em>" and "</em>bestNetPrice" <em>parameters, the "</em>bestNetPrice<em>" parameter will apply.</em></td></tr><tr><td>bestQuote</td><td>Boolean</td><td>If true, the endpoint will sort the prepared transactions by amountsOut (the best quote) in descending order<br><br><em>Note: If you select "true" for the "</em>bestQuote<em>", "</em>lowestGas<em>" and "</em>bestNetPrice" <em>parameters, the "</em>bestNetPrice<em>" parameter will apply.</em></td></tr><tr><td>lowestGas</td><td>Boolean</td><td>If true, the endpoint will sort the prepared transactions by amount of gas in ascending order<br><br><em>Note: If you select "true" for the "</em>bestQuote<em>", "</em>lowestGas<em>" and "</em>bestNetPrice" <em>parameters, the "</em>bestNetPrice<em>" parameter will apply.</em></td></tr><tr><td>gasPriority</td><td>String</td><td>low, medium, or high.</td></tr></tbody></table>

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

```json
{
    "path": [
        "0x3845badAde8e6dFF049820680d1F14bD3903a5d0",
        "0xD533a949740bb3306d119CC777fa900bA034cd52"
    ],
    "amountIn": "1000000000000000000",
    "gas": "800000",
    "from": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
    "to": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
    "cheapestSwap": true,
    "gasPriority": "high",
    "bestSwap": true,
    "chainId": "1"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": [
        {
            "dexName": "0x",
            "amountsOut": "454801638754490972",
            "chainId": "1",
            "from": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
            "to": "0x0d0e364aa7852291883c162b22d6d81f6355428f",
            "value": "0",
            "gas": "800000",
            "data": "0x1fff991f000000000000000000000000dae2f6eddda6fb4fb60cc02633de27e2b431b402000000000000000000000000d533a949740bb3306d119cc777fa900ba034cd520000000000000000000000000000000000000000000000000652f1e901757fa800000000000000000000000000000000000000000000000000000000000000a0899632752e346c5953838114a1a078000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000070000000000000000000000000000000000000000000000000000000000000aa000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000001e000000000000000000000000000000000000000000000000000000000000005e000000000000000000000000000000000000000000000000000000000000007a000000000000000000000000000000000000000000000000000000000000008a0000000000000000000000000000000000000000000000000000000000000094000000000000000000000000000000000000000000000000000000000000000c4103b48be0000000000000000000000000d0e364aa7852291883c162b22d6d81f6355428f0000000000000000000000003845badade8e6dff049820680d1f14bd3903a5d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003dd49f67e9d5bc4c5e6634b3f70bfd9dc1b6bd740000000000000000000000000000000000000000000000000000000000001e0100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003c438c9c147000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc20000000000000000000000000000000000000000000000000000000000002710000000000000000000000000ba12222222228d8ba445958a75a0704d566bf2c800000000000000000000000000000000000000000000000000000000000001c400000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000002e4945bcec90000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000002200000000000000000000000000d0e364aa7852291883c162b22d6d81f6355428f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000d0e364aa7852291883c162b22d6d81f6355428f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002800000000000000000000000000000000000000000000000000000000068065e6100000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000020d4e2af4507b6b89333441c0c398edffb40f86f4d0001000000000000000002ab0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000009c571960824400000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc20000000000000000000000002260fac5e5542a773aa44fbcfedf7c193bc2c59900000000000000000000000000000000000000000000000000000000000000027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000018438c9c1470000000000000000000000002260fac5e5542a773aa44fbcfedf7c193bc2c5990000000000000000000000000000000000000000000000000000000000002710000000000000000000000000d51a44d3fae010294c616388b506acda1bfaae46000000000000000000000000000000000000000000000000000000000000004400000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000a45b41b90800000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c4103b48be0000000000000000000000000d0e364aa7852291883c162b22d6d81f6355428f000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec700000000000000000000000000000000000000000000000000000000000027100000000000000000000000003eed0af1c5f350c6571525d9e3eeea7d2608af810000000000000000000000000000000000000000000000000000000000001e000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000064c876d21d000000000000000000000000f5c4f3dc02c3fb9279495a8fef7b0741da956157000000000000000000000000d533a949740bb3306d119cc777fa900ba034cd5200000000000000000000000000000000000000000000000007e22d73e992e52000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000012438c9c147000000000000000000000000d533a949740bb3306d119cc777fa900ba034cd52000000000000000000000000000000000000000000000000000000000000000f000000000000000000000000d533a949740bb3306d119cc777fa900ba034cd52000000000000000000000000000000000000000000000000000000000000002400000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000044a9059cbb000000000000000000000000ad01c20d5886137e056775af56915de824c8fce500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffc1fb425e0000000000000000000000003dd49f67e9d5bc4c5e6634b3f70bfd9dc1b6bd740000000000000000000000003845badade8e6dff049820680d1f14bd3903a5d00000000000000000000000000000000000000000000000000de0b6b3a76400000000000000000000000000000000000000006e898131631616b1779bad70bc0b0000000000000000000000000000000000000000000000000000000068065e6100000000000000000000000000000000000000000000000000000000000000c0",
            "gasPrice": "1842544458",
            "estimationCheck": true,
            "referenceId": "01cefc4e5022465db668aacd284a7556"
        },
        {
            "dexName": "Kyberswap",
            "amountsOut": "454005990268643116",
            "chainId": "1",
            "from": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
            "to": "0x6131B5fae19EA4f9D964eAc0408E4408b66337b5",
            "value": "0",
            "gas": "800000",
            "data": "0x8af033fb0000000000000000000000000f4a1d7fdf4890be35e71f3e0bbc4a0ec377eca30000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000028000000000000000000000000000000000000000000000000000000000000007c00000000000000000000000003845badade8e6dff049820680d1f14bd3903a5d0000000000000000000000000d533a949740bb3306d119cc777fa900ba034cd520000000000000000000000000000000000000000000000000000000000000160000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000001a000000000000000000000000000000000000000000000000000000000000001c0000000000000000000000000dae2f6eddda6fb4fb60cc02633de27e2b431b4020000000000000000000000000000000000000000000000000de0b6b3a7640000000000000000000000000000000000000000000000000000004fe1aac18cb03a000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000001e0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000520000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000680661e300000000000000000000000000000000000000000000000000000000000004c000000000000000000000000000000000000000000000000000000000000000010000000000000000000000003dd49f67e9d5bc4c5e6634b3f70bfd9dc1b6bd7400000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000de0b6b3a764000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000034000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000001a00000000000000000000000000000000000000000000000000000000000000040593611990000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000001000000000000000000000000003dd49f67e9d5bc4c5e6634b3f70bfd9dc1b6bd740000000000000000000000003845badade8e6dff049820680d1f14bd3903a5d0000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc20000000000000000000000004811c9384bc8447945806a2319159054b228fda70000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000000000000000000000000000000000003e800000000000000000000000000000000000000000000000000000000000000320000000000000000000000000000000000000000000000000000000000000040593611990000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000001000000000000000000000000004811c9384bc8447945806a2319159054b228fda7000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2000000000000000000000000d533a949740bb3306d119cc777fa900ba034cd520000000000000000000000000f4a1d7fdf4890be35e71f3e0bbc4a0ec377eca30000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e000000000000000000000000000000000000000000000000000000000000271000000000000000000000000000000000000000000000000000000000000000320000000000000000000000000000000000000000000000000000000000000020000000000000000000000069b4dda37c0000000000000000064cf40aefdca72c00000000000000000000000000000000000000000000000000000000000002617b22536f75726365223a22657870616e64222c22416d6f756e74496e555344223a22302e32383231323337353035303836303235222c22416d6f756e744f7574555344223a22302e303134303034393235313134393531323635222c22526566657272616c223a22222c22466c616773223a302c22416d6f756e744f7574223a223232373030323939353133343332313932222c2254696d657374616d70223a313734353234373533392c22526f7574654944223a2263383139636533312d346461352d343338342d616334642d656462326533313736303837222c22496e74656772697479496e666f223a7b224b65794944223a2231222c225369676e6174757265223a2248386b705a32725651386463415776706b32697a454b2b6d44614156574164472b633734414d71632b495a65552f464737702f367a5a536766562b414b384d4c7a57536d424c3376366b2b70476c33353457724c417532794a4c39585159694f73715367512b5330724861446e464c6833662f74793678527a4b7862504337352b5a416b73753534496164684c41792f6e413448355873752b6459737446615935614c64486d4c724d53713969722b6b50434d362f4a6f51696444485a79352f612f7a493241535634436d74697754544e64566f473561465070436e4e445463356c6835485979745451597166575a55684a38422b73614132725835766d4b5832664d784865547a326a7962524c6c38644250496a6d335939304d4c3330373837765a6d7a4d6a34566b6b3576664564797051734f72455344774a483564504f6c67794b776c57556377676578535442396e4c6d44773d3d227d7d00000000000000000000000000000000000000000000000000000000000000",
            "gasPrice": "1767093228",
            "estimationCheck": true,
            "referenceId": "01cefc4e5022465db668aacd284a7556"
        },
        {
            "bridgeName": "SquidRouterV2",
            "amountsOut": "450958152289981823",
            "chainId": "1",
            "from": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
            "to": "0xce16F69375520ab01377ce7B88f5BA8C48F8D666",
            "value": "0",
            "gas": "800000",
            "data": "0x58181a800000000000000000000000003845badade8e6dff049820680d1f14bd3903a5d00000000000000000000000000000000000000000000000000de0b6b3a76400000000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000024000000000000000000000000000000000000000000000000000000000000004800000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000082000000000000000000000000000000000000000000000000000000000000009a000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003845badade8e6dff049820680d1f14bd3903a5d0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000044095ea7b30000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488dffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000400000000000000000000000003845badade8e6dff049820680d1f14bd3903a5d0000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000001e0000000000000000000000000000000000000000000000000000000000000010438ed17390000000000000000000000000000000000000000000000000de0b6b3a764000000000000000000000000000000000000000000000000000000009bbf02e7f9c800000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000ad6cea45f98444a922a2b4fe96b8c90f0862d2f40000000000000000000000000000000000000000000000000000019658eb567200000000000000000000000000000000000000000000000000000000000000020000000000000000000000003845badade8e6dff049820680d1f14bd3903a5d0000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc20000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000400000000000000000000000003845badade8e6dff049820680d1f14bd3903a5d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000044095ea7b300000000000000000000000068b3465833fb72a70ecdf485e0e4c7bd8665fc45ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc20000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000100000000000000000000000068b3465833fb72a70ecdf485e0e4c7bd8665fc45000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000001c000000000000000000000000000000000000000000000000000000000000000e404e45aaf000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb4800000000000000000000000000000000000000000000000000000000000001f4000000000000000000000000ad6cea45f98444a922a2b4fe96b8c90f0862d2f400000000000000000000000000000000000000000000000000009c57196082440000000000000000000000000000000000000000000000000000000000043eab0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc200000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000044095ea7b300000000000000000000000068b3465833fb72a70ecdf485e0e4c7bd8665fc45ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb480000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000100000000000000000000000068b3465833fb72a70ecdf485e0e4c7bd8665fc45000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000001c000000000000000000000000000000000000000000000000000000000000000e404e45aaf000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48000000000000000000000000d533a949740bb3306d119cc777fa900ba034cd520000000000000000000000000000000000000000000000000000000000002710000000000000000000000000dae2f6eddda6fb4fb60cc02633de27e2b431b40200000000000000000000000000000000000000000000000000000000000445570000000000000000000000000000000000000000000000000630ab23d13bed520000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48000000000000000000000000000000000000000000000000000000000000000425a473416484f5a441fb360166313286",
            "gasPrice": "1767093228",
            "estimationCheck": true,
            "referenceId": "01cefc4e5022465db668aacd284a7556"
        }
    ]
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
**With gasPriority:**

```json
{
  "path": [
    "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE",
    "0x6B175474E89094C44Da98b954EedeAC495271d0F"
  ],
  "amountIn": "1000000",
  "gas": "800000",
  "from": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
  "to": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
  "cheapestSwap": true,
  "bestSwap": true,
  "chainId": "1",
  "gasPriority": "medium"
}
```

{% endtab %}

{% tab title="Sample Response" %}
**With gasPriority:**

```json
{
    "status": 200,
    "msg": "success",
    "data": [
        {
            "dexName": "1inch",
            "amountsOut": "2722973476",
            "from": "0xdae2f6eddda6fb4fb60cc02633de27e2b431b402",
            "to": "0x1111111254eeb25477b68fb85ed929f73a960582",
            "data": "0x0502b1c5000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000f424000000000000000000000000000000000000000000000000000000000a1e3e3cb0000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000180000000000000003b6d034060a26d69263ef43e9a68964ba141263f19d71d51caefa361",
            "value": "1000000",
            "gas": "135556",
            "gasPrice": "2537407307",
            "estimationCheck": true,
            "referenceId": "7e54a22466b34205895563f636a5e59a"
        },
        {
            "dexName": "SushiswapV2",
            "amountsOut": "2727068499",
            "from": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
            "to": "0xd9e1cE17f2641f24aE83637ab66a2cca9C378B9F",
            "value": "1000000",
            "gas": "140987",
            "data": "0x7ff36ab500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000dae2f6eddda6fb4fb60cc02633de27e2b431b40200000000000000000000000000000000000000000000000000000191509586350000000000000000000000000000000000000000000000000000000000000002000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc20000000000000000000000006b175474e89094c44da98b954eedeac495271d0f",
            "gasPrice": "2533607308",
            "estimationCheck": true,
            "referenceId": "7e54a22466b34205895563f636a5e59a"
        },
        {
            "dexName": "UniswapV2",
            "amountsOut": "2727068867",
            "from": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
            "to": "0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D",
            "value": "1000000",
            "gas": "152687",
            "data": "0x7ff36ab500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000dae2f6eddda6fb4fb60cc02633de27e2b431b40200000000000000000000000000000000000000000000000000000191509586350000000000000000000000000000000000000000000000000000000000000002000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc20000000000000000000000006b175474e89094c44da98b954eedeac495271d0f",
            "gasPrice": "2533607308",
            "estimationCheck": true,
            "referenceId": "7e54a22466b34205895563f636a5e59a"
        },
        {
            "dexName": "UniswapV3",
            "amountsOut": "2727666213",
            "from": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
            "to": "0x68b3465833fb72a70ecdf485e0e4c7bd8665fc45",
            "value": "1000000",
            "gas": "157484",
            "data": "0xac9650d8000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000000e404e45aaf000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc20000000000000000000000006b175474e89094c44da98b954eedeac495271d0f0000000000000000000000000000000000000000000000000000000000000bb8000000000000000000000000dae2f6eddda6fb4fb60cc02633de27e2b431b40200000000000000000000000000000000000000000000000000000000000f42400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000412210e8a00000000000000000000000000000000000000000000000000000000",
            "gasPrice": "2533607308",
            "estimationCheck": true,
            "referenceId": "7e54a22466b34205895563f636a5e59a"
        },
        {
            "dexName": "0x",
            "amountsOut": "2723019170",
            "from": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
            "to": "0xdef1c0ded9bec7f1a1670819833240f027b25eff",
            "value": "1000000",
            "gas": "332516",
            "data": "0x415565b0000000000000000000000000eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee0000000000000000000000006b175474e89094c44da98b954eedeac495271d0f00000000000000000000000000000000000000000000000000000000000f424000000000000000000000000000000000000000000000000000000000a0addb8100000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000004c000000000000000000000000000000000000000000000000000000000000005c0000000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000040000000000000000000000000eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee00000000000000000000000000000000000000000000000000000000000f424000000000000000000000000000000000000000000000000000000000000000210000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000034000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc20000000000000000000000006b175474e89094c44da98b954eedeac495271d0f00000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000000000000000000000000000000000000030000000000000000000000000000000000000000000000000000000000000002c000000000000000000000000000000000000000000000000000000000000f4240000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000002556e697377617056320000000000000000000000000000000000000000000000000000000000000000000000000f424000000000000000000000000000000000000000000000000000000000a0eba6a2000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000f164fc0ec4e93095b804a4795bbe1e041497b92a00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000002000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc20000000000000000000000006b175474e89094c44da98b954eedeac495271d0f000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000010000000000000000000000006b175474e89094c44da98b954eedeac495271d0f00000000000000000000000000000000000000000000000000000000003dcb21000000000000000000000000ad01c20d5886137e056775af56915de824c8fce5000000000000000000000000000000000000000000000000000000000000001c000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000002000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2000000000000000000000000eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee0000000000000000000000000000000000000000000000000000000000000000869584cd000000000000000000000000100000000000000000000000000000000000001100000000000000000000000000000000000000000d1887adb5ec883592cc6d8e",
            "gasPrice": "2533607308",
            "estimationCheck": true,
            "referenceId": "7e54a22466b34205895563f636a5e59a"
        }
    ]
}
```

{% endtab %}
{% endtabs %}

### /swapwithapproval

Returns the approve and swap transaction on a DEX supported by Expand.

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

#### Request Body

<table data-full-width="false"><thead><tr><th>Name</th><th>Type</th><th>Description</th></tr></thead><tbody><tr><td>dexId</td><td>String</td><td>Refer to the <a href="/pages/TTKE85z6mWOr5G3jQ5gB">Dex ID</a><a href="/pages/5o1xMsQPqXw9GBfGTpdB"> </a>page for details. </td></tr><tr><td>path<mark style="color:red;">*</mark></td><td>String</td><td>Comma-separated values of token pair.</td></tr><tr><td>amountIn<mark style="color:red;">*</mark></td><td>String</td><td>Amount of token.</td></tr><tr><td>from<mark style="color:red;">*</mark></td><td>String</td><td>Address of the sender of the token.</td></tr><tr><td>slippage</td><td>String</td><td><p>Percentage of total swap value. By default, 1.</p><p>0 &#x3C;= slippage value &#x3C;= 10</p></td></tr><tr><td><em><strong>swap parameters for the dex specified</strong></em></td><td>-</td><td>Refer specified dex swap page for parametes</td></tr></tbody></table>

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

```json
{
    "dexId":"1000",
    "amountIn": "1000000000000000",
    "amountOutMin": "0",
    "path": ["0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2","0x6B175474E89094C44Da98b954EedeAC495271d0F"],
    "to": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
    "deadline": "1665990894",
    "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
    "gas": "173376"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": [
        {
            "chainId": "1",
            "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
            "to": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
            "value": "0",
            "gas": "173376",
            "data": "0x095ea7b30000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d00000000000000000000000000000000000000000000000000038d7ea4c68000",
            "nonce": 0,
            "referenceId": "497ef8cb1f224ab3ac8ee68211237298"
        },
        {
            "chainId": "1",
            "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
            "to": "0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D",
            "value": "0",
            "gas": "173376",
            "data": "0x38ed173900000000000000000000000000000000000000000000000000038d7ea4c68000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000063056e00436da25bcf48a40dfbbdcc708935100600000000000000000000000000000000000000000000000000000000634d00ee0000000000000000000000000000000000000000000000000000000000000002000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc20000000000000000000000006b175474e89094c44da98b954eedeac495271d0f",
            "nonce": 1,
            "referenceId": "497ef8cb1f224ab3ac8ee68211237298"
        }
    ]
}
```

{% endtab %}
{% endtabs %}

### /getliquiditybytick

This endpoint provides the amount of liquidity distributed across different ticks for UniswapV3, TraderJoe, and PancakeswapV3. It is currently available for Ethereum, Avalanche, Binance, Base, and Polygon. The response includes the liquidity for the ticks.

<mark style="color:green;">`GET`</mark> `https://historicallp.api.expand.network/dex/getliquiditybytick`

#### Request Body

<table data-full-width="false"><thead><tr><th>Name</th><th>Type</th><th>Description</th></tr></thead><tbody><tr><td>dexId</td><td>String</td><td>Refer to the <a href="/pages/TTKE85z6mWOr5G3jQ5gB">DexID</a><a href="/pages/5o1xMsQPqXw9GBfGTpdB"> </a>page for details. </td></tr><tr><td>poolAddress<mark style="color:red;">*</mark></td><td>String</td><td>Address of Pool</td></tr><tr><td>tickRange</td><td>String</td><td>Range of tick from 0 to 10. By default 10</td></tr></tbody></table>

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

```
https://historicallp.api.expand.network/dex/getliquiditybytick?dexId=1300&poolAddress=0xCBCdF9626bC03E24f779434178A73a0B4bad62eD&tickRange=10
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
  "status": 200,
  "msg": "success",
  "data": [
    {
      "tick": "262560",
      "statePrice": "25.250257597994153",
      "liquidityGross": "2044167987239799",
      "liquidityNet": "1163227399916217"
    },
    {
      "tick": "262620",
      "statePrice": "25.40220693843807",
      "liquidityGross": "2411973804718984",
      "liquidityNet": "-2411973804718984"
    },
    {
      "tick": "262680",
      "statePrice": "25.555070669635104",
      "liquidityGross": "2022304232475786",
      "liquidityNet": "-2008684309586072"
    },
    {
      "tick": "262740",
      "statePrice": "25.70885429414582",
      "liquidityGross": "761547836646808",
      "liquidityNet": "-616354343979458"
    },
    {
      "tick": "262800",
      "statePrice": "25.86356334764374",
      "liquidityGross": "6751078345053776",
      "liquidityNet": "-5770617130112686"
    },
    {
      "tick": "262860",
      "statePrice": "26.019203399114584",
      "liquidityGross": "10654503170437388",
      "liquidityNet": "9856004978433476"
    },
    {
      "tick": "262920",
      "statePrice": "26.175780051056766",
      "liquidityGross": "1626629983560750",
      "liquidityNet": "-1157703736282660"
    },
    {
      "tick": "262980",
      "statePrice": "26.333298939683043",
      "liquidityGross": "9243301499770587",
      "liquidityNet": "-9243301499770587"
    },
    {
      "tick": "263040",
      "statePrice": "26.49176573512339",
      "liquidityGross": "51050167223971",
      "liquidityNet": "-30118033626473"
    },
    {
      "tick": "263100",
      "statePrice": "26.651186141629125",
      "liquidityGross": "356436151693028",
      "liquidityNet": "-356436151693028"
    },
    {
      "tick": "263160",
      "statePrice": "26.81156589777824",
      "liquidityGross": "2860950064302042",
      "liquidityNet": "1502877954331514"
    },
    {
      "tick": "263220",
      "statePrice": "26.972910776681964",
      "liquidityGross": "79578452045188695",
      "liquidityNet": "70503716513247725"
    },
    {
      "tick": "263280",
      "statePrice": "27.135226586192555",
      "liquidityGross": "77253816342785751",
      "liquidityNet": "76835065928144335"
    },
    {
      "tick": "263340",
      "statePrice": "27.298519169112417",
      "liquidityGross": "4558359682524738",
      "liquidityNet": "4503266701174838"
    },
    {
      "tick": "263400",
      "statePrice": "27.462794403404356",
      "liquidityGross": "4802857523418237",
      "liquidityNet": "4085134427468871"
    },
    {
      "tick": "263460",
      "statePrice": "27.62805820240321",
      "liquidityGross": "3793081726775488",
      "liquidityNet": "-3235086979619026"
    },
    {
      "tick": "263520",
      "statePrice": "27.7943165150287",
      "liquidityGross": "724722108326432",
      "liquidityNet": "-724722108326432"
    },
    {
      "tick": "263580",
      "statePrice": "27.961575325999544",
      "liquidityGross": "241718641241365",
      "liquidityNet": "-241718641241365"
    },
    {
      "tick": "263640",
      "statePrice": "28.129840656048927",
      "liquidityGross": "3332273190612355",
      "liquidityNet": "-1871247095585359"
    },
    {
      "tick": "263700",
      "statePrice": "28.299118562141224",
      "liquidityGross": "116198079424872",
      "liquidityNet": "-65857887407734"
    },
    {
      "tick": "263760",
      "statePrice": "28.46941513768995",
      "liquidityGross": "936122685327105",
      "liquidityNet": "-936122685327105"
    }
  ]
}
```

{% endtab %}
{% endtabs %}

### /getusertokenids

This endpoint provides the token IDs of all current positional NFTs held by a given wallet.

Currently Available on :

| Dex Name      | Chain Name | DEX ID |
| ------------- | ---------- | ------ |
| UniswapV3     | Ethereum   | 1300   |
| UniswapV3     | Avalanche  | 1305   |
| UniswapV3     | Binance    | 1306   |
| UniswapV3     | Polygon    | 1307   |
| UniswapV3     | Arbitrum   | 1308   |
| UniswapV3     | Base       | 1309   |
| PancakeswapV3 | Binance    | 2800   |
| PancakeswapV3 | Arbitrum   | 2808   |
| PancakeswapV3 | Base       | 2809   |

<mark style="color:green;">`GET`</mark> `https://api.expand.network/dex/getusertokenids`

#### Request Body

<table data-full-width="false"><thead><tr><th>Name</th><th>Type</th><th>Description</th></tr></thead><tbody><tr><td>dexId</td><td>String</td><td>Refer to the <a href="/pages/TTKE85z6mWOr5G3jQ5gB">DexID</a><a href="/pages/5o1xMsQPqXw9GBfGTpdB"> </a>page for details. </td></tr><tr><td>address<mark style="color:red;">*</mark></td><td>String</td><td>Address of user</td></tr></tbody></table>

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

```
https://api.expand.network/dex/getusertokenids?dexId=1300&address=0xF802993d29eA093E062658C1B5EC2727DE8a3247
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "tokens": [
            {
                "tokenId": "818396",
                "liquidity": "42704482896171366122"
            }
        ]
    }
}
```

{% endtab %}
{% endtabs %}

Following is a sequence diagram for swap() process:-

<figure><img src="/files/HVAYVpRUZcYgRObJGZxK" alt=""><figcaption><p>Sequence Diagram for swap</p></figcaption></figure>

Following is a sequence diagram for addLiquidity() process:-

<figure><img src="/files/BqQh5OYKVPUfSNegaPOl" alt=""><figcaption><p>Sequence diagram for addLiquidity</p></figcaption></figure>

Following is a sequence diagram for removeLiquidity() process:-

<figure><img src="/files/lVN7ple1C0xq7dherr9I" alt=""><figcaption><p>Sequence diagram for removeLiquidity</p></figcaption></figure>


# Uniswap V2

### /getprice

Returns the swap quotation for the given token pair.

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

#### Query Parameters

| Name                                       | Type   | Description                                                             |
| ------------------------------------------ | ------ | ----------------------------------------------------------------------- |
| rpc                                        | String | Remote procedural call URL.                                             |
| dexId                                      | String | Refer to the [DEX ID](/ids/dex-ids) page for details.                   |
| path<mark style="color:red;">\*</mark>     | String | Comma separated values of token addresses whose price is to be fetched. |
| amountIn<mark style="color:red;">\*</mark> | String | Amount of token.                                                        |

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

```url
https://api.expand.network/dex/getprice?dexId=1000&path=0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,0xdac17f958d2ee523a2206206994597c13d831ec7&amountIn=10000000000000000000
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "amountIn": "10000000000000000000",
        "path": [
            "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
            "0xdac17f958d2ee523a2206206994597c13d831ec7"
        ],
        "amountsOut": [
            "10000000000000000000",
            "15682130807"
        ]
    }
}
```

{% endtab %}
{% endtabs %}

### /getuserliquidity

Returns the balance of a particular token pair of an account.

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

#### Query Parameters

| Name                                      | Type   | Description                                       |
| ----------------------------------------- | ------ | ------------------------------------------------- |
| rpc                                       | String | Remote procedural call URL.                       |
| tokenA<mark style="color:red;">\*</mark>  | String | Address of token.                                 |
| address<mark style="color:red;">\*</mark> | String | Public address of liquidity provider.             |
| dexId                                     | String | Refer to [DEX ID](/ids/dex-ids) page for details. |
| tokenB<mark style="color:red;">\*</mark>  | String | Address of token.                                 |

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

```url
https://api.expand.network/dex/getuserliquidity?tokenA=0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2&tokenB=0x6b175474e89094c44da98b954eedeac495271d0f&address=0x6fb447ae94f5180254d436a693907a1f57696900&dexId=1000
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "pairAddress": "0xA478c2975Ab1Ea89e8196811F51A7B7Ade33eB11",
        "liquidity": "2087379027763486",
        "tokenA": "91297717639957",
        "tokenB": "153006474077467970"
    }
}
```

{% endtab %}
{% endtabs %}

### /getpoolliquidity

Returns the total liquidity for a specified pool.

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

#### Query Parameters

| Name                                          | Type   | Description                                       |
| --------------------------------------------- | ------ | ------------------------------------------------- |
| rpc                                           | String | Remote procedural call URL.                       |
| poolAddress<mark style="color:red;">\*</mark> | String | Pool address whose liquidity is to be fetched.    |
| dexId                                         | String | Refer to [DEX ID](/ids/dex-ids) page for details. |

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

```url
https://api.expand.network/dex/getpoolliquidity?poolAddress=0x0d4a11d5eeaac28ec3f61d100daf4d40471f1852&dexId=1000
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "totalLiquidity": "312219425553389289"
    }
}
```

{% endtab %}
{% endtabs %}

### /gettokenliquidity

Returns the individual token liquidity within the specified liquidity pool.

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

#### Query Parameters

| Name                                          | Type   | Description                                       |
| --------------------------------------------- | ------ | ------------------------------------------------- |
| rpc                                           | String | Remote procedural call URL.                       |
| poolAddress<mark style="color:red;">\*</mark> | String | The pool address.                                 |
| dexId                                         | String | Refer to [DEX ID](/ids/dex-ids) page for details. |

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

```
https://api.expand.network/dex/gettokenliquidity?poolAddress=0x0d4a11d5eeaac28ec3f61d100daf4d40471f1852&dexId=1000
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "WETH": "16984981267096993883931",
        "USDT": "31586831096555"
    }
}
```

{% endtab %}
{% endtabs %}

### /getindividualposition

Returns the liquidity position for a specified user address across all the pools for the DEX.&#x20;

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

#### Query Parameters

| Name                                      | Type   | Description                                                                                                                          |
| ----------------------------------------- | ------ | ------------------------------------------------------------------------------------------------------------------------------------ |
| rpc                                       | String | Remote procedural call URL.                                                                                                          |
| address<mark style="color:red;">\*</mark> | String | The public address of the liquidity holder.                                                                                          |
| dexId                                     | String | Refer to [DEX ID](/ids/dex-ids) page for details.                                                                                    |
| poolAddresses                             | String | The pool Addresses whose liquidity is to be fetched. *(Comma-separated vaules)*                                                      |
| poolSize                                  | String | <p>The number of pools for which the user intends to fetch the individual position. <br><em>By default: 50, Maximum: 9,950</em> </p> |

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

```url
https://api.expand.network/dex/getindividualposition?dexId=1000&address=0x6Fb447Ae94F5180254D436A693907a1f57696900
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "aggregatedLiquidity": "2370404879481514",
        "poolAddresses": {
            "DAIWETH": {
                "0xA478c2975Ab1Ea89e8196811F51A7B7Ade33eB11": "2370404879481514"
            }
        }
    }
}
```

{% endtab %}
{% endtabs %}

### /getpoolindividualliquidity

Returns all user addresses, block numbers, and token position details for a specified pool address.

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

#### Query Parameters

| Name                                          | Type   | Description                                       |
| --------------------------------------------- | ------ | ------------------------------------------------- |
| rpc                                           | String | Remote procedural call URL.                       |
| poolAddress<mark style="color:red;">\*</mark> | String | The pool address.                                 |
| dexId                                         | String | Refer to [DEX ID](/ids/dex-ids) page for details. |
| endBlock                                      | String | Last block of the range.                          |
| startBlock                                    | String | Starting block of the range.                      |

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

```url
https://historicallp.api.expand.network/dex/getpoolindividualliquidity?poolAddress=0xa43fe16908251ee70ef74718545e4fe6c5ccec9f&dexId=1000&startBlock=21358069&endBlock=21359069
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": [
        {
            "userAddress": "0x93a01d90016335f33735c02c5fa91c7a17f72569",
            "liquidityData": [
                {
                    "blockNumber": "21359069",
                    "transactionHash": "0xd69c1ff2bc34c148db6b2b7007c3d5d7313fb106fcf0418e8e9148b45d5ab528",
                    "assets": {
                        "PEPE": "35060749841636831432190339",
                        "WETH": "234823806408693706"
                    }
                }
            ]
        }
    ]
}
```

{% endtab %}
{% endtabs %}

### /getpool

&#x20;Returns poolAddress, tickSpacing, poolFees, tokensLiquidity and liquidity data based on tokenA and tokenB

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

#### Query Parameters

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

```url
https://api.expand.network/dex/getpool?dexId=1000&tokenA=0xE0f63A424a4439cBE457D80E4f4b51aD25b2c56C&tokenB=0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": [
        {
            "poolAddress": "0x52c77b0CB827aFbAD022E6d6CAF2C44452eDbc39",
            "tickSpacing": "NA",
            "poolFees": "NA",
            "tokensLiquidity": {
                "WETH": "2910405301067921285758",
                "SPX": "908036884543124"
            },
            "liquidity": "275719418962876831"
        }
    ]
}
```

{% endtab %}
{% endtabs %}

### /gethistoricaltimeseries

Get the historical time series transactions for a specific pool address.

<mark style="color:blue;">`GET`</mark> `https://historicaltrade.api.expand.network/dex/gethistoricaltimeseries`

#### Query Parameters

| Name                                          | Type   | Description                                       |
| --------------------------------------------- | ------ | ------------------------------------------------- |
| dexId<mark style="color:red;">\*</mark>       | String | Refer to [DEX ID](/ids/dex-ids) page for details. |
| endBlock                                      | String | Last block of the range.                          |
| startBlock                                    | String | Starting block of the range.                      |
| poolAddress<mark style="color:red;">\*</mark> | String | Pool address whose time series is to be fetched.  |

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

```url
https://historicaltrade.api.expand.network/dex/gethistoricaltimeseries?poolAddress=0x517f9dd285e75b599234f7221227339478d0fcc8&dexId=1000
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "pair": "DAI/MKR",
        "priceData": [
            {
                "hash": "0x0700027e70d6d216810815c38a0959fe0635867ea2480ab1f6e20d3c98731ff0",
                "timestamp": 1703748059,
                "price": "0.0006244081987727642"
            },
            {
                "hash": "0x1c3b182bb64097b756b03aaa3717663af8064ecf3e05f02f7b6e339785558f1f",
                "timestamp": 1703747891,
                "price": "0.0006261003865058129"
            },
            {
                "hash": "0xec8964514a2cb94d565c84794cf7125333f2a18e376764fc24c5fd32df09a93e",
                "timestamp": 1703747855,
                "price": "0.0006274642197158615"
            },
            {
                "hash": "0x4ece3e41b95e78c882ce79ec2fa80bd7eef0503a6d7b759bc3336cc9fc40867b",
                "timestamp": 1703747843,
                "price": "0.00062797052848499"
            },
            {
                "hash": "0xf4e8eb0cc1661d952dc0e2d5d5ee2b16dd66b5f8a275fd3d148dd9ce53ed7964",
                "timestamp": 1703746955,
                "price": "0.0006318073557952554"
            },
            {
                "hash": "0xcae75ad1f4b23672972cc793b8dfa97e5c257f368ed3b6d72afb1bcb92444ea5",
                "timestamp": 1703746403,
                "price": "0.0006311921656383271"
            },
            {
                "hash": "0xbf1eef520c783cd699c1b040b8c1274c90ff4cc76b24994fb95123e3a9b360d5",
                "timestamp": 1703746355,
                "price": "0.0006303980131723315"
            },
            {
                "hash": "0xddf411be6d49bcddcc306cae01f4a3d7bbee240a295ba18e1a762e3a3290f302",
                "timestamp": 1703746319,
                "price": "0.000629607991380723"
            },
            {
                "hash": "0x31e8736e4e7eb1f862bfc4a66414859bb49102390bb97736facf4613035a81e5",
                "timestamp": 1703745695,
                "price": "0.0006261412353574351"
            },
            {
                "hash": "0x6dea226fba19c1da6e96feb49511e1fef3a27cbded505e3d597bb9e5f5121e9e",
                "timestamp": 1703745083,
                "price": "0.0006301614630221084"
            },
            {
                "hash": "0xc1ae0d5cb6774c9b76c3f005eb136b9fb5951c0d32f1027806d755ff45760b0d",
                "timestamp": 1703744891,
                "price": "0.000629113433416803"
            },
            {
                "hash": "0x20937932802b6eb955192a589c7e0143127554fa60f05a429dc25f5cc6342f5e",
                "timestamp": 1703743655,
                "price": "0.0006273380063042033"
            },
            {
                "hash": "0xaf2d9bfae18358fb785d4a7ae8b35099c63777c557e92db96c98bc0b41531071",
                "timestamp": 1703743631,
                "price": "0.0006255421068541817"
            },
            {
                "hash": "0x161d09fdd5e30165040ebd65832b35337fd608d47e119a139f608b2045410409",
                "timestamp": 1703742575,
                "price": "0.0006215430273569083"
            },
            {
                "hash": "0xc264388fba6edb499d5846a456217a4ddf0668d156356c8695ab34c6be55ce23",
                "timestamp": 1703742515,
                "price": "0.0006222533452384632"
            }
        ]
    }
}
```

{% endtab %}
{% endtabs %}

### /gethistoricaltransactions

Get the historical transactions focusing on swaps associated with a specific pool address.

<mark style="color:blue;">`GET`</mark> `https://historicaltrade.api.expand.network/dex/gethistoricaltransactions`

#### Query Parameters

| Name                                          | Type   | Description                                       |
| --------------------------------------------- | ------ | ------------------------------------------------- |
| dexId<mark style="color:red;">\*</mark>       | String | Refer to [DEX ID](/ids/dex-ids) page for details. |
| endBlock                                      | String | Last block of the range.                          |
| startBlock                                    | String | Starting block of the range.                      |
| poolAddress<mark style="color:red;">\*</mark> | String | Pool address whose transactions is to be fetched. |

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

```url
https://historicaltrade.api.expand.network/dex/gethistoricaltransactions?poolAddress=0xb4e16d0168e52d35cacd2c6185b44281ec28c9dc&dexId=1000
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "pair": "USDC/WETH",
        "transactions": [
            {
                "transactionHash": "0xe02a5ced07a09949bb143486c5d57947d0b904d7ffa620637e2b11a4810ff645",
                "transactionDetails": {
                    "blockHash": "0xa870d68aa85ea355176dd1f49912cb0df145a967a8a6789a2e9a9ca659aabfc5",
                    "blockNumber": "18879055",
                    "from": "0xcc4ea98876f3ee733712ac64137c34e637fc2dae",
                    "gas": "203074",
                    "gasPrice": "30150130093",
                    "maxFeePerGas": "41820000000",
                    "maxPriorityFeePerGas": "110000000",
                    "hash": "0xe02a5ced07a09949bb143486c5d57947d0b904d7ffa620637e2b11a4810ff645",
                    "input": "0xf305d719000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48000000000000000000000000000000000000000000000000000000e210966f48000000000000000000000000000000000000000000000000000000e0ef3985c30000000000000000000000000000000000000000000000164f0244c4ce3dffe6000000000000000000000000cc4ea98876f3ee733712ac64137c34e637fc2dae00000000000000000000000000000000000000000000000000000000658c7c4b",
                    "nonce": "212",
                    "to": "0x7a250d5630b4cf539739df2c5dacb4c659f2488d",
                    "transactionIndex": "88",
                    "value": "413589505640828440000",
                    "type": "2",
                    "accessList": [],
                    "chainId": "1",
                    "v": "0x0",
                    "r": "0xc01569d522e3ed0c193fbc1e6cf689d61ab1affdcdba0eab79fa09afe441415f",
                    "s": "0x4fe253f33af8c7efa878194c1d074b4b4ff662016eb47a7dd0d1948f30b45e73",
                    "yParity": "0x0"
                }
            }
        ]
    }
}
```

{% endtab %}
{% endtabs %}

### /gethistoricalpoolchartdata

Get the data the OHCLV (Open, High, Close, Low, and Volume) within the specified time interval for pool on Uniswap V2.

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

#### Query Parameter

| Name                                          | Type   | Description                                                                                                                |
| --------------------------------------------- | ------ | -------------------------------------------------------------------------------------------------------------------------- |
| dexId<mark style="color:red;">\*</mark>       | String | Refer to [DEX ID](/ids/dex-ids) page for details.                                                                          |
| interval                                      | String | <p>A number values representing the number of unix epoch seconds or in format of . For example 1m,1h<br>By default 15m</p> |
| limit                                         | String | <p>No of iteration.<br>Start limit is 100 and maximum limit is 500.<br>By default 100</p>                                  |
| poolAddress<mark style="color:red;">\*</mark> | String | Pool address whose transactions is to be fetched.                                                                          |
| rpc                                           | String | Remote procedural call URL.                                                                                                |

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

```url
https://api.expand.network/dex/gethistoricalpoolchartdata?limit=100&interval=15m&dexId=1000&poolAddress=0x517F9dD285e75b599234F7221227339478d0FcC8
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "pair": "DAI/MKR",
        "chartData": [
            {
                "1717125831-1717131231": {
                    "open": "0.000362632162257",
                    "high": "0.000362632162257",
                    "low": "0.000361794833636",
                    "close": "0.000361794833636",
                    "volume": "116481.29177121137"
                }
            },
            {
                "1717131231-1717136631": {
                    "open": "0.000361794833636",
                    "high": "0.000365928955432",
                    "low": "0.000361794833636",
                    "close": "0.000365928955432",
                    "volume": "235921.476776501"
                }
            },
            {
                "1717136631-1717142031": {
                    "open": "0.000365928955432",
                    "high": "0.000365928955432",
                    "low": "0.000362839374156",
                    "close": "0.000364908316209",
                    "volume": "134774.33877705893"
                }
            },
            {
                "1717142031-1717147431": {
                    "open": "0.000364908316209",
                    "high": "0.000364994397092",
                    "low": "0.00036205860551",
                    "close": "0.000362058605510",
                    "volume": "107370.6898340171"
                }
            },
            {
                "1717147431-1717152831": {
                    "open": "0.000362058605510",
                    "high": "0.00036205860551",
                    "low": "0.000359033408766",
                    "close": "0.000359033408766",
                    "volume": "336427.99136697256"
                }
            },
            {
                "1717152831-1717158231": {
                    "open": "0.000359033408766",
                    "high": "0.000359033408766",
                    "low": "0.000356260063139",
                    "close": "0.000356260063139",
                    "volume": "298827.4098542738"
                }
            },
            {
                "1717158231-1717163631": {
                    "open": "0.000356260063139",
                    "high": "0.000361164606828",
                    "low": "0.000355876159312",
                    "close": "0.000361164606828",
                    "volume": "411818.4971458898"
                }
            },
            {
                "1717163631-1717169031": {
                    "open": "0.000361164606828",
                    "high": "0.000363586360976",
                    "low": "0.000361164606828",
                    "close": "0.000363586360976",
                    "volume": "261654.1491814648"
                }
            },
            {
                "1717169031-1717174431": {
                    "open": "0.000363586360976",
                    "high": "0.000367226232551",
                    "low": "0.000363586360976",
                    "close": "0.000365009517321",
                    "volume": "439832.30726375314"
                }
            },
            {
                "1717174431-1717179831": {
                    "open": "0.000365009517321",
                    "high": "0.000365009517321",
                    "low": "0.000363441412141",
                    "close": "0.000363441412141",
                    "volume": "149974.2380735921"
                }
            },
            {
                "1717179831-1717185231": {
                    "open": "0.000363441412141",
                    "high": "0.000363441412141",
                    "low": "0.00036319351977",
                    "close": "0.000363193519770",
                    "volume": "34293.96745051358"
                }
            },
            {
                "1717185231-1717190631": {
                    "open": "0.000363193519770",
                    "high": "0.00036319351977",
                    "low": "0.000362332243839",
                    "close": "0.000362332243839",
                    "volume": "92751.61460970972"
                }
            },
            {
                "1717190631-1717196031": {
                    "open": "0.000362332243839",
                    "high": "0.000365110121117",
                    "low": "0.000362332243839",
                    "close": "0.000365110121117",
                    "volume": "84731.33451069353"
                }
            },
            {
                "1717196031-1717201431": {
                    "open": "0.000365110121117",
                    "high": "0.000370459107108",
                    "low": "0.000365110121117",
                    "close": "0.000370459107108",
                    "volume": "562503.5842784377"
                }
            },
            {
                "1717201431-1717206831": {
                    "open": "0.000370459107108",
                    "high": "0.000370787680558",
                    "low": "0.000370459107108",
                    "close": "0.000370787680558",
                    "volume": "40674.1448916809"
                }
            },
            {
                "1717206831-1717212231": {
                    "open": "0.000370787680558",
                    "high": "0.000370787680558",
                    "close": "0.000370787680558",
                    "low": "0.000370787680558",
                    "volume": "0"
                }
            },
            {
                "1717212231-1717217631": {
                    "open": "0.000370787680558",
                    "high": "0.000370787680558",
                    "low": "0.000367479192595",
                    "close": "0.000367479192595",
                    "volume": "141155.25179660812"
                }
            },
            {
                "1717217631-1717223031": {
                    "open": "0.000367479192595",
                    "high": "0.000367479192595",
                    "low": "0.000367318759906",
                    "close": "0.000367318759906",
                    "volume": "6405.706904196158"
                }
            },
            {
                "1717223031-1717228431": {
                    "open": "0.000367318759906",
                    "high": "0.000367318759906",
                    "close": "0.000367318759906",
                    "low": "0.000367318759906",
                    "volume": "0"
                }
            },
            {
                "1717228431-1717233831": {
                    "open": "0.000367318759906",
                    "high": "0.000367318759906",
                    "low": "0.000367258190562",
                    "close": "0.000367258190562",
                    "volume": "6561.94365795704"
                }
            },
            {
                "1717233831-1717239231": {
                    "open": "0.000367258190562",
                    "high": "0.000370245962397",
                    "low": "0.000367258190562",
                    "close": "0.000370245962397",
                    "volume": "91673.4718149821"
                }
            },
            {
                "1717239231-1717244631": {
                    "open": "0.000370245962397",
                    "high": "0.000372848707784",
                    "low": "0.000370245962397",
                    "close": "0.000372848707784",
                    "volume": "302051.36778228875"
                }
            },
            {
                "1717244631-1717250031": {
                    "open": "0.000372848707784",
                    "high": "0.000373255574321",
                    "low": "0.000372848707784",
                    "close": "0.000373255574321",
                    "volume": "15550.594379299635"
                }
            },
            {
                "1717250031-1717255431": {
                    "open": "0.000373255574321",
                    "high": "0.000373527782488",
                    "low": "0.000371102274044",
                    "close": "0.000371102274044",
                    "volume": "61022.01807920491"
                }
            },
            {
                "1717255431-1717260831": {
                    "open": "0.000371102274044",
                    "high": "0.000373300780092",
                    "low": "0.000371102274044",
                    "close": "0.000373300780092",
                    "volume": "32143.056071166695"
                }
            },
            {
                "1717260831-1717266231": {
                    "open": "0.000373300780092",
                    "high": "0.000373593989008",
                    "low": "0.000373300780092",
                    "close": "0.000373593989008",
                    "volume": "29080.840115908824"
                }
            },
            {
                "1717266231-1717271631": {
                    "open": "0.000373593989008",
                    "high": "0.000374035210903",
                    "low": "0.000373593989008",
                    "close": "0.000374035210903",
                    "volume": "52720.216943570405"
                }
            },
            {
                "1717271631-1717277031": {
                    "open": "0.000374035210903",
                    "high": "0.000374274458383",
                    "low": "0.000374035210903",
                    "close": "0.000374274458383",
                    "volume": "6877.1558868414995"
                }
            },
            {
                "1717277031-1717282431": {
                    "open": "0.000374274458383",
                    "high": "0.000374274458383",
                    "low": "0.000371999332044",
                    "close": "0.000371999332044",
                    "volume": "13045.768939033636"
                }
            },
            {
                "1717282431-1717287831": {
                    "open": "0.000371999332044",
                    "high": "0.000371999332044",
                    "low": "0.000371909662179",
                    "close": "0.000371909662179",
                    "volume": "5780.75988915263"
                }
            },
            {
                "1717287831-1717293231": {
                    "open": "0.000371909662179",
                    "high": "0.000371909662179",
                    "low": "0.000370992647421",
                    "close": "0.000370992647421",
                    "volume": "97770.29458585857"
                }
            },
            {
                "1717293231-1717298631": {
                    "open": "0.000370992647421",
                    "high": "0.000373227199414",
                    "low": "0.000370992647421",
                    "close": "0.000373227199414",
                    "volume": "7193.474706512013"
                }
            },
            {
                "1717298631-1717304031": {
                    "open": "0.000373227199414",
                    "high": "0.000373797899718",
                    "low": "0.000373227199414",
                    "close": "0.000373797899718",
                    "volume": "59414.48037483847"
                }
            },
            {
                "1717304031-1717309431": {
                    "open": "0.000373797899718",
                    "high": "0.000374304087103",
                    "low": "0.000373797899718",
                    "close": "0.000374304087103",
                    "volume": "54211.467425947136"
                }
            },
            {
                "1717309431-1717314831": {
                    "open": "0.000374304087103",
                    "high": "0.00037558397742",
                    "low": "0.000374304087103",
                    "close": "0.000375583977420",
                    "volume": "129562.12395260207"
                }
            },
            {
                "1717368831-1717374231": {
                    "open": "0.000378870323560",
                    "high": "0.00037887032356",
                    "low": "0.000378289301449",
                    "close": "0.000378289301449",
                    "volume": "57860.0799234203"
                }
            },
        ]
    }
}
```

{% endtab %}
{% endtabs %}

### /getpoolchartdata

Get the data for the pool and obtain the OHCL (Open, High, Close, Low) prices within the specified time interval.

<mark style="color:blue;">`GET`</mark> `https://historicaltrade.api.expand.network/dex/getpoolchartdata`

#### Query Parameters

| Name                                          | Type   | Description                                         |
| --------------------------------------------- | ------ | --------------------------------------------------- |
| dexId<mark style="color:red;">\*</mark>       | String | Refer to [DEX ID](/ids/dex-ids) page for details.   |
| interval                                      | String | 15 mins(by default), 30 mins, 60 mins, and 90 mins. |
| poolAddress<mark style="color:red;">\*</mark> | String | Pool address whose transactions is to be fetched.   |

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

```url
https://historicaltrade.api.expand.network/dex/getpoolchartdata?dexId=1000&poolAddress=0xb4e16d0168e52d35cacd2c6185b44281ec28c9dc&interval=60
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "pair": "USDC/WETH",
        "chartData": {
            "18882523 to 18882800": [
                {
                    "open_price": "419005433942909",
                    "close_price": "419447697581705",
                    "low_price": "418943818861548",
                    "high_price": "422263827518504",
                    "transactions": [
                        {
                            "blockNumber": "18882529",
                            "price": "418986597113367",
                            "amount": {
                                "token0": "2400000000",
                                "token1": "1005567833072081114"
                            }
                        },
                        {
                            "blockNumber": "18882531",
                            "price": "421498241454276",
                            "amount": {
                                "token0": "679221347",
                                "token1": "286290603318704585"
                            }
                        },
                        {
                            "blockNumber": "18882538",
                            "price": "418975454284176",
                            "amount": {
                                "token0": "376508407",
                                "token1": "157747780864636534"
                            }
                        },
                        {
                            "blockNumber": "18882543",
                            "price": "418968454985399",
                            "amount": {
                                "token0": "513835000",
                                "token1": "215280656067422305"
                            }
                        },
                        {
                            "blockNumber": "18882543",
                            "price": "418963677671102",
                            "amount": {
                                "token0": "93100000",
                                "token1": "39005518391179607"
                            }
                        },
                        {
                            "blockNumber": "18882548",
                            "price": "418960589212921",
                            "amount": {
                                "token0": "300000000",
                                "token1": "125688176763876449"
                            }
                        },
                        {
                            "blockNumber": "18882560",
                            "price": "418954948262823",
                            "amount": {
                                "token0": "417601922",
                                "token1": "174956391625965577"
                            }
                        },
                        {
                            "blockNumber": "18882561",
                            "price": "418947749154645",
                            "amount": {
                                "token0": "498134300",
                                "token1": "208692243761724622"
                            }
                        },
                        {
                            "blockNumber": "18882565",
                            "price": "421805099375960",
                            "amount": {
                                "token0": "42147657986",
                                "token1": "17778097065248708608"
                            }
                        }
                    ]
                }
            ]
        }
    }
}
```

{% endtab %}
{% endtabs %}

### /getpooltradedata

Get the trade data from the pool within a specified block range, for the specified event type

<mark style="color:blue;">`GET`</mark> `https://historicaltrade.api.expand.network/dex/getpooltradedata`

#### Query Parameters

| Name                                          | Type   | Description                                       |
| --------------------------------------------- | ------ | ------------------------------------------------- |
| dexId<mark style="color:red;">\*</mark>       | String | Refer to [DEX ID](/ids/dex-ids) page for details. |
| endBlock                                      | String | Last block of the range.                          |
| startBlock                                    | String | Starting block of the range.                      |
| poolAddress<mark style="color:red;">\*</mark> | String | Pool address whose data is to be fetched.         |
| eventType                                     | String | Transfer, Swap, Burn or Mint(by default).         |

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

```url
https://historicaltrade.api.expand.network/dex/getpooltradedata?poolAddress=0xb4e16d0168e52d35cacd2c6185b44281ec28c9dc&dexId=1000&eventType=Burn
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "pair": "USDC/WETH",
        "transactions": [
            {
                "blockNumber": "18880403",
                "transactionHash": "0x47d3993957a8497a7549276c96b3c18987586075f5882124cfd477fd989cd3fd",
                "values": {
                    "0": "0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D",
                    "1": "1596637993",
                    "2": "671389840781055738",
                    "3": "0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D",
                    "sender": "0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D",
                    "amount0": "1596637993",
                    "amount1": "671389840781055738",
                    "to": "0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D"
                },
                "eventType": "Burn",
                "data": {
                    "data": "0x000000000000000000000000000000000000000000000000000000005f2ac32900000000000000000000000000000000000000000000000009514180c58f96fa",
                    "topics": [
                        "0xdccd412f0b1252819cb1fd330b93224ca42612892bb3f4f789976e6d81936496",
                        "0x0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d",
                        "0x0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d"
                    ]
                }
            },
            {
                "blockNumber": "18879029",
                "transactionHash": "0x22c9fcffc57264eb4270f2ecf0d4f23b39a3871adcee89414285f3a1e1f152e2",
                "values": {
                    "0": "0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D",
                    "1": "970041191908",
                    "2": "413293955455183879313",
                    "3": "0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D",
                    "sender": "0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D",
                    "amount0": "970041191908",
                    "amount1": "413293955455183879313",
                    "to": "0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D"
                },
                "eventType": "Burn",
                "data": {
                    "data": "0x000000000000000000000000000000000000000000000000000000e1daf5ede4000000000000000000000000000000000000000000000016679b16c2e259fc91",
                    "topics": [
                        "0xdccd412f0b1252819cb1fd330b93224ca42612892bb3f4f789976e6d81936496",
                        "0x0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d",
                        "0x0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d"
                    ]
                }
            }
        ]
    }
}
```

{% endtab %}
{% endtabs %}

### /swap

Initiate a swap transaction on a specified DEX.

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

#### Request Body

| Name                                           | Type   | Description                                                                                 |
| ---------------------------------------------- | ------ | ------------------------------------------------------------------------------------------- |
| dexId                                          | String | Refer to the [DEX ID](/ids/dex-ids) page for details.                                       |
| path<mark style="color:red;">\*</mark>         | Array  | Comma-separated values of token addresses, inside an array, to swap.                        |
| amountIn<mark style="color:red;">\*</mark>     | String | Amount of token to be swapped.                                                              |
| amountOutmin<mark style="color:red;">\*</mark> | String | Minimum amount accepted as the result of swap.                                              |
| to<mark style="color:red;">\*</mark>           | String | Address of the recipient of the token.                                                      |
| deadline<mark style="color:red;">\*</mark>     | String | Deadline for the transaction to be executed (UNIX Timestamp).                               |
| from<mark style="color:red;">\*</mark>         | String | Address of the sender of the token.                                                         |
| gas                                            | String | Maximum gas limit provided by the sender, for the transaction.                              |
| rpc                                            | String | Remote procedural call URL.                                                                 |
| gasPriority                                    | String | low, medium, or high.                                                                       |
| slippage                                       | String | <p>Percentage of total swap value. <br>By default, 1.</p><p>0 <= slippage  value <= 100</p> |

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

```json
{
    "dexId":"1000",
    "amountIn": "1000000000000000",
    "amountOutMin": "0",
    "path": ["0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2","0x6B175474E89094C44Da98b954EedeAC495271d0F"],
    "to": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
    "deadline": "1665990894",
    "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
    "gas": "173376"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
        "to": "0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D",
        "value": "0",
        "gas": "173376",
        "data": "0x38ed173900000000000000000000000000000000000000000000000000038d7ea4c68000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000063056e00436da25bcf48a40dfbbdcc708935100600000000000000000000000000000000000000000000000000000000634d00ee0000000000000000000000000000000000000000000000000000000000000002000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc20000000000000000000000006b175474e89094c44da98b954eedeac495271d0f",
        "estimationCheck": true,
        "referenceId": "f6e53dc2b6404645bf503e547811a0d4"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
**With gasPriority:**

<pre class="language-json"><code class="lang-json">{
    "dexId": "1000",
    "amountIn": "10000000000",
    "amountOutMin": "0",
    "path": [
        "0x6B175474E89094C44Da98b954EedeAC495271d0F",
        "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"
    ],
    "to": "0x356dB816602c85e2075774bB77D13995c8Bab023",
    "deadline": "1765990894",
    "from": "0x356dB816602c85e2075774bB77D13995c8Bab023",
    "gas": "273376",
    "gasPriority": "high"
<strong>}
</strong></code></pre>

{% endtab %}

{% tab title="Sample Response" %}
**With gasPriority:**

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x356dB816602c85e2075774bB77D13995c8Bab023",
        "to": "0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D",
        "value": "0",
        "gas": "273376",
        "data": "0x38ed173900000000000000000000000000000000000000000000000000000002540be400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000356db816602c85e2075774bb77d13995c8bab023000000000000000000000000000000000000000000000000000000006942e1ee00000000000000000000000000000000000000000000000000000000000000020000000000000000000000006b175474e89094c44da98b954eedeac495271d0f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
        "gasPrice": "35333757810",
        "estimationCheck": true,
        "referenceId": "c65d3c66ac72477786f5aa4a3b7dd192"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
**With Slippage:**

```json
{
    "dexId": "1000",
    "amountIn": "10000000000000",
    "amountOutMin": "0",
    "path": [
        "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
        "0x6B175474E89094C44Da98b954EedeAC495271d0F"
    ],
    "to": "0x22cf65ae3fa16d6379e72f4b4c2401c1b7c69731",
    "deadline": "1701931771",
    "from": "0x22cf65ae3fa16d6379e72f4b4c2401c1b7c69731",
    "gas": "173376",
    "slippage": "10"
}
```

{% endtab %}

{% tab title="Sample Response" %}
**With Slippage:**

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x22cf65ae3fa16d6379e72f4b4c2401c1b7c69731",
        "to": "0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D",
        "value": "0",
        "gas": "173376",
        "data": "0x38ed1739000000000000000000000000000000000000000000000000000009184e72a000000000000000000000000000000000000000000000000000004f2c564cb7cb0000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000022cf65ae3fa16d6379e72f4b4c2401c1b7c697310000000000000000000000000000000000000000000000000000000065716afb0000000000000000000000000000000000000000000000000000000000000002000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc20000000000000000000000006b175474e89094c44da98b954eedeac495271d0f",
        "estimationCheck": true,
        "referenceId": "431c127d298b4a8484ced40bc34a55ab"
    }
}
```

{% endtab %}
{% endtabs %}

### /addliquidity

Add liquidity to a specified pool in a specified DEX.

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

#### Request Body

| Name                                             | Type   | Description                                                                            |
| ------------------------------------------------ | ------ | -------------------------------------------------------------------------------------- |
| dexId                                            | String | Refer to the [DEX ID](/ids/dex-ids) page for details.                                  |
| tokenA<mark style="color:red;">\*</mark>         | String | Address of the first token being added.                                                |
| tokenB<mark style="color:red;">\*</mark>         | String | Address of the second token being added.                                               |
| amountADesired<mark style="color:red;">\*</mark> | String | Desired amount of token A.                                                             |
| amountBDesired<mark style="color:red;">\*</mark> | String | Desired amount of token B.                                                             |
| amountAMin<mark style="color:red;">\*</mark>     | String | Minimum amount of token A.                                                             |
| amountBMin<mark style="color:red;">\*</mark>     | String | Minimum amount of token B.                                                             |
| deadline<mark style="color:red;">\*</mark>       | String | Deadline for the transaction to be executed (UNIX Timestamp).                          |
| to<mark style="color:red;">\*</mark>             | String | Address of the recipient of the token.                                                 |
| from<mark style="color:red;">\*</mark>           | String | Address of the sender of the token.                                                    |
| gas                                              | String | Maximum gas limit provided by the sender, for the transaction.                         |
| rpc                                              | String | Remote procedural call URL.                                                            |
| gasPriority                                      | String | low, medium, or high.                                                                  |
| slippage                                         | String | <p>Percentage of total value. <br>By default, 1.</p><p>0 <= slippage  value <= 100</p> |

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

```json
{
    "dexId": "1000",
    "tokenA": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2", 
    "tokenB": "0x6B175474E89094C44Da98b954EedeAC495271d0F", 
    "amountADesired": "1000000000000000",
    "amountBDesired": "1332066335118442626",
    "amountAMin": "0",
    "amountBMin": "0",
    "to": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",  
    "deadline": "166978170",
    "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",  
    "gas": "230000"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
        "to": "0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D",
        "value": "0",
        "gas": "230000",
        "data": "0xe8e33700000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc20000000000000000000000006b175474e89094c44da98b954eedeac495271d0f00000000000000000000000000000000000000000000000000038d7ea4c68000000000000000000000000000000000000000000000000000127c734631fdc0820000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000063056e00436da25bcf48a40dfbbdcc70893510060000000000000000000000000000000000000000000000000000000009f3e27a",
        "estimationCheck": true,
        "referenceId": "a7fa313845d84addb36a61ae0cfed8fe"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
**With gasPriority:**

```json
{
    "dexId": "1000",
    "tokenA": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48", 
    "tokenB": "0x6B175474E89094C44Da98b954EedeAC495271d0F", 
    "amountADesired": "1000",
    "amountBDesired": "997726184637093",
    "amountAMin": "0",
    "amountBMin": "0",
    "poolFees":"3000",
    "from": "0x356dB816602c85e2075774bB77D13995c8Bab023",
    "to":"0x356dB816602c85e2075774bB77D13995c8Bab023",
    "deadline":"1699965863785",
    "gas": "0",
    "gasPriority":"medium"
}
```

{% endtab %}

{% tab title="Sample Response" %}
**With gasPriority:**

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x356dB816602c85e2075774bB77D13995c8Bab023",
        "to": "0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D",
        "value": "0",
        "gas": "0",
        "data": "0xe8e33700000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb480000000000000000000000006b175474e89094c44da98b954eedeac495271d0f00000000000000000000000000000000000000000000000000000000000003e800000000000000000000000000000000000000000000000000038b6d3ad182a500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000356db816602c85e2075774bb77d13995c8bab0230000000000000000000000000000000000000000000000000000018bcddc8769",
        "gasPrice": "28418670209",
        "estimationCheck": true,
        "referenceId": "9aad6d0b4428499ca9247ea8ee76e63b"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
**With Slippage:**

```json
{
    "dexId": "1000",
    "tokenA": "0xdAC17F958D2ee523a2206206994597C13D831ec7",
    "tokenB": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
    "amountADesired": "1000000",
    "amountBDesired": "640706397834636",
    "amountAMin": "100",
    "amountBMin": "100",
    "to": "0x22cf65Ae3fa16d6379E72F4B4c2401c1B7C69731",
    "deadline": "1712015780705",
    "from": "0x22cf65Ae3fa16d6379E72F4B4c2401c1B7C69731",
    "gas": "230000",
    "slippage": "5.00001"
}
```

{% endtab %}

{% tab title="Sample Response" %}
**With Slippage:**

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x22cf65Ae3fa16d6379E72F4B4c2401c1B7C69731",
        "to": "0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D",
        "value": "0",
        "gas": "230000",
        "data": "0xe8e33700000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec7000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc200000000000000000000000000000000000000000000000000000000000f4240000000000000000000000000000000000000000000000000000246b8153f8d8c000000000000000000000000000000000000000000000000000000000000005f000000000000000000000000000000000000000000000000000000000000005f00000000000000000000000022cf65ae3fa16d6379e72f4b4c2401c1b7c697310000000000000000000000000000000000000000000000000000018e9c17ab61",
        "estimationCheck": true,
        "referenceId": "a451275a6d5f4f789ac6c09c2bfe55cb"
    }
}
```

{% endtab %}
{% endtabs %}

### /removeliquidity

Remove liquidity from a specified pool for a specified DEX.

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

#### Request Body

| Name                                         | Type   | Description                                                                         |
| -------------------------------------------- | ------ | ----------------------------------------------------------------------------------- |
| dexId                                        | String | Refer to the [DEX ID](/ids/dex-ids) page for details.                               |
| tokenA<mark style="color:red;">\*</mark>     | String | Address of the first token being removed.                                           |
| tokenB<mark style="color:red;">\*</mark>     | String | Address of the second token being removed.                                          |
| liquidity<mark style="color:red;">\*</mark>  | String | Total amount of liquidity to be removed from the given pool.                        |
| amountAMin<mark style="color:red;">\*</mark> | String | Minimum amount of Token A.                                                          |
| amountBMin<mark style="color:red;">\*</mark> | String | Minimum amount of Token B.                                                          |
| deadline<mark style="color:red;">\*</mark>   | String | Deadline for the transaction to be executed (UNIX Timestamp).                       |
| to<mark style="color:red;">\*</mark>         | String | Address of the recipient of the token.                                              |
| from<mark style="color:red;">\*</mark>       | String | Address of the sender of the token.                                                 |
| gas                                          | String | Maximum gas limit provided by the sender, for the transaction.                      |
| rpc                                          | String | Remote procedural call URL.                                                         |
| gasPriority                                  | String | low, medium, or high.                                                               |
| slippage                                     | String | <p>Percentage of total value. <br>By default, 1. <br>0 <= slippage value <= 100</p> |

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

```json
{
    "dexId": "1000",
    "tokenA": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
    "tokenB": "0x6B175474E89094C44Da98b954EedeAC495271d0F",
    "liquidity": "20759430672661383",
    "amountAMin": "0",
    "amountBMin": "0",
    "to": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
    "deadline": "1669720626",
    "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
    "gas": "420000"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
        "to": "0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D",
        "value": "0",
        "gas": "420000",
        "data": "0xbaa2abde000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc20000000000000000000000006b175474e89094c44da98b954eedeac495271d0f0000000000000000000000000000000000000000000000000049c0979afbbb870000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000063056e00436da25bcf48a40dfbbdcc7089351006000000000000000000000000000000000000000000000000000000006385ea32",
        "estimationCheck": true,
        "referenceId": "6d8ff104b4e84b79a3d7a750e103be44"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
**With gasPriority:**

```json
{
    "dexId": "1000",
    "tokenA": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
    "tokenB": "0x6B175474E89094C44Da98b954EedeAC495271d0F",
    "liquidity": "20759430672661383",
    "amountAMin": "0",
    "amountBMin": "0",
    "to": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
    "deadline": "1669720626",
    "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
    "gas": "420000",
    "gasPriority": "high"
}
```

{% endtab %}

{% tab title="Sample Response" %}
**With gasPriority:**

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
        "to": "0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D",
        "value": "0",
        "gas": "420000",
        "data": "0xbaa2abde000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc20000000000000000000000006b175474e89094c44da98b954eedeac495271d0f0000000000000000000000000000000000000000000000000049c0979afbbb870000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000063056e00436da25bcf48a40dfbbdcc7089351006000000000000000000000000000000000000000000000000000000006385ea32",
        "gasPrice": "35169117159",
        "estimationCheck": true,
        "referenceId": "d92319bdba68444b8f52f01735ec6550"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
**With slippage:**

```json
{
    "dexId": "1000",
    "tokenA": "0x6B175474E89094C44Da98b954EedeAC495271d0F",
    "tokenB": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
    "liquidity": "3834508059710445",
    "amountAMin": "100",
    "amountBMin": "100",
    "to": "0x4970798F8E5a77598CA4Da778eb6D12303AEefc9",
    "deadline": "1669720626",
    "from": "0x4970798F8E5a77598CA4Da778eb6D12303AEefc9",
    "gas": "420000",
    "slippage": "5.01"
}
```

{% endtab %}

{% tab title="Sample Response" %}
**With slippage:**

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x4970798F8E5a77598CA4Da778eb6D12303AEefc9",
        "to": "0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D",
        "value": "0",
        "gas": "420000",
        "data": "0xbaa2abde0000000000000000000000006b175474e89094c44da98b954eedeac495271d0f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2000000000000000000000000000000000000000000000000000d9f76fac993ed000000000000000000000000000000000000000000000000000000000000005f000000000000000000000000000000000000000000000000000000000000005f0000000000000000000000004970798f8e5a77598ca4da778eb6d12303aeefc9000000000000000000000000000000000000000000000000000000006385ea32",
        "estimationCheck": true,
        "referenceId": "4e1324d014cf4d8daab6a023fe3322cc"
    }
}
```

{% endtab %}
{% endtabs %}


# Uniswap V3

### Supported Chains

Available on **Ethereum Mainnet and Testnet, Arbitrum, Avalanche, Base, Binance Smart Chain, zkSync Era and Polygon.**

### Available Endpoints:

*Click on the endpoint to jump to the section with full details*

* [**/**<mark style="color:blue;">**getprice**</mark>](#getprice) <mark style="color:blue;">`GET`</mark> - Returns the swap quotation for a given token pair on Uniswap V3.
* [<mark style="color:blue;">**/getuserliquidity**</mark>](#getuserliquidity) <mark style="color:blue;">`GET`</mark> - Returns the balance of a particular token pair of accounts.&#x20;
* [**/getpoolliquidity**](#getpoolliquidity) <mark style="color:blue;">`GET`</mark> - Returns the total liquidity for a specified pool.
* [**/gettokenliquidity**](#gettokenliquidity) <mark style="color:blue;">`GET`</mark> - Returns the individual token liquidity within the specified liquidity pool.
* [<mark style="color:blue;">**/getliquidityholders**</mark>](#getliquidityholders) <mark style="color:blue;">`GET`</mark> - Returns the total number of liquidity holders in a specified pool.&#x20;
* [<mark style="color:blue;">**/getindividualposition**</mark>](#getindividualposition) <mark style="color:blue;">`GET`</mark> - Returns the liquidity position for a specified user address across all the pools for a given DEX. &#x20;
* [**/**<mark style="color:blue;">**getpoolindividualliquidity**</mark>](#getpoolindividualliquidity) <mark style="color:blue;">`GET`</mark> - Returns all user addresses, block numbers, and token position details for a specified pool address.&#x20;
* [<mark style="color:blue;">**/gethistoricaltimeseries**</mark>](#gethistoricaltimeseries) <mark style="color:blue;">`GET`</mark> - Returns historical time series transactions for a specific pool address. Available on Ethereum only.&#x20;
* [**/**<mark style="color:blue;">**gethistoricaltransactions**</mark>](#gethistoricaltransactions) <mark style="color:blue;">`GET`</mark> - Returns historical transactions focusing on swaps associated with a specific pool address. Available on Ethereum only.
* [**/**<mark style="color:blue;">**gethistoricalpoolchartdata**</mark> ](#gethistoricalpoolchartdata)<mark style="color:blue;">`GET`</mark> - Returns OHCLV (Open, High, Close, Low, and Volume) data for a specified time interval. Available on Ethereum only.&#x20;
* [**/**<mark style="color:blue;">**getpooltradedata**</mark>](#getpooltradedata) <mark style="color:blue;">`GET`</mark> - Returns trade data for a specified pool, block range, and event type. Available on Ethereum only.&#x20;
* [**/**<mark style="color:blue;">**swap**</mark>](#swap) <mark style="color:green;">`POST`</mark> - Initiate a swap transaction on a specified DEX.&#x20;
* [**/**<mark style="color:blue;">**addliquidity**</mark>](#addliquidity) <mark style="color:green;">`POST`</mark> - Add liquidity to a specified pool in a specified DEX.&#x20;
* [<mark style="color:blue;">**/removeliquidity**</mark>](#removeliquidity) <mark style="color:green;">`POST`</mark> - Remove liquidity from a specified pool in a specified DEX.&#x20;

### DEX IDs

Many endpoints have a parameter where you can provide a DEX ID.&#x20;

Below is a list of DEX IDs related to Uniswap V3. Please see the [DEX ID page](broken://pages/8x8qwIu19Aq8uFsjOXvI) for a complete DEX ID list and more information.

| DEX Name           | Chain               | DEX ID |
| ------------------ | ------------------- | ------ |
| Uniswap V3         | Ethereum            | 1300   |
| Uniswap V3 Testnet | Ethereum Testnet    | 1302   |
| Uniswap V3         | Avalanche           | 1305   |
| Uniswap V3         | Binance Smart Chain | 1306   |
| Uniswap V3         | Polygon             | 1307   |
| Uniswap V3         | Arbitrum            | 1308   |
| Uniswap V3         | Base                | 1309   |
| Uniswap V3         | zkSync Era          | 1310   |

## Endpoint Details

### /getprice

Returns the swap quotation for a given token pair on Uniswap V3

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

#### Query Parameters

| Name                                       | Type   | Description                                                                                                                      |
| ------------------------------------------ | ------ | -------------------------------------------------------------------------------------------------------------------------------- |
| rpc                                        | String | Remote procedural call URL.                                                                                                      |
| dexId<mark style="color:red;">\*</mark>    | String | <p>See the <a href="#dex-ids">DEX ID</a> page for a list of all DEX IDs. <br>The DEX ID for Uniswap V3 on Ethereum is 1300. </p> |
| path<mark style="color:red;">\*</mark>     | String | Comma separated values of token addresses whose price is to be fetched.                                                          |
| amountIn<mark style="color:red;">\*</mark> | String | Amount of token.                                                                                                                 |
| poolFees                                   | String | Different pool based on the fees. By default, it is selected as 3000.                                                            |

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

```url
https://api.expand.network/dex/getprice?dexId=1300&path=0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,0xdac17f958d2ee523a2206206994597c13d831ec7&amountIn=10000000000000000000
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "amountIn": "10000000000000000000",
        "path": [
            "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
            "0xdac17f958d2ee523a2206206994597c13d831ec7"
        ],
        "amountsOut": [
            "10000000000000000000",
            "15671654661"
        ]
    }
}
```

{% endtab %}
{% endtabs %}

[<mark style="color:blue;">back to top</mark>](#endpoints-available)

### /getuserliquidity

Returns the balance of a particular token pair of an account.

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

#### Query Parameters

| Name                                      | Type   | Description                                                             |
| ----------------------------------------- | ------ | ----------------------------------------------------------------------- |
| rpc                                       | String | Remote procedural call URL.                                             |
| tokenId<mark style="color:red;">\*</mark> | String | The token ID for uniswap V3 liquidity position.                         |
| dexId<mark style="color:red;">\*</mark>   | String | Refer to [DexId](broken://pages/8x8qwIu19Aq8uFsjOXvI) page for details. |

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

```url
https://api.expand.network/dex/getuserliquidity?dexId=1300&tokenId=3238
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "liquidity": "0",
        "tokenV3": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"
    }
}
```

{% endtab %}
{% endtabs %}

[back to top](#endpoints-available)

### /getpoolliquidity

Returns the total liquidity for a specified pool.

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

#### Query Parameters

| Name                                          | Type   | Description                                                              |
| --------------------------------------------- | ------ | ------------------------------------------------------------------------ |
| rpc                                           | String | Remote procedural call URL.                                              |
| poolAddress<mark style="color:red;">\*</mark> | String | Pool address whose liquidity is to be fetched.                           |
| dexId<mark style="color:red;">\*</mark>       | String | Refer to [DEX ID](broken://pages/8x8qwIu19Aq8uFsjOXvI) page for details. |

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

```url
https://api.expand.network/dex/getpoolliquidity?dexId=1300&poolAddress=0xC12aF0C4AA39D3061c56cD3CB19f5e62dEeaeBdE
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "totalLiquidity": "3560688052732075"
    }
}
```

{% endtab %}
{% endtabs %}

[back to top](#endpoints-available)

### /gettokenliquidity

Returns the individual token liquidity within the specified liquidity pool.

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

#### Query Parameters

| Name                                          | Type   | Description                                                              |
| --------------------------------------------- | ------ | ------------------------------------------------------------------------ |
| rpc                                           | String | Remote procedural call URL.                                              |
| poolAddress<mark style="color:red;">\*</mark> | String | The pool address.                                                        |
| dexId<mark style="color:red;">\*</mark>       | String | Refer to [DEX ID](broken://pages/8x8qwIu19Aq8uFsjOXvI) page for details. |

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

```
https://api.expand.network/dex/gettokenliquidity?dexId=1300&poolAddress=0xC12aF0C4AA39D3061c56cD3CB19f5e62dEeaeBdE
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "wstETH": "1464524814018114",
        "WETH": "586998274859845123"
    }
}
```

{% endtab %}
{% endtabs %}

[back to top](#endpoints-available)

### /getindividualposition

Returns the liquidity position for a specified user address across all the pools for a given DEX.&#x20;

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

#### Query Parameters

| Name                                      | Type   | Description                                                                     |
| ----------------------------------------- | ------ | ------------------------------------------------------------------------------- |
| rpc                                       | String | Remote procedural call URL.                                                     |
| address<mark style="color:red;">\*</mark> | String | The public address of the liquidity holder.                                     |
| dexId<mark style="color:red;">\*</mark>   | String | Refer to [DEX ID](broken://pages/8x8qwIu19Aq8uFsjOXvI) page for details.        |
| poolAddresses                             | String | The pool Addresses whose liquidity is to be fetched. *(Comma-separated vaules)* |

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

```url
https://api.expand.network/dex/getindividualposition?address=0xc36442b4a4522e871399cd717abdd847ab11fe88&poolAddresses=0x971194A53Dddc8Ccfa96d5DD1E42Cd9d15746827&dexId=1300
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "aggregatedLiquidity": "21292566467643316140077",
        "poolAddresses": {
            "JBUCKETSWETH": {
                "0x971194A53Dddc8Ccfa96d5DD1E42Cd9d15746827": "21292566467643316140077"
            }
        }
    }
}
```

{% endtab %}
{% endtabs %}

[back to top](#endpoints-available)

### /getpoolindividualliquidity

Returns all user addresses, block numbers, and token position details for a specified pool address.

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

#### Query Parameters

| Name                                          | Type   | Description                                                              |
| --------------------------------------------- | ------ | ------------------------------------------------------------------------ |
| rpc                                           | String | Remote procedural call URL.                                              |
| poolAddress<mark style="color:red;">\*</mark> | String | The pool address.                                                        |
| dexId<mark style="color:red;">\*</mark>       | String | Refer to [DEX ID](broken://pages/8x8qwIu19Aq8uFsjOXvI) page for details. |
| endBlock                                      | String | Last block of the range.                                                 |
| startBlock                                    | String | Starting block of the range.                                             |

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

```url
https://historicallp.api.expand.network/dex/getpoolindividualliquidity?poolAddress=0xa6cc3c2531fdaa6ae1a3ca84c2855806728693e8&dexId=1300&startBlock=21372439&endBlock=21372539
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": [
        {
            "userAddress": "0xee41d6528b3e1fdb71ddb214a771a28f25d8b206",
            "liquidityData": [
                {
                    "blockNumber": "21372539",
                    "transactionHash": "0xf24fd919f93cf4777433473c5ae67001d8633797a373f54a566334a61ef37750",
                    "assets": {
                        "LINK": "774232304240452363065",
                        "WETH": "7078087636696543717"
                    }
                }
            ]
        }
    ]
}
```

{% endtab %}
{% endtabs %}

[back to top](#endpoints-available)

### /getpool

&#x20;Returns poolAddress, tickSpacing, poolFees, tokensLiquidity and liquidity data based on tokenA and tokenB

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

#### Query Parameters

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

```url
https://api.expand.network/dex/getpool?dexId=1300&tokenA=0xE0f63A424a4439cBE457D80E4f4b51aD25b2c56C&tokenB=0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": [
        {
            "poolAddress": "0xE60FbA68Aa34040a1da64Cc661d06920853C16CF",
            "poolFees": "500",
            "tickSpacing": "10",
            "tokensLiquidity": {
                "WETH": "36074166594774",
                "SPX": "309134096"
            },
            "liquidity": "0"
        },
        {
            "poolAddress": "0x7C706586679Af2BA6D1A9fC2DA9C6aF59883fdD3",
            "poolFees": "3000",
            "tickSpacing": "60",
            "tokensLiquidity": {
                "WETH": "119412980234699172767",
                "SPX": "48109198986022"
            },
            "liquidity": "202665626831103007"
        },
        {
            "poolAddress": "0x00Ed26e794b949E18B142F9108429b74CE08aC99",
            "poolFees": "10000",
            "tickSpacing": "200",
            "tokensLiquidity": {
                "WETH": "1494028163550308",
                "SPX": "188507950137"
            },
            "liquidity": "7746865271654"
        }
    ]
}
```

{% endtab %}
{% endtabs %}

### /gethistoricaltimeseries

Get historical time series transactions for a specific pool address. Available on Ethereum only.

<mark style="color:blue;">`GET`</mark> `https://historicaltrade.api.expand.network/dex/gethistoricaltimeseries`

#### Query Parameters

| Name                                          | Type   | Description                                                              |
| --------------------------------------------- | ------ | ------------------------------------------------------------------------ |
| dexId<mark style="color:red;">\*</mark>       | String | Refer to [DEX ID](broken://pages/8x8qwIu19Aq8uFsjOXvI) page for details. |
| endBlock                                      | String | Last block of the range.                                                 |
| startBlock                                    | String | Starting block of the range.                                             |
| poolAddress<mark style="color:red;">\*</mark> | String | Pool address whose time series is to be fetched.                         |

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

```url
https://historicaltrade.api.expand.network/dex/gethistoricaltimeseries?dexId=1300&poolAddress=0x88e6a0c2ddd26feeb64f039a2c41296fcb3f5640
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "pair": "USDC/WETH",
        "priceData": [
            {
                "hash": "0x38987fde3da3213ed19d4ba5f35ad19427a7bb948a29d9d53ef314e8290303c4",
                "timestamp": 1703751443,
                "price": 0.00041976984339351357
            },
            {
                "hash": "0xb761d35868ea8c5b9e3971dd7aa5fd21d3aebe2ecc438107ea887ed626e9e1f0",
                "timestamp": 1703751443,
                "price": 0.000419760992238418
            },
            {
                "hash": "0x39aad80e4e83ae62204cb25d7c97961c4ec4ddaa89f73e9c34ac3769602a24bf",
                "timestamp": 1703751431,
                "price": 0.0004197578615022704
            },
            {
                "hash": "0x5b4ab81a8addb871f537e9c2b778dd34864de232f3e56d33ba7fd835cbac1903",
                "timestamp": 1703751407,
                "price": 0.0004197562885194616
            },
            {
                "hash": "0x331285df3da92120335b89c8afc41b66ef813a22754a2ad2929e9dc4739cc4ac",
                "timestamp": 1703751383,
                "price": 0.00041974726650371503
            },
            {
                "hash": "0xc99d3ece4711f4e355eb538ce36650c0cee4ae6bddf965dfdfed4836a76e5d7b",
                "timestamp": 1703751347,
                "price": 0.00041973876117544354
            },
            {
                "hash": "0x710533e3977ea754f485b3bd70583e8e9efce49c6474d4d2b6c9a84d3ea43c4c",
                "timestamp": 1703751299,
                "price": 0.00041932018198753956
            },
            {
                "hash": "0x6b4c65707ced66be9bdfdc476e262f09f2faf288ff87701327734c6a4ea3cd54",
                "timestamp": 1703751287,
                "price": 0.00041973930702795154
            },
            {
                "hash": "0x269db22d154768f562e0a9064f8ed1bb2f6d157b6b46124b3c021ab1553bce8f",
                "timestamp": 1703751263,
                "price": 0.0004194194863550368
            },
            {
                "hash": "0x1e484c122e784479e3aa6b5c706100d2320945b0518b80125fec937a23e03f94",
                "timestamp": 1703751203,
                "price": 0.000419632602069267
            },
            {
                "hash": "0x94928f3b93dccd23a966a09a6164c43fca9396865ae5537cb169064442fb6038",
                "timestamp": 1703751155,
                "price": 0.0004197467760294749
            },
            {
                "hash": "0x945dba738ad85406361b2295bd7dc4df5d755d8d59c9ae1ec262a93dc26f2b27",
                "timestamp": 1703751155,
                "price": 0.0004197513702011714
            },
            {
                "hash": "0xb998b508ca1d6965190e7a5dc93621cd88a5a8958cfccfbab747764028de8377",
                "timestamp": 1703751155,
                "price": 0.0004201607446060059
            },
            {
                "hash": "0x6ca4feeb1c7cc7a5cbcd1dd67ec77d3c31fccbca490bb2e16e3773cb46f8f3a4",
                "timestamp": 1703751143,
                "price": 0.0004199672013049922
            },
            {
                "hash": "0x95d7526c279240fe98ec4a710b4b3c510d527ccf8caacdab3ee8aaffc3c874c8",
                "timestamp": 1703751095,
                "price": 0.00042029036707271275
            },
            {
                "hash": "0x6f9b15d401da224600f65d14c29a49598967ec211e3847f4e8541364291a52d2",
                "timestamp": 1703751083,
                "price": 0.0004204936256776377
            }
        ]
    }
}
```

{% endtab %}
{% endtabs %}

[back to top](#endpoints-available)

### /gethistoricaltransactions

Get the historical transactions focusing on swaps associated with a specific pool address. Available on Ethereum only.

<mark style="color:blue;">`GET`</mark> `https://historicaltrade.api.expand.network/dex/gethistoricaltransactions`

#### Query Parameters

| Name                                          | Type   | Description                                                              |
| --------------------------------------------- | ------ | ------------------------------------------------------------------------ |
| dexId<mark style="color:red;">\*</mark>       | String | Refer to [DEX ID](broken://pages/8x8qwIu19Aq8uFsjOXvI) page for details. |
| endBlock                                      | String | Last block of the range.                                                 |
| startBlock                                    | String | Starting block of the range.                                             |
| poolAddress<mark style="color:red;">\*</mark> | String | Pool address whose transactions is to be fetched.                        |

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

```url
https://historicaltrade.api.expand.network/dex/gethistoricaltransactions?poolAddress=0x8ad599c3a0ff1de082011efddc58f1908eb6e6d8&dexId=1300&startBlock=18709774&endBlock=18711525
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "pair": "USDC/WETH",
        "transactions": [
            {
                "transactionHash": "0xd8c46225c354721655d84389d0017bb92bca0d49219c63b1c0e6b0cfe07442c7",
                "transactionDetails": {
                    "blockHash": "0x99073be585a7b262b39280b278ba3757f9d2d357f6eb0a3a32bd38fdeb51d38e",
                    "blockNumber": "18711525",
                    "from": "0x8d5acf995dae10bdbbada2044c7217ac99edf5bf",
                    "gas": "456262",
                    "gasPrice": "44449889625",
                    "maxFeePerGas": "58008491929",
                    "maxPriorityFeePerGas": "100000000",
                    "hash": "0xd8c46225c354721655d84389d0017bb92bca0d49219c63b1c0e6b0cfe07442c7",
                    "input": "0xac9650d800000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000001e0000000000000000000000000000000000000000000000000000000000000016488316456000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc20000000000000000000000000000000000000000000000000000000000000bb8000000000000000000000000000000000000000000000000000000000003096c00000000000000000000000000000000000000000000000000000000000309a800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000043a77aabd0077ffc700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000043a77aabd0077ffc70000000000000000000000008d5acf995dae10bdbbada2044c7217ac99edf5bf00000000000000000000000000000000000000000000000000000000656d825b00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000412210e8a00000000000000000000000000000000000000000000000000000000",
                    "nonce": "531",
                    "to": "0xc36442b4a4522e871399cd717abdd847ab11fe88",
                    "transactionIndex": "126",
                    "value": "78000000000000000000",
                    "type": "2",
                    "accessList": [],
                    "chainId": "1",
                    "v": "0x1",
                    "r": "0x1ac7d0ed1e2047f0535c7d1762c0ef862fc5f247285de80ad3667500261710c0",
                    "s": "0x3b29d6d0489d3a3352aafd9638f3003b0d2ecd48986506b110a0c266e5269adc",
                    "yParity": "0x1"
                }
            },
            {
                "transactionHash": "0xc8280fdcf97f561ccae5bc4a571ffbbf187a1c7d4dc44062e3055647c47edfea",
                "transactionDetails": {
                    "blockHash": "0x3429b4e7bc88936e97ed52e261ef012f4b87ab44e941a61c62dfc0be8c15756d",
                    "blockNumber": "18709774",
                    "from": "0x9c5c934672d289ffa05252841078bae754dc7eb1",
                    "gas": "444856",
                    "gasPrice": "36458104843",
                    "maxFeePerGas": "54302243486",
                    "maxPriorityFeePerGas": "616099394",
                    "hash": "0xc8280fdcf97f561ccae5bc4a571ffbbf187a1c7d4dc44062e3055647c47edfea",
                    "input": "0x88316456000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc20000000000000000000000000000000000000000000000000000000000000bb80000000000000000000000000000000000000000000000000000000000030a980000000000000000000000000000000000000000000000000000000000030bc40000000000000000000000000000000000000000000000000000002e90edd00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002e90edd00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000009c5c934672d289ffa05252841078bae754dc7eb100000000000000000000000000000000000000000000000000000000656d2fb7",
                    "nonce": "87",
                    "to": "0xc36442b4a4522e871399cd717abdd847ab11fe88",
                    "transactionIndex": "73",
                    "value": "0",
                    "type": "2",
                    "accessList": [],
                    "chainId": "1",
                    "v": "0x1",
                    "r": "0x222ac5e262c781fc92abac25683602ed20be24d2c08853d5bd85ddab50283363",
                    "s": "0x7e43e2b4c406ffc3d0e9e956d87d97b37858e4176cc7501fee28ff7d7fe1976c",
                    "yParity": "0x1"
                }
            },
            {
                "transactionHash": "0x5eddbfc2dadaa56c29cb20ac863e3381875702000231c725450414f0b841dff8",
                "transactionDetails": {
                    "blockHash": "0x6cae8b44cc42e7754f51494b0e01c2db1a21f4874484557d31d515fc6e2928ca",
                    "blockNumber": "18710651",
                    "from": "0xe63ef6b5cbaad5be3d6b984ebe8627b275ba2011",
                    "gas": "484500",
                    "gasPrice": "36104085907",
                    "maxFeePerGas": "42198419459",
                    "maxPriorityFeePerGas": "2480176656",
                    "hash": "0x5eddbfc2dadaa56c29cb20ac863e3381875702000231c725450414f0b841dff8",
                    "input": "0x88316456000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc20000000000000000000000000000000000000000000000000000000000000bb800000000000000000000000000000000000000000000000000000000000308f40000000000000000000000000000000000000000000000000000000000030b4c00000000000000000000000000000000000000000000000000000000029f6300000000000000000000000000000000000000000000000000007d43134c4d848600000000000000000000000000000000000000000000000000000000020364b4000000000000000000000000000000000000000000000000006ccabcaeb83d2d000000000000000000000000e63ef6b5cbaad5be3d6b984ebe8627b275ba201100000000000000000000000000000000000000000000000000000000656d5933",
                    "nonce": "16",
                    "to": "0xc36442b4a4522e871399cd717abdd847ab11fe88",
                    "transactionIndex": "52",
                    "value": "0",
                    "type": "2",
                    "accessList": [],
                    "chainId": "1",
                    "v": "0x0",
                    "r": "0xe9d43c3d98a9ab874af15be82bf0564be4bb12c32d25ab2c2d855614dc9dee21",
                    "s": "0x66f23ef791845f58be1f34c92c77f265b69ff37eed121ae15368574af7a9226b",
                    "yParity": "0x0"
                }
            },
            {
                "transactionHash": "0x3d6193001b90ba7cbbeafd0fdee714d5b53bcfd115c660cbcce6e1205b7ad75d",
                "transactionDetails": {
                    "blockHash": "0xb0d4a62d43dda996d815806a53e905b21897b73a9152f0d41ec70e985b263b84",
                    "blockNumber": "18709824",
                    "from": "0x24affae9c683b7615d4130300288e348e4b5d091",
                    "gas": "634666",
                    "gasPrice": "41077993391",
                    "maxFeePerGas": "61616990086",
                    "maxPriorityFeePerGas": "0",
                    "hash": "0x3d6193001b90ba7cbbeafd0fdee714d5b53bcfd115c660cbcce6e1205b7ad75d",
                    "input": "0x1cff79cd000000000000000000000000ebc926a16ad7837e9a26c2eb22557ebbe2e6bbd5000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000e43123dd7600000000000000000000000000000000000000000000000000000000656d2ff30000000000000000000000008ad599c3a0ff1de082011efddc58f1908eb6e6d8000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb480000000000000000000000000000000000000000000000001edc280dae4314000000000000000000000000000000000000000000000000001edc280dae431400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
                    "nonce": "77830",
                    "to": "0x5050e08626c499411b5d0e0b5af0e83d3fd82edf",
                    "transactionIndex": "0",
                    "value": "9201664",
                    "type": "2",
                    "accessList": [
                        {
                            "address": "0x8ad599c3a0ff1de082011efddc58f1908eb6e6d8",
                            "storageKeys": [
                                "0x4599bbaa72a0f54af58cb2739cf429f4c2b98d872f82d2ddc59ada0987fe7786",
                                "0x0d77e2d712980b9f161379006fa1cd3d3620dc913971aa0df321a1d9aed458d8",
                                "0xc4e36790523d49948822155ef94f257b8a953b27f5171ffa2bd285edc0b036a4",
                                "0x0000000000000000000000000000000000000000000000000000000000000002",
                                "0x0000000000000000000000000000000000000000000000000000000000000004",
                                "0x00000000000000000000000000000000000000000000000000000000000002c7",
                                "0x4599bbaa72a0f54af58cb2739cf429f4c2b98d872f82d2ddc59ada0987fe7788",
                                "0x0d77e2d712980b9f161379006fa1cd3d3620dc913971aa0df321a1d9aed458d9",
                                "0xc4e36790523d49948822155ef94f257b8a953b27f5171ffa2bd285edc0b036a3",
                                "0x0000000000000000000000000000000000000000000000000000000000000001",
                                "0x4599bbaa72a0f54af58cb2739cf429f4c2b98d872f82d2ddc59ada0987fe7787",
                                "0x0d77e2d712980b9f161379006fa1cd3d3620dc913971aa0df321a1d9aed458da",
                                "0xc4e36790523d49948822155ef94f257b8a953b27f5171ffa2bd285edc0b036a1",
                                "0xc4e36790523d49948822155ef94f257b8a953b27f5171ffa2bd285edc0b036a2",
                                "0x00000000000000000000000000000000000000000000000000000000000002c8",
                                "0x0000000000000000000000000000000000000000000000000000000000000000"
                            ]
                        },
                        {
                            "address": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
                            "storageKeys": [
                                "0x10d6a54a4754c8869d6886b5f5d7fbfa5b4522237ea5c60d11bc4e7a1ff9390b",
                                "0x037115957c78e37f987a242ae6019b6d91ee5fe4035e6bd8dbead7487b2a0cdd",
                                "0xc58bfc1a94e2de102d0112db2443321126998201ea69c15631ad885e318d85cd",
                                "0xfc581e2e1d759407b26acc35e3d0231aeae791f35404c37eeed17c8cdf81bcfd",
                                "0x7050c9e0f4ca769c69bd3a8ef740bc37934f8e2c036e5a723fd8ee048ed3f8c3",
                                "0x861bc8718284ac24ff11398a41cd3dcfa30f40a29e63274364e80d202c20402c",
                                "0xb95dd07fa1ed783744109930e951789ad0898d42d588ae87377539fa5fd5e26c",
                                "0x0000000000000000000000000000000000000000000000000000000000000001",
                                "0x14f06863b217bb724f48eeeae7a44747755f25ffffde525fba804b12abcd115f"
                            ]
                        },
                        {
                            "address": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
                            "storageKeys": [
                                "0x46907554d4b34c274883fc6378e0b8984501b080086b3ca0038d889b8150bd13",
                                "0x037115957c78e37f987a242ae6019b6d91ee5fe4035e6bd8dbead7487b2a0cdd",
                                "0xfc581e2e1d759407b26acc35e3d0231aeae791f35404c37eeed17c8cdf81bcfd"
                            ]
                        },
                        {
                            "address": "0x9a5f2e0db22ff289d0cc40ef654a19a5b012d8aa",
                            "storageKeys": []
                        },
                        {
                            "address": "0xebc926a16ad7837e9a26c2eb22557ebbe2e6bbd5",
                            "storageKeys": []
                        },
                        {
                            "address": "0xa2327a938febf5fec13bacfb16ae10ecbc4cbdcf",
                            "storageKeys": []
                        }
                    ],
                    "chainId": "1",
                    "v": "0x0",
                    "r": "0x2157a9e7e20319376325fb86f904a8811c7707295e39254dc526f965557329c1",
                    "s": "0x3e7d0676a70b97527bd6dab06745e6f2bd39181e7b1fa3b05ebd64a2c7264537",
                    "yParity": "0x0"
                }
            }
        ]
    }
}
```

{% endtab %}
{% endtabs %}

[back to top](#endpoints-available)

### /gethistoricalpoolchartdata

Returns OHCLV (Open, High, Close, Low, and Volume) data for a specified time interval. Available on Ethereum only.

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

#### Query Parameters

| Name                                          | Type   | Description                                                                                                                |
| --------------------------------------------- | ------ | -------------------------------------------------------------------------------------------------------------------------- |
| dexId<mark style="color:red;">\*</mark>       | String | Refer to [DEX ID](broken://pages/8x8qwIu19Aq8uFsjOXvI) page for details.                                                   |
| interval                                      | String | <p>A number values representing the number of unix epoch seconds or in format of . For example 1m,1h<br>By default 15m</p> |
| limit                                         | String | <p>No of iteration.<br>Start limit is 100 and maximum limit is 500.<br>By default 100</p>                                  |
| poolAddress<mark style="color:red;">\*</mark> | String | Pool address whose transactions is to be fetched.                                                                          |
| rpc                                           | String | Remote procedural call URL.                                                                                                |

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

```url
https://api.expand.network/dex/gethistoricalpoolchartdata?dexId=1300&poolAddress=0xCBCdF9626bC03E24f779434178A73a0B4bad62eD&interval=15m&limit=100
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "pair": "WBTC/WETH",
        "chartData": [
            {
                "1719838149-1719839049": {
                    "open": "18.163221842751827",
                    "high": "18.163221842751827",
                    "close": "18.163221842751827",
                    "low": "18.163221842751827",
                    "volume": "0"
                }
            },
            {
                "1719843549-1719844449": {
                    "open": "18.152023639366099",
                    "high": "18.156148725301474",
                    "low": "18.1520236393661",
                    "close": "18.156148725301474",
                    "volume": "201601.9224350474"
                }
            },
            {
                "1719844449-1719845349": {
                    "open": "18.156148725301474",
                    "high": "18.16017042666642",
                    "low": "18.156148725301474",
                    "close": "18.160170426666419",
                    "volume": "129231.68773261308"
                }
            },
            {
                "1719845349-1719846249": {
                    "open": "18.160170426666419",
                    "high": "18.16017042666642",
                    "low": "18.050222752064755",
                    "close": "18.050222752064755",
                    "volume": "94235.4810194197"
                }
            },
            {
                "1719848049-1719848949": {
                    "open": "18.050222752064755",
                    "high": "18.050222752064755",
                    "close": "18.050222752064755",
                    "low": "18.050222752064755",
                    "volume": "0"
                }
            },
            {
                "1719848949-1719849849": {
                    "open": "18.050222752064755",
                    "high": "18.173391151776787",
                    "low": "18.050222752064755",
                    "close": "18.173391151776787",
                    "volume": "639066.9529722976"
                }
            },
            {
                "1719849849-1719850749": {
                    "open": "18.173391151776787",
                    "high": "18.217273210574778",
                    "low": "18.173391151776787",
                    "close": "18.217273210574778",
                    "volume": "1876403.8841387564"
                }
            },
            {
                "1719850749-1719851649": {
                    "open": "18.217273210574778",
                    "high": "18.219566652896766",
                    "low": "18.217273210574778",
                    "close": "18.219566652896766",
                    "volume": "153407.83996704724"
                }
            },
            {
                "1719851649-1719852549": {
                    "open": "18.219566652896766",
                    "high": "18.224300456903297",
                    "low": "18.219566652896766",
                    "close": "18.224300456903297",
                    "volume": "241583.0271503234"
                }
            },
            {
                "1719852549-1719853449": {
                    "open": "18.224300456903297",
                    "high": "18.227219275978346",
                    "low": "18.224300456903297",
                    "close": "18.227219275978346",
                    "volume": "1153.246906113717"
                }
            },
            {
                "1719853449-1719854349": {
                    "open": "18.227219275978346",
                    "high": "18.227219275978346",
                    "close": "18.227219275978346",
                    "low": "18.227219275978346",
                    "volume": "0"
                }
            },
            {
                "1719854349-1719855249": {
                    "open": "18.227219275978346",
                    "high": "18.228972258667778",
                    "low": "18.227219275978346",
                    "close": "18.228972258667778",
                    "volume": "145781.1514006681"
                }
            },
            {
                "1719855249-1719856149": {
                    "open": "18.228972258667778",
                    "high": "18.236323534365766",
                    "low": "18.228972258667778",
                    "close": "18.236323534365766",
                    "volume": "364975.32283550635"
                }
            },
            {
                "1719856149-1719857049": {
                    "open": "18.236323534365766",
                    "high": "18.243247391452595",
                    "low": "18.236323534365766",
                    "close": "18.243247391452595",
                    "volume": "313983.57175287284"
                }
            },
            {
                "1719857049-1719857949": {
                    "open": "18.243247391452595",
                    "high": "18.243247391452595",
                    "close": "18.243247391452595",
                    "low": "18.243247391452595",
                    "volume": "0"
                }
            },
            {
                "1719857949-1719858849": {
                    "open": "18.243247391452595",
                    "high": "18.2750111708498",
                    "low": "18.243247391452595",
                    "close": "18.275011170849801",
                    "volume": "1229027.6233920907"
                }
            },
            {
                "1719858849-1719859749": {
                    "open": "18.275011170849801",
                    "high": "18.278777750420854",
                    "low": "18.2750111708498",
                    "close": "18.278777750420854",
                    "volume": "168149.5774921048"
                }
            },
            {
                "1719859749-1719860649": {
                    "open": "18.278777750420854",
                    "high": "18.30066739721457",
                    "low": "18.278777750420854",
                    "close": "18.300667397214571",
                    "volume": "989199.0190272806"
                }
            },
            {
                "1719860649-1719861549": {
                    "open": "18.300667397214571",
                    "high": "18.300667397214571",
                    "close": "18.300667397214571",
                    "low": "18.300667397214571",
                    "volume": "0"
                }
            },
            {
                "1719861549-1719862449": {
                    "open": "18.300667397214571",
                    "high": "18.300667397214571",
                    "close": "18.300667397214571",
                    "low": "18.300667397214571",
                    "volume": "0"
                }
            },
            {
                "1719862449-1719863349": {
                    "open": "18.300667397214571",
                    "high": "18.30066739721457",
                    "low": "18.18889036012872",
                    "close": "18.188890360128720",
                    "volume": "307947.5661696072"
                }
            },
            {
                "1719863349-1719864249": {
                    "open": "18.188890360128720",
                    "high": "18.18889036012872",
                    "low": "18.181132527860964",
                    "close": "18.181132527860964",
                    "volume": "339841.65016079927"
                }
            },
            {
                "1719864249-1719865149": {
                    "open": "18.181132527860964",
                    "high": "18.181132527860964",
                    "close": "18.181132527860964",
                    "low": "18.181132527860964",
                    "volume": "0"
                }
            },
            {
                "1719866949-1719867849": {
                    "open": "18.181132527860964",
                    "high": "18.181132527860964",
                    "close": "18.181132527860964",
                    "low": "18.181132527860964",
                    "volume": "0"
                }
            },
            {
                "1719867849-1719868749": {
                    "open": "18.181132527860964",
                    "high": "18.181132527860964",
                    "close": "18.181132527860964",
                    "low": "18.181132527860964",
                    "volume": "0"
                }
            },
            {
                "1719868749-1719869649": {
                    "open": "18.181132527860964",
                    "high": "18.181132527860964",
                    "close": "18.181132527860964",
                    "low": "18.181132527860964",
                    "volume": "0"
                }
            },
            {
                "1719869649-1719870549": {
                    "open": "18.181132527860964",
                    "high": "18.181132527860964",
                    "close": "18.181132527860964",
                    "low": "18.181132527860964",
                    "volume": "0"
                }
            },
            {
                "1719870549-1719871449": {
                    "open": "18.181132527860964",
                    "high": "18.181132527860964",
                    "close": "18.181132527860964",
                    "low": "18.181132527860964",
                    "volume": "0"
                }
            },
            {
                "1719871449-1719872349": {
                    "open": "18.181132527860964",
                    "high": "18.181132527860964",
                    "close": "18.181132527860964",
                    "low": "18.181132527860964",
                    "volume": "0"
                }
            },
            {
                "1719872349-1719873249": {
                    "open": "18.181132527860964",
                    "high": "18.32482665886121",
                    "low": "18.181132527860964",
                    "close": "18.324826658861209",
                    "volume": "1576669.406919741"
                }
            },
            {
                "1719873249-1719874149": {
                    "open": "18.324826658861209",
                    "high": "18.324826658861209",
                    "close": "18.324826658861209",
                    "low": "18.324826658861209",
                    "volume": "0"
                }
            },
            {
                "1719874149-1719875049": {
                    "open": "18.324826658861209",
                    "high": "18.324826658861209",
                    "close": "18.324826658861209",
                    "low": "18.324826658861209",
                    "volume": "0"
                }
            },
            {
                "1719883149-1719884049": {
                    "open": "18.324826658861209",
                    "high": "18.324826658861209",
                    "close": "18.324826658861209",
                    "low": "18.324826658861209",
                    "volume": "0"
                }
            },
            {
                "1719884049-1719884949": {
                    "open": "18.324826658861209",
                    "high": "18.32482665886121",
                    "low": "18.20688113164695",
                    "close": "18.206881131646949",
                    "volume": "848119.3291747774"
                }
            },
            {
                "1719884949-1719885849": {
                    "open": "18.206881131646949",
                    "high": "18.206881131646949",
                    "close": "18.206881131646949",
                    "low": "18.206881131646949",
                    "volume": "0"
                }
            },
            {
                "1719885849-1719886749": {
                    "open": "18.206881131646949",
                    "high": "18.206881131646949",
                    "close": "18.206881131646949",
                    "low": "18.206881131646949",
                    "volume": "0"
                }
            },
            {
                "1719886749-1719887649": {
                    "open": "18.206881131646949",
                    "high": "18.206881131646949",
                    "close": "18.206881131646949",
                    "low": "18.206881131646949",
                    "volume": "0"
                }
            },
            {
                "1719887649-1719888549": {
                    "open": "18.206881131646949",
                    "high": "18.206881131646949",
                    "close": "18.206881131646949",
                    "low": "18.206881131646949",
                    "volume": "0"
                }
            },
            {
                "1719888549-1719889449": {
                    "open": "18.206881131646949",
                    "high": "18.206881131646949",
                    "close": "18.206881131646949",
                    "low": "18.206881131646949",
                    "volume": "0"
                }
            },
            {
                "1719905649-1719906549": {
                    "open": "18.306582167780366",
                    "high": "18.306582167780366",
                    "close": "18.306582167780366",
                    "low": "18.306582167780366",
                    "volume": "0"
                }
            },
            {
                "1719906549-1719907449": {
                    "open": "18.306582167780366",
                    "high": "18.306582167780366",
                    "low": "18.196897586629063",
                    "close": "18.196897586629063",
                    "volume": "520.7672563922177"
                }
            },
            {
                "1719907449-1719908349": {
                    "open": "18.196897586629063",
                    "high": "18.196897586629063",
                    "low": "18.19509765552369",
                    "close": "18.195097655523689",
                    "volume": "100517.84642071436"
                }
            },
            {
                "1719908349-1719909249": {
                    "open": "18.195097655523689",
                    "high": "18.195097655523689",
                    "close": "18.195097655523689",
                    "low": "18.195097655523689",
                    "volume": "0"
                }
            },
            {
                "1719909249-1719910149": {
                    "open": "18.195097655523689",
                    "high": "18.195097655523689",
                    "close": "18.195097655523689",
                    "low": "18.195097655523689",
                    "volume": "0"
                }
            },
            {
                "1719910149-1719911049": {
                    "open": "18.195097655523689",
                    "high": "18.195097655523689",
                    "close": "18.195097655523689",
                    "low": "18.195097655523689",
                    "volume": "0"
                }
            },
            {
                "1719911049-1719911949": {
                    "open": "18.195097655523689",
                    "high": "18.195097655523689",
                    "close": "18.195097655523689",
                    "low": "18.195097655523689",
                    "volume": "0"
                }
            },
            {
                "1719911949-1719912849": {
                    "open": "18.195097655523689",
                    "high": "18.19509765552369",
                    "low": "18.190453464735036",
                    "close": "18.193747691058498",
                    "volume": "201225.37315880728"
                }
            },
            {
                "1719912849-1719913749": {
                    "open": "18.193747691058498",
                    "high": "18.193747691058498",
                    "low": "18.176071689228696",
                    "close": "18.176071689228696",
                    "volume": "701585.1156593484"
                }
            },
            {
                "1719913749-1719914649": {
                    "open": "18.176071689228696",
                    "high": "18.176071689228696",
                    "close": "18.176071689228696",
                    "low": "18.176071689228696",
                    "volume": "0"
                }
            },
            {
                "1719914649-1719915549": {
                    "open": "18.176071689228696",
                    "high": "18.176071689228696",
                    "low": "18.16718239025562",
                    "close": "18.168675247623948",
                    "volume": "288159.10085866053"
                }
            },
            {
                "1719915549-1719916449": {
                    "open": "18.168675247623948",
                    "high": "18.168675247623948",
                    "close": "18.168675247623948",
                    "low": "18.168675247623948",
                    "volume": "0"
                }
            },
            {
                "1719916449-1719917349": {
                    "open": "18.168675247623948",
                    "high": "18.168675247623948",
                    "close": "18.168675247623948",
                    "low": "18.168675247623948",
                    "volume": "0"
                }
            },
            {
                "1719917349-1719918249": {
                    "open": "18.168675247623948",
                    "high": "18.168675247623948",
                    "close": "18.168675247623948",
                    "low": "18.168675247623948",
                    "volume": "0"
                }
            },
            {
                "1719918249-1719919149": {
                    "open": "18.168675247623948",
                    "high": "18.16867524762395",
                    "low": "18.163221842751827",
                    "close": "18.165239313218017",
                    "volume": "169623.86583495548"
                }
            },
            {
                "1719919149-1719920049": {
                    "open": "18.165239313218017",
                    "high": "18.165239313218017",
                    "close": "18.165239313218017",
                    "low": "18.165239313218017",
                    "volume": "0"
                }
            },
            {
                "1719927249-1719928149": {
                    "open": "18.165239313218017",
                    "high": "18.165239313218017",
                    "close": "18.165239313218017",
                    "low": "18.165239313218017",
                    "volume": "0"
                }
            }
        ]
    }
}
```

{% endtab %}
{% endtabs %}

[back to top](#endpoints-available)

### /getpooltradedata

Returns trade data for a specified pool, block range, and event type. Available on Ethereum only.

<mark style="color:blue;">`GET`</mark> `https://historicaltrade.api.expand.network/dex/getpooltradedata`

#### Query Parameters

| Name                                          | Type   | Description                                                              |
| --------------------------------------------- | ------ | ------------------------------------------------------------------------ |
| dexId<mark style="color:red;">\*</mark>       | String | Refer to [DEX ID](broken://pages/8x8qwIu19Aq8uFsjOXvI) page for details. |
| endBlock                                      | String | Last block of the range.                                                 |
| startBlock                                    | String | Starting block of the range.                                             |
| poolAddress<mark style="color:red;">\*</mark> | String | Pool address whose data is to be fetched.                                |
| eventType                                     | String | Swap, Burn or Mint(by default).                                          |

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

```url
https://historicaltrade.api.expand.network/dex/getpooltradedata?poolAddress=0x5777d92f208679db4b9778590fa3cab3ac9e2168&dexId=1300&eventType=Swap
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "pair": "DAI/USDC",
        "transactions": [
            {
                "blockNumber": "18883082",
                "transactionHash": "0x7bb91700afc23ed9579e3e75870a6d822d5c9e9106a0afb4f894a48e1d3b1836",
                "values": {
                    "0": "0x3fC91A3afd70395Cd496C647d5a6CC9D4B2b7FAD",
                    "1": "0x3fC91A3afd70395Cd496C647d5a6CC9D4B2b7FAD",
                    "2": "-773851782813653396142645",
                    "3": "773994216704",
                    "4": "79231558998781270027361",
                    "5": "454941727155991731855001",
                    "6": "-276324",
                    "sender": "0x3fC91A3afd70395Cd496C647d5a6CC9D4B2b7FAD",
                    "recipient": "0x3fC91A3afd70395Cd496C647d5a6CC9D4B2b7FAD",
                    "amount0": "-773851782813653396142645",
                    "amount1": "773994216704",
                    "sqrtPriceX96": "79231558998781270027361",
                    "liquidity": "454941727155991731855001",
                    "tick": "-276324"
                },
                "eventType": "Swap",
                "data": {
                    "data": "0xffffffffffffffffffffffffffffffffffffffffffff5c216929d5728d7345cb000000000000000000000000000000000000000000000000000000b435a67d000000000000000000000000000000000000000000000010c726c37299ca15ec6100000000000000000000000000000000000000000000605670c11fccb1cd5e99fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffbc89c",
                    "topics": [
                        "0xc42079f94a6350d7e6235f29174924f928cc2ac818eb64fed8004e115fbcca67",
                        "0x0000000000000000000000003fc91a3afd70395cd496c647d5a6cc9d4b2b7fad",
                        "0x0000000000000000000000003fc91a3afd70395cd496c647d5a6cc9d4b2b7fad"
                    ]
                }
            },
            {
                "blockNumber": "18883077",
                "transactionHash": "0xea5e9ba9947be9a0eb100f168f0f094e408ac52b162ce822b0c9635e15293a4e",
                "values": {
                    "0": "0x3fC91A3afd70395Cd496C647d5a6CC9D4B2b7FAD",
                    "1": "0x3fC91A3afd70395Cd496C647d5a6CC9D4B2b7FAD",
                    "2": "-6664975302918764090197",
                    "3": "6666190611",
                    "4": "79231424221064230419989",
                    "5": "454941727155991731855001",
                    "6": "-276324",
                    "sender": "0x3fC91A3afd70395Cd496C647d5a6CC9D4B2b7FAD",
                    "recipient": "0x3fC91A3afd70395Cd496C647d5a6CC9D4B2b7FAD",
                    "amount0": "-6664975302918764090197",
                    "amount1": "6666190611",
                    "sqrtPriceX96": "79231424221064230419989",
                    "liquidity": "454941727155991731855001",
                    "tick": "-276324"
                },
                "eventType": "Swap",
                "data": {
                    "data": "0xfffffffffffffffffffffffffffffffffffffffffffffe96b0e3128c478a2cab000000000000000000000000000000000000000000000000000000018d55ff130000000000000000000000000000000000000000000010c724e49efb2e4d3e1500000000000000000000000000000000000000000000605670c11fccb1cd5e99fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffbc89c",
                    "topics": [
                        "0xc42079f94a6350d7e6235f29174924f928cc2ac818eb64fed8004e115fbcca67",
                        "0x0000000000000000000000003fc91a3afd70395cd496c647d5a6cc9d4b2b7fad",
                        "0x0000000000000000000000003fc91a3afd70395cd496c647d5a6cc9d4b2b7fad"
                    ]
                }
            },
            {
                "blockNumber": "18883066",
                "transactionHash": "0x106dcf2be3ad40c5f27bd818c8ae75d10271af6e61e45c8b38d82447d13eb38c",
                "values": {
                    "0": "0x3fC91A3afd70395Cd496C647d5a6CC9D4B2b7FAD",
                    "1": "0x163C5e051049e92915017Fe7BB9b8ce6182bcBb1",
                    "2": "7110951881905262918177",
                    "3": "-7110826137",
                    "4": "79231423060262337608341",
                    "5": "454941727155991731855001",
                    "6": "-276324",
                    "sender": "0x3fC91A3afd70395Cd496C647d5a6CC9D4B2b7FAD",
                    "recipient": "0x163C5e051049e92915017Fe7BB9b8ce6182bcBb1",
                    "amount0": "7110951881905262918177",
                    "amount1": "-7110826137",
                    "sqrtPriceX96": "79231423060262337608341",
                    "liquidity": "454941727155991731855001",
                    "tick": "-276324"
                },
                "eventType": "Swap",
                "data": {
                    "data": "0x0000000000000000000000000000000000000000000001817c480527b2a97a21fffffffffffffffffffffffffffffffffffffffffffffffffffffffe582967670000000000000000000000000000000000000000000010c724e07f3cedd37a9500000000000000000000000000000000000000000000605670c11fccb1cd5e99fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffbc89c",
                    "topics": [
                        "0xc42079f94a6350d7e6235f29174924f928cc2ac818eb64fed8004e115fbcca67",
                        "0x0000000000000000000000003fc91a3afd70395cd496c647d5a6cc9d4b2b7fad",
                        "0x000000000000000000000000163c5e051049e92915017fe7bb9b8ce6182bcbb1"
                    ]
                }
            },
            {
                "blockNumber": "18883050",
                "transactionHash": "0x1e133891d6d5a109575ee9778ca99340b93b1a83c061cef8ce9c9f7280510a9d",
                "values": {
                    "0": "0x3fC91A3afd70395Cd496C647d5a6CC9D4B2b7FAD",
                    "1": "0x3fC91A3afd70395Cd496C647d5a6CC9D4B2b7FAD",
                    "2": "-948340157679668203715232",
                    "3": "948511118707",
                    "4": "79231424298613658735017",
                    "5": "454941727155991731855001",
                    "6": "-276324",
                    "sender": "0x3fC91A3afd70395Cd496C647d5a6CC9D4B2b7FAD",
                    "recipient": "0x3fC91A3afd70395Cd496C647d5a6CC9D4B2b7FAD",
                    "amount0": "-948340157679668203715232",
                    "amount1": "948511118707",
                    "sqrtPriceX96": "79231424298613658735017",
                    "liquidity": "454941727155991731855001",
                    "tick": "-276324"
                },
                "eventType": "Swap",
                "data": {
                    "data": "0xffffffffffffffffffffffffffffffffffffffffffff372e6085a7d6a31a8560000000000000000000000000000000000000000000000000000000dcd7ab15730000000000000000000000000000000000000000000010c724e4e583106dd1a900000000000000000000000000000000000000000000605670c11fccb1cd5e99fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffbc89c",
                    "topics": [
                        "0xc42079f94a6350d7e6235f29174924f928cc2ac818eb64fed8004e115fbcca67",
                        "0x0000000000000000000000003fc91a3afd70395cd496c647d5a6cc9d4b2b7fad",
                        "0x0000000000000000000000003fc91a3afd70395cd496c647d5a6cc9d4b2b7fad"
                    ]
                }
            }
        ]
    }
}
```

{% endtab %}
{% endtabs %}

[back to top](#endpoints-available)

### /swap

Initiate a swap transaction on a specified DEX.

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

#### Request Body

<table><thead><tr><th width="177">Name</th><th width="105">Type</th><th>Description</th></tr></thead><tbody><tr><td>rpc</td><td>String</td><td>Remote procedural call URL.</td></tr><tr><td>dexId<mark style="color:red;">*</mark></td><td>String</td><td>Refer to the <a href="/pages/8x8qwIu19Aq8uFsjOXvI">DEX ID</a> page for details. </td></tr><tr><td>path<mark style="color:red;">*</mark></td><td>Array</td><td>Comma-separated values of token addresses, inside an array, to swap.</td></tr><tr><td>amountIn<mark style="color:red;">*</mark></td><td>String</td><td>Amount of token to be swapped.</td></tr><tr><td>amountOutMin</td><td>String</td><td>Minimum amount accepted as a result of swap.</td></tr><tr><td>to<mark style="color:red;">*</mark></td><td>String</td><td>Address of the recipient of the token.</td></tr><tr><td>from<mark style="color:red;">*</mark></td><td>String</td><td>Address of the sender of the token.</td></tr><tr><td>gas</td><td>String</td><td>Maximum gas limit provided by the sender, for the transaction.</td></tr><tr><td>poolFees</td><td>String</td><td>Different pool based on the fees. By default, it is selected as 3000.</td></tr><tr><td>gasPriority</td><td>String</td><td>low, medium, or high.</td></tr><tr><td>slippage</td><td>String</td><td><p>Percentage of total swap value. <br>By default, 1.</p><p>0 &#x3C;= slippage  value &#x3C;= 100</p></td></tr></tbody></table>

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

```json
{
    "dexId": "1300",
    "amountIn": "1000000000000000",
    "amountOutMin": "0",
    "path": ["0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2","0x6B175474E89094C44Da98b954EedeAC495271d0F"],
    "to": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
    "poolFees": "2975",
    "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
    "gas": "173376"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
        "to": "0x68b3465833fb72a70ecdf485e0e4c7bd8665fc45",
        "value": "0",
        "gas": "173376",
        "data": "0xac9650d800000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000e4472b43f300000000000000000000000000000000000000000000000000038d7ea4c680000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000063056e00436da25bcf48a40dfbbdcc70893510060000000000000000000000000000000000000000000000000000000000000002000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc20000000000000000000000006b175474e89094c44da98b954eedeac495271d0f00000000000000000000000000000000000000000000000000000000",
        "estimationCheck": true,
        "referenceId": "6b615dd983bd4033b12096c6a5a4b46c"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
**With gasPriority (medium):**

<pre class="language-json"><code class="lang-json">{
    "dexId": "1300",
    "amountIn": "1000000000",
    "amountOutMin": "0",
    "path": [
        "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
        "0x6B175474E89094C44Da98b954EedeAC495271d0F"
    ],
    "to": "0x6Fb447Ae94F5180254D436A693907a1f57696900",
    "from": "0x6Fb447Ae94F5180254D436A693907a1f57696900",
    "gas": "173376",
    "gasPriority": "medium"
<strong>}
</strong></code></pre>

{% endtab %}

{% tab title="Sample Response" %}
**With gasPriority:**

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x6Fb447Ae94F5180254D436A693907a1f57696900",
        "to": "0x68b3465833fb72a70ecdf485e0e4c7bd8665fc45",
        "value": "0",
        "gas": "173376",
        "data": "0xac9650d800000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000e4472b43f3000000000000000000000000000000000000000000000000000000003b9aca00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000800000000000000000000000006fb447ae94f5180254d436a693907a1f576969000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc20000000000000000000000006b175474e89094c44da98b954eedeac495271d0f00000000000000000000000000000000000000000000000000000000",
        "gasPrice": "24931859242",
        "estimationCheck": true,
        "referenceId": "1a6c539d892c4b5ea107a6e2823ec8fd"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
**With Slippage:**

```json
{
    "dexId": "1300",
    "amountIn": "1000000",
    "amountOutMin": "999831028599930500",
    "path": [
        "0xdAC17F958D2ee523a2206206994597C13D831ec7",
        "0x6B175474E89094C44Da98b954EedeAC495271d0F"
    ],
    "to": "0x22cf65ae3fa16d6379e72f4b4c2401c1b7c69731",
    "deadline": "1711931771",
    "from": "0x22cf65ae3fa16d6379e72f4b4c2401c1b7c69731",
    "gas": "933376",
    "gasPriority": "high",
    "slippage": "1"
}
```

{% endtab %}

{% tab title="Sample Response" %}
**With Slippage:**

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x22cf65ae3fa16d6379e72f4b4c2401c1b7c69731",
        "to": "0x68b3465833fb72a70ecdf485e0e4c7bd8665fc45",
        "value": "0",
        "gas": "933376",
        "data": "0xac9650d800000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000e4472b43f300000000000000000000000000000000000000000000000000000000000f42400000000000000000000000000000000000000000000000000dbcd290b8de3080000000000000000000000000000000000000000000000000000000000000008000000000000000000000000022cf65ae3fa16d6379e72f4b4c2401c1b7c697310000000000000000000000000000000000000000000000000000000000000002000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec70000000000000000000000006b175474e89094c44da98b954eedeac495271d0f00000000000000000000000000000000000000000000000000000000",
        "gasPrice": "34222375359",
        "estimationCheck": true,
        "referenceId": "98f1fa52694740038103132f0abe72e6"
    }
}
```

{% endtab %}
{% endtabs %}

[back to top](#endpoints-available)

### /addliquidity

Add liquidity to a specified pool in a specified DEX.

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

#### Request Body

| Name                                             | Type   | Description                                                                            |
| ------------------------------------------------ | ------ | -------------------------------------------------------------------------------------- |
| dexId<mark style="color:red;">\*</mark>          | String | Refer to the [DEX ID](broken://pages/8x8qwIu19Aq8uFsjOXvI) page for details.           |
| tokenA<mark style="color:red;">\*</mark>         | String | Address of the first token being added.                                                |
| tokenB<mark style="color:red;">\*</mark>         | String | Address of the second token being added.                                               |
| poolFees<mark style="color:red;">\*</mark>       | String | Different pool based on the fees.                                                      |
| amountADesired<mark style="color:red;">\*</mark> | String | Desired amount of token A.                                                             |
| amountBDesired<mark style="color:red;">\*</mark> | String | Desired amount of token B.                                                             |
| amountAMin<mark style="color:red;">\*</mark>     | String | Minimum amount of token A.                                                             |
| amountBMin<mark style="color:red;">\*</mark>     | String | Minimum amount of token B.                                                             |
| deadline<mark style="color:red;">\*</mark>       | String | Deadline for the transaction to be executed (UNIX Timestamp).                          |
| to<mark style="color:red;">\*</mark>             | String | Address of the recipient of the token.                                                 |
| from<mark style="color:red;">\*</mark>           | String | Address of the sender of the token.                                                    |
| gas                                              | String | Maximum gas limit provided by the sender, for the transaction.                         |
| rpc                                              | String | Remote procedural call URL.                                                            |
| tokenId                                          | String | The token ID for uniswap V3 liquidity position.                                        |
| gasPriority                                      | String | low, medium, or high.                                                                  |
| slippage                                         | String | <p>Percentage of total value. <br>By default, 1.</p><p>0 <= slippage  value <= 100</p> |

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

```json
{
    "dexId": "1300",
    "tokenA": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
    "tokenB": "0x6B175474E89094C44Da98b954EedeAC495271d0F",
    "poolFees": "3000",
    "amountADesired": "1000000000000000",
    "amountBDesired": "1294471768449933344",
    "amountAMin": "0",
    "amountBMin": "0",
    "deadline": "1666193668",
    "to": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
    "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
    "gas": "5446762"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
        "to": "0xC36442b4a4522E871399CD717aBDD847Ab11FE88",
        "value": "0",
        "gas": "5446762",
        "data": "0xac9650d800000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000001e0000000000000000000000000000000000000000000000000000000000000016488316456000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc20000000000000000000000006b175474e89094c44da98b954eedeac495271d0f0000000000000000000000000000000000000000000000000000000000000bb8fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffece24fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffecf1400000000000000000000000000000000000000000000000000038d7ea4c6800000000000000000000000000000000000000000000000000011f6e3370a3ae0200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000063056e00436da25bcf48a40dfbbdcc7089351006000000000000000000000000000000000000000000000000000000006350190400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000412210e8a00000000000000000000000000000000000000000000000000000000",
        "estimationCheck": true,
        "referenceId": "7fa6a06af5f041c18204e3daa95f48bb"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
**With gasPriority (medium):**

```json
{
    "dexId": "1300",
    "tokenA": "0x6B175474E89094C44Da98b954EedeAC495271d0F", 
    "tokenB": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48", 
    "amountADesired": "1000000000000000",
    "amountBDesired": "999",
    "amountAMin": "0",
    "amountBMin": "0",
    "poolFees":"3000",
    "from": "0x356dB816602c85e2075774bB77D13995c8Bab023",
    "to":"0x356dB816602c85e2075774bB77D13995c8Bab023",
    "deadline":"1699966737054",
    "gas": "123444",
    "gasPriority":"medium"
}
```

{% endtab %}

{% tab title="Sample Response" %}
**With gasPriority:**

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x356dB816602c85e2075774bB77D13995c8Bab023",
        "to": "0xC36442b4a4522E871399CD717aBDD847Ab11FE88",
        "value": "0",
        "gas": "123444",
        "data": "0xac9650d800000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000001e00000000000000000000000000000000000000000000000000000000000000164883164560000000000000000000000006b175474e89094c44da98b954eedeac495271d0f000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb480000000000000000000000000000000000000000000000000000000000000bb8fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffbc800fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffbc8f000000000000000000000000000000000000000000000000000038d7ea4c6800000000000000000000000000000000000000000000000000000000000000003e700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000356db816602c85e2075774bb77d13995c8bab0230000000000000000000000000000000000000000000000000000018bcde9da9e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000412210e8a00000000000000000000000000000000000000000000000000000000",
        "gasPrice": "28313536592",
        "estimationCheck": true,
        "referenceId": "17a42397a3214f8f9ebb83c88bef723f"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
**With Slippage:**

```json
{
    "dexId": "1300",
    "tokenA": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
    "tokenB": "0x6B175474E89094C44Da98b954EedeAC495271d0F",
    "poolFees": "3000",
    "amountADesired": "1000000000000000",
    "amountBDesired": "1294471768449933344",
    "amountAMin": "0",
    "amountBMin": "0",
    "deadline": "1666193668",
    "to": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
    "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
    "gas": "5446762",
    "slippage": "5"
}
```

{% endtab %}

{% tab title="Sample Response" %}
**With Slippage:**

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
        "to": "0xC36442b4a4522E871399CD717aBDD847Ab11FE88",
        "value": "0",
        "gas": "5446762",
        "data": "0xac9650d800000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000001e0000000000000000000000000000000000000000000000000000000000000016488316456000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc20000000000000000000000006b175474e89094c44da98b954eedeac495271d0f0000000000000000000000000000000000000000000000000000000000000bb8fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffece24fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffecf1400000000000000000000000000000000000000000000000000038d7ea4c6800000000000000000000000000000000000000000000000000011f6e3370a3ae0200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000063056e00436da25bcf48a40dfbbdcc7089351006000000000000000000000000000000000000000000000000000000006350190400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000412210e8a00000000000000000000000000000000000000000000000000000000",
        "estimationCheck": true,
        "referenceId": "d77137490d89447e82922330352d5b85"
    }
}
```

{% endtab %}
{% endtabs %}

[back to top](#endpoints-available)

### /removeliquidity

Remove liquidity from a specified pool for a specified DEX.

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

#### Request Body

| Name                                        | Type   | Description                                                                            |
| ------------------------------------------- | ------ | -------------------------------------------------------------------------------------- |
| dexId<mark style="color:red;">\*</mark>     | String | Refer to the [DEX ID](broken://pages/8x8qwIu19Aq8uFsjOXvI) page for details.           |
| tokenId<mark style="color:red;">\*</mark>   | String | The token ID for uniswap V3 liquidity position.                                        |
| amountAMin                                  | String | Minimum amount of Token A.                                                             |
| amountAMax                                  | String | Maximum amount of Token A.                                                             |
| amountBMax                                  | String | Maximum amount of Token B.                                                             |
| recipient                                   | String | Recipient for sweep tokens.                                                            |
| deadline<mark style="color:red;">\*</mark>  | String | Deadline for the transaction to be executed (UNIX Timestamp).                          |
| from<mark style="color:red;">\*</mark>      | String | Address of the sender of the token.                                                    |
| gas                                         | String | Maximum gas limit provided by the sender, for the transaction.                         |
| rpc                                         | String | Remote procedural call URL.                                                            |
| tokenA<mark style="color:red;">\*</mark>    | String | Address of the first token being removed.                                              |
| tokenB                                      | String | Address of the second token being removed.                                             |
| liquidity<mark style="color:red;">\*</mark> | string | The liquidity to be removed.                                                           |
| amountBMin                                  | String | Minimum amount of Token B.                                                             |
| gasPriority                                 | String | low, medium, or high.                                                                  |
| slippage                                    | String | <p>Percentage of total value. <br>By default, 1.</p><p>0 <= slippage  value <= 100</p> |

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

```json
{
    "dexId": "1300",
    "tokenId": "38177",
    "tokenA":"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
    "liquidity": "499737032187727318211",
    "amountAMin": "0",
    "amountBMin": "0",
    "deadline": "1763180052",
    "recipient": "0x0000000000000000000000000000000000000000",
    "amountAMax": "340282366920938463463374607431768211455",
    "amountBMax": "340282366920938463463374607431768211455",
    "tokenB": "0x6B175474E89094C44Da98b954EedeAC495271d0F",
    "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
    "gas": "2421200"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
        "to": "0xC36442b4a4522E871399CD717aBDD847Ab11FE88",
        "value": "0",
        "gas": "2421200",
        "data": "0xac9650d80000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000160000000000000000000000000000000000000000000000000000000000000022000000000000000000000000000000000000000000000000000000000000002a000000000000000000000000000000000000000000000000000000000000000a40c49ccbe000000000000000000000000000000000000000000000000000000000000952100000000000000000000000000000000000000000000001b173e970df1700cc300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006917fe14000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000084fc6f78650000000000000000000000000000000000000000000000000000000000009521000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffffffffffffffffffffffff00000000000000000000000000000000ffffffffffffffffffffffffffffffff00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004449404b7c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000063056e00436da25bcf48a40dfbbdcc7089351006000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000064df2ab5bb000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2000000000000000000000000000000000000000000000000000000000000000000000000000000000000000063056e00436da25bcf48a40dfbbdcc708935100600000000000000000000000000000000000000000000000000000000",
        "estimationCheck": true,
        "referenceId": "00bdfa2223af4b21ac8ecad90acbebec"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
**With gasPriority:**

```json
{
    "dexId": "1300",
    "tokenId": "609214",
    "tokenA": "0x9813037ee2218799597d83D4a5B6F3b6778218d9",
    "liquidity": "202694601337334530",
    "chainId": "1",
    "amountAMin": "0",
    "amountBMin": "0",
    "recipientA": "0x0000000000000000000000000000000000000000",
    "amountAMax": "340282366920938463463374607431768211455",
    "amountBMax": "340282366920938463463374607431768211455",
    "amountMinimumA": "0",
    "recipientB": "0x4C99D660A51D41bE5D47D66a3d89d5B83D92f27E",
    "to": "0x4C99D660A51D41bE5D47D66a3d89d5B83D92f27E",
    "deadline": "1700642704004",
    "from": "0x4C99D660A51D41bE5D47D66a3d89d5B83D92f27E",
    "gas": "80000",
    "gasPriority":"medium"
}
```

{% endtab %}

{% tab title="Sample Response" %}
**With gasPriority:**

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x4C99D660A51D41bE5D47D66a3d89d5B83D92f27E",
        "to": "0xC36442b4a4522E871399CD717aBDD847Ab11FE88",
        "value": "0",
        "gas": "80000",
        "data": "0xac9650d80000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000160000000000000000000000000000000000000000000000000000000000000022000000000000000000000000000000000000000000000000000000000000002a000000000000000000000000000000000000000000000000000000000000000a40c49ccbe0000000000000000000000000000000000000000000000000000000000094bbe00000000000000000000000000000000000000000000000002d01daa7e99eb02000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000018bf6344a84000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000084fc6f78650000000000000000000000000000000000000000000000000000000000094bbe000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffffffffffffffffffffffff00000000000000000000000000000000ffffffffffffffffffffffffffffffff00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004449404b7c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000004c99d660a51d41be5d47d66a3d89d5b83d92f27e000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000064df2ab5bb0000000000000000000000009813037ee2218799597d83d4a5b6f3b6778218d900000000000000000000000000000000000000000000000000000000000000000000000000000000000000004c99d660a51d41be5d47d66a3d89d5b83d92f27e00000000000000000000000000000000000000000000000000000000",
        "gasPrice": "31358145710",
        "estimationCheck": true,
        "referenceId": "f5e038c02dfb469fb0427f23e3cc1730"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
**With slippage:**

```json
{
    "dexId": "1300",
    "tokenId": "38177",
    "tokenA": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
    "liquidity": "499737032187727318211",
    "amountAMin": "10000000",
    "amountBMin": "10000000",
    "deadline": "1763180052",
    "recipient": "0x0000000000000000000000000000000000000000",
    "amountAMax": "340282366920938463463374607431768211455",
    "amountBMax": "340282366920938463463374607431768211455",
    "tokenB": "0x6B175474E89094C44Da98b954EedeAC495271d0F",
    "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
    "gas": "2421200",
    "slippage": "9.50"
}
```

{% endtab %}

{% tab title="Sample Response" %}
**With slippage:**

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
        "to": "0xC36442b4a4522E871399CD717aBDD847Ab11FE88",
        "value": "0",
        "gas": "2421200",
        "data": "0xac9650d80000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000160000000000000000000000000000000000000000000000000000000000000022000000000000000000000000000000000000000000000000000000000000002a000000000000000000000000000000000000000000000000000000000000000a40c49ccbe000000000000000000000000000000000000000000000000000000000000952100000000000000000000000000000000000000000000001b173e970df1700cc300000000000000000000000000000000000000000000000000000000008a179000000000000000000000000000000000000000000000000000000000008a1790000000000000000000000000000000000000000000000000000000006917fe14000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000084fc6f78650000000000000000000000000000000000000000000000000000000000009521000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffffffffffffffffffffffff00000000000000000000000000000000ffffffffffffffffffffffffffffffff00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004449404b7c00000000000000000000000000000000000000000000000000000000008a179000000000000000000000000063056e00436da25bcf48a40dfbbdcc7089351006000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000064df2ab5bb000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc200000000000000000000000000000000000000000000000000000000008a179000000000000000000000000063056e00436da25bcf48a40dfbbdcc708935100600000000000000000000000000000000000000000000000000000000",
        "estimationCheck": true,
        "referenceId": "73e42929b7ea42d08b3aee4416191b47"
    }
}
```

{% endtab %}
{% endtabs %}

[back to top](#endpoints-available)


# Uniswap X

### /getorders

Returns the details of the specified order.

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

#### Query Parameters

| Name                                    | Type   | Description                                                                                                   |
| --------------------------------------- | ------ | ------------------------------------------------------------------------------------------------------------- |
| dexId<mark style="color:red;">\*</mark> | String | Refer to the [DEX ID](/ids/dex-ids) page for details.                                                         |
| status                                  | String | <p>The order status. <br>Accepted values: open, expired, error, cancelled, filled, and insufficient-funds</p> |
| orderHashes                             | String | Comma separated order hashes.                                                                                 |
| filler                                  | String | Address of the filler.                                                                                        |
| sort                                    | String | <p>"asc" or "desc".</p><p>By default, desc.</p>                                                               |
| rpc                                     | String | Remote procedural call URL.                                                                                   |

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

```url
https://api.expand.network/dex/getorders?status=filled&dexId=1900&orderHashes=0xe788217d7450116385e71cc754ead242c21f5ec7f533ed48f9be47ccc2afc7a8%2C0xa553e8984c77d9a1c784aea07560add932d91b8812b737573e209223aeea7ff6%2C0x63138358f0b8a02353f954aa19bfb806d444f7c8f4b30791ab879746f6a7803c&filler=0xb07508e0de659b7d6dd550a1cf1a796fec4fc9aa&sort=desc
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "orders": [
            {
                "outputs": [
                    {
                        "recipient": "0xb07508e0de659b7d6dd550a1cf1a796fec4fc9aa",
                        "startAmount": "591320512",
                        "endAmount": "478679792",
                        "token": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"
                    },
                    {
                        "recipient": "0x27213e28d7fda5c57fe9e5dd923818dbccf71c47",
                        "startAmount": "888313",
                        "endAmount": "719098",
                        "token": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"
                    }
                ],
                "encodedOrder": "0x000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000065e078990000000000000000000000000000000000000000000000000000000065e078d5000000000000000000000000ff8ba4d1fc3762f6154cc942ccf30049a2a0cec60000000000000000000000000000000000000000000000000000000000000064000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2000000000000000000000000000000000000000000000000028feb7595a81000000000000000000000000000000000000000000000000000028feb7595a8100000000000000000000000000000000000000000000000000000000000000002000000000000000000000000006000da47483062a0d734ba3dc7576ce6a0b645c4000000000000000000000000b07508e0de659b7d6dd550a1cf1a796fec4fc9aa04683280a4602321de3951e71e985d2bdca265de130a03b9ed0c7e2db0cfb3030000000000000000000000000000000000000000000000000000000065e078e1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb4800000000000000000000000000000000000000000000000000000000233ed5c0000000000000000000000000000000000000000000000000000000001c8812f0000000000000000000000000b07508e0de659b7d6dd550a1cf1a796fec4fc9aa000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb4800000000000000000000000000000000000000000000000000000000000d8df900000000000000000000000000000000000000000000000000000000000af8fa00000000000000000000000027213e28d7fda5c57fe9e5dd923818dbccf71c47",
                "signature": "0xf5555c296173a78d3d21857c118e2f010c93b46784bbcec2f24617bc92d55cbd08b85ebe947914fa51c624e59d5064ca9185f29a43cdd57ab47acca4ab86c6f11c",
                "input": {
                    "endAmount": "184625000000000000",
                    "token": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
                    "startAmount": "184625000000000000"
                },
                "orderStatus": "expired",
                "createdAt": 1709209713,
                "quoteId": "5a7a0078-1ce8-4299-8efe-27188b97eb2d",
                "chainId": 1,
                "orderHash": "0x63138358f0b8a02353f954aa19bfb806d444f7c8f4b30791ab879746f6a7803c",
                "type": "Dutch"
            },
            {
                "outputs": [
                    {
                        "recipient": "0x87470d42336085c026f8820ec2c045dac35fbdbc",
                        "startAmount": "204570086190905200",
                        "endAmount": "170183988404523934",
                        "token": "0x0000000000000000000000000000000000000000"
                    },
                    {
                        "recipient": "0x37a8f295612602f2774d331e562be9e61b83a327",
                        "startAmount": "307316103441520",
                        "endAmount": "255659471814507",
                        "token": "0x0000000000000000000000000000000000000000"
                    }
                ],
                "encodedOrder": "0x000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000065e07b980000000000000000000000000000000000000000000000000000000065e07bd4000000000000000000000000beb5fd030ffb0fbc95d68113c1c796eff65526d70000000000000000000000000000000000000000000000000000000000000064000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48000000000000000000000000000000000000000000000000000000002da83b80000000000000000000000000000000000000000000000000000000002da83b8000000000000000000000000000000000000000000000000000000000000002000000000000000000000000006000da47483062a0d734ba3dc7576ce6a0b645c400000000000000000000000087470d42336085c026f8820ec2c045dac35fbdbc046832f75942e709d73e7d7270f9bb37da4abf2ea444079292430d9aac5311020000000000000000000000000000000000000000000000000000000065e07be0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002d6c768d7147770000000000000000000000000000000000000000000000000025c9d6f8f4f939e00000000000000000000000087470d42336085c026f8820ec2c045dac35fbdbc0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000117809b2dec700000000000000000000000000000000000000000000000000000e8855c003f6b00000000000000000000000037a8f295612602f2774d331e562be9e61b83a327",
                "signature": "0x3e10ba4612a444595daae894318347655618ba2723f593bd17d5330073fd62766def626c700dc23f4d2f9a6e6b715c8c6dbf84239448047ac4dce8b98086f7d11c",
                "input": {
                    "endAmount": "766000000",
                    "token": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
                    "startAmount": "766000000"
                },
                "orderStatus": "expired",
                "createdAt": 1709210480,
                "quoteId": "8d95324e-b5f3-4a8d-8c96-8382098b300f",
                "chainId": 1,
                "orderHash": "0xe788217d7450116385e71cc754ead242c21f5ec7f533ed48f9be47ccc2afc7a8",
                "type": "Dutch"
            },
            {
                "outputs": [
                    {
                        "recipient": "0xcbd78860218160f4b463612f30806807fe6e804c",
                        "startAmount": "121834072160578522",
                        "endAmount": "92076727033605479",
                        "token": "0x0000000000000000000000000000000000000000"
                    },
                    {
                        "recipient": "0x37a8f295612602f2774d331e562be9e61b83a327",
                        "startAmount": "183025646710934",
                        "endAmount": "138322574412026",
                        "token": "0x0000000000000000000000000000000000000000"
                    }
                ],
                "encodedOrder": "0x000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000065e078d10000000000000000000000000000000000000000000000000000000065e0790d0000000000000000000000007321ac264b89254ea749a0657d41a9a2ebf8e3da0000000000000000000000000000000000000000000000000000000000000064000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec7000000000000000000000000000000000000000000000000000000001c0a67f4000000000000000000000000000000000000000000000000000000001c0a67f400000000000000000000000000000000000000000000000000000000000002000000000000000000000000006000da47483062a0d734ba3dc7576ce6a0b645c4000000000000000000000000cbd78860218160f4b463612f30806807fe6e804c04683296acee06afe8267e927b719b6a9b951b8173321e70415204fa6e5bed020000000000000000000000000000000000000000000000000000000065e07919000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b0d77170ababda00000000000000000000000000000000000000000000000001471f4b9eeb2d67000000000000000000000000cbd78860218160f4b463612f30806807fe6e804c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a675faa8309600000000000000000000000000000000000000000000000000007dcdbbe988fa00000000000000000000000037a8f295612602f2774d331e562be9e61b83a327",
                "signature": "0xb61c68104d8dec8e6e22c33df473983e48db079f3e4cf572437bbcad0aeda7732c5e1f7a270031bca4145793b3b558f549fdb08b619209ffc79053a644ab5bbc1b",
                "input": {
                    "endAmount": "470444020",
                    "token": "0xdAC17F958D2ee523a2206206994597C13D831ec7",
                    "startAmount": "470444020"
                },
                "orderStatus": "expired",
                "createdAt": 1709209767,
                "quoteId": "91126fe6-e306-4f45-b8c8-6505bb5ba353",
                "chainId": 1,
                "orderHash": "0xa553e8984c77d9a1c784aea07560add932d91b8812b737573e209223aeea7ff6",
                "type": "Dutch"
            }
        ]
    }
}
```

{% endtab %}
{% endtabs %}

### /createorder

Initiate a transaction to generate the order values.&#x20;

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

#### Request Body

| Name                                             | Type   | Description                                                                           |
| ------------------------------------------------ | ------ | ------------------------------------------------------------------------------------- |
| dexId<mark style="color:red;">\*</mark>          | String | Refer to [DEX ID](broken://pages/8x8qwIu19Aq8uFsjOXvI) page for details.              |
| amountOutMin<mark style="color:red;">\*</mark>   | String | Minimum amount accepted.                                                              |
| decayStartTime<mark style="color:red;">\*</mark> | String | <p>Dutch order bidding start time.<br>(UNIX Timestamp).</p>                           |
| decayEndTime<mark style="color:red;">\*</mark>   | String | <p>Dutch order bidding end time.<br>(UNIX Timestamp).</p>                             |
| deadline<mark style="color:red;">\*</mark>       | String | Deadline for the transaction to be executed (UNIX Timestamp).                         |
| from<mark style="color:red;">\*</mark>           | String | Address of the sender of the token.                                                   |
| path<mark style="color:red;">\*</mark>           | String | Comma-separated values of token addresses, inside an array, to swap.                  |
| amountIn<mark style="color:red;">\*</mark>       | String | Amount of token to create an order.                                                   |
| to<mark style="color:red;">\*</mark>             | String | Address of the recipient of the token.                                                |
| slippage                                         | String | <p>Percentage of total swap value. By default, 1.</p><p>0 <= slippage value <= 10</p> |

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

```json
{
    "dexId": "1900",
    "amountIn": "100000",
    "path": [
        "0xe0C9275E44Ea80eF17579d33c55136b7DA269aEb",
        "0xdFCeA9088c8A88A76FF74892C1457C17dfeef9C1"
    ],
    "to": "0xa67E9B68c41b0f26184D64C26e0b2B81466E5994",
    "from": "0xa67E9B68c41b0f26184D64C26e0b2B81466E5994",
    "decayStartTime": "1707110948",
    "decayEndTime": "1707113948",
    "amountOutMin": "10000000000",
    "deadline": "1707313948"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "domain": {
            "name": "Permit2",
            "chainId": "1",
            "verifyingContract": "0x000000000022d473030f116ddee9f6b43ac78ba3"
        },
        "types": {
            "PermitWitnessTransferFrom": [
                {
                    "name": "permitted",
                    "type": "TokenPermissions"
                },
                {
                    "name": "spender",
                    "type": "address"
                },
                {
                    "name": "nonce",
                    "type": "uint256"
                },
                {
                    "name": "deadline",
                    "type": "uint256"
                },
                {
                    "name": "witness",
                    "type": "ExclusiveDutchOrder"
                }
            ],
            "TokenPermissions": [
                {
                    "name": "token",
                    "type": "address"
                },
                {
                    "name": "amount",
                    "type": "uint256"
                }
            ],
            "ExclusiveDutchOrder": [
                {
                    "name": "info",
                    "type": "OrderInfo"
                },
                {
                    "name": "decayStartTime",
                    "type": "uint256"
                },
                {
                    "name": "decayEndTime",
                    "type": "uint256"
                },
                {
                    "name": "exclusiveFiller",
                    "type": "address"
                },
                {
                    "name": "exclusivityOverrideBps",
                    "type": "uint256"
                },
                {
                    "name": "inputToken",
                    "type": "address"
                },
                {
                    "name": "inputStartAmount",
                    "type": "uint256"
                },
                {
                    "name": "inputEndAmount",
                    "type": "uint256"
                },
                {
                    "name": "outputs",
                    "type": "DutchOutput[]"
                }
            ],
            "OrderInfo": [
                {
                    "name": "reactor",
                    "type": "address"
                },
                {
                    "name": "swapper",
                    "type": "address"
                },
                {
                    "name": "nonce",
                    "type": "uint256"
                },
                {
                    "name": "deadline",
                    "type": "uint256"
                },
                {
                    "name": "additionalValidationContract",
                    "type": "address"
                },
                {
                    "name": "additionalValidationData",
                    "type": "bytes"
                }
            ],
            "DutchOutput": [
                {
                    "name": "token",
                    "type": "address"
                },
                {
                    "name": "startAmount",
                    "type": "uint256"
                },
                {
                    "name": "endAmount",
                    "type": "uint256"
                },
                {
                    "name": "recipient",
                    "type": "address"
                }
            ]
        },
        "values": {
            "permitted": {
                "token": "0xe0C9275E44Ea80eF17579d33c55136b7DA269aEb",
                "amount": {
                    "type": "BigNumber",
                    "hex": "0x0186a0"
                }
            },
            "spender": "0x6000da47483062A0D734Ba3dc7576Ce6A0B645C4",
            "nonce": {
                "type": "BigNumber",
                "hex": "0x01"
            },
            "deadline": "1807313948",
            "witness": {
                "info": {
                    "reactor": "0x6000da47483062A0D734Ba3dc7576Ce6A0B645C4",
                    "swapper": "0xa67E9B68c41b0f26184D64C26e0b2B81466E5994",
                    "nonce": {
                        "type": "BigNumber",
                        "hex": "0x01"
                    },
                    "deadline": "1807313948",
                    "additionalValidationContract": "0x0000000000000000000000000000000000000000",
                    "additionalValidationData": "0x"
                },
                "decayStartTime": "1707110948",
                "decayEndTime": "1707113948",
                "exclusiveFiller": "0x0000000000000000000000000000000000000000",
                "exclusivityOverrideBps": {
                    "type": "BigNumber",
                    "hex": "0x00"
                },
                "inputToken": "0xe0C9275E44Ea80eF17579d33c55136b7DA269aEb",
                "inputStartAmount": {
                    "type": "BigNumber",
                    "hex": "0x0186a0"
                },
                "inputEndAmount": {
                    "type": "BigNumber",
                    "hex": "0x0186a0"
                },
                "outputs": [
                    {
                        "token": "0xdFCeA9088c8A88A76FF74892C1457C17dfeef9C1",
                        "startAmount": {
                            "type": "BigNumber",
                            "hex": "0x02540be400"
                        },
                        "endAmount": {
                            "type": "BigNumber",
                            "hex": "0x02540be400"
                        },
                        "recipient": "0xa67E9B68c41b0f26184D64C26e0b2B81466E5994"
                    }
                ]
            }
        },
        "serializedOrder": "0x000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000065c072240000000000000000000000000000000000000000000000000000000065c07ddc00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000e0c9275e44ea80ef17579d33c55136b7da269aeb00000000000000000000000000000000000000000000000000000000000186a000000000000000000000000000000000000000000000000000000000000186a000000000000000000000000000000000000000000000000000000000000002000000000000000000000000006000da47483062a0d734ba3dc7576ce6a0b645c4000000000000000000000000a67e9b68c41b0f26184d64c26e0b2b81466e59940000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000006bb96c1c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000dfcea9088c8a88a76ff74892c1457c17dfeef9c100000000000000000000000000000000000000000000000000000002540be40000000000000000000000000000000000000000000000000000000002540be400000000000000000000000000a67e9b68c41b0f26184d64c26e0b2b81466e5994",
        "referenceId": "7e078d95a37943c68397f8f9c646db88"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
**With Slippage:**

```json
{
    "dexId": "1900",
    "amountIn": "100000",
    "path": [
        "0xe0C9275E44Ea80eF17579d33c55136b7DA269aEb",
        "0xdFCeA9088c8A88A76FF74892C1457C17dfeef9C1"
    ],
    "to": "0xa67E9B68c41b0f26184D64C26e0b2B81466E5994",
    "from": "0xa67E9B68c41b0f26184D64C26e0b2B81466E5994",
    "decayStartTime": "1707110948",
    "decayEndTime": "1707113948",
    "amountOutMin": "10000000000",
    "slippage": "5",
    "deadline": "1707313948"
}
```

{% endtab %}

{% tab title="Sample Response" %}
**With Slippage:**&#x20;

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "domain": {
            "name": "Permit2",
            "chainId": "1",
            "verifyingContract": "0x000000000022d473030f116ddee9f6b43ac78ba3"
        },
        "types": {
            "PermitWitnessTransferFrom": [
                {
                    "name": "permitted",
                    "type": "TokenPermissions"
                },
                {
                    "name": "spender",
                    "type": "address"
                },
                {
                    "name": "nonce",
                    "type": "uint256"
                },
                {
                    "name": "deadline",
                    "type": "uint256"
                },
                {
                    "name": "witness",
                    "type": "ExclusiveDutchOrder"
                }
            ],
            "TokenPermissions": [
                {
                    "name": "token",
                    "type": "address"
                },
                {
                    "name": "amount",
                    "type": "uint256"
                }
            ],
            "ExclusiveDutchOrder": [
                {
                    "name": "info",
                    "type": "OrderInfo"
                },
                {
                    "name": "decayStartTime",
                    "type": "uint256"
                },
                {
                    "name": "decayEndTime",
                    "type": "uint256"
                },
                {
                    "name": "exclusiveFiller",
                    "type": "address"
                },
                {
                    "name": "exclusivityOverrideBps",
                    "type": "uint256"
                },
                {
                    "name": "inputToken",
                    "type": "address"
                },
                {
                    "name": "inputStartAmount",
                    "type": "uint256"
                },
                {
                    "name": "inputEndAmount",
                    "type": "uint256"
                },
                {
                    "name": "outputs",
                    "type": "DutchOutput[]"
                }
            ],
            "OrderInfo": [
                {
                    "name": "reactor",
                    "type": "address"
                },
                {
                    "name": "swapper",
                    "type": "address"
                },
                {
                    "name": "nonce",
                    "type": "uint256"
                },
                {
                    "name": "deadline",
                    "type": "uint256"
                },
                {
                    "name": "additionalValidationContract",
                    "type": "address"
                },
                {
                    "name": "additionalValidationData",
                    "type": "bytes"
                }
            ],
            "DutchOutput": [
                {
                    "name": "token",
                    "type": "address"
                },
                {
                    "name": "startAmount",
                    "type": "uint256"
                },
                {
                    "name": "endAmount",
                    "type": "uint256"
                },
                {
                    "name": "recipient",
                    "type": "address"
                }
            ]
        },
        "values": {
            "permitted": {
                "token": "0xe0C9275E44Ea80eF17579d33c55136b7DA269aEb",
                "amount": {
                    "type": "BigNumber",
                    "hex": "0x0186a0"
                }
            },
            "spender": "0x6000da47483062A0D734Ba3dc7576Ce6A0B645C4",
            "nonce": {
                "type": "BigNumber",
                "hex": "0x01"
            },
            "deadline": "1807313948",
            "witness": {
                "info": {
                    "reactor": "0x6000da47483062A0D734Ba3dc7576Ce6A0B645C4",
                    "swapper": "0xa67E9B68c41b0f26184D64C26e0b2B81466E5994",
                    "nonce": {
                        "type": "BigNumber",
                        "hex": "0x01"
                    },
                    "deadline": "1807313948",
                    "additionalValidationContract": "0x0000000000000000000000000000000000000000",
                    "additionalValidationData": "0x"
                },
                "decayStartTime": "1707110948",
                "decayEndTime": "1707113948",
                "exclusiveFiller": "0x0000000000000000000000000000000000000000",
                "exclusivityOverrideBps": {
                    "type": "BigNumber",
                    "hex": "0x00"
                },
                "inputToken": "0xe0C9275E44Ea80eF17579d33c55136b7DA269aEb",
                "inputStartAmount": {
                    "type": "BigNumber",
                    "hex": "0x0186a0"
                },
                "inputEndAmount": {
                    "type": "BigNumber",
                    "hex": "0x0186a0"
                },
                "outputs": [
                    {
                        "token": "0xdFCeA9088c8A88A76FF74892C1457C17dfeef9C1",
                        "startAmount": {
                            "type": "BigNumber",
                            "hex": "0x02363e7f00"
                        },
                        "endAmount": {
                            "type": "BigNumber",
                            "hex": "0x02363e7f00"
                        },
                        "recipient": "0xa67E9B68c41b0f26184D64C26e0b2B81466E5994"
                    }
                ]
            }
        },
        "serializedOrder": "0x000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000065c072240000000000000000000000000000000000000000000000000000000065c07ddc00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000e0c9275e44ea80ef17579d33c55136b7da269aeb00000000000000000000000000000000000000000000000000000000000186a000000000000000000000000000000000000000000000000000000000000186a000000000000000000000000000000000000000000000000000000000000002000000000000000000000000006000da47483062a0d734ba3dc7576ce6a0b645c4000000000000000000000000a67e9b68c41b0f26184d64c26e0b2b81466e59940000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000006bb96c1c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000dfcea9088c8a88a76ff74892c1457c17dfeef9c100000000000000000000000000000000000000000000000000000002363e7f0000000000000000000000000000000000000000000000000000000002363e7f00000000000000000000000000a67e9b68c41b0f26184d64c26e0b2b81466e5994",
        "referenceId": "06ea2644923a4f648a007d2b5da34625"
    }
}
```

{% endtab %}
{% endtabs %}

### /swap

Initiate a swap transaction on a specified DEX.&#x20;

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

#### Request Body

| Name                                              | Type   | Description                                                              |
| ------------------------------------------------- | ------ | ------------------------------------------------------------------------ |
| dexId<mark style="color:red;">\*</mark>           | String | Refer to [DEX ID](broken://pages/8x8qwIu19Aq8uFsjOXvI) page for details. |
| gasPriority                                       | String | low, medium, or high.                                                    |
| gas                                               | String | Maximum gas limit provided by the sender, for the transaction.           |
| signature<mark style="color:red;">\*</mark>       | String | The quoter's signature.                                                  |
| serializedOrder<mark style="color:red;">\*</mark> | String | The encoded order data received from UniswapX.                           |
| from<mark style="color:red;">\*</mark>            | String | Address of the sender of the token.                                      |

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

```json
{
    "dexId": "1900",
    "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
    "gas": "173376",
    "signature": "0xc2f9557dcc27ff17ecf91211a6a0af6ead44acf6a7d7322d0f40afefca596a843b5d95698332867a11eb3a3f9984ac3639581b765138fc0cc88322a889dffd1d1b",
    "serializedOrder": "0x00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000006515b768000000000000000000000000000000000000000000000000000000006516e43000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc200000000000000000000000000000000000000000000000000038d7ea4c6800000000000000000000000000000000000000000000000000000038d7ea4c6800000000000000000000000000000000000000000000000000000000000000002000000000000000000000000006000da47483062a0d734ba3dc7576ce6a0b645c400000000000000000000000063056e00436da25bcf48a40dfbbdcc70893510060000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006b0c82c8000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000006b175474e89094c44da98b954eedeac495271d0f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000063056e00436da25bcf48a40dfbbdcc7089351006"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
        "to": "0x6000da47483062A0D734Ba3dc7576Ce6A0B645C4",
        "gas": "173376",
        "value": "0",
        "data": "0x3f62192e00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000032000000000000000000000000000000000000000000000000000000000000002c000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000006515b768000000000000000000000000000000000000000000000000000000006516e43000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc200000000000000000000000000000000000000000000000000038d7ea4c6800000000000000000000000000000000000000000000000000000038d7ea4c6800000000000000000000000000000000000000000000000000000000000000002000000000000000000000000006000da47483062a0d734ba3dc7576ce6a0b645c400000000000000000000000063056e00436da25bcf48a40dfbbdcc70893510060000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006b0c82c8000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000006b175474e89094c44da98b954eedeac495271d0f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000063056e00436da25bcf48a40dfbbdcc70893510060000000000000000000000000000000000000000000000000000000000000041c2f9557dcc27ff17ecf91211a6a0af6ead44acf6a7d7322d0f40afefca596a843b5d95698332867a11eb3a3f9984ac3639581b765138fc0cc88322a889dffd1d1b00000000000000000000000000000000000000000000000000000000000000",
        "estimationCheck": true,
        "referenceId": "f621a42e1dd84bac992209aa298794f3"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
**With gasPriority:**

```json
{
    "dexId": "1900",
    "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
    "gas": "173376",
    "gasPriority": "low",
    "signature": "0xc2f9557dcc27ff17ecf91211a6a0af6ead44acf6a7d7322d0f40afefca596a843b5d95698332867a11eb3a3f9984ac3639581b765138fc0cc88322a889dffd1d1b",
    "serializedOrder": "0x00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000006515b768000000000000000000000000000000000000000000000000000000006516e43000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc200000000000000000000000000000000000000000000000000038d7ea4c6800000000000000000000000000000000000000000000000000000038d7ea4c6800000000000000000000000000000000000000000000000000000000000000002000000000000000000000000006000da47483062a0d734ba3dc7576ce6a0b645c400000000000000000000000063056e00436da25bcf48a40dfbbdcc70893510060000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006b0c82c8000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000006b175474e89094c44da98b954eedeac495271d0f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000063056e00436da25bcf48a40dfbbdcc7089351006"
}
```

{% endtab %}

{% tab title="Sample Response" %}
**With gasPriority:**

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
        "to": "0x6000da47483062A0D734Ba3dc7576Ce6A0B645C4",
        "gas": "173376",
        "value": "0",
        "data": "0x3f62192e00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000032000000000000000000000000000000000000000000000000000000000000002c000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000006515b768000000000000000000000000000000000000000000000000000000006516e43000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc200000000000000000000000000000000000000000000000000038d7ea4c6800000000000000000000000000000000000000000000000000000038d7ea4c6800000000000000000000000000000000000000000000000000000000000000002000000000000000000000000006000da47483062a0d734ba3dc7576ce6a0b645c400000000000000000000000063056e00436da25bcf48a40dfbbdcc70893510060000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006b0c82c8000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000006b175474e89094c44da98b954eedeac495271d0f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000063056e00436da25bcf48a40dfbbdcc70893510060000000000000000000000000000000000000000000000000000000000000041c2f9557dcc27ff17ecf91211a6a0af6ead44acf6a7d7322d0f40afefca596a843b5d95698332867a11eb3a3f9984ac3639581b765138fc0cc88322a889dffd1d1b00000000000000000000000000000000000000000000000000000000000000",
        "gasPrice": "28356961320",
        "estimationCheck": true,
        "referenceId": "a22fd6adf60a46138b7f53cab4120ab3"
    }
}
```

{% endtab %}
{% endtabs %}


# Sushiswap V2

### /getprice

Returns the swap quotation for the given token pair.

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

#### Query Parameters

| Name                                       | Type   | Description                                                             |
| ------------------------------------------ | ------ | ----------------------------------------------------------------------- |
| rpc                                        | String | Remote procedural call URL.                                             |
| dexId<mark style="color:red;">\*</mark>    | String | Refer to the [DEX ID](/ids/dex-ids) page for details.                   |
| path<mark style="color:red;">\*</mark>     | String | Comma separated values of token addresses whose price is to be fetched. |
| amountIn<mark style="color:red;">\*</mark> | String | Amount of token.                                                        |

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

```url
https://api.expand.network/dex/getprice?dexId=1100&path=0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,0xdac17f958d2ee523a2206206994597c13d831ec7&amountIn=10000000000000000000
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "amountIn": "10000000000000000000",
        "path": [
            "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
            "0xdac17f958d2ee523a2206206994597c13d831ec7"
        ],
        "amountsOut": [
            "10000000000000000000",
            "15636200031"
        ]
    }
}
```

{% endtab %}
{% endtabs %}

### /getuserliquidity

Returns the balance of a particular token pair of an account.

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

#### Query Parameters

| Name                                      | Type   | Description                                                             |
| ----------------------------------------- | ------ | ----------------------------------------------------------------------- |
| rpc                                       | String | Remote procedural call URL.                                             |
| tokenA<mark style="color:red;">\*</mark>  | String | Address of token.                                                       |
| address<mark style="color:red;">\*</mark> | String | Public address of liquidity provider.                                   |
| dexId<mark style="color:red;">\*</mark>   | String | Refer to [DexId](broken://pages/8x8qwIu19Aq8uFsjOXvI) page for details. |
| tokenB<mark style="color:red;">\*</mark>  | String | Address of token                                                        |

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

```url
https://api.expand.network/dex/getuserliquidity?tokenA=0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2&tokenB=0x6b175474e89094c44da98b954eedeac495271d0f&address=0x6fb447ae94f5180254d436a693907a1f57696900&dexId=1100
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "pairAddress": "0xC3D03e4F041Fd4cD388c549Ee2A29a9E5075882f",
        "liquidity": "300000",
        "tokenA": "11174.919080331369",
        "tokenB": "18717989.629328925"
    }
}
```

{% endtab %}
{% endtabs %}

### /getpoolliquidity

Returns the total liquidity for a specified pool.

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

#### Query Parameters

| Name                                          | Type   | Description                                                              |
| --------------------------------------------- | ------ | ------------------------------------------------------------------------ |
| rpc                                           | String | Remote procedural call URL.                                              |
| poolAddress<mark style="color:red;">\*</mark> | String | Pool address whose liquidity is to be fetched.                           |
| dexId<mark style="color:red;">\*</mark>       | String | Refer to [DEX ID](broken://pages/8x8qwIu19Aq8uFsjOXvI) page for details. |

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

```url
https://api.expand.network/dex/getpoolliquidity?dexId=1100&poolAddress=0x6D37Eb2364f8BB28002BD404cF301fA8106DCb14
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "totalLiquidity": "5564898"
    }
}
```

{% endtab %}
{% endtabs %}

### /gettokenliquidity

Returns the individual token liquidity within the specified liquidity pool.

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

#### Query Parameters

| Name                                          | Type   | Description                                                              |
| --------------------------------------------- | ------ | ------------------------------------------------------------------------ |
| rpc                                           | String | Remote procedural call URL.                                              |
| poolAddress<mark style="color:red;">\*</mark> | String | The pool address.                                                        |
| dexId<mark style="color:red;">\*</mark>       | String | Refer to [DEX ID](broken://pages/8x8qwIu19Aq8uFsjOXvI) page for details. |

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

```
https://api.expand.network/dex/gettokenliquidity?dexId=1100&poolAddress=0xF1F85b2C54a2bD284B1cf4141D64fD171Bd85539
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "sUSD": "139894774899120916276977",
        "WETH": "75232870761760613666"
    }
}
```

{% endtab %}
{% endtabs %}

### /getindividualposition

Returns the liquidity position for a specified user address across all the pools for the DEX.&#x20;

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

#### Query Parameters

| Name                                      | Type   | Description                                                                                                                          |
| ----------------------------------------- | ------ | ------------------------------------------------------------------------------------------------------------------------------------ |
| rpc                                       | String | Remote procedural call URL.                                                                                                          |
| address<mark style="color:red;">\*</mark> | String | The public address of the liquidity holder.                                                                                          |
| dexId<mark style="color:red;">\*</mark>   | String | Refer to [DEX ID](broken://pages/8x8qwIu19Aq8uFsjOXvI) page for details.                                                             |
| poolSize                                  | String | <p>The number of pools for which the user intends to fetch the individual position. <br><em>By default: 50, Maximum: 9,950</em> </p> |
| poolAddresses                             | String | The pool Addresses whose liquidity is to be fetched. *(Comma-separated vaules)*                                                      |

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

```url
https://api.expand.network/dex/getindividualposition?poolAddresses=0x6D37Eb2364f8BB28002BD404cF301fA8106DCb14,0x055CEDfe14BCE33F985C41d9A1934B7654611AAC&address=0x11f4941c1E66d4a8B6DdbF5DCb1C356672B23779&dexId=1100
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "aggregatedLiquidity": "2000200",
        "poolAddresses": {
            "NYANUSDT": {
                "0x6D37Eb2364f8BB28002BD404cF301fA8106DCb14": "1000100"
            },
            "DAIUSDT": {
                "0x055CEDfe14BCE33F985C41d9A1934B7654611AAC": "1000100"
            }
        }
    }
}
```

{% endtab %}
{% endtabs %}

### /getpoolindividualliquidity

Returns all user addresses, block numbers, and token position details for a specified pool address.

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

#### Query Parameters

| Name                                          | Type   | Description                                                              |
| --------------------------------------------- | ------ | ------------------------------------------------------------------------ |
| rpc                                           | String | Remote procedural call URL.                                              |
| poolAddress<mark style="color:red;">\*</mark> | String | The pool address.                                                        |
| dexId<mark style="color:red;">\*</mark>       | String | Refer to [DEX ID](broken://pages/8x8qwIu19Aq8uFsjOXvI) page for details. |
| endBlock                                      | String | Last block of the range.                                                 |
| startBlock                                    | String | Starting block of the range.                                             |

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

```url
https://historicallp.api.expand.network/dex/getpoolindividualliquidity?dexId=1100&poolAddress=0x6a091a3406e0073c3cd6340122143009adac0eda&startBlock=21302465&endBlock=21302565
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": [
        {
            "userAddress": "0xf5f259b9406da00048194a651d2d507a61537fb7",
            "liquidityData": [
                {
                    "blockNumber": "21302565",
                    "transactionHash": "0xe83967aabc1053016eeaaf63d77277021b8c0e73318bb82a0514c1064c4b5feb",
                    "assets": {
                        "ILV": "1178911365981926221",
                        "WETH": "19342499999999999"
                    }
                }
            ]
        },
        {
            "userAddress": "0xf5f259b9406da00048194a651d2d507a61537fb7",
            "liquidityData": [
                {
                    "blockNumber": "21302541",
                    "transactionHash": "0xe170dd27bef8a23bfa6120f0810c299021789c1de2d693e90ccb1ac99d2a8b14",
                    "assets": {
                        "ILV": "1178972672415579907",
                        "WETH": "19342201932260271"
                    }
                }
            ]
        }
    ]
}
```

{% endtab %}
{% endtabs %}

### /getpool

&#x20;Returns poolAddress, tickSpacing, poolFees, tokensLiquidity and liquidity data based on tokenA and tokenB

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

#### Query Parameters

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

```url
https://api.expand.network/dex/getpool?dexId=1100&tokenA=0x514910771AF9Ca656af840dff83E8264EcF986CA&tokenB=0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": [
        {
            "poolAddress": "0xC40D16476380e4037e6b1A2594cAF6a6cc8Da967",
            "tickSpacing": "NA",
            "poolFees": "NA",
            "tokensLiquidity": {
                "LINK": "52389240418578349821020",
                "WETH": "283926034026738832012"
            },
            "liquidity": "2553217535085684762140"
        }
    ]
}
```

{% endtab %}
{% endtabs %}

### /gethistoricaltimeseries

Get the historical time series transactions for a specific pool address.

<mark style="color:blue;">`GET`</mark> `https://historicaltrade.api.expand.network/dex/gethistoricaltimeseries`

#### Query Parameters

| Name                                          | Type   | Description                                                              |
| --------------------------------------------- | ------ | ------------------------------------------------------------------------ |
| dexId<mark style="color:red;">\*</mark>       | String | Refer to [DEX ID](broken://pages/8x8qwIu19Aq8uFsjOXvI) page for details. |
| endBlock                                      | String | Last block of the range.                                                 |
| startBlock                                    | String | Starting block of the range.                                             |
| poolAddress<mark style="color:red;">\*</mark> | String | Pool address whose time series is to be fetched.                         |

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

```url
https://historicaltrade.api.expand.network/dex/gethistoricaltimeseries?dexId=1100&poolAddress=0xceff51756c56ceffca006cd410b03ffc46dd3a58
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "pair": "WBTC/WETH",
        "priceData": [
            {
                "hash": "0xab976730855f2319b3713478799f7aad6027419eba6f3788256b354ed0432381",
                "timestamp": 1703757971,
                "price": "17.99472597437422"
            },
            {
                "hash": "0x37d7a68ba4e4c9cd2e254108f40a7823e8eb9821ff5d6d3745801c6513732b78",
                "timestamp": 1703755007,
                "price": "18.010292734804654"
            },
            {
                "hash": "0xb5fcf54cba69bff0185ceda061d7308d56ec471a4113f4f4e1f2ee04e28523e1",
                "timestamp": 1703753111,
                "price": "18.025965450635685"
            },
            {
                "hash": "0x06b4e398e852f6cbd4e08450703f757d75c0d685d1038380c79cd04fe27bb836",
                "timestamp": 1703752775,
                "price": "18.02635771905701"
            },
            {
                "hash": "0x5421f0b31d5e7538307b2971eeb98df755ced06d650174050d8fd29429a9eb80",
                "timestamp": 1703747675,
                "price": "18.132953404785805"
            },
            {
                "hash": "0xf05259997b701905248694f0d4cc3e45194819e7bc9bb16d706e25618dfcea90",
                "timestamp": 1703747579,
                "price": "18.128817077523507"
            },
            {
                "hash": "0xc067a858610595cf81a8c076f98931e998c324c1be6cc1c4df43691d93e067e5",
                "timestamp": 1703741147,
                "price": "18.11268829405827"
            },
            {
                "hash": "0xee1a68eef523811d1e865b2dfed610666c45982a6b0c30231488f41b033353b2",
                "timestamp": 1703740199,
                "price": "18.076013983785323"
            }
        ]
    }
}
```

{% endtab %}
{% endtabs %}

### /gethistoricaltransactions

Get the historical transactions focusing on swaps associated with a specific pool address.

<mark style="color:blue;">`GET`</mark> `https://historicaltrade.api.expand.network/dex/gethistoricaltransactions`

#### Query Parameters

| Name                                          | Type   | Description                                                              |
| --------------------------------------------- | ------ | ------------------------------------------------------------------------ |
| dexId<mark style="color:red;">\*</mark>       | String | Refer to [DEX ID](broken://pages/8x8qwIu19Aq8uFsjOXvI) page for details. |
| endBlock                                      | String | Last block of the range.                                                 |
| startBlock                                    | String | Starting block of the range.                                             |
| poolAddress<mark style="color:red;">\*</mark> | String | Pool address whose transactions is to be fetched.                        |

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

```url
https://historicaltrade.api.expand.network/dex/gethistoricaltransactions?poolAddress=0xceff51756c56ceffca006cd410b03ffc46dd3a58&dexId=1100&startBlock=18362942&endBlock=18410586
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "pair": "WBTC/WETH",
        "transactions": [
            {
                "transactionHash": "0xf342f2a9172d0ff6cb2780e6bec703c695f80af9c83896ab4d3fa8f3c6b24846",
                "transactionDetails": {
                    "blockHash": "0x439cac3b235fb723f9b19bf8677797d7d7730c17bdad154c5522bece9228b9d6",
                    "blockNumber": "18367972",
                    "from": "0x4afa1538c508eab5f8d1938d7e801d670c7a7426",
                    "gas": "237646",
                    "gasPrice": "5402052229",
                    "maxFeePerGas": "6986758062",
                    "maxPriorityFeePerGas": "100000000",
                    "hash": "0xf342f2a9172d0ff6cb2780e6bec703c695f80af9c83896ab4d3fa8f3c6b24846",
                    "input": "0xf305d7190000000000000000000000002260fac5e5542a773aa44fbcfedf7c193bc2c599000000000000000000000000000000000000000000000000000000000000af0c000000000000000000000000000000000000000000000000000000000000ae2b000000000000000000000000000000000000000000000000001c31dc6fed3f820000000000000000000000004afa1538c508eab5f8d1938d7e801d670c7a742600000000000000000000000000000000000000000000000000000000652e209f",
                    "nonce": "30",
                    "to": "0xd9e1ce17f2641f24ae83637ab66a2cca9c378b9f",
                    "transactionIndex": "24",
                    "value": "7976002199280179",
                    "type": "2",
                    "accessList": [],
                    "chainId": "1",
                    "v": "0x1",
                    "r": "0x62ffb17102444747e17a643b2095ac2ed6a54d4e143f864ef913113dff9182d4",
                    "s": "0x437b394117a9bd7785207c4ee919b7c12b7835a6ed2360e59c32910b845541f0",
                    "yParity": "0x1"
                }
            },
            {
                "transactionHash": "0xc16778ad434c386310484b7b22fa173a550ff1c775016a0844d77fede3c55568",
                "transactionDetails": {
                    "blockHash": "0x126cb4d2807e3c6eec7c7a46ea034398310a86579082cbac3a81dd507fc4202f",
                    "blockNumber": "18367796",
                    "from": "0xb740b2f676f627d4077e9782cdb8dc30dbba6bd3",
                    "gas": "244750",
                    "gasPrice": "5649439124",
                    "maxFeePerGas": "6933668525",
                    "maxPriorityFeePerGas": "100000000",
                    "hash": "0xc16778ad434c386310484b7b22fa173a550ff1c775016a0844d77fede3c55568",
                    "input": "0xf305d7190000000000000000000000002260fac5e5542a773aa44fbcfedf7c193bc2c599000000000000000000000000000000000000000000000000000000000000999f00000000000000000000000000000000000000000000000000000000000098da0000000000000000000000000000000000000000000000000018bea16edc5000000000000000000000000000b740b2f676f627d4077e9782cdb8dc30dbba6bd300000000000000000000000000000000000000000000000000000000652e1853",
                    "nonce": "98",
                    "to": "0xd9e1ce17f2641f24ae83637ab66a2cca9c378b9f",
                    "transactionIndex": "63",
                    "value": "7000000000000000",
                    "type": "2",
                    "accessList": [],
                    "chainId": "1",
                    "v": "0x0",
                    "r": "0x17ce9fb061e9742d64a9a92c8ec079cceda278e604d31ed6ff93aba7b6c5b5de",
                    "s": "0x1b917196a5ccf3adf330449ff7b13b0a2012c930d8bc235cf4b3f6f8317fabd3",
                    "yParity": "0x0"
                }
            },
            {
                "transactionHash": "0xce505972535cc4f0515bda119b6ab6046bd379adf91244ab9e3a59e7a93dcf79",
                "transactionDetails": {
                    "blockHash": "0x07bd0530ec08967108dcb66f90e9d04664ce2c5dced79bc25cf4aa8592c3533f",
                    "blockNumber": "18410586",
                    "from": "0x77fbb383f424f98e744cde82a3b41f23dc1fd82e",
                    "gas": "244736",
                    "gasPrice": "9730712401",
                    "maxFeePerGas": "13360787154",
                    "maxPriorityFeePerGas": "100000000",
                    "hash": "0xce505972535cc4f0515bda119b6ab6046bd379adf91244ab9e3a59e7a93dcf79",
                    "input": "0xf305d7190000000000000000000000002260fac5e5542a773aa44fbcfedf7c193bc2c5990000000000000000000000000000000000000000000000000000000000000227000000000000000000000000000000000000000000000000000000000000022400000000000000000000000000000000000000000000000000005a7ea627b80000000000000000000000000077fbb383f424f98e744cde82a3b41f23dc1fd82e000000000000000000000000000000000000000000000000000000006535fca3",
                    "nonce": "255",
                    "to": "0xd9e1ce17f2641f24ae83637ab66a2cca9c378b9f",
                    "transactionIndex": "60",
                    "value": "100000000000000",
                    "type": "2",
                    "accessList": [],
                    "chainId": "1",
                    "v": "0x0",
                    "r": "0xf9433f60fd0fbb68b860b4ae0c284a01c93e4ccbba1630fb21b8c5d8d14cf5",
                    "s": "0x5affb309911b6b233464dcda5df91d32362df4683be260feca213ac2cebe028e",
                    "yParity": "0x0"
                }
            },
            {
                "transactionHash": "0x07019df8bb77252185c4da28f0617e80e199dfb73f398636428bf1f46214b584",
                "transactionDetails": {
                    "blockHash": "0x671426264e8f183794328b9ceafc22ae779e5935afc0c4e7d15833112874650f",
                    "blockNumber": "18389121",
                    "from": "0x0f8af7f0c71fab3d66a31243baed580cee6c0e0a",
                    "gas": "237646",
                    "gasPrice": "7083602166",
                    "maxFeePerGas": "9248000000",
                    "maxPriorityFeePerGas": "500000000",
                    "hash": "0x07019df8bb77252185c4da28f0617e80e199dfb73f398636428bf1f46214b584",
                    "input": "0xf305d7190000000000000000000000002260fac5e5542a773aa44fbcfedf7c193bc2c599000000000000000000000000000000000000000000000000000000000000d385000000000000000000000000000000000000000000000000000000000000d27600000000000000000000000000000000000000000000000000233e39715c3f920000000000000000000000000f8af7f0c71fab3d66a31243baed580cee6c0e0a0000000000000000000000000000000000000000000000000000000065320757",
                    "nonce": "2",
                    "to": "0xd9e1ce17f2641f24ae83637ab66a2cca9c378b9f",
                    "transactionIndex": "33",
                    "value": "9969890071157728",
                    "type": "2",
                    "accessList": [],
                    "chainId": "1",
                    "v": "0x0",
                    "r": "0x431d67d2054ad4d1d00fb7788243b3f4ef0a351ee1e85124fddc5281314460c8",
                    "s": "0x67621f85bfb728c192be3510624b90edb43a08e7f72033f4bf2a900ab81cb266",
                    "yParity": "0x0"
                }
            },
            {
                "transactionHash": "0xd869e9fa6ebea0d1173f97e0080552fe436a8fd02b28e3c55c6b543a1345f23c",
                "transactionDetails": {
                    "blockHash": "0x39966efee2e0877488907cea7b1856ad895ccba5427b65e081f1032bb5fe6ed0",
                    "blockNumber": "18362942",
                    "from": "0x8ef2c6f23477e31e983102310d9913c2dc69bbfe",
                    "gas": "237632",
                    "gasPrice": "8819484734",
                    "maxFeePerGas": "12054334407",
                    "maxPriorityFeePerGas": "100000000",
                    "hash": "0xd869e9fa6ebea0d1173f97e0080552fe436a8fd02b28e3c55c6b543a1345f23c",
                    "input": "0xf305d7190000000000000000000000002260fac5e5542a773aa44fbcfedf7c193bc2c5990000000000000000000000000000000000000000000000000000000000000190000000000000000000000000000000000000000000000000000000000000018e00000000000000000000000000000000000000000000000000003f774d48506b0000000000000000000000008ef2c6f23477e31e983102310d9913c2dc69bbfe00000000000000000000000000000000000000000000000000000000652d3387",
                    "nonce": "3",
                    "to": "0xd9e1ce17f2641f24ae83637ab66a2cca9c378b9f",
                    "transactionIndex": "135",
                    "value": "70132291701431",
                    "type": "2",
                    "accessList": [],
                    "chainId": "1",
                    "v": "0x1",
                    "r": "0x21d92d1da0f6178b459ca4078e30dc307295cb70f33a4bad126a4dfbf42ccf30",
                    "s": "0x6e33388b5e67f35e1d2a5bfd8a09dfa107b52a95a167deca80af1e191366f70f",
                    "yParity": "0x1"
                }
            }
        ]
    }
}
```

{% endtab %}
{% endtabs %}

### /gethistoricalpoolchartdata

Get the data for the OHCLV (Open, High, Close, Low, and Volume) prices within the specified time interval.Available on Ethereum only.

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

#### Query Parameters

<table><thead><tr><th width="194">Name</th><th>Type</th><th>Description</th></tr></thead><tbody><tr><td>dexId<mark style="color:red;">*</mark></td><td>String</td><td>Refer to <a href="/pages/8x8qwIu19Aq8uFsjOXvI">DEX ID</a> page for details.</td></tr><tr><td>interval</td><td>String</td><td>A number values representing the number of unix epoch seconds or in format of . For example 1m,1h<br>By default 15m</td></tr><tr><td>limit</td><td>String </td><td>No of iteration.<br>Start limit is 100 and maximum limit is 500.<br>By default 100</td></tr><tr><td>poolAddress<mark style="color:red;">*</mark></td><td>String</td><td>Pool address whose transactions is to be fetched. </td></tr><tr><td>rpc</td><td>String</td><td>Remote procedural call URL.</td></tr></tbody></table>

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

```url
ttps://api.expand.network/dex/gethistoricalpoolchartdata?dexId=1100&poolAddress=0x397ff1542f962076d0bfe58ea045ffa2d347aca0&interval=15m&limit=100
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "pair": "USDC/WETH",
        "chartData": [
            {
                "1719839525-1719840425": {
                    "open": "0.000287598880247",
                    "high": "0.000289309123422",
                    "low": "0.000287557877406",
                    "close": "0.000287557877406",
                    "volume": "1027.1819361597381"
                }
            },
            {
                "1719840425-1719841325": {
                    "open": "0.000287557877406",
                    "high": "0.000289324624582",
                    "low": "0.000287557877406",
                    "close": "0.000287585983414",
                    "volume": "1001.9939752719862"
                }
            },
            {
                "1719841325-1719842225": {
                    "open": "0.000287585983414",
                    "high": "0.000289805920275",
                    "low": "0.000287546358296",
                    "close": "0.000289805920275",
                    "volume": "6960.289191899625"
                }
            },
            {
                "1719842225-1719843125": {
                    "open": "0.000289805920275",
                    "high": "0.00028989162172",
                    "low": "0.00028811240044",
                    "close": "0.000288154146398",
                    "volume": "519.6836693731427"
                }
            },
            {
                "1719843125-1719844025": {
                    "open": "0.000288154146398",
                    "high": "0.000289968242419",
                    "low": "0.000288154146398",
                    "close": "0.000289968242419",
                    "volume": "1113.7817151803324"
                }
            },
            {
                "1719844025-1719844925": {
                    "open": "0.000289968242419",
                    "high": "0.000290076313289",
                    "low": "0.000288368677537",
                    "close": "0.000288368677537",
                    "volume": "1403.5120462360546"
                }
            },
            {
                "1719844925-1719845825": {
                    "open": "0.000288368677537",
                    "high": "0.000291331966243",
                    "low": "0.000288360816751",
                    "close": "0.000288789380365",
                    "volume": "47760.5994932878"
                }
            },
            {
                "1719845825-1719846725": {
                    "open": "0.000288789380365",
                    "high": "0.00028975653286",
                    "low": "0.000288050874163",
                    "close": "0.000289756532860",
                    "volume": "8279.300068131965"
                }
            },
            {
                "1719846725-1719847625": {
                    "open": "0.000289756532860",
                    "high": "0.00028975653286",
                    "low": "0.000287954958445",
                    "close": "0.000287954958445",
                    "volume": "948.6194163717478"
                }
            },
            {
                "1719847625-1719848525": {
                    "open": "0.000287954958445",
                    "high": "0.000290232560854",
                    "low": "0.000287954958445",
                    "close": "0.000288222910533",
                    "volume": "21176.670400915005"
                }
            },
            {
                "1719848525-1719849425": {
                    "open": "0.000288222910533",
                    "high": "0.00029012825849",
                    "low": "0.000287974254908",
                    "close": "0.000287974254908",
                    "volume": "8527.666757678933"
                }
            },
            {
                "1719849425-1719850325": {
                    "open": "0.000287974254908",
                    "high": "0.000287974254908",
                    "low": "0.000287679388086",
                    "close": "0.000287679388086",
                    "volume": "3259.031288552816"
                }
            },
            {
                "1719850325-1719851225": {
                    "open": "0.000287679388086",
                    "high": "0.000289284148356",
                    "low": "0.000287542290989",
                    "close": "0.000287561761147",
                    "volume": "1759.2689722080934"
                }
            },
            {
                "1719851225-1719852125": {
                    "open": "0.000287561761147",
                    "high": "0.000289308277967",
                    "low": "0.000287561761147",
                    "close": "0.000289301900287",
                    "volume": "610.1357467633167"
                }
            },
            {
                "1719852125-1719853025": {
                    "open": "0.000289301900287",
                    "high": "0.00028930578609",
                    "low": "0.000287510087393",
                    "close": "0.000289305786090",
                    "volume": "2385.3888815497207"
                }
            },
            {
                "1719853025-1719853925": {
                    "open": "0.000289305786090",
                    "high": "0.000289391196778",
                    "low": "0.000287572141335",
                    "close": "0.000289363001108",
                    "volume": "2981.0885259994343"
                }
            },
            {
                "1719853925-1719854825": {
                    "open": "0.000289363001108",
                    "high": "0.00028943423385",
                    "low": "0.000286674517332",
                    "close": "0.000287257850184",
                    "volume": "52653.19345281209"
                }
            },
            {
                "1719854825-1719855725": {
                    "open": "0.000287257850184",
                    "high": "0.000289025694384",
                    "low": "0.000287248680546",
                    "close": "0.000289012873956",
                    "volume": "2506.8882774079816"
                }
            },
            {
                "1719855725-1719856625": {
                    "open": "0.000289012873956",
                    "high": "0.000289012873956",
                    "low": "0.000287035050152",
                    "close": "0.000287035050152",
                    "volume": "2821.397659016621"
                }
            },
            {
                "1719856625-1719857525": {
                    "open": "0.000287035050152",
                    "high": "0.00028865850345",
                    "low": "0.000286314048913",
                    "close": "0.000287966580865",
                    "volume": "9343.851934998249"
                }
            },
            {
                "1719857525-1719858425": {
                    "open": "0.000287966580865",
                    "high": "0.000287966580865",
                    "low": "0.000286124525006",
                    "close": "0.000287804072197",
                    "volume": "1873.912812884589"
                }
            },
            {
                "1719858425-1719859325": {
                    "open": "0.000287804072197",
                    "high": "0.000288401572502",
                    "low": "0.000286194431736",
                    "close": "0.000288401572502",
                    "volume": "6979.135194857767"
                }
            },
            {
                "1719859325-1719860225": {
                    "open": "0.000288401572502",
                    "high": "0.000289202100206",
                    "low": "0.000286747344182",
                    "close": "0.000287521206801",
                    "volume": "22793.86777609406"
                }
            },
            {
                "1719860225-1719861125": {
                    "open": "0.000287521206801",
                    "high": "0.000287521206801",
                    "low": "0.000287151913443",
                    "close": "0.000287151913443",
                    "volume": "4024.4149558901463"
                }
            },
            {
                "1719861125-1719862025": {
                    "open": "0.000287151913443",
                    "high": "0.000287151913443",
                    "low": "0.000286988694487",
                    "close": "0.000286988694487",
                    "volume": "1885.0398560753133"
                }
            },
            {
                "1719862025-1719862925": {
                    "open": "0.000286988694487",
                    "high": "0.000288357659496",
                    "low": "0.000286676385957",
                    "close": "0.000288357659496",
                    "volume": "3758.3820505655603"
                }
            },
            {
                "1719862925-1719863825": {
                    "open": "0.000288357659496",
                    "high": "0.000288558981512",
                    "low": "0.000285995381629",
                    "close": "0.000288558981512",
                    "volume": "34498.87129343647"
                }
            },
            {
                "1719863825-1719864725": {
                    "open": "0.000288558981512",
                    "high": "0.000288828205237",
                    "low": "0.000288558981512",
                    "close": "0.000288828205237",
                    "volume": "4360.648802712191"
                }
            },
            {
                "1719864725-1719865625": {
                    "open": "0.000288828205237",
                    "high": "0.000288828205237",
                    "low": "0.000287147405991",
                    "close": "0.000287147405991",
                    "volume": "1043.6508049448505"
                }
            },
            {
                "1719865625-1719866525": {
                    "open": "0.000287147405991",
                    "high": "0.000288868777479",
                    "low": "0.000286997013587",
                    "close": "0.000288868777479",
                    "volume": "5348.6521375324855"
                }
            },
            {
                "1719866525-1719867425": {
                    "open": "0.000288868777479",
                    "high": "0.000289026446602",
                    "low": "0.000287218408634",
                    "close": "0.000289026446602",
                    "volume": "2311.403568087065"
                }
            },
            {
                "1719867425-1719868325": {
                    "open": "0.000289026446602",
                    "high": "0.000289169101766",
                    "low": "0.000287380909857",
                    "close": "0.000289169101766",
                    "volume": "844.703062918265"
                }
            },
            {
                "1719868325-1719869225": {
                    "open": "0.000289169101766",
                    "high": "0.000289223632237",
                    "low": "0.000289169101766",
                    "close": "0.000289209604345",
                    "volume": "482.94896668972126"
                }
            },
            {
                "1719869225-1719870125": {
                    "open": "0.000289209604345",
                    "high": "0.000289609243967",
                    "low": "0.000289209604345",
                    "close": "0.000289609243967",
                    "volume": "4236.808226248433"
                }
            },
            {
                "1719870125-1719871025": {
                    "open": "0.000289609243967",
                    "high": "0.000289791355127",
                    "low": "0.000289609243967",
                    "close": "0.000289791355127",
                    "volume": "2525.9751100725907"
                }
            },
            {
                "1719871025-1719871925": {
                    "open": "0.000289791355127",
                    "high": "0.000289872245971",
                    "low": "0.000289791355127",
                    "close": "0.000289872245971",
                    "volume": "320.97828394972163"
                }
            },
            {
                "1719871925-1719872825": {
                    "open": "0.000289872245971",
                    "high": "0.000291315116452",
                    "low": "0.000288154030375",
                    "close": "0.000291315116452",
                    "volume": "23174.84266492404"
                }
            },
            {
                "1719872825-1719873725": {
                    "open": "0.000291315116452",
                    "high": "0.000292170168522",
                    "low": "0.000290384953778",
                    "close": "0.000292170168522",
                    "volume": "1945.2617257151019"
                }
            },
            {
                "1719873725-1719874625": {
                    "open": "0.000292170168522",
                    "high": "0.000292275592652",
                    "low": "0.00029044712837",
                    "close": "0.000290574083943",
                    "volume": "2228.5083774294926"
                }
            },
            {
                "1719874625-1719875525": {
                    "open": "0.000290574083943",
                    "high": "0.000291779193284",
                    "low": "0.000290126811405",
                    "close": "0.000291779193284",
                    "volume": "5890.6434956605635"
                }
            },
            {
                "1719875525-1719876425": {
                    "open": "0.000291779193284",
                    "high": "0.000291981823687",
                    "low": "0.000290217041121",
                    "close": "0.000290217041121",
                    "volume": "2283.8560818349456"
                }
            },
            {
                "1719876425-1719877325": {
                    "open": "0.000290217041121",
                    "high": "0.000290217041121",
                    "low": "0.000290204440955",
                    "close": "0.000290204440955",
                    "volume": "152.0740053078659"
                }
            },
            {
                "1719877325-1719878225": {
                    "open": "0.000290204440955",
                    "high": "0.000291959345742",
                    "low": "0.00029015645604",
                    "close": "0.000291907503784",
                    "volume": "877.3322083665441"
                }
            },
            {
                "1719878225-1719879125": {
                    "open": "0.000291907503784",
                    "high": "0.000291915478661",
                    "low": "0.000290132709286",
                    "close": "0.000291895134846",
                    "volume": "720.3307724280576"
                }
            },
            {
                "1719879125-1719880025": {
                    "open": "0.000291895134846",
                    "high": "0.000291905796085",
                    "low": "0.000290146511783",
                    "close": "0.000291905796085",
                    "volume": "182.14599376270846"
                }
            },
            {
                "1719880025-1719880925": {
                    "open": "0.000291905796085",
                    "high": "0.000292043410106",
                    "low": "0.000290271577485",
                    "close": "0.000290271577485",
                    "volume": "1851.6009464122997"
                }
            },
            {
                "1719880925-1719881825": {
                    "open": "0.000290271577485",
                    "high": "0.000292224290512",
                    "low": "0.000290269647936",
                    "close": "0.000290472096619",
                    "volume": "6379.436328978674"
                }
            },
            {
                "1719881825-1719882725": {
                    "open": "0.000290472096619",
                    "high": "0.000292225847606",
                    "low": "0.000290362980245",
                    "close": "0.000290362980245",
                    "volume": "1816.9198467906708"
                }
            },
            {
                "1719882725-1719883625": {
                    "open": "0.000290362980245",
                    "high": "0.000291947372746",
                    "low": "0.000290194716125",
                    "close": "0.000291947372746",
                    "volume": "1917.160759909098"
                }
            },
            {
                "1719883625-1719884525": {
                    "open": "0.000291947372746",
                    "high": "0.000291947372746",
                    "low": "0.000290181399646",
                    "close": "0.000290181399646",
                    "volume": "167.58762872089105"
                }
            },
            {
                "1719884525-1719885425": {
                    "open": "0.000290181399646",
                    "high": "0.000291927264653",
                    "low": "0.000290115285408",
                    "close": "0.000290115285408",
                    "volume": "851.5825514807977"
                }
            },
            {
                "1719885425-1719886325": {
                    "open": "0.000290115285408",
                    "high": "0.00029186392344",
                    "low": "0.000289995372138",
                    "close": "0.000289995372138",
                    "volume": "1608.9022713911354"
                }
            },
            {
                "1719886325-1719887225": {
                    "open": "0.000289995372138",
                    "high": "0.000289995372138",
                    "low": "0.000289620793086",
                    "close": "0.000289620793086",
                    "volume": "3877.0254246503273"
                }
            },
            {
                "1719887225-1719888125": {
                    "open": "0.000289620793086",
                    "high": "0.000291253799886",
                    "low": "0.000289542776226",
                    "close": "0.000291253799886",
                    "volume": "1217.71178770564"
                }
            },
            {
                "1719888125-1719889025": {
                    "open": "0.000291253799886",
                    "high": "0.000291253799886",
                    "low": "0.000289381182869",
                    "close": "0.000289381182869",
                    "volume": "1373.104344494171"
                }
            },
            {
                "1719889025-1719889925": {
                    "open": "0.000289381182869",
                    "high": "0.000291125264651",
                    "low": "0.000289370463642",
                    "close": "0.000291104450587",
                    "volume": "239.34395498751215"
                }
            },
            {
                "1719889925-1719890825": {
                    "open": "0.000291104450587",
                    "high": "0.000291104450587",
                    "low": "0.000289337245422",
                    "close": "0.000289337245422",
                    "volume": "498.1656741908371"
                }
            },
            {
                "1719890825-1719891725": {
                    "open": "0.000289337245422",
                    "high": "0.000289337245422",
                    "low": "0.000289263654983",
                    "close": "0.000289263654983",
                    "volume": "1002.6548365608711"
                }
            },
            {
                "1719891725-1719892625": {
                    "open": "0.000289263654983",
                    "high": "0.000289263654983",
                    "low": "0.000288985639204",
                    "close": "0.000288985639204",
                    "volume": "2916.175806722943"
                }
            },
            {
                "1719892625-1719893525": {
                    "open": "0.000288985639204",
                    "high": "0.000290714221466",
                    "low": "0.000288971080795",
                    "close": "0.000288971080795",
                    "volume": "134.8419481568912"
                }
            },
            {
                "1719893525-1719894425": {
                    "open": "0.000288971080795",
                    "high": "0.000290707012536",
                    "low": "0.000288566992789",
                    "close": "0.000290295547957",
                    "volume": "4487.036199868698"
                }
            },
            {
                "1719894425-1719895325": {
                    "open": "0.000290295547957",
                    "high": "0.000290310038008",
                    "low": "0.000288545235559",
                    "close": "0.000290279631296",
                    "volume": "1088.974890506496"
                }
            },
            {
                "1719895325-1719896225": {
                    "open": "0.000290279631296",
                    "high": "0.000290314783964",
                    "low": "0.000290279631296",
                    "close": "0.000290314783964",
                    "volume": "282.54991485269693"
                }
            },
            {
                "1719896225-1719897125": {
                    "open": "0.000290314783964",
                    "high": "0.000290316899539",
                    "low": "0.000288551684018",
                    "close": "0.000290316899539",
                    "volume": "1193.7943568591313"
                }
            },
            {
                "1719897125-1719898025": {
                    "open": "0.000290316899539",
                    "high": "0.000290316899539",
                    "low": "0.000288605900599",
                    "close": "0.000288605900599",
                    "volume": "199.98646975060538"
                }
            },
            {
                "1719898025-1719898925": {
                    "open": "0.000288605900599",
                    "high": "0.000288605900599",
                    "low": "0.000288527134548",
                    "close": "0.000288527134548",
                    "volume": "849.2266498712623"
                }
            },
            {
                "1719898925-1719899825": {
                    "open": "0.000288527134548",
                    "high": "0.000290338288572",
                    "low": "0.000288522000675",
                    "close": "0.000288672084866",
                    "volume": "1968.6997179984214"
                }
            },
            {
                "1719899825-1719900725": {
                    "open": "0.000288672084866",
                    "high": "0.000288672084866",
                    "low": "0.00028861940132",
                    "close": "0.000288619401320",
                    "volume": "552.2167173229773"
                }
            },
            {
                "1719900725-1719901625": {
                    "open": "0.000288619401320",
                    "high": "0.00028861940132",
                    "low": "0.000288600881562",
                    "close": "0.000288600881562",
                    "volume": "161.28909185359262"
                }
            },
            {
                "1719901625-1719902525": {
                    "open": "0.000288600881562",
                    "high": "0.00029054423902",
                    "low": "0.000288582018988",
                    "close": "0.000289042892691",
                    "volume": "5592.36795573799"
                }
            },
            {
                "1719902525-1719903425": {
                    "open": "0.000289042892691",
                    "high": "0.000289042892691",
                    "low": "0.000289040431335",
                    "close": "0.000289040986582",
                    "volume": "11.940580150211211"
                }
            },
            {
                "1719903425-1719904325": {
                    "open": "0.000289040986582",
                    "high": "0.000290930821084",
                    "low": "0.000289039522584",
                    "close": "0.000290930821084",
                    "volume": "3175.5893378867427"
                }
            },
            {
                "1719904325-1719905225": {
                    "open": "0.000290930821084",
                    "high": "0.000291168519785",
                    "low": "0.000289328388588",
                    "close": "0.000289410596509",
                    "volume": "1511.265118113191"
                }
            },
            {
                "1719905225-1719906125": {
                    "open": "0.000289410596509",
                    "high": "0.000291356402792",
                    "low": "0.000289410596509",
                    "close": "0.000289751532746",
                    "volume": "4215.174059925783"
                }
            },
            {
                "1719906125-1719907025": {
                    "open": "0.000289751532746",
                    "high": "0.00029159152128",
                    "low": "0.000289751532746",
                    "close": "0.000289831374769",
                    "volume": "1326.4138403786988"
                }
            },
            {
                "1719907025-1719907925": {
                    "open": "0.000289831374769",
                    "high": "0.000291586433825",
                    "low": "0.000289827821888",
                    "close": "0.000291576127108",
                    "volume": "334.9587180919302"
                }
            },
            {
                "1719907925-1719908825": {
                    "open": "0.000291576127108",
                    "high": "0.000292064859992",
                    "low": "0.000289846815175",
                    "close": "0.000292064859992",
                    "volume": "9303.777730251591"
                }
            },
            {
                "1719908825-1719909725": {
                    "open": "0.000292064859992",
                    "high": "0.00029234704332",
                    "low": "0.000290536286061",
                    "close": "0.000290536286061",
                    "volume": "1792.7813129030706"
                }
            },
            {
                "1719909725-1719910625": {
                    "open": "0.000290536286061",
                    "high": "0.000290536286061",
                    "low": "0.000290330597376",
                    "close": "0.000290330597376",
                    "volume": "2323.3367937348507"
                }
            },
            {
                "1719910625-1719911525": {
                    "open": "0.000290330597376",
                    "high": "0.000292319754309",
                    "low": "0.00029022045856",
                    "close": "0.000290242937727",
                    "volume": "16849.641352630624"
                }
            },
            {
                "1719911525-1719912425": {
                    "open": "0.000290242937727",
                    "high": "0.000291662154859",
                    "low": "0.000290002797452",
                    "close": "0.000291662154859",
                    "volume": "3383.4513928081437"
                }
            },
            {
                "1719912425-1719913325": {
                    "open": "0.000291662154859",
                    "high": "0.000291696131615",
                    "low": "0.000289951374976",
                    "close": "0.000291692455994",
                    "volume": "749.2821836964731"
                }
            },
            {
                "1719913325-1719914225": {
                    "open": "0.000291692455994",
                    "high": "0.000291705365879",
                    "low": "0.000291692455994",
                    "close": "0.000291705365879",
                    "volume": "109.49786083200205"
                }
            },
            {
                "1719914225-1719915125": {
                    "open": "0.000291705365879",
                    "high": "0.000291729504931",
                    "low": "0.00028997937622",
                    "close": "0.000291729504931",
                    "volume": "349.75646193837736"
                }
            },
            {
                "1719915125-1719916025": {
                    "open": "0.000291729504931",
                    "high": "0.000291752638554",
                    "low": "0.000291729504931",
                    "close": "0.000291752638554",
                    "volume": "249.6692444215477"
                }
            },
            {
                "1719916025-1719916925": {
                    "open": "0.000291752638554",
                    "high": "0.000291758717758",
                    "low": "0.000289975773859",
                    "close": "0.000289975773859",
                    "volume": "572.3345892317767"
                }
            },
            {
                "1719916925-1719917825": {
                    "open": "0.000289975773859",
                    "high": "0.000289975773859",
                    "low": "0.000289937765506",
                    "close": "0.000289937765506",
                    "volume": "494.1086296735268"
                }
            },
            {
                "1719917825-1719918725": {
                    "open": "0.000289937765506",
                    "high": "0.000289937765506",
                    "low": "0.000289824884848",
                    "close": "0.000289824884848",
                    "volume": "1072.1311860811975"
                }
            },
            {
                "1719918725-1719919625": {
                    "open": "0.000289824884848",
                    "high": "0.000291565930638",
                    "low": "0.000289818990731",
                    "close": "0.000289818990731",
                    "volume": "9.315606744949854"
                }
            },
            {
                "1719919625-1719920525": {
                    "open": "0.000289818990731",
                    "high": "0.000291931424612",
                    "low": "0.000289737730691",
                    "close": "0.000289956189748",
                    "volume": "17560.999591102853"
                }
            },
            {
                "1719920525-1719921425": {
                    "open": "0.000289956189748",
                    "high": "0.00029141283902",
                    "low": "0.000289712717562",
                    "close": "0.000291412839020",
                    "volume": "6140.69316634406"
                }
            },
            {
                "1719921425-1719922325": {
                    "open": "0.000291412839020",
                    "high": "0.000291439199535",
                    "low": "0.00029141283902",
                    "close": "0.000291439199535",
                    "volume": "581.8165287233476"
                }
            },
            {
                "1719922325-1719923225": {
                    "open": "0.000291439199535",
                    "high": "0.000291439199535",
                    "low": "0.000289503202191",
                    "close": "0.000291114696221",
                    "volume": "8346.122060235028"
                }
            },
            {
                "1719923225-1719924125": {
                    "open": "0.000291114696221",
                    "high": "0.000291166216787",
                    "low": "0.000291114696221",
                    "close": "0.000291166216787",
                    "volume": "1590.8560113257302"
                }
            },
            {
                "1719924125-1719925025": {
                    "open": "0.000291166216787",
                    "high": "0.000291222833555",
                    "low": "0.000289448500469",
                    "close": "0.000291222833555",
                    "volume": "751.944652564948"
                }
            },
            {
                "1719925025-1719925925": {
                    "open": "0.000291222833555",
                    "high": "0.000291222833555",
                    "low": "0.000289334701672",
                    "close": "0.000289334701672",
                    "volume": "3350.9988574111662"
                }
            },
            {
                "1719925925-1719926825": {
                    "open": "0.000289334701672",
                    "high": "0.000290918116523",
                    "low": "0.000289126496852",
                    "close": "0.000289126496852",
                    "volume": "4403.116875499735"
                }
            },
            {
                "1719926825-1719927725": {
                    "open": "0.000289126496852",
                    "high": "0.000290874978948",
                    "low": "0.000288740369187",
                    "close": "0.000288740369187",
                    "volume": "10912.449031269218"
                }
            },
            {
                "1719927725-1719928625": {
                    "open": "0.000288740369187",
                    "high": "0.00029184335228",
                    "low": "0.000288740369187",
                    "close": "0.000291843352280",
                    "volume": "31952.603082310354"
                }
            },
            {
                "1719928625-1719929525": {
                    "open": "0.000291843352280",
                    "high": "0.000292137853292",
                    "low": "0.0002900144809",
                    "close": "0.000292137853292",
                    "volume": "10789.357635119048"
                }
            }
        ]
    }
}
```

{% endtab %}
{% endtabs %}

### /getpooltradedata

Get the trade data from the pool within a specified block range, for the specified event type

<mark style="color:blue;">`GET`</mark> `https://historicaltrade.api.expand.network/dex/getpooltradedata`

#### Query Parameters

| Name                                          | Type   | Description                                                              |
| --------------------------------------------- | ------ | ------------------------------------------------------------------------ |
| dexId<mark style="color:red;">\*</mark>       | String | Refer to [DEX ID](broken://pages/8x8qwIu19Aq8uFsjOXvI) page for details. |
| endBlock                                      | String | Last block of the range.                                                 |
| startBlock                                    | String | Starting block of the range.                                             |
| poolAddress<mark style="color:red;">\*</mark> | String | Pool address whose data is to be fetched.                                |
| eventType                                     | String | Transfer, Swap, Burn or Mint(by default).                                |

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

```url
https://historicaltrade.api.expand.network/dex/getpooltradedata?poolAddress=0x397ff1542f962076d0bfe58ea045ffa2d347aca0&dexId=1100&startBlock=18795938&endBlock=18802579
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "pair": "USDC/WETH",
        "transactions": [
            {
                "blockNumber": "18802579",
                "transactionHash": "0x244973c75c485606de7da7a1b6979ad60a85acc0eface61346363c838f0b1246",
                "values": {
                    "0": "0xd9e1cE17f2641f24aE83637ab66a2cca9C378B9F",
                    "1": "6000000",
                    "2": "2695481331319850",
                    "sender": "0xd9e1cE17f2641f24aE83637ab66a2cca9C378B9F",
                    "amount0": "6000000",
                    "amount1": "2695481331319850"
                },
                "eventType": "Mint",
                "data": {
                    "data": "0x00000000000000000000000000000000000000000000000000000000005b8d8000000000000000000000000000000000000000000000000000099386a740842a",
                    "topics": [
                        "0x4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f",
                        "0x000000000000000000000000d9e1ce17f2641f24ae83637ab66a2cca9c378b9f"
                    ]
                }
            },
            {
                "blockNumber": "18795938",
                "transactionHash": "0x015caf944af53d7e4812b5483d49564e6ab6124c9209e3e163449cfef0ccc9b4",
                "values": {
                    "0": "0xd9e1cE17f2641f24aE83637ab66a2cca9C378B9F",
                    "1": "3592426738",
                    "2": "1598745565343756835",
                    "sender": "0xd9e1cE17f2641f24aE83637ab66a2cca9C378B9F",
                    "amount0": "3592426738",
                    "amount1": "1598745565343756835"
                },
                "eventType": "Mint",
                "data": {
                    "data": "0x00000000000000000000000000000000000000000000000000000000d62014f2000000000000000000000000000000000000000000000000162fe29f048bb223",
                    "topics": [
                        "0x4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f",
                        "0x000000000000000000000000d9e1ce17f2641f24ae83637ab66a2cca9c378b9f"
                    ]
                }
            }
        ]
    }
}
```

{% endtab %}
{% endtabs %}

### /swap

Initiate a swap transaction on a specified DEX.

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

#### Request Body

| Name                                       | Type   | Description                                                                                 |
| ------------------------------------------ | ------ | ------------------------------------------------------------------------------------------- |
| dexId<mark style="color:red;">\*</mark>    | String | Refer to the [DEX ID](broken://pages/8x8qwIu19Aq8uFsjOXvI) page for details.                |
| path<mark style="color:red;">\*</mark>     | Array  | Comma-separated values of token addresses, inside an array, to swap.                        |
| amountIn<mark style="color:red;">\*</mark> | String | Amount of token to be swapped.                                                              |
| amountOutMin                               | String | Minimum amount accepted as a result of swap.                                                |
| to<mark style="color:red;">\*</mark>       | String | Address of the recipient of the token.                                                      |
| deadline<mark style="color:red;">\*</mark> | String | Deadline for the transaction to be executed (UNIX Timestamp).                               |
| from<mark style="color:red;">\*</mark>     | String | Address of the sender of the token.                                                         |
| gas                                        | String | Maximum gas limit provided by the sender, for the transaction.                              |
| rpc                                        | String | Remote procedural call URL.                                                                 |
| gasPriority                                | String | low, medium, or high.                                                                       |
| slippage                                   | String | <p>Percentage of total swap value. <br>By default, 1.</p><p>0 <= slippage  value <= 100</p> |

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

```json
{
    "dexId": "1100",
    "amountIn": "1000000000000000",
    "amountOutMin": "0",
    "path": ["0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2","0x6B175474E89094C44Da98b954EedeAC495271d0F"],
    "to": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
    "deadline": "1665991665",
    "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
    "gas": "173376"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
        "to": "0xd9e1cE17f2641f24aE83637ab66a2cca9C378B9F",
        "value": "0",
        "gas": "173376",
        "data": "0x38ed173900000000000000000000000000000000000000000000000000038d7ea4c68000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000063056e00436da25bcf48a40dfbbdcc708935100600000000000000000000000000000000000000000000000000000000634d03f10000000000000000000000000000000000000000000000000000000000000002000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc20000000000000000000000006b175474e89094c44da98b954eedeac495271d0f",
        "estimationCheck": true,
        "referenceId": "c6c9368e65c64c7eab8c72d0ffec4d5b"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
**With gasPriority (high):**

<pre class="language-json"><code class="lang-json">{
    "dexId":"1100",
    "amountIn": "10000000000",
    "amountOutMin": "0",
    "path": ["0x6B175474E89094C44Da98b954EedeAC495271d0F","0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"],
    "to": "0x356dB816602c85e2075774bB77D13995c8Bab023",
    "deadline": "1765990894",
    "from": "0x356dB816602c85e2075774bB77D13995c8Bab023",
    "gas": "273376",
    "gasPriority":"high"
<strong>}
</strong></code></pre>

{% endtab %}

{% tab title="Sample Response" %}
**With gasPriority:**

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x356dB816602c85e2075774bB77D13995c8Bab023",
        "to": "0xd9e1cE17f2641f24aE83637ab66a2cca9C378B9F",
        "value": "0",
        "gas": "273376",
        "data": "0x38ed173900000000000000000000000000000000000000000000000000000002540be400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000356db816602c85e2075774bb77d13995c8bab023000000000000000000000000000000000000000000000000000000006942e1ee00000000000000000000000000000000000000000000000000000000000000020000000000000000000000006b175474e89094c44da98b954eedeac495271d0f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
        "gasPrice": "41404698348",
        "estimationCheck": true,
        "referenceId": "1b07000a841f41ed9125e2b5d36a5ee2"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
**With Slippage:**

```json
{
    "dexId": "1100",
    "amountIn": "100000",
    "amountOutMin": "98830762578185630",
    "path": [
        "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
        "0x6B175474E89094C44Da98b954EedeAC495271d0F"
    ],
    "to": "0x22cf65ae3fa16d6379e72f4b4c2401c1b7c69731",
    "deadline": "1711931771",
    "from": "0x22cf65ae3fa16d6379e72f4b4c2401c1b7c69731",
    "gas": "933376",
    "slippage": "3.4"
}
```

{% endtab %}

{% tab title="Sample Response" %}
**With Slippage:**

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x22cf65ae3fa16d6379e72f4b4c2401c1b7c69731",
        "to": "0xd9e1cE17f2641f24aE83637ab66a2cca9C378B9F",
        "value": "0",
        "gas": "933376",
        "data": "0x38ed173900000000000000000000000000000000000000000000000000000000000186a000000000000000000000000000000000000000000000000001567568b369fc1000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000022cf65ae3fa16d6379e72f4b4c2401c1b7c6973100000000000000000000000000000000000000000000000000000000660a017b0000000000000000000000000000000000000000000000000000000000000002000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb480000000000000000000000006b175474e89094c44da98b954eedeac495271d0f",
        "estimationCheck": true,
        "referenceId": "0f304e90b4364ed5bbb5687d80b519e1"
    }
}
```

{% endtab %}
{% endtabs %}

### /addliquidity

Add liquidity to a specified pool in a specified DEX.

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

#### Request Body

| Name                                             | Type   | Description                                                                            |
| ------------------------------------------------ | ------ | -------------------------------------------------------------------------------------- |
| dexId<mark style="color:red;">\*</mark>          | String | Refer to the [DEX ID](broken://pages/8x8qwIu19Aq8uFsjOXvI) page for details.           |
| tokenA<mark style="color:red;">\*</mark>         | String | Address of the first token being added.                                                |
| tokenB<mark style="color:red;">\*</mark>         | String | Address of the second token being added.                                               |
| amountADesired<mark style="color:red;">\*</mark> | String | Desired amount of token A.                                                             |
| amountBDesired<mark style="color:red;">\*</mark> | String | Desired amount of token B.                                                             |
| amountAMin<mark style="color:red;">\*</mark>     | String | Minimum amount of token A.                                                             |
| amountBMin<mark style="color:red;">\*</mark>     | String | Minimum amount of token B.                                                             |
| deadline<mark style="color:red;">\*</mark>       | String | Deadline for the transaction to be executed (UNIX Timestamp).                          |
| to<mark style="color:red;">\*</mark>             | String | Address of the recipient of the token.                                                 |
| from<mark style="color:red;">\*</mark>           | String | Address of the sender of the token.                                                    |
| gas                                              | String | Maximum gas limit provided by the sender, for the transaction.                         |
| rpc                                              | String | Remote procedural call URL.                                                            |
| gasPriority                                      | String | low, medium, or high.                                                                  |
| slippage                                         | String | <p>Percentage of total value. <br>By default, 1.</p><p>0 <= slippage  value <= 100</p> |

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

```json
{
    "dexId": "1100",
    "tokenA": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
    "tokenB": "0x6B175474E89094C44Da98b954EedeAC495271d0F",
    "amountADesired": "50000000000000000",
    "amountBDesired": "1914090565548627",
    "amountAMin": "0",
    "amountBMin": "0",
    "to": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
    "deadline": "1669709170",
    "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
    "gas": "2307200"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
        "to": "0xd9e1cE17f2641f24aE83637ab66a2cca9C378B9F",
        "value": "0",
        "gas": "2307200",
        "data": "0xe8e33700000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc20000000000000000000000006b175474e89094c44da98b954eedeac495271d0f00000000000000000000000000000000000000000000000000b1a2bc2ec500000000000000000000000000000000000000000000000000000006ccdaf03a3a530000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000063056e00436da25bcf48a40dfbbdcc7089351006000000000000000000000000000000000000000000000000000000006385bd72",
        "estimationCheck": true,
        "referenceId": "7ed581d1f8f5443ea15b983ec3ef18a6"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
**With gasPriority (low):**

```json
{
    "dexId": "1100",
    "tokenA": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48", 
    "tokenB": "0x6B175474E89094C44Da98b954EedeAC495271d0F", 
    "amountADesired": "1000",
    "amountBDesired": "997726184637093",
    "amountAMin": "0",
    "amountBMin": "0",
    "poolFees":"3000",
    "from": "0x356dB816602c85e2075774bB77D13995c8Bab023",
    "to":"0x356dB816602c85e2075774bB77D13995c8Bab023",
    "deadline":"1699965600472",
    "gas": "773376",
    "gasPriority":"low"
}
```

{% endtab %}

{% tab title="Sample Response" %}
**With gasPriority:**

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x356dB816602c85e2075774bB77D13995c8Bab023",
        "to": "0xd9e1cE17f2641f24aE83637ab66a2cca9C378B9F",
        "value": "0",
        "gas": "773376",
        "data": "0xe8e33700000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb480000000000000000000000006b175474e89094c44da98b954eedeac495271d0f00000000000000000000000000000000000000000000000000000000000003e800000000000000000000000000000000000000000000000000038b6d3ad182a500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000356db816602c85e2075774bb77d13995c8bab0230000000000000000000000000000000000000000000000000000018bcdd882d8",
        "gasPrice": "28203706430",
        "estimationCheck": true,
        "referenceId": "5f261f51e6a04444a867305fc8bce0d6"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
**With Slippage:**

```json
{
    "dexId": "1100",
    "tokenA": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
    "tokenB": "0x6B175474E89094C44Da98b954EedeAC495271d0F",
    "amountADesired": "50000000000000000",
    "amountBDesired": "1914090565548627",
    "amountAMin": "0",
    "amountBMin": "0",
    "to": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
    "deadline": "1669709170",
    "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
    "gas": "2307200",
    "slippage": "5"
}
```

{% endtab %}

{% tab title="Sample Response" %}
**With Slippage:**

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
        "to": "0xd9e1cE17f2641f24aE83637ab66a2cca9C378B9F",
        "value": "0",
        "gas": "2307200",
        "data": "0xe8e33700000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc20000000000000000000000006b175474e89094c44da98b954eedeac495271d0f00000000000000000000000000000000000000000000000000b1a2bc2ec500000000000000000000000000000000000000000000000000000006ccdaf03a3a530000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000063056e00436da25bcf48a40dfbbdcc7089351006000000000000000000000000000000000000000000000000000000006385bd72",
        "estimationCheck": true,
        "referenceId": "82a7c7e1f9664956a0eb03b8b4eba7ef"
    }
}
```

{% endtab %}
{% endtabs %}

### /removeliquidity

Remove liquidity from a specified pool for a specified DEX.

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

#### Request Body

| Name                                         | Type   | Description                                                                  |
| -------------------------------------------- | ------ | ---------------------------------------------------------------------------- |
| dexId<mark style="color:red;">\*</mark>      | String | Refer to the [DEX ID](broken://pages/8x8qwIu19Aq8uFsjOXvI) page for details. |
| tokenA<mark style="color:red;">\*</mark>     | String | Address of the first token being removed.                                    |
| tokenB<mark style="color:red;">\*</mark>     | String | Address of the second token being removed.                                   |
| liquidity<mark style="color:red;">\*</mark>  | String | Total amount of liquidity to be removed from the given pool.                 |
| amountAMin<mark style="color:red;">\*</mark> | String | Minimum amount of Token A.                                                   |
| amountBMin<mark style="color:red;">\*</mark> | String | Minimum amount of Token B.                                                   |
| deadline<mark style="color:red;">\*</mark>   | String | Deadline for the transaction to be executed (UNIX Timestamp).                |
| to<mark style="color:red;">\*</mark>         | String | Address of the recipient of the token.                                       |
| from<mark style="color:red;">\*</mark>       | String | Address of the sender of the token.                                          |
| gas                                          | String | Maximum gas limit provided by the sender, for the transaction.               |
| rpc                                          | String | Remote procedural call URL.                                                  |
| gasPriority                                  | String | low, medium, or high.                                                        |
| slippage                                     | String | Percentage of total value. By default, 1. 0 <= slippage value <= 10          |

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

```json
{

    "dexId": "1100",
    "tokenA": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
    "tokenB": "0x6B175474E89094C44Da98b954EedeAC495271d0F",
    "liquidity": "24329217355609123",
    "amountAMin": "0",
    "amountBMin": "0",
    "to": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
    "deadline": "1666077074",
    "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
    "gas": "400000"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
        "to": "0xd9e1cE17f2641f24aE83637ab66a2cca9C378B9F",
        "value": "0",
        "gas": "400000",
        "data": "0xbaa2abde000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc20000000000000000000000006b175474e89094c44da98b954eedeac495271d0f00000000000000000000000000000000000000000000000000566f4b5624f4230000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000063056e00436da25bcf48a40dfbbdcc708935100600000000000000000000000000000000000000000000000000000000634e5192",
        "estimationCheck": true,
        "referenceId": "838c56cd8ee9402b96cc1e9939fa1e75"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
**With gasPriority (high):**

```json
{
    "dexId": "1100",
    "tokenA": "0x6B175474E89094C44Da98b954EedeAC495271d0F", 
    "tokenB": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2", 
    "amountAMin": "0",
    "amountBMin": "0",
    "from": "0x6fb447ae94f5180254d436a693907a1f57696900",
    "to":"0x6fb447ae94f5180254d436a693907a1f57696900",
    "deadline":"1700034397679",
    "liquidity":"9000",
    "gas": "123444",
    "gasPriority":"high"
}
```

{% endtab %}

{% tab title="Sample Response" %}
**With gasPriority:**

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x6fb447ae94f5180254d436a693907a1f57696900",
        "to": "0xd9e1cE17f2641f24aE83637ab66a2cca9C378B9F",
        "value": "0",
        "gas": "123444",
        "data": "0xbaa2abde0000000000000000000000006b175474e89094c44da98b954eedeac495271d0f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc20000000000000000000000000000000000000000000000000000000000002328000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006fb447ae94f5180254d436a693907a1f576969000000000000000000000000000000000000000000000000000000018bd1f245ef",
        "gasPrice": "42201880389",
        "estimationCheck": true,
        "referenceId": "e2da1cb79e5143f7ba8e4531e888ff9b"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
**With slippage:**

```json
{
    "dexId": "1100",
    "tokenA": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
    "tokenB": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
    "liquidity": "2961185246",
    "amountAMin": "100000",
    "amountBMin": "100000",
    "to": "0x4970798F8E5a77598CA4Da778eb6D12303AEefc9",
    "deadline": "1669720626",
    "from": "0x4970798F8E5a77598CA4Da778eb6D12303AEefc9",
    "gas": "420000",
    "slippage": "3.234551"
}
```

{% endtab %}

{% tab title="Sample Response" %}
**With slippage:**&#x20;

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x4970798F8E5a77598CA4Da778eb6D12303AEefc9",
        "to": "0xd9e1cE17f2641f24aE83637ab66a2cca9C378B9F",
        "value": "0",
        "gas": "420000",
        "data": "0xbaa2abde000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc200000000000000000000000000000000000000000000000000000000b08019de00000000000000000000000000000000000000000000000000000000000179fd00000000000000000000000000000000000000000000000000000000000179fd0000000000000000000000004970798f8e5a77598ca4da778eb6d12303aeefc9000000000000000000000000000000000000000000000000000000006385ea32",
        "estimationCheck": true,
        "referenceId": "4e459282550541e1be8446739a5f5225"
    }
}
```

{% endtab %}
{% endtabs %}


# PancakeSwap V2

## Supported Chains

Available on **Aptos, Binance Mainnet, and Binance Testnet.**

## Available Endpoints:

*Click on the endpoint to jump to the section with full details*

* [<mark style="color:blue;">/getprice</mark>](#getprice) <mark style="color:blue;">`GET`</mark> - Returns the swap quotation for a given token pair.
* [<mark style="color:blue;">/getuserliquidity</mark>](#getuserliquidity) <mark style="color:blue;">`GET`</mark> - Returns the balance of a particular token pair of accounts.&#x20;
* [<mark style="color:blue;">/getpoolliquidity</mark>](#getpoolliquidity) <mark style="color:blue;">`GET`</mark> - Returns the total liquidity for a specified pool.
* [<mark style="color:blue;">/gettokenliquidity</mark>](#gettokenliquidity) <mark style="color:blue;">`GET`</mark> - Returns the individual token liquidity within the specified liquidity pool.
* [<mark style="color:blue;">/</mark>](#getprice)[<mark style="color:blue;">getliquidityholders</mark>](#getliquidityholders) <mark style="color:blue;">`GET`</mark> - Returns the swap quotation for a given token pair. - Returns the total number of liquidity holders in the specified pool. Currently Available on **Binance.**
* [<mark style="color:blue;">/</mark>](#getprice)[<mark style="color:blue;">getindividualposition</mark>](#getindividualposition) <mark style="color:blue;">`GET`</mark> - Returns the swap quotation for a given token pair. - Returns the total number of liquidity holders in the specified pool. Currently Available on **Binance.**
* [<mark style="color:blue;">/</mark>](#getprice)[<mark style="color:blue;">getpoolindividualliquidity</mark>](#getpoolindividualliquidity) <mark style="color:blue;">`GET`</mark> - Returns all user addresses, block numbers, and token position details for a specified pool address. Currently Available on **Binance.**
* [<mark style="color:blue;">/</mark>](#getprice)[<mark style="color:blue;">gethistoricaltimeseries</mark> ](#gethistoricaltimeseries)<mark style="color:blue;">`GET`</mark> - Returns the swap quotation for a given token pair. - Returns the total number of liquidity holders in the specified pool. Currently Available on **Binance.**
* [<mark style="color:blue;">/</mark>](#getprice)[<mark style="color:blue;">gethistoricaltransactions</mark>](#gethistoricaltransactions) <mark style="color:blue;">`GET`</mark> - Returns the swap quotation for a given token pair. - Returns the total number of liquidity holders in the specified pool. Currently Available on **Binance.**
* [<mark style="color:blue;">/</mark>](#getprice)[<mark style="color:blue;">swap</mark>](#swap) <mark style="color:green;">`POST`</mark> - Initiate a swap transaction on a specified DEX.&#x20;
* [<mark style="color:blue;">/</mark>](#getprice)[<mark style="color:blue;">addliquidity</mark>](#addliquidity) <mark style="color:green;">`POST`</mark> - Add liquidity to a specified pool in a specified DEX.&#x20;
* [<mark style="color:blue;">/</mark>](#getprice)[<mark style="color:blue;">removeliquidity</mark>](#removeliquidity) <mark style="color:green;">`POST`</mark> - Remove liquidity from a specified pool in a specified DEX.&#x20;

## DEX IDs

Many endpoints have a parameter where you can provide a DEX ID.&#x20;

Below is a list of DEX IDs related to PancakeSwap V3. Please see the [DEX ID page](/ids/dex-ids) for a complete DEX ID list and more information.

| DEX Name       | Chain                       | DEX ID |
| -------------- | --------------------------- | ------ |
| PancakeSwap V2 | Binance Smart Chain         | 1200   |
| PancakeSwap V2 | Binance Smart Chain Testnet | 1201   |
| PancakeSwap V2 | Aptos                       | 2900   |
| PancakeSwap V2 | Aptos Testnet               | 2901   |

## Endpoint Details

### /getprice

#### Returns the swap quotation for the given token pair.

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

#### Query Parameters

| Name                                       | Type   | Description                                                                  |
| ------------------------------------------ | ------ | ---------------------------------------------------------------------------- |
| rpc                                        | String | Remote procedural call URL.                                                  |
| dexId<mark style="color:red;">\*</mark>    | String | Refer to the [DEX ID](broken://pages/8x8qwIu19Aq8uFsjOXvI) page for details. |
| path<mark style="color:red;">\*</mark>     | String | Comma separated values of token addresses whose price is to be fetched.      |
| amountIn<mark style="color:red;">\*</mark> | String | Amount of token.                                                             |

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

```url
https://api.expand.network/dex/getprice?dexId=1200&path=0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c,0x0E09FaBB73Bd3Ade0a17ECC321fD13a19e81cE82&amountIn=10000000000000000000
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "amountIn": "10000000000000000000",
        "path": [
            "0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c",
            "0x0E09FaBB73Bd3Ade0a17ECC321fD13a19e81cE82"
        ],
        "amountsOut": [
            "10000000000000000000",
            "771915564765835452853"
        ]
    }
}
```

{% endtab %}
{% endtabs %}

### /getuserliquidity

#### Returns the balance of a particular token pair of an account.

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

#### Query Parameters

| Name                                      | Type   | Description                                                                   |
| ----------------------------------------- | ------ | ----------------------------------------------------------------------------- |
| rpc                                       | String | Remote procedural call URL.                                                   |
| tokenA<mark style="color:red;">\*</mark>  | String | Address of token.                                                             |
| address<mark style="color:red;">\*</mark> | String | Public address of liquidity provider.                                         |
| dexId<mark style="color:red;">\*</mark>   | String | Refer to the [DEX ID](broken://pages/8x8qwIu19Aq8uFsjOXvI)  page for details. |
| tokenB<mark style="color:red;">\*</mark>  | String | Address of token                                                              |

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

```url
https://api.expand.network/dex/getuserliquidity?address=0x6fb447ae94f5180254d436a693907a1f57696900&dexId=1200&tokenA=0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c&tokenB=0x0E09FaBB73Bd3Ade0a17ECC321fD13a19e81cE82
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "pairAddress": "0x0eD7e52944161450477ee417DE9Cd3a859b14fD0",
        "liquidity": "0",
        "tokenA": "0",
        "tokenB": "0"
    }
}
```

{% endtab %}
{% endtabs %}

#### Query Parameters for APTOS

| Name                                          | Type   | Description                                                                   |
| --------------------------------------------- | ------ | ----------------------------------------------------------------------------- |
| rpc                                           | String | Remote procedural call URL.                                                   |
| poolAddress<mark style="color:red;">\*</mark> | String | Address of token.                                                             |
| address<mark style="color:red;">\*</mark>     | String | Public address of liquidity provider.                                         |
| dexId<mark style="color:red;">\*</mark>       | String | Refer to the [DEX ID](broken://pages/8x8qwIu19Aq8uFsjOXvI)  page for details. |

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

```
https://api.expand.network/dex/getuserliquidity?dexId=2901&poolAddress=0xc7efb4076dbe143cbcd98cfaaa929ecfc8f299203dfff63b95ccb6bfe19850fa%3A%3Aswap%3A%3ALPToken%3C0x1%3A%3Aaptos_coin%3A%3AAptosCoin%2C0x8c805723ebc0a7fc5b7d3e7b75d567918e806b3461cb9fa21941a9edc0220bf%3A%3Adevnet_coins%3A%3ADevnetBNB%3E&address=0xa182b65f4bf10be7ef870496893c170af3079a2540c63b470445417fcfb21c5b
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "pairAddress": "0xc7efb4076dbe143cbcd98cfaaa929ecfc8f299203dfff63b95ccb6bfe19850fa::swap::LPToken<0x1::aptos_coin::AptosCoin,0x8c805723ebc0a7fc5b7d3e7b75d567918e806b3461cb9fa21941a9edc0220bf::devnet_coins::DevnetBNB>",
        "liquidity": "3000",
        "tokenA": "2138066",
        "tokenB": "20"
    }
}
```

{% endtab %}
{% endtabs %}

### /getpoolliquidity

#### Returns the total liquidity for a specified pool.

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

#### Query Parameters

| Name                                          | Type   | Description                                                              |
| --------------------------------------------- | ------ | ------------------------------------------------------------------------ |
| rpc                                           | String | Remote procedural call URL.                                              |
| poolAddress<mark style="color:red;">\*</mark> | String | Pool address whose liquidity is to be fetched.                           |
| dexId<mark style="color:red;">\*</mark>       | String | Refer to [DEX ID](broken://pages/8x8qwIu19Aq8uFsjOXvI) page for details. |

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

```url
https://api.expand.network/dex/getpoolliquidity?dexId=1200&poolAddress=0x460b4193Ec4C1a17372Aa5FDcd44c520ba658646
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "totalLiquidity": "2790235114583215"
    }
}
```

{% endtab %}
{% endtabs %}

### /gettokenliquidity

#### Returns the individual token liquidity within the specified liquidity pool.

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

#### Query Parameters

| Name                                          | Type   | Description                                                              |
| --------------------------------------------- | ------ | ------------------------------------------------------------------------ |
| rpc                                           | String | Remote procedural call URL.                                              |
| poolAddress<mark style="color:red;">\*</mark> | String | The pool address.                                                        |
| dexId<mark style="color:red;">\*</mark>       | String | Refer to [DEX ID](broken://pages/8x8qwIu19Aq8uFsjOXvI) page for details. |

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

```
https://api.expand.network/dex/gettokenliquidity?dexId=1200&poolAddress=0x460b4193Ec4C1a17372Aa5FDcd44c520ba658646
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "CTK": "73040589498",
        "WBNB": "163589136764841979343"
    }
}
```

{% endtab %}
{% endtabs %}

### /getindividualposition

#### Returns the liquidity position for a specified user address across all the pools for the DEX. Currently available on **Binance**

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

#### Query Parameters

| Name                                      | Type   | Description                                                                                                                          |
| ----------------------------------------- | ------ | ------------------------------------------------------------------------------------------------------------------------------------ |
| rpc                                       | String | Remote procedural call URL.                                                                                                          |
| address<mark style="color:red;">\*</mark> | String | The public address of the liquidity holder.                                                                                          |
| dexId<mark style="color:red;">\*</mark>   | String | Refer to [DEX ID](broken://pages/8x8qwIu19Aq8uFsjOXvI) page for details.                                                             |
| poolSize                                  | String | <p>The number of pools for which the user intends to fetch the individual position. <br><em>By default: 50, Maximum: 9,950</em> </p> |
| poolAddresses                             | String | The pool Addresses whose liquidity is to be fetched. *(Comma-separated vaules)*                                                      |

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

```url
https://api.expand.network/dex/getindividualposition?poolAddresses=0xC05654C66756eBB82c518598c5f1ea1a0199a563&address=0x8f295a22a4a5ef346192d2b2d4c483d9f76b2a67&poolSize=1000&dexId=1200
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "aggregatedLiquidity": "0",
        "poolAddresses": {
            "USTmAMZN": {
                "0xC05654C66756eBB82c518598c5f1ea1a0199a563": "0"
            }
        }
    }
}
```

{% endtab %}
{% endtabs %}

### /getpoolindividualliquidity

Returns all user addresses, block numbers, and token position details for a specified pool address.

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

#### Query Parameters

| Name                                          | Type   | Description                                                              |
| --------------------------------------------- | ------ | ------------------------------------------------------------------------ |
| rpc                                           | String | Remote procedural call URL.                                              |
| poolAddress<mark style="color:red;">\*</mark> | String | The pool address.                                                        |
| dexId<mark style="color:red;">\*</mark>       | String | Refer to [DEX ID](broken://pages/8x8qwIu19Aq8uFsjOXvI) page for details. |
| endBlock                                      | String | Last block of the range.                                                 |
| startBlock                                    | String | Starting block of the range.                                             |

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

```url
https://historicallp.api.expand.network/dex/getpoolindividualliquidity?poolAddress=0xc736ca3d9b1e90af4230bd8f9626528b3d4e0ee0&dexId=1200&startBlock=44752009&endBlock=44753009
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": [
        {
            "userAddress": "0x24397a020cc26ba3084e3f8106f3e597f962c034",
            "liquidityData": [
                {
                    "blockNumber": "44753009",
                    "transactionHash": "0x7f4353626685cd1d13f3f6add484eacc2cc8c6fea64cb6c28937a7d2975fa586",
                    "assets": {
                        "WBNB": "3729419725858309",
                        "BabyDoge": "445796452803705450"
                    }
                }
            ]
        },
        {
            "userAddress": "0xf4c21a1cb819e5f7abe6defde3d118d8f3d61fa7",
            "liquidityData": [
                {
                    "blockNumber": "44752833",
                    "transactionHash": "0xb854f4a4ba18144d9f6d485ddaae36f4441882a4fb6dca646c6d8bdfcb367983",
                    "assets": {
                        "WBNB": "997500000028",
                        "BabyDoge": "118695543460105"
                    }
                }
            ]
        }
    ]
}
```

{% endtab %}
{% endtabs %}

### /getpool

&#x20;Returns poolAddress, tickSpacing, poolFees, tokensLiquidity and liquidity data based on tokenA and tokenB

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

#### Query Parameters

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

```url
https://api.expand.network/dex/getpool?dexId=3600&tokenA=0x4200000000000000000000000000000000000006&tokenB=0xacfE6019Ed1A7Dc6f7B508C02d1b04ec88cC21bf
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": [
        {
            "poolAddress": "0x7eC6C9D993D9832Aa654593f2Dbc21303650Bc6c",
            "tickSpacing": "100",
            "tokensLiquidity": {
                "WETH": "48768555569924423019",
                "VVV": "53838383560167152098431"
            },
            "liquidity": "17265977496275101973877"
        },
        {
            "poolAddress": "0x46D398A5b33709877f50c8918A7eE96F1Be1d7dd",
            "tickSpacing": "200",
            "tokensLiquidity": {
                "WETH": "20559058494109486027",
                "VVV": "32656440862879438912554"
            },
            "liquidity": "53885788767252899437975"
        }
    ]
}
```

{% endtab %}
{% endtabs %}

### /gethistoricaltimeseries

#### Get the historical time series transactions for a specific pool address. Currently available on **Binance**

<mark style="color:blue;">`GET`</mark> `https://historicaltrade.api.expand.network/dex/gethistoricaltimeseries`

#### Query Parameters

| Name                                          | Type   | Description                                                              |
| --------------------------------------------- | ------ | ------------------------------------------------------------------------ |
| dexId<mark style="color:red;">\*</mark>       | String | Refer to [DEX ID](broken://pages/8x8qwIu19Aq8uFsjOXvI) page for details. |
| endBlock                                      | String | Last block of the range.                                                 |
| startBlock                                    | String | Starting block of the range.                                             |
| poolAddress<mark style="color:red;">\*</mark> | String | Pool address whose time series is to be fetched.                         |

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

```url
https://historicaltrade.api.expand.network/dex/gethistoricaltimeseries?dexId=1200&poolAddress=0x16b9a82891338f9ba80e2d6970fdda79d1eb0dae&startBlock=18675000&endBlock=18675639
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "pair": "USDT/WBNB",
        "priceData": [
            {
                "hash": "0xa4e7be3c64891136a667454270401c96862b530242a8b66d2935512d26eea240",
                "timestamp": 1655192852,
                "price": "0.004358852942015572"
            },
            {
                "hash": "0xfc445916adc369b5a7717808b2d2380407aa707d7b81bcda9705b9ac0cc43caf",
                "timestamp": 1655192852,
                "price": "0.004337034359420212"
            },
            {
                "hash": "0x05c2f77bc5157eba0db611c967955be3e54c15abf61a6e655010449336291651",
                "timestamp": 1655192852,
                "price": "0.004337047750174369"
            },
            {
                "hash": "0x91adb38cf7f98fc03960c26ec4085c771561475788990af71dfa9012975a4d4d",
                "timestamp": 1655192852,
                "price": "0.004337070125743882"
            },
            {
                "hash": "0xd0e91cd038b18db3ea774d25375143e920613e18229cc6f1a41255b276c54eff",
                "timestamp": 1655192852,
                "price": "0.004358845309343015"
            },
            {
                "hash": "0xbcbd869b9279b615fe448cceb49658effd9a200e277edeb2739744b93f65f23d",
                "timestamp": 1655192849,
                "price": "0.0043588399027473515"
            },
            {
                "hash": "0x454ebac31c3be6ea198b44a50ae2ca51ee6e5c944a2de0602a67b9ec08bcdbd2",
                "timestamp": 1655192849,
                "price": "0.004358806972252251"
            },
            {
                "hash": "0xdf459434fd3742280d7974148d081f6299574b5157f84f157b21c10085fcf8e5",
                "timestamp": 1655192849,
                "price": "0.004358688622314105"
            },
            {
                "hash": "0x8361faaf2587cdec84f2a0ea41242d001b5f929d890051b602d7de4eeb9a497c",
                "timestamp": 1655192849,
                "price": "0.0043368340207808895"
            },
            {
                "hash": "0x0be5699c728432639245b5a6c4695438bfe3224e4eec2b327dab1c45eee6710f",
                "timestamp": 1655192849,
                "price": "0.004336857766910803"
            },
            {
                "hash": "0xc848656fe95f61858d8ff8c4910bc5b69e198653ebc21034b2ae045d65ac0521",
                "timestamp": 1655192846,
                "price": "0.004358629672082426"
            },
            {
                "hash": "0x791aae590fefadb4fb3422a216aed0e55b271df12062291aebc3e53745388f23",
                "timestamp": 1655192846,
                "price": "0.004336885209614627"
            },
            {
                "hash": "0xf948b7e4479f12509de652876faa6ad6ff80e9b93ed7c13d30bb879dbce71095",
                "timestamp": 1655192846,
                "price": "0.00433692364846471"
            },
            {
                "hash": "0x2d15e55b576aa93dc56e2c0cb40f39603ba3bfea7fd8f8127f3703ef19037dbf",
                "timestamp": 1655192846,
                "price": "0.004336941452759448"
            },
            {
                "hash": "0xda519c4ad1ac81eef91d811070c2ce7aaaf73c26130fff0c2d75e4060320219c",
                "timestamp": 1655192846,
                "price": "0.0043369887652104176"
            },
            {
                "hash": "0x23aff53216899aa1487850ea5f5bf612809a0e54f9249038a59d22df5b3479d0",
                "timestamp": 1655192843,
                "price": "0.004337022248686662"
            },
            {
                "hash": "0x6578930cb092f99ebc02e0d953c7af541376bdd032b9ba0f451836c14ae9a052",
                "timestamp": 1655192843,
                "price": "0.004358738297104802"
            },
            {
                "hash": "0x4f7f69ece57edb492c9bc3843b937e5738e6c28b24a2932b7587a2900b2cdb4d",
                "timestamp": 1655192843,
                "price": "0.004358637548123467"
            },
            {
                "hash": "0xd6569ff1abc750321dd683d2b9ce0d7b6f0d1dae7905e206a1d9b75315f425ac",
                "timestamp": 1655192831,
                "price": "0.00435856778887612"
            },
            {
                "hash": "0x798aa48de7896143e1626e60150c67692792f0b55667e697af6df4fdb8f505ab",
                "timestamp": 1655192831,
                "price": "0.004336801456985259"
            },
            {
                "hash": "0x798aa48de7896143e1626e60150c67692792f0b55667e697af6df4fdb8f505ab",
                "timestamp": 1655192831,
                "price": "0.004336801501292449"
            },
            {
                "hash": "0xbb9864acf695370b923afc0129311e66b8acf069bddcd8e9c33b32cefa793a11",
                "timestamp": 1655192831,
                "price": "0.0043368030469385695"
            },
            {
                "hash": "0x1d2889468b253063a8064379b449d4c832dd711643822e00b77c1a7faa6ee12d",
                "timestamp": 1655192831,
                "price": "0.004358566285450221"
            },
            {
                "hash": "0x11c01dafcd48e5dda30fc69a49ec88432a891b195227c32506e9748f7d3bff72",
                "timestamp": 1655192831,
                "price": "0.004336847740684698"
            },
            {
                "hash": "0x487ec3d3d56d518067fe0389bb10ab94f378e78f97919c5d6598a6a68eed8d25",
                "timestamp": 1655192831,
                "price": "0.0043608408925375165"
            },
            {
                "hash": "0xf4ebb66455d4a7cad46aec25fc8685e7910494d46ff6bda3a1951182d879194b",
                "timestamp": 1655192831,
                "price": "0.004336938355279746"
            },
            {
                "hash": "0xdb3670b569d0a9ee510cbcdf7aabc88b600503c094770204ae67e3c3e3b7114a",
                "timestamp": 1655192828,
                "price": "0.0043587619240398195"
            },
            {
                "hash": "0xe127e43a7a0bf909779bf022f271cbce881bde0b91cbec2e2a45580f086c8d17",
                "timestamp": 1655192828,
                "price": "0.004337185440945262"
            },
            {
                "hash": "0xb7e91a51e4e4dbaac8e9c5020a55573b34733d58f94c75c0b558d329553920de",
                "timestamp": 1655192828,
                "price": "0.004337380650207665"
            },
            {
                "hash": "0x239065c70237bdf70c71d8c9f32507ccffd7b8ae6f1307d1767a8f3e5f1c6594",
                "timestamp": 1655192828,
                "price": "0.004337441760628281"
            },
            {
                "hash": "0x485528434a50577fb8edb887581d53a4a31b359cf1b20a8048381911e053608d",
                "timestamp": 1655192828,
                "price": "0.004359260988922678"
            },
            {
                "hash": "0xf44680d3d3dcd9abbeec85d595ba14bb67b79f6c2f72b2fe38e708f756efa81d",
                "timestamp": 1655192828,
                "price": "0.004359242173012291"
            },
            {
                "hash": "0x8c3555fd7abad3acb109716ce549e328693ce357da69e9a54c7a37a0f7c7e927",
                "timestamp": 1655192828,
                "price": "0.004337469152200651"
            },
            {
                "hash": "0x8557537d52021cb4e2ebf0389de962f2affbbd1578e9e9d91674596de84a8b13",
                "timestamp": 1655192825,
                "price": "0.0043374792948373915"
            },
            {
                "hash": "0xd4b5151b9a5a07e49024186dacff0b7a8d23198f917c093cf583c4771ec9d422",
                "timestamp": 1655192825,
                "price": "0.004359240929032785"
            },
            {
                "hash": "0x67604272ca2b8b89e33b1e6a1b9c89db75635e1d78f5cf2c8e49b9f3a21c1b2f",
                "timestamp": 1655192825,
                "price": "0.004337933190955034"
            },
            {
                "hash": "0x865fb5fcb394c48fd40557768f08f3d69bd7c87f607ec44f13b0b2eeada11c80",
                "timestamp": 1655192822,
                "price": "0.004360170392030563"
            },
            {
                "hash": "0xffd100d86343e20788a8abb48660d40b6714b8b20ef1d47a98b8cc99b8257231",
                "timestamp": 1655192822,
                "price": "0.004360163275274439"
            },
            {
                "hash": "0x494090254f82033f54aa5308e5d9a83e3d78a2408eb2538e03ff46397341afd4",
                "timestamp": 1655192822,
                "price": "0.004338392721513588"
            },
            {
                "hash": "0xe6e38a577cef9a729697c8ad08e14de932fd12bc896821d13f5dbb6c6dbf1f33",
                "timestamp": 1655192822,
                "price": "0.004338399897695004"
            },
            {
                "hash": "0x2a649227209c1016e18c5c01019578ae79f00c64aff230fe1e2fcd855662c3f9",
                "timestamp": 1655192822,
                "price": "0.004360024464759858"
            },
            {
                "hash": "0x51bf4d9c11fd14e26ddd84e918dcb015cdc98da31f707ed4ecab24ad0a057da0",
                "timestamp": 1655192822,
                "price": "0.004359871750374781"
            }
        ]
    }
}
```

{% endtab %}
{% endtabs %}

### /gethistoricaltransactions

#### Get the historical transactions focusing on swaps associated with a specific pool address. Currently available on **Binance**

<mark style="color:blue;">`GET`</mark> `https://historicaltrade.api.expand.network/dex/gethistoricaltransactions`

#### Query Parameters

| Name                                          | Type   | Description                                                              |
| --------------------------------------------- | ------ | ------------------------------------------------------------------------ |
| dexId<mark style="color:red;">\*</mark>       | String | Refer to [DEX ID](broken://pages/8x8qwIu19Aq8uFsjOXvI) page for details. |
| endBlock                                      | String | Last block of the range.                                                 |
| startBlock                                    | String | Starting block of the range.                                             |
| poolAddress<mark style="color:red;">\*</mark> | String | Pool address whose transactions is to be fetched.                        |

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

```url
https://historicaltrade.api.expand.network/dex/gethistoricaltransactions?poolAddress=0x05616b7b6da03fb4c773b76663816b360ccaede4&dexId=1200&startBlock=34544519&endBlock=34548560
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "pair": "TOKEN/WBNB",
        "transactions": [
            {
                "transactionHash": "0x0e0333c6bcdcf9a09841e815bdaffc55b1a069f78c33541918f8aa800ce5327a",
                "transactionDetails": {
                    "blockHash": "0x3a9f5de42cdaddbeea0f6c40ed4d991dd9fd3aaf0831dfa08719c552c60ba1cf",
                    "blockNumber": "34548096",
                    "from": "0x055a3b37957bfbd3345bed9968e7e8dd56d67066",
                    "gas": "1827825",
                    "gasPrice": "3150000000",
                    "hash": "0x0e0333c6bcdcf9a09841e815bdaffc55b1a069f78c33541918f8aa800ce5327a",
                    "input": "0x5c11d7950000000000000000000000000000000000000000000000000000085413a733ff0000000000000000000000000000000000000000000000000f5980b344c4c06400000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000055a3b37957bfbd3345bed9968e7e8dd56d67066000000000000000000000000000000000000000000000000000000006584352500000000000000000000000000000000000000000000000000000000000000020000000000000000000000004507cef57c46789ef8d1a19ea45f4216bae2b528000000000000000000000000bb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c",
                    "nonce": "435338",
                    "to": "0x10ed43c718714eb63d5aa57b78b54704e256024e",
                    "transactionIndex": "99",
                    "value": "0",
                    "type": "0",
                    "chainId": "56",
                    "v": "0x94",
                    "r": "0x9c5367e8276ca0c88cd100418d73a4c04adf8e4718a88ee29fac96b695cd504b",
                    "s": "0x664a7ddf2587ec3ea192682053a2502280be34ff5088dce30621655aa27d965f"
                }
            },
            {
                "transactionHash": "0x110647ed390ad69b08e40d1432aa4c402df4506ae5f9f897860ea4e241c78dd6",
                "transactionDetails": {
                    "blockHash": "0xfdc0e116f2a20e13cca8be61c46ee1ad214ae628aca4cbff508f5d6bcf5a663d",
                    "blockNumber": "34548119",
                    "from": "0x055a3b37957bfbd3345bed9968e7e8dd56d67066",
                    "gas": "1827825",
                    "gasPrice": "3150000000",
                    "hash": "0x110647ed390ad69b08e40d1432aa4c402df4506ae5f9f897860ea4e241c78dd6",
                    "input": "0x5c11d795000000000000000000000000000000000000000000000000000007b28e1f777f0000000000000000000000000000000000000000000000000e28e19e4a923e9200000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000055a3b37957bfbd3345bed9968e7e8dd56d67066000000000000000000000000000000000000000000000000000000006584356d00000000000000000000000000000000000000000000000000000000000000020000000000000000000000004507cef57c46789ef8d1a19ea45f4216bae2b528000000000000000000000000bb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c",
                    "nonce": "435345",
                    "to": "0x10ed43c718714eb63d5aa57b78b54704e256024e",
                    "transactionIndex": "73",
                    "value": "0",
                    "type": "0",
                    "chainId": "56",
                    "v": "0x93",
                    "r": "0x7477029e608e4d564193bb46c7a4044d4ef1a0c3bf7687433fbd181a2131b245",
                    "s": "0x5767ce7bf8f51df4c456045d909af1742d2d0df4d6163a78c4430d1129c9ff26"
                }
            },
            {
                "transactionHash": "0xe769eff1adc2a66523b3d6a05cfd1b21dd94868fdb8877211a885d80bd7bf08b",
                "transactionDetails": {
                    "blockHash": "0xd1a4f2635e456989f625a79c6bff75a4a40820141b66f12f0300764360e24795",
                    "blockNumber": "34548323",
                    "from": "0x055a3b37957bfbd3345bed9968e7e8dd56d67066",
                    "gas": "1827825",
                    "gasPrice": "3150000000",
                    "hash": "0xe769eff1adc2a66523b3d6a05cfd1b21dd94868fdb8877211a885d80bd7bf08b",
                    "input": "0x5c11d795000000000000000000000000000000000000000000000000000012a0a5755eff00000000000000000000000000000000000000000000000022132516d135029700000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000055a3b37957bfbd3345bed9968e7e8dd56d6706600000000000000000000000000000000000000000000000000000000658437d100000000000000000000000000000000000000000000000000000000000000020000000000000000000000004507cef57c46789ef8d1a19ea45f4216bae2b528000000000000000000000000bb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c",
                    "nonce": "435378",
                    "to": "0x10ed43c718714eb63d5aa57b78b54704e256024e",
                    "transactionIndex": "57",
                    "value": "0",
                    "type": "0",
                    "chainId": "56",
                    "v": "0x94",
                    "r": "0xf6c95a653ee9dd9f04728440793c74b6e3ca49eee205995962b80de99f006e8e",
                    "s": "0x5b635a90c526104ad6d3b472337c0dc44e36318bb51cbd87b918c276e484de5a"
                }
            },
            {
                "transactionHash": "0xa08b6126adc8fdf526282c08c7598cca0d9660cf032bf7e2625dd1d3c3c02646",
                "transactionDetails": {
                    "blockHash": "0x011eb51371dc7fab04aec4747e39f1b19157cedaf7aa46ea359f2b81bc139056",
                    "blockNumber": "34548078",
                    "from": "0x055a3b37957bfbd3345bed9968e7e8dd56d67066",
                    "gas": "1827825",
                    "gasPrice": "3150000000",
                    "hash": "0xa08b6126adc8fdf526282c08c7598cca0d9660cf032bf7e2625dd1d3c3c02646",
                    "input": "0x5c11d7950000000000000000000000000000000000000000000000000000071f616e4fff0000000000000000000000000000000000000000000000000d1d45cca8f0270100000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000055a3b37957bfbd3345bed9968e7e8dd56d6706600000000000000000000000000000000000000000000000000000000658434f200000000000000000000000000000000000000000000000000000000000000020000000000000000000000004507cef57c46789ef8d1a19ea45f4216bae2b528000000000000000000000000bb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c",
                    "nonce": "435333",
                    "to": "0x10ed43c718714eb63d5aa57b78b54704e256024e",
                    "transactionIndex": "89",
                    "value": "0",
                    "type": "0",
                    "chainId": "56",
                    "v": "0x93",
                    "r": "0xd47769d5b84274a60e08883f55134123c07ba0b49ab6633e6ead301bbfbe3de7",
                    "s": "0x4fae3d9c98bbef24a76cb8827f08fae2d1ea3c647a8f9416cca379e463d0957c"
                }
            },
            {
                "transactionHash": "0x8b8c30a219f64ab57b08795bb42cc31b92e6abb9af1f8f553cbfda629f95643e",
                "transactionDetails": {
                    "blockHash": "0x6f4462177d6bddbc9983699e8c47428378a076a6ac5dd18b991c806361197dad",
                    "blockNumber": "34548558",
                    "from": "0x05d99efbc49b74751521234ce0509c9ffcc6d2b7",
                    "gas": "600000",
                    "gasPrice": "3000000001",
                    "hash": "0x8b8c30a219f64ab57b08795bb42cc31b92e6abb9af1f8f553cbfda629f95643e",
                    "input": "0x95435ac9000000000000000000000000000000000000000000000000000005b0462445570000000000000000000000000000000000000171007ac8f660d8c2f3a24076f60000000000000000000000004507cef57c46789ef8d1a19ea45f4216bae2b5280000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000001847000000000000000000000000005616b7b6da03fb4c773b76663816b360ccaede40000000000000000000000000000000000000000000000000000000065843a88",
                    "nonce": "9739",
                    "to": "0x802b65b5d9016621e66003aed0b16615093f328b",
                    "transactionIndex": "97",
                    "value": "0",
                    "type": "0",
                    "chainId": "56",
                    "v": "0x94",
                    "r": "0x5999271baa6c0d69f286aca11f07f58f1f5d82a4b583a03f705813bba2a4cec0",
                    "s": "0x679efd2ccddd7c6e123062129a2b4f1536a160b506e701282a5b4550fdff61e7"
                }
            }
        ]
    }
}
```

{% endtab %}
{% endtabs %}

### /swap

#### Initiate a swap transaction on a specified DEX.

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

#### Request Body

<table><thead><tr><th width="235">Name</th><th width="164">Type</th><th>Description</th></tr></thead><tbody><tr><td>dexId<mark style="color:red;">*</mark></td><td>String</td><td>Refer to the <a href="/pages/8x8qwIu19Aq8uFsjOXvI">DEX ID</a> page for details. </td></tr><tr><td>path<mark style="color:red;">*</mark></td><td>Array</td><td>Comma-separated values of token addresses, inside an array, to swap.</td></tr><tr><td>amountIn<mark style="color:red;">*</mark></td><td>String</td><td>Amount of token to be swapped.</td></tr><tr><td>amountOutMin</td><td>String</td><td>Minimum amount accepted as a result of swap.</td></tr><tr><td>to<mark style="color:red;">*</mark></td><td>String</td><td>Address of the recipient of the token.</td></tr><tr><td>deadline<mark style="color:red;">*</mark></td><td>String</td><td>Deadline for the transaction to be executed (UNIX Timestamp). </td></tr><tr><td>from<mark style="color:red;">*</mark></td><td>String</td><td>Address of the sender of the token.</td></tr><tr><td>gas</td><td>String</td><td>Maximum gas limit provided by the sender, for the transaction.</td></tr><tr><td>rpc</td><td>String</td><td>Remote procedural call URL.</td></tr><tr><td>slippage</td><td>String</td><td><p>Percentage of total swap value. <br>By default, 1.</p><p>0 &#x3C;= slippage  value &#x3C;= 100</p></td></tr><tr><td>gasPriority</td><td>String</td><td>low, medium, or high.</td></tr></tbody></table>

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

```json
{
    "dexId": "1200",
    "amountIn": "120000000",
    "amountOutMin": "0",
    "path": ["0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c", "0xCC42724C6683B7E57334c4E856f4c9965ED682bD"],
    "to": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
    "deadline": "1664529286",
    "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
    "gas": "29880"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "56",
        "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
        "to": "0x10ED43C718714eb63d5aA57B78B54704E256024E",
        "value": "0",
        "gas": "29880",
        "data": "0x38ed17390000000000000000000000000000000000000000000000000000000007270e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000063056e00436da25bcf48a40dfbbdcc7089351006000000000000000000000000000000000000000000000000000000006336b3860000000000000000000000000000000000000000000000000000000000000002000000000000000000000000bb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c000000000000000000000000cc42724c6683b7e57334c4e856f4c9965ed682bd",
        "estimationCheck": true,
        "referenceId": "48d6003c0aad431aa571e798bfe102ba"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
**With gasPriority:**

```json
{
    "dexId": "1200",
    "amountIn": "120000000",
    "amountOutMin": "0",
    "path": [
        "0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c",
        "0xCC42724C6683B7E57334c4E856f4c9965ED682bD"
    ],
    "to": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
    "deadline": "1704529286",
    "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
    "gas": "298800",
    "gasPriority": "medium"
}
```

{% endtab %}

{% tab title="Sample Response" %}
**With gasPriority:**

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "56",
        "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
        "to": "0x10ED43C718714eb63d5aA57B78B54704E256024E",
        "value": "0",
        "gas": "298800",
        "data": "0x38ed17390000000000000000000000000000000000000000000000000000000007270e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000063056e00436da25bcf48a40dfbbdcc70893510060000000000000000000000000000000000000000000000000000000065990d860000000000000000000000000000000000000000000000000000000000000002000000000000000000000000bb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c000000000000000000000000cc42724c6683b7e57334c4e856f4c9965ed682bd",
        "gasPrice": "1200000000",
        "estimationCheck": true,
        "referenceId": "d5b4b5fd364e4b39b0f442d50a02981f"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
**With slippage:**

```json
{
    "dexId": "1200",
    "amountIn": "120000000",
    "amountOutMin": "0",
    "path": [
        "0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c",
        "0xCC42724C6683B7E57334c4E856f4c9965ED682bD"
    ],
    "to": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
    "deadline": "1664529286",
    "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
    "gas": "29880",
    "slippage": "8.033543322"
}
```

{% endtab %}

{% tab title="Sample Response" %}
**With slippage:**

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "56",
        "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
        "to": "0x10ED43C718714eb63d5aA57B78B54704E256024E",
        "value": "0",
        "gas": "29880",
        "data": "0x38ed17390000000000000000000000000000000000000000000000000000000007270e000000000000000000000000000000000000000000000000000000001d4cfff6d600000000000000000000000000000000000000000000000000000000000000a000000000000000000000000063056e00436da25bcf48a40dfbbdcc7089351006000000000000000000000000000000000000000000000000000000006336b3860000000000000000000000000000000000000000000000000000000000000002000000000000000000000000bb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c000000000000000000000000cc42724c6683b7e57334c4e856f4c9965ed682bd",
        "estimationCheck": true,
        "referenceId": "3e1edd8eab9647d2805d390ce581446a"
    }
}
```

{% endtab %}
{% endtabs %}

***

#### Request Body for APTOS

<table><thead><tr><th width="235">Name</th><th width="164">Type</th><th>Description</th></tr></thead><tbody><tr><td>rpc</td><td>String</td><td>Remote procedural call URL.</td></tr><tr><td>dexId<mark style="color:red;">*</mark></td><td>String</td><td>Refer to the <a href="/pages/8x8qwIu19Aq8uFsjOXvI">DEX ID</a> page for details. </td></tr><tr><td>path<mark style="color:red;">*</mark></td><td>Array</td><td>Comma-separated values of token addresses, inside an array, to swap.</td></tr><tr><td>amountIn<mark style="color:red;">*</mark></td><td>String</td><td>Amount of token to be swapped.</td></tr><tr><td>from<mark style="color:red;">*</mark></td><td>String</td><td>Address of the sender of the token.</td></tr><tr><td>gas<mark style="color:red;">*</mark></td><td>String</td><td>Maximum gas limit provided by the sender, for the transaction.</td></tr><tr><td>slippage</td><td>String</td><td><p>Percentage of total swap value. <br>By default, 1.</p><p>0 &#x3C;= slippage  value &#x3C;= 100</p></td></tr></tbody></table>

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

```json
{
    "amountIn": "100000000",
    "from": "0x1c3266eca38df87026255884192b5979eac24cf0dac7a33cfa7af0d27651fb4c",
    "path": [
        "0x1::aptos_coin::AptosCoin",
        "0xf22bede237a07e121b56d91a491eb7bcdfd1f5907926a9e58338f964a01b17fa::asset::USDC"
    ],
    "slippage": "100",
    "dexId": "2900",
    "gas": "1000"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1400",
        "from": "0x1c3266eca38df87026255884192b5979eac24cf0dac7a33cfa7af0d27651fb4c",
        "to": "0xc7efb4076dbe143cbcd98cfaaa929ecfc8f299203dfff63b95ccb6bfe19850fa",
        "data": "HDJm7KON+HAmJViEGStZeerCTPDax6M8+nrw0nZR+0x0mwAAAAAAAALH77QHbb4UPLzZjPqqkp7PyPKZID3/9juVzLa/4ZhQ+gZyb3V0ZXIQc3dhcF9leGFjdF9pbnB1dAIHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEKYXB0b3NfY29pbglBcHRvc0NvaW4AB/Ir7eI3oH4SG1bZGkket7zf0fWQeSap5YM4+WSgGxf6BWFzc2V0BFVTREMAAggA4fUFAAAAAAgAAAAAAAAAAOgDAAAAAAAAZAAAAAAAAADXZCpnAAAAAAE=",
        "referenceId": "ad8bf08874b74aa3ab28e07d08817833"
    }
}
```

{% endtab %}
{% endtabs %}

***

### /addliquidity

#### Add liquidity to a specified pool in a specified DEX.

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

#### Request Body

| Name                                             | Type   | Description                                                                                 |
| ------------------------------------------------ | ------ | ------------------------------------------------------------------------------------------- |
| dexId<mark style="color:red;">\*</mark>          | String | Refer to the [DEX ID](broken://pages/8x8qwIu19Aq8uFsjOXvI) page for details.                |
| tokenA<mark style="color:red;">\*</mark>         | String | Address of the first token being added.                                                     |
| tokenB<mark style="color:red;">\*</mark>         | String | Address of the second token being added.                                                    |
| amountADesired<mark style="color:red;">\*</mark> | String | Desired amount of token A.                                                                  |
| amountBDesired<mark style="color:red;">\*</mark> | String | Desired amount of token B.                                                                  |
| amountAMin<mark style="color:red;">\*</mark>     | String | Minimum amount of token A.                                                                  |
| amountBMin<mark style="color:red;">\*</mark>     | String | Minimum amount of token B.                                                                  |
| deadline<mark style="color:red;">\*</mark>       | String | Deadline for the transaction to be executed (UNIX Timestamp).                               |
| to<mark style="color:red;">\*</mark>             | String | Address of the recipient of the token.                                                      |
| from<mark style="color:red;">\*</mark>           | String | Address of the sender of the token.                                                         |
| gas                                              | String | Maximum gas limit provided by the sender, for the transaction.                              |
| rpc                                              | String | Remote procedural call URL.                                                                 |
| slippage                                         | String | <p>Percentage of total swap value. <br>By default, 1.</p><p>0 <= slippage  value <= 100</p> |
| gasPriority                                      | String | low, medium, or high.                                                                       |

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

```json
{
    "dexId": "1200",
    "tokenA": "0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c",
    "tokenB": "0xCC42724C6683B7E57334c4E856f4c9965ED682bD",
    "amountADesired": "50000000000000000",
    "amountBDesired": "77926115",
    "amountAMin": "0",
    "amountBMin": "0",
    "to": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
    "deadline": "1663181575",
    "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
    "gas": "2307200"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "56",
        "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
        "to": "0x10ED43C718714eb63d5aA57B78B54704E256024E",
        "value": "0",
        "gas": "2307200",
        "data": "0xe8e33700000000000000000000000000bb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c000000000000000000000000cc42724c6683b7e57334c4e856f4c9965ed682bd00000000000000000000000000000000000000000000000000b1a2bc2ec500000000000000000000000000000000000000000000000000000000000004a50ee30000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000063056e00436da25bcf48a40dfbbdcc70893510060000000000000000000000000000000000000000000000000000000063222307",
        "estimationCheck": true,
        "referenceId": "a2e6a4c61ef14fcc9edfe40b28866b2e"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
**With gasPriority:**

```json
{
    "dexId": "1200",
    "tokenA": "0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c",
    "tokenB": "0xCC42724C6683B7E57334c4E856f4c9965ED682bD",
    "amountADesired": "50000000000000000",
    "amountBDesired": "77926115",
    "amountAMin": "0",
    "amountBMin": "0",
    "to": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
    "deadline": "1663181575",
    "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
    "gas": "2307200",
    "gasPriority": "medium"
}
```

{% endtab %}

{% tab title="Sample Response" %}
**With gasPriority:**

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "56",
        "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
        "to": "0x10ED43C718714eb63d5aA57B78B54704E256024E",
        "value": "0",
        "gas": "2307200",
        "data": "0xe8e33700000000000000000000000000bb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c000000000000000000000000cc42724c6683b7e57334c4e856f4c9965ed682bd00000000000000000000000000000000000000000000000000b1a2bc2ec500000000000000000000000000000000000000000000000000000000000004a50ee30000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000063056e00436da25bcf48a40dfbbdcc70893510060000000000000000000000000000000000000000000000000000000063222307",
        "gasPrice": "1200000000",
        "estimationCheck": true,
        "referenceId": "a156e92fdc4c46b083decc0d54f2d511"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
**With slippage:**

```json
{
    "dexId": "1200",
    "tokenA": "0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c",
    "tokenB": "0xCC42724C6683B7E57334c4E856f4c9965ED682bD",
    "amountADesired": "50000000000000000",
    "amountBDesired": "77926115",
    "amountAMin": "10000000000000000",
    "amountBMin": "100000",
    "to": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
    "deadline": "1663181575",
    "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
    "gas": "2307200",
    "slippage": "5"
}
```

{% endtab %}

{% tab title="Sample Response" %}
**With slippage:**

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "56",
        "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
        "to": "0x10ED43C718714eb63d5aA57B78B54704E256024E",
        "value": "0",
        "gas": "2307200",
        "data": "0xe8e33700000000000000000000000000bb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c000000000000000000000000cc42724c6683b7e57334c4e856f4c9965ed682bd00000000000000000000000000000000000000000000000000b1a2bc2ec500000000000000000000000000000000000000000000000000000000000004a50ee30000000000000000000000000000000000000000000000000021c0331d5dc000000000000000000000000000000000000000000000000000000000000001731800000000000000000000000063056e00436da25bcf48a40dfbbdcc70893510060000000000000000000000000000000000000000000000000000000063222307",
        "estimationCheck": true,
        "referenceId": "b0bede7098564f478dd175b0e469518e"
    }
}
```

{% endtab %}
{% endtabs %}

***

#### Request Body for APTOS

| Name                                       | Type   | Description                                                                                 |
| ------------------------------------------ | ------ | ------------------------------------------------------------------------------------------- |
| dexId<mark style="color:red;">\*</mark>    | String | Refer to the [DEX ID](broken://pages/8x8qwIu19Aq8uFsjOXvI) page for details.                |
| path<mark style="color:red;">\*</mark>     | String | Comma-separated values of token addresses, inside an array, to Add Liquidity.               |
| amountIn<mark style="color:red;">\*</mark> | String | Comma-separated values of amount for TokenA and TokenB, inside an array.                    |
| from<mark style="color:red;">\*</mark>     | String | Address of the user.                                                                        |
| gas<mark style="color:red;">\*</mark>      | String | Maximum gas limit provided by the sender, for the transaction.                              |
| rpc                                        | String | Remote procedural call URL.                                                                 |
| slippage                                   | String | <p>Percentage of total swap value. <br>By default, 1.</p><p>0 <= slippage  value <= 100</p> |

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

```json
{
    "amountIn": ["10000000","15299"],
    "from": "0x1c3266eca38df87026255884192b5979eac24cf0dac7a33cfa7af0d27651fb4c",
    "path": [
        "0x1::aptos_coin::AptosCoin",
        "0xf22bede237a07e121b56d91a491eb7bcdfd1f5907926a9e58338f964a01b17fa::asset::USDC"
    ],
    "slippage": "100",
    "dexId": "2900",
    "gas":"1000"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1400",
        "from": "0x1c3266eca38df87026255884192b5979eac24cf0dac7a33cfa7af0d27651fb4c",
        "to": "0xc7efb4076dbe143cbcd98cfaaa929ecfc8f299203dfff63b95ccb6bfe19850fa",
        "data": "HDJm7KON+HAmJViEGStZeerCTPDax6M8+nrw0nZR+0x0mwAAAAAAAALH77QHbb4UPLzZjPqqkp7PyPKZID3/9juVzLa/4ZhQ+gZyb3V0ZXINYWRkX2xpcXVpZGl0eQIHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEKYXB0b3NfY29pbglBcHRvc0NvaW4AB/Ir7eI3oH4SG1bZGkket7zf0fWQeSap5YM4+WSgGxf6BWFzc2V0BFVTREMABAiAlpgAAAAAAAjDOwAAAAAAAAgAAAAAAAAAAAgAAAAAAAAAAOgDAAAAAAAAZAAAAAAAAABGZypnAAAAAAE=",
        "referenceId": "5eda11210b804dceb98d5edc2b95d39f"
    }
}
```

{% endtab %}
{% endtabs %}

### /removeliquidity

#### Remove liquidity from a specified pool for a specified DEX.

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

#### Request Body

| Name                                         | Type   | Description                                                                                 |
| -------------------------------------------- | ------ | ------------------------------------------------------------------------------------------- |
| dexId<mark style="color:red;">\*</mark>      | String | Refer to the [DEX ID](broken://pages/8x8qwIu19Aq8uFsjOXvI) page for details.                |
| tokenA<mark style="color:red;">\*</mark>     | String | Address of the first token being removed.                                                   |
| tokenB<mark style="color:red;">\*</mark>     | String | Address of the second token being removed.                                                  |
| liquidity<mark style="color:red;">\*</mark>  | String | Total amount of liquidity to be removed from the given pool.                                |
| amountAMin<mark style="color:red;">\*</mark> | String | Minimum amount of Token A.                                                                  |
| amountBMin<mark style="color:red;">\*</mark> | String | Minimum amount of Token B.                                                                  |
| deadline<mark style="color:red;">\*</mark>   | String | Deadline for the transaction to be executed (UNIX Timestamp).                               |
| to<mark style="color:red;">\*</mark>         | String | Address of the recipient of the token.                                                      |
| from<mark style="color:red;">\*</mark>       | String | Address of the sender of the token.                                                         |
| gas                                          | String | Maximum gas limit provided by the sender, for the transaction.                              |
| rpc                                          | String | Remote procedural call URL.                                                                 |
| gasPriority                                  | String | low, medium, or high.                                                                       |
| slippage                                     | String | <p>Percentage of total swap value. <br>By default, 1.</p><p>0 <= slippage  value <= 100</p> |

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

```json
{
    "dexId": "1200",
    "tokenA": "0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c",
    "tokenB": "0xCC42724C6683B7E57334c4E856f4c9965ED682bD",
    "liquidity": "163742355742154761",
    "amountAMin": "0",
    "amountBMin": "0",
    "to": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
    "deadline": "1663231732",
    "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
    "gas": "842720"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "56",
        "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
        "to": "0x10ED43C718714eb63d5aA57B78B54704E256024E",
        "value": "0",
        "gas": "842720",
        "data": "0xbaa2abde000000000000000000000000bb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c000000000000000000000000cc42724c6683b7e57334c4e856f4c9965ed682bd0000000000000000000000000000000000000000000000000245bace14b260090000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000063056e00436da25bcf48a40dfbbdcc7089351006000000000000000000000000000000000000000000000000000000006322e6f4",
        "estimationCheck": true,
        "referenceId": "ae5c692da558439f957a79b02f643ff3"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
**With gasPriority:**

```json
{
    "dexId": "1200",
    "tokenA": "0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c",
    "tokenB": "0xCC42724C6683B7E57334c4E856f4c9965ED682bD",
    "liquidity": "163742355742154761",
    "amountAMin": "0",
    "amountBMin": "0",
    "to": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
    "deadline": "1703231732",
    "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
    "gas": "842720",
    "gasPriority": "medium"
}
```

{% endtab %}

{% tab title="Sample Response" %}
**With gasPriority:**

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "56",
        "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
        "to": "0x10ED43C718714eb63d5aA57B78B54704E256024E",
        "value": "0",
        "gas": "842720",
        "data": "0xbaa2abde000000000000000000000000bb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c000000000000000000000000cc42724c6683b7e57334c4e856f4c9965ed682bd0000000000000000000000000000000000000000000000000245bace14b260090000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000063056e00436da25bcf48a40dfbbdcc708935100600000000000000000000000000000000000000000000000000000000658540f4",
        "gasPrice": "1200000000",
        "estimationCheck": true,
        "referenceId": "e26f31fe348b4e0f908d43a0bbee737b"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
**With slippage:**

```json
{
    "dexId": "1200",
    "tokenA": "0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c",
    "tokenB": "0xCC42724C6683B7E57334c4E856f4c9965ED682bD",
    "liquidity": "163742355742154761",
    "amountAMin": "0",
    "amountBMin": "0",
    "to": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
    "deadline": "1663231732",
    "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
    "gas": "842720",
    "slippage": "5"
}
```

{% endtab %}

{% tab title="Sample Response" %}
**With slippage:**

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "56",
        "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
        "to": "0x10ED43C718714eb63d5aA57B78B54704E256024E",
        "value": "0",
        "gas": "842720",
        "data": "0xbaa2abde000000000000000000000000bb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c000000000000000000000000cc42724c6683b7e57334c4e856f4c9965ed682bd0000000000000000000000000000000000000000000000000245bace14b260090000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000063056e00436da25bcf48a40dfbbdcc7089351006000000000000000000000000000000000000000000000000000000006322e6f4",
        "estimationCheck": true,
        "referenceId": "18db57819cea4d9d9fefa224e866c2a9"
    }
}
```

{% endtab %}
{% endtabs %}

***

#### Request Body for APTOS

| Name                                        | Type   | Description                                                                                 |
| ------------------------------------------- | ------ | ------------------------------------------------------------------------------------------- |
| rpc                                         | String | Remote procedural call URL.                                                                 |
| dexId<mark style="color:red;">\*</mark>     | String | Refer to the [DEX ID](broken://pages/8x8qwIu19Aq8uFsjOXvI) page for details.                |
| path<mark style="color:red;">\*</mark>      | String | Comma-separated values of token addresses, inside an array, to Remove Liquidity.            |
| liquidity<mark style="color:red;">\*</mark> | String | Total amount of liquidity to be removed from the given pool.                                |
| from<mark style="color:red;">\*</mark>      | String | Address of the sender of the token.                                                         |
| gas<mark style="color:red;">\*</mark>       | String | Maximum gas limit provided by the sender, for the transaction.                              |
| slippage                                    | String | <p>Percentage of total swap value. <br>By default, 1.</p><p>0 <= slippage  value <= 100</p> |

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

```json
{
    "liquidity": "1000",
    "from": "0x1c3266eca38df87026255884192b5979eac24cf0dac7a33cfa7af0d27651fb4c",
    "path": [
        "0x1::aptos_coin::AptosCoin",
        "0xf22bede237a07e121b56d91a491eb7bcdfd1f5907926a9e58338f964a01b17fa::asset::USDC"
    ],
    "slippage": "10",
    "dexId": "2900",
    "gas":"1000"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1400",
        "from": "0x1c3266eca38df87026255884192b5979eac24cf0dac7a33cfa7af0d27651fb4c",
        "to": "0xc7efb4076dbe143cbcd98cfaaa929ecfc8f299203dfff63b95ccb6bfe19850fa",
        "data": "HDJm7KON+HAmJViEGStZeerCTPDax6M8+nrw0nZR+0x1mwAAAAAAAALH77QHbb4UPLzZjPqqkp7PyPKZID3/9juVzLa/4ZhQ+gZyb3V0ZXIQcmVtb3ZlX2xpcXVpZGl0eQIHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEKYXB0b3NfY29pbglBcHRvc0NvaW4AB/Ir7eI3oH4SG1bZGkket7zf0fWQeSap5YM4+WSgGxf6BWFzc2V0BFVTREMAAwjoAwAAAAAAAAgAAAAAAAAAAAgAAAAAAAAAAOgDAAAAAAAAZAAAAAAAAACnaCpnAAAAAAE=",
        "referenceId": "74b41523d0d74d21920f02974ece488a"
    }
}
```

{% endtab %}
{% endtabs %}


# PancakeSwap V3

### Supported Chains

Available on **Arbitrum, Base, Binance Smart Chain, Ethereum and zkSync Era.**

### Available Endpoints:

*Click on the endpoint to jump to the section with full details*

* [<mark style="color:blue;">/getprice</mark>](#getprice) <mark style="color:blue;">`GET`</mark> - Returns the swap quotation for a given token pair on PancakeSwap V3.
* [<mark style="color:blue;">/getuserliquidity</mark>](#getuserliquidity) <mark style="color:blue;">`GET`</mark> - Returns the balance of a particular token pair of accounts.&#x20;
* [<mark style="color:blue;">/getpoolliquidity</mark>](#getpoolliquidity) <mark style="color:blue;">`GET`</mark> - Returns the total liquidity for a specified pool.
* [<mark style="color:blue;">/gettokenliquidity</mark>](#gettokenliquidity) <mark style="color:blue;">`GET`</mark> - Returns the individual token liquidity within the specified liquidity pool.
* [<mark style="color:blue;">/getindividualposition</mark>](#getindividualposition) <mark style="color:blue;">`GET`</mark> - Returns the liquidity position for a specified user address across all the pools for a given DEX. &#x20;
* [/<mark style="color:blue;">swap</mark>](#swap) <mark style="color:green;">`POST`</mark> - Initiate a swap transaction on a specified DEX.&#x20;
* [/<mark style="color:blue;">addliquidity</mark>](#addliquidity) <mark style="color:green;">`POST`</mark> - Add liquidity to a specified pool in a specified DEX.&#x20;
* [<mark style="color:blue;">/removeliquidity</mark>](#removeliquidity) <mark style="color:green;">`POST`</mark> - Remove liquidity from a specified pool in a specified DEX.&#x20;

### DEX IDs

Many endpoints have a parameter where you can provide a DEX ID.&#x20;

Below is a list of DEX IDs related to PancakeSwap V3. Please see the [DEX ID page](broken://pages/8x8qwIu19Aq8uFsjOXvI) for a complete DEX ID list and more information.

| DEX Name       | Chain               | DEX ID |
| -------------- | ------------------- | ------ |
| PancakeSwap V3 | Arbitrum            | 2808   |
| PancakeSwap V3 | Base                | 2809   |
| PancakeSwap V3 | Binance Smart Chain | 2800   |
| PancakeSwap V3 | Ethereum            | 2810   |
| PancakeSwap V3 | zkSync Era          | 2811   |

## Endpoint Details

### /getprice

Returns the swap quotation for a given token pair on PancakeSwap V3

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

#### Query Parameters

| Name                                       | Type   | Description                                                             |
| ------------------------------------------ | ------ | ----------------------------------------------------------------------- |
| rpc                                        | String | Remote procedural call URL.                                             |
| dexId<mark style="color:red;">\*</mark>    | String | See the [DEX ID](#dex-ids) page for a list of all DEX IDs.              |
| path<mark style="color:red;">\*</mark>     | String | Comma separated values of token addresses whose price is to be fetched. |
| amountIn<mark style="color:red;">\*</mark> | String | Amount of token.                                                        |
| poolFees                                   | String | Different pool based on the fees. By default, it is selected as 3000.   |

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

```url
https://api.expand.network/dex/getprice?path=0x0E09FaBB73Bd3Ade0a17ECC321fD13a19e81cE82,0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c&amountIn=100000000&dexId=2800&poolFees=10000
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "amountIn": "100000000",
        "path": [
            "0x0E09FaBB73Bd3Ade0a17ECC321fD13a19e81cE82",
            "0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c"
        ],
        "amountsOut": [
            "100000000",
            "306601"
        ]
    }
}
```

{% endtab %}
{% endtabs %}

[<mark style="color:blue;">back to top</mark>](#endpoints-available)

### /getuserliquidity

Returns the balance of a particular token pair of an account.

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

#### Query Parameters

| Name                                      | Type   | Description                                                             |
| ----------------------------------------- | ------ | ----------------------------------------------------------------------- |
| rpc                                       | String | Remote procedural call URL.                                             |
| tokenId<mark style="color:red;">\*</mark> | String | The token ID for PancakeSwap V3 liquidity position.                     |
| dexId<mark style="color:red;">\*</mark>   | String | Refer to [DexId](broken://pages/8x8qwIu19Aq8uFsjOXvI) page for details. |

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

```url
https://api.expand.network/dex/getuserliquidity?dexId=2800&tokenId=1312988
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "liquidity": "0",
        "tokenV3": "0x55d398326f99059fF775485246999027B3197955"
    }
}
```

{% endtab %}
{% endtabs %}

[back to top](#endpoints-available)

### /getpoolliquidity

Returns the total liquidity for a specified pool.

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

#### Query Parameters

| Name                                          | Type   | Description                                                              |
| --------------------------------------------- | ------ | ------------------------------------------------------------------------ |
| rpc                                           | String | Remote procedural call URL.                                              |
| poolAddress<mark style="color:red;">\*</mark> | String | Pool address whose liquidity is to be fetched.                           |
| dexId<mark style="color:red;">\*</mark>       | String | Refer to [DEX ID](broken://pages/8x8qwIu19Aq8uFsjOXvI) page for details. |

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

```url
https://api.expand.network/dex/getpoolliquidity?dexId=2800&poolAddress=0xd710DaC10B7255fCc0eC929a0e742A18F25b6395
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "totalLiquidity": "18515830179681481351"
    }
}
```

{% endtab %}
{% endtabs %}

[back to top](#endpoints-available)

### /gettokenliquidity

Returns the individual token liquidity within the specified liquidity pool.

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

#### Query Parameters

| Name                                          | Type   | Description                                                              |
| --------------------------------------------- | ------ | ------------------------------------------------------------------------ |
| rpc                                           | String | Remote procedural call URL.                                              |
| poolAddress<mark style="color:red;">\*</mark> | String | The pool address.                                                        |
| dexId<mark style="color:red;">\*</mark>       | String | Refer to [DEX ID](broken://pages/8x8qwIu19Aq8uFsjOXvI) page for details. |

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

```
https://api.expand.network/dex/gettokenliquidity?dexId=2800&poolAddress=0xd710DaC10B7255fCc0eC929a0e742A18F25b6395
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "Cake": "590637823886899595162",
        "WBNB": "866859192915598532"
    }
}
```

{% endtab %}
{% endtabs %}

[back to top](#endpoints-available)

### /getpoolindividualliquidity

Returns all user addresses, block numbers, and token position details for a specified pool address.

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

#### Query Parameters

| Name                                          | Type   | Description                                                              |
| --------------------------------------------- | ------ | ------------------------------------------------------------------------ |
| rpc                                           | String | Remote procedural call URL.                                              |
| poolAddress<mark style="color:red;">\*</mark> | String | The pool address.                                                        |
| dexId<mark style="color:red;">\*</mark>       | String | Refer to [DEX ID](broken://pages/8x8qwIu19Aq8uFsjOXvI) page for details. |
| endBlock                                      | String | Last block of the range.                                                 |
| startBlock                                    | String | Starting block of the range.                                             |

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

```url
https://historicallp.api.expand.network/dex/getpoolindividualliquidity?poolAddress=0x588d7cf062f4edd7c7c7f2d66fd770e03b1ea735&dexId=2800&startBlock=44738053&endBlock=44738153
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": [
        {
            "userAddress": "0xb114dfcce738e7b753a9005a343bf9ca8686c2b4",
            "liquidityData": [
                {
                    "blockNumber": "44738153",
                    "transactionHash": "0x3963520633ef30a4ebb99cdf75e5c921e52cb909051d17efe359244dc8a5f85a",
                    "assets": {
                        "CAT": "2682843343703379432904002",
                        "WBNB": "1000000000000000000"
                    }
                }
            ]
        }
    ]
}
```

{% endtab %}
{% endtabs %}

### /getpool

&#x20;Returns poolAddress, tickSpacing, poolFees, tokensLiquidity and liquidity data based on tokenA and tokenB

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

#### Query Parameters

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

```url
https://api.expand.network/dex/getpool?dexId=2810&tokenA=0x6982508145454Ce325dDbE47a25d4ec3d2311933&tokenB=0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": [
        {
            "poolAddress": "0x3202AcfD55232f3706aa81a4F18A98686B5e1d1B",
            "poolFees": "10000",
            "tickSpacing": "200",
            "tokensLiquidity": {
                "PEPE": "319891629108825742546293041",
                "WETH": "1205497090996742820"
            },
            "liquidity": "22964337843205431370008"
        }
    ]
}
```

{% endtab %}
{% endtabs %}

### /getindividualposition

Returns the liquidity position for a specified user address across all the pools for a given DEX.&#x20;

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

#### Query Parameters

| Name                                      | Type   | Description                                                                     |
| ----------------------------------------- | ------ | ------------------------------------------------------------------------------- |
| rpc                                       | String | Remote procedural call URL.                                                     |
| address<mark style="color:red;">\*</mark> | String | The public address of the liquidity holder.                                     |
| dexId<mark style="color:red;">\*</mark>   | String | Refer to [DEX ID](broken://pages/8x8qwIu19Aq8uFsjOXvI) page for details.        |
| poolAddresses                             | String | The pool Addresses whose liquidity is to be fetched. *(Comma-separated vaules)* |

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

```url
https://api.expand.network/dex/getindividualposition?dexId=2800&address=0x1782ceA0D026430ad4b410697c2df05a104EFA9b
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "aggregatedLiquidity": "72444604462753293596618",
        "poolResponse": {
            "TONCOINWBNB": {
                "0x43bEB5b09ac912c4288dB731FE7c30507e252C2A": "15779353064773789"
            },
            "USDTCake-LP": {
                "0xE210A02C2ec1455b2FCcC44DdeC7350069fe82bd": "6297850996707074851911"
            },
            "ETHWBNB": {
                "0x62Fcb3C1794FB95BD8B1A97f6Ad5D8a7e4943a1e": "2493746513801523617"
            },
            "USDTTONCOIN": {
                "0x0C908dd60E9fe25b22fF27a708764b8539f827Ee": "62084827588607788"
            },
            "CakemCake": {
                "0xa9AE342B34f3aB5fF41c6790Cc483B3529DFEFbB": "21419819327158619681573"
            },
            "WBNBPOSEIDON": {
                "0x17D8F66a21646143f409668c73Ee98859F7D7cb7": "956368188650006020443"
            },
            "WBNBTHE": {
                "0x2E2DcA75BBD1a4CE87F59F52f22fd252963eeA03": "30772500373629930566"
            },
            "CakeWBNB": {
                "0xAfB2Da14056725E3BA3a30dD846B6BBbd7886c56": "47259662655317815919"
            },
            "ZROWBNB": {
                "0xC241e8fb314bc3799BE2Db94dCE4d070c29b425d": "252928787577262072535"
            },
            "KASUSDT": {
                "0x92FB8463ac6BC0f700b20cD67CdEE7C753947f66": "6802786118907420"
            },
            "USDTZRO": {
                "0x1437A1f1112E1C342c24E83194A4b2eD06c15794": "524873430052127267391"
            },
            "ULTIUSDT": {
                "0x468Be8C177849E698AF38a153CAb6E7e2684a612": "936065694612754763411"
            },
            "USDTFRAX": {
                "0x062E5A0E976878755311E9254bE65821CEB25adF": "41976087461485927380255"
            }
        }
    }
}
```

{% endtab %}
{% endtabs %}

[back to top](#endpoints-available)

### /swap

Initiate a swap transaction on a specified DEX.

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

#### Request Body

<table><thead><tr><th width="177">Name</th><th width="105">Type</th><th>Description</th></tr></thead><tbody><tr><td>rpc</td><td>String</td><td>Remote procedural call URL.</td></tr><tr><td>dexId<mark style="color:red;">*</mark></td><td>String</td><td>Refer to the <a href="/pages/8x8qwIu19Aq8uFsjOXvI">DEX ID</a> page for details. </td></tr><tr><td>path<mark style="color:red;">*</mark></td><td>Array</td><td>Comma-separated values of token addresses, inside an array, to swap.</td></tr><tr><td>amountIn<mark style="color:red;">*</mark></td><td>String</td><td>Amount of token to be swapped.</td></tr><tr><td>amountOutMin</td><td>String</td><td>Minimum amount accepted as a result of swap.</td></tr><tr><td>to<mark style="color:red;">*</mark></td><td>String</td><td>Address of the recipient of the token.</td></tr><tr><td>from<mark style="color:red;">*</mark></td><td>String</td><td>Address of the sender of the token.</td></tr><tr><td>gas</td><td>String</td><td>Maximum gas limit provided by the sender, for the transaction.</td></tr><tr><td>poolFees</td><td>String</td><td>Different pool based on the fees. By default, it is selected as 3000.</td></tr><tr><td>gasPriority</td><td>String</td><td>low, medium, or high.</td></tr><tr><td>slippage</td><td>String</td><td><p>Percentage of total swap value. <br>By default, 1.</p><p>0 &#x3C;= slippage  value &#x3C;= 100</p></td></tr></tbody></table>

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

```json
{
    "dexId": "2800",
    "path": ["0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c", "0x55d398326f99059fF775485246999027B3197955"],
    "amountIn":"1000000000000",
    "gas": "100000",
    "to": "0xf67d5d28614f26f56a73E635197534871D4ACf14",
    "amountOutMin": "100",
    "from": "0xf67d5d28614f26f56a73E635197534871D4ACf14",
    "poolFees": "10000",
    "involveBaseToken": "1",
    "deadline": "19999999999999"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "56",
        "from": "0xf67d5d28614f26f56a73E635197534871D4ACf14",
        "to": "0x1b81D678ffb9C0263b24A97847620C99d213eB14",
        "value": "1000000000000",
        "gas": "100000",
        "data": "0xac9650d800000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000001800000000000000000000000000000000000000000000000000000000000000104414bf389000000000000000000000000bb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c00000000000000000000000055d398326f99059ff775485246999027b31979550000000000000000000000000000000000000000000000000000000000002710000000000000000000000000f67d5d28614f26f56a73e635197534871d4acf14000000000000000000000000000000000000000000000000000012309ce53fff000000000000000000000000000000000000000000000000000000e8d4a510000000000000000000000000000000000000000000000000000000000000000064000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000412210e8a00000000000000000000000000000000000000000000000000000000",
         "estimationCheck": true,
        "referenceId": "29b6e3b2db4c473faf81a91ff2262071"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
**With gasPriority (medium):**

```json
{
    "dexId": "2800",
    "path": ["0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c", "0x55d398326f99059fF775485246999027B3197955"],
    "amountIn":"1000000000000",
    "gas": "100000",
    "to": "0xf67d5d28614f26f56a73E635197534871D4ACf14",
    "amountOutMin": "100",
    "from": "0xf67d5d28614f26f56a73E635197534871D4ACf14",
    "poolFees": "10000",
    "involveBaseToken": "1",
    "deadline": "19999999999999",
    "gasPriority": "medium"
}
```

{% endtab %}

{% tab title="Sample Response" %}
**With gasPriority:**

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "56",
        "from": "0xf67d5d28614f26f56a73E635197534871D4ACf14",
        "to": "0x1b81D678ffb9C0263b24A97847620C99d213eB14",
        "value": "1000000000000",
        "gas": "100000",
        "data": "0xac9650d800000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000001800000000000000000000000000000000000000000000000000000000000000104414bf389000000000000000000000000bb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c00000000000000000000000055d398326f99059ff775485246999027b31979550000000000000000000000000000000000000000000000000000000000002710000000000000000000000000f67d5d28614f26f56a73e635197534871d4acf14000000000000000000000000000000000000000000000000000012309ce53fff000000000000000000000000000000000000000000000000000000e8d4a510000000000000000000000000000000000000000000000000000000000000000064000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000412210e8a00000000000000000000000000000000000000000000000000000000",
        "gasPrice": "1200000000",
        "estimationCheck": true,
        "referenceId": "25a2c29b527d429997702dffb45e06c5"
    }
}
```

{% endtab %}
{% endtabs %}

[back to top](#endpoints-available)

### /addliquidity

Add liquidity to a specified pool in a specified DEX.

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

#### Request Body

| Name                                             | Type   | Description                                                                            |
| ------------------------------------------------ | ------ | -------------------------------------------------------------------------------------- |
| dexId<mark style="color:red;">\*</mark>          | String | Refer to the [DEX ID](broken://pages/8x8qwIu19Aq8uFsjOXvI) page for details.           |
| tokenA<mark style="color:red;">\*</mark>         | String | Address of the first token being added.                                                |
| tokenB<mark style="color:red;">\*</mark>         | String | Address of the second token being added.                                               |
| poolFees<mark style="color:red;">\*</mark>       | String | Different pool based on the fees.                                                      |
| amountADesired<mark style="color:red;">\*</mark> | String | Desired amount of token A.                                                             |
| amountBDesired<mark style="color:red;">\*</mark> | String | Desired amount of token B.                                                             |
| amountAMin<mark style="color:red;">\*</mark>     | String | Minimum amount of token A.                                                             |
| amountBMin<mark style="color:red;">\*</mark>     | String | Minimum amount of token B.                                                             |
| deadline<mark style="color:red;">\*</mark>       | String | Deadline for the transaction to be executed (UNIX Timestamp).                          |
| to<mark style="color:red;">\*</mark>             | String | Address of the recipient of the token.                                                 |
| from<mark style="color:red;">\*</mark>           | String | Address of the sender of the token.                                                    |
| gas                                              | String | Maximum gas limit provided by the sender, for the transaction.                         |
| rpc                                              | String | Remote procedural call URL.                                                            |
| tokenId                                          | String | The token ID for PancakeSwap V3 liquidity position.                                    |
| gasPriority                                      | String | low, medium, or high.                                                                  |
| slippage                                         | String | <p>Percentage of total value. <br>By default, 1.</p><p>0 <= slippage  value <= 100</p> |

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

```json
{
    "dexId": "2800",
    "tokenA": "0x55d398326f99059fF775485246999027B3197955",
    "tokenB": "0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c",
    "amountADesired":"1000",
    "amountBDesired": "10",
    "amountAMin": "0",
    "amountBMin": "0",
    "deadline": "19999999999",
    "gas": "10000",
    "to": "0xf67d5d28614f26f56a73E635197534871D4ACf14",
    "amountOutMin": "100",
    "from": "0xf67d5d28614f26f56a73E635197534871D4ACf14",
    "poolFees": "10000"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "56",
        "from": "0xf67d5d28614f26f56a73E635197534871D4ACf14",
        "to": "0x46A15B0b27311cedF172AB29E4f4766fbE7F4364",
        "value": "0",
        "gas": "10000",
        "data": "0xac9650d800000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000001e000000000000000000000000000000000000000000000000000000000000001648831645600000000000000000000000055d398326f99059ff775485246999027b3197955000000000000000000000000bb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c0000000000000000000000000000000000000000000000000000000000002710ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0ab0ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0dd000000000000000000000000000000000000000000000000000000000000003e8000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000f67d5d28614f26f56a73e635197534871d4acf1400000000000000000000000000000000000000000000000000000004a817c7ff00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000412210e8a00000000000000000000000000000000000000000000000000000000",
        "estimationCheck": true,
        "referenceId": "5cc0e39341854b10bffb78b52738e3c2"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
**With gasPriority (medium):**

```json
{
    "dexId": "2800",
    "tokenA": "0x55d398326f99059fF775485246999027B3197955",
    "tokenB": "0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c",
    "amountADesired": "1000",
    "amountBDesired": "10",
    "amountAMin": "0",
    "amountBMin": "0",
    "deadline": "19999999999",
    "gas": "10000",
    "to": "0xf67d5d28614f26f56a73E635197534871D4ACf14",
    "amountOutMin": "100",
    "from": "0xf67d5d28614f26f56a73E635197534871D4ACf14",
    "poolFees": "10000",
    "gasPriority": "medium"
}
```

{% endtab %}

{% tab title="Sample Response" %}
**With gasPriority:**

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "56",
        "from": "0xf67d5d28614f26f56a73E635197534871D4ACf14",
        "to": "0x46A15B0b27311cedF172AB29E4f4766fbE7F4364",
        "value": "0",
        "gas": "10000",
        "data": "0xac9650d800000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000001e000000000000000000000000000000000000000000000000000000000000001648831645600000000000000000000000055d398326f99059ff775485246999027b3197955000000000000000000000000bb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c0000000000000000000000000000000000000000000000000000000000002710ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0ab0ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0dd000000000000000000000000000000000000000000000000000000000000003e8000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000f67d5d28614f26f56a73e635197534871d4acf1400000000000000000000000000000000000000000000000000000004a817c7ff00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000412210e8a00000000000000000000000000000000000000000000000000000000",
        "gasPrice": "1200000000",
        "estimationCheck": true,
        "referenceId": "57755b589ac14a23a8a006b83da04eb6"
    }
}
```

{% endtab %}
{% endtabs %}

[back to top](#endpoints-available)

### /removeliquidity

Remove liquidity from a specified pool for a specified DEX.

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

#### Request Body

| Name                                        | Type   | Description                                                                            |
| ------------------------------------------- | ------ | -------------------------------------------------------------------------------------- |
| dexId<mark style="color:red;">\*</mark>     | String | Refer to the [DEX ID](broken://pages/8x8qwIu19Aq8uFsjOXvI) page for details.           |
| tokenId<mark style="color:red;">\*</mark>   | String | The token ID for PancakeSwap V3 liquidity position.                                    |
| amountAMin                                  | String | Minimum amount of Token A.                                                             |
| amountAMax                                  | String | Maximum amount of Token A.                                                             |
| amountBMax                                  | String | Maximum amount of Token B.                                                             |
| recipient                                   | String | Recipient for sweep tokens.                                                            |
| deadline<mark style="color:red;">\*</mark>  | String | Deadline for the transaction to be executed (UNIX Timestamp).                          |
| from<mark style="color:red;">\*</mark>      | String | Address of the sender of the token.                                                    |
| gas                                         | String | Maximum gas limit provided by the sender, for the transaction.                         |
| rpc                                         | String | Remote procedural call URL.                                                            |
| tokenA<mark style="color:red;">\*</mark>    | String | Address of the first token being removed.                                              |
| tokenB                                      | String | Address of the second token being removed.                                             |
| liquidity<mark style="color:red;">\*</mark> | string | The liquidity to be removed.                                                           |
| amountBMin                                  | String | Minimum amount of Token B.                                                             |
| gasPriority                                 | String | low, medium, or high.                                                                  |
| slippage                                    | String | <p>Percentage of total value. <br>By default, 1.</p><p>0 <= slippage  value <= 100</p> |

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

```json
{
    "dexId": "2800",
    "tokenA": "0x55d398326f99059fF775485246999027B3197955",
    "tokenB": "0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c",
    "amountAMax": "1000",
    "amountBMax": "10",
    "amountAMin": "0",
    "amountBMin": "0",
    "deadline": "19999999999",
    "liquidity": "10000",
    "gas": "10000",
    "amountOutMin": "100",
    "from": "0x176a7FCF400d3af85909e5A16ea9D04b4717C529",
    "tokenId": "1312988"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "56",
        "from": "0x176a7FCF400d3af85909e5A16ea9D04b4717C529",
        "to": "0x46A15B0b27311cedF172AB29E4f4766fbE7F4364",
        "value": "0",
        "gas": "10000",
        "data": "0xac9650d80000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000160000000000000000000000000000000000000000000000000000000000000022000000000000000000000000000000000000000000000000000000000000002a000000000000000000000000000000000000000000000000000000000000000a40c49ccbe00000000000000000000000000000000000000000000000000000000001408dc00000000000000000000000000000000000000000000000000000000000027100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004a817c7ff000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000084fc6f786500000000000000000000000000000000000000000000000000000000001408dc000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003e8000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004449404b7c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000176a7fcf400d3af85909e5a16ea9d04b4717c529000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000064df2ab5bb00000000000000000000000055d398326f99059ff775485246999027b31979550000000000000000000000000000000000000000000000000000000000000000000000000000000000000000176a7fcf400d3af85909e5a16ea9d04b4717c52900000000000000000000000000000000000000000000000000000000",
        "estimationCheck": true,
        "referenceId": "1d38812d15d749f4834dab14733c502c"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
**With gasPriority:**

```json
{
    "dexId": "2800",
    "tokenA": "0x55d398326f99059fF775485246999027B3197955",
    "tokenB": "0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c",
    "amountAMax": "1000",
    "amountBMax": "10",
    "amountAMin": "0",
    "amountBMin": "0",
    "deadline": "19999999999",
    "liquidity": "10000",
    "gas": "10000",
    "amountOutMin": "100",
    "from": "0x176a7FCF400d3af85909e5A16ea9D04b4717C529",
    "tokenId": "1312988",
    "gasPriority": "medium"
}
```

{% endtab %}

{% tab title="Sample Response" %}
**With gasPriority:**

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "56",
        "from": "0x176a7FCF400d3af85909e5A16ea9D04b4717C529",
        "to": "0x46A15B0b27311cedF172AB29E4f4766fbE7F4364",
        "value": "0",
        "gas": "10000",
        "data": "0xac9650d80000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000160000000000000000000000000000000000000000000000000000000000000022000000000000000000000000000000000000000000000000000000000000002a000000000000000000000000000000000000000000000000000000000000000a40c49ccbe00000000000000000000000000000000000000000000000000000000001408dc00000000000000000000000000000000000000000000000000000000000027100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004a817c7ff000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000084fc6f786500000000000000000000000000000000000000000000000000000000001408dc000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003e8000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004449404b7c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000176a7fcf400d3af85909e5a16ea9d04b4717c529000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000064df2ab5bb00000000000000000000000055d398326f99059ff775485246999027b31979550000000000000000000000000000000000000000000000000000000000000000000000000000000000000000176a7fcf400d3af85909e5a16ea9d04b4717c52900000000000000000000000000000000000000000000000000000000",
        "gasPrice": "1200000000",
        "estimationCheck": true,
        "referenceId": "0f1162e935ed446baa99cf7f12dfdd03"
    }
}
```

{% endtab %}
{% endtabs %}

[back to top](#endpoints-available)


# Aerodrome

### Supported Chains

Available on **Base**

### Available Endpoints:

*Click on the endpoint to jump to the section with full details*

* [<mark style="color:blue;">/getprice</mark>](#getprice) <mark style="color:blue;">`GET`</mark> - Returns the swap quotation for a given token pair on Aerodrome.
* [<mark style="color:blue;">/getuserliquidity</mark>](#getuserliquidity) <mark style="color:blue;">`GET`</mark> - Returns the balance of a particular token pair of accounts.&#x20;
* [<mark style="color:blue;">/getpoolliquidity</mark>](#getpoolliquidity) <mark style="color:blue;">`GET`</mark> - Returns the total liquidity for a specified pool.
* [<mark style="color:blue;">/gettokenliquidity</mark>](#gettokenliquidity) <mark style="color:blue;">`GET`</mark> - Returns the individual token liquidity within the specified liquidity pool.
* [<mark style="color:blue;">/g</mark>](#user-content-fn-1)[^1][<mark style="color:blue;">etpool</mark>](#getpool)<mark style="color:blue;">`GET`</mark> - Returns poolAddress, tickSpacing, tokensLiquidity and liquidity data based on tokenA and tokenB
* [/<mark style="color:blue;">swap</mark>](#swap) <mark style="color:green;">`POST`</mark> - Initiate a swap transaction on a specified DEX.&#x20;
* [/<mark style="color:blue;">addliquidity</mark>](#addliquidity) <mark style="color:green;">`POST`</mark> - Add liquidity to a specified pool in a specified DEX.&#x20;
* [<mark style="color:blue;">/removeliquidity</mark>](#removeliquidity) <mark style="color:green;">`POST`</mark> - Remove liquidity from a specified pool in a specified DEX.&#x20;

### DEX IDs

Many endpoints have a parameter where you can provide a DEX ID.&#x20;

Below is a list of DEX IDs related to PancakeSwap V3. Please see the [DEX ID page](broken://pages/8x8qwIu19Aq8uFsjOXvI) for a complete DEX ID list and more information.

| DEX Name  | Chain | DEX ID |
| --------- | ----- | ------ |
| Aerodrome | Base  | 3600   |

## Endpoint Details

### /getprice

Returns the swap quotation for a given token pair on Aerodrome

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

#### Query Parameters

| Name                                       | Type   | Description                                                                  |
| ------------------------------------------ | ------ | ---------------------------------------------------------------------------- |
| rpc                                        | String | Remote procedural call URL.                                                  |
| dexId<mark style="color:red;">\*</mark>    | String | See the [DEX ID](#dex-ids) page for a list of all DEX IDs.                   |
| path<mark style="color:red;">\*</mark>     | String | Comma separated values of token addresses whose price is to be fetched.      |
| amountIn<mark style="color:red;">\*</mark> | String | Amount of token.                                                             |
| tickSpacing                                | String | Different pool based on the tick spacing. By default, it is selected as 100. |

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

```url
https://api.expand.network/dex/getprice?path=0x4200000000000000000000000000000000000006%2C0xacfE6019Ed1A7Dc6f7B508C02d1b04ec88cC21bf&tickSpacing=100&amountIn=10000000000000&dexId=3600
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "amountIn": "10000000000000",
        "path": [
            "0x4200000000000000000000000000000000000006",
            "0xacfE6019Ed1A7Dc6f7B508C02d1b04ec88cC21bf"
        ],
        "amountsOut": [
            "10000000000000",
            "5017892452668128"
        ]
    }
}
```

{% endtab %}
{% endtabs %}

[<mark style="color:blue;">back to top</mark>](#endpoints-available)

### /getuserliquidity

Returns the balance of a particular token pair of an account.

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

#### Query Parameters

| Name                                      | Type   | Description                                                             |
| ----------------------------------------- | ------ | ----------------------------------------------------------------------- |
| rpc                                       | String | Remote procedural call URL.                                             |
| tokenId<mark style="color:red;">\*</mark> | String | The token ID for Aerodrome liquidity position.                          |
| dexId<mark style="color:red;">\*</mark>   | String | Refer to [DexId](broken://pages/8x8qwIu19Aq8uFsjOXvI) page for details. |

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

```url
https://api.expand.network/dex/getuserliquidity?dexId=3600&tokenId=6402229
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "liquidity": "0",
        "tokenV3": "0x55d398326f99059fF775485246999027B3197955"
    }
}
```

{% endtab %}
{% endtabs %}

[back to top](#endpoints-available)

### /getpoolliquidity

Returns the total liquidity for a specified pool.

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

#### Query Parameters

| Name                                          | Type   | Description                                                              |
| --------------------------------------------- | ------ | ------------------------------------------------------------------------ |
| rpc                                           | String | Remote procedural call URL.                                              |
| poolAddress<mark style="color:red;">\*</mark> | String | Pool address whose liquidity is to be fetched.                           |
| dexId<mark style="color:red;">\*</mark>       | String | Refer to [DEX ID](broken://pages/8x8qwIu19Aq8uFsjOXvI) page for details. |

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

```url
https://api.expand.network//dex/getpoolliquidity?dexId=3600&poolAddress=0x6446021F4E396dA3df4235C62537431372195D38
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "totalLiquidity": "3842613418337609306114460735"
    }
}
```

{% endtab %}
{% endtabs %}

[back to top](#endpoints-available)

### /gettokenliquidity

Returns the individual token liquidity within the specified liquidity pool.

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

#### Query Parameters

| Name                                          | Type   | Description                                                              |
| --------------------------------------------- | ------ | ------------------------------------------------------------------------ |
| rpc                                           | String | Remote procedural call URL.                                              |
| poolAddress<mark style="color:red;">\*</mark> | String | The pool address.                                                        |
| dexId<mark style="color:red;">\*</mark>       | String | Refer to [DEX ID](broken://pages/8x8qwIu19Aq8uFsjOXvI) page for details. |

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

```
https://api.expand.network//dex/gettokenliquidity?dexId=3600&poolAddress=0xC96fa108B551E24609bA22F177a652FFAa05E3a5
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "WETH": "14793727084925305",
        "B3": "48389790764073"
    }
}
```

{% endtab %}
{% endtabs %}

[back to top](#endpoints-available)

### /getpool

&#x20;Returns poolAddress, tickSpacing, poolFees, tokensLiquidity and liquidity data based on tokenA and tokenB

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

#### Query Parameters

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

```url
https://api.expand.network/dex/getpool?dexId=3600&tokenA=0x4200000000000000000000000000000000000006&tokenB=0xacfE6019Ed1A7Dc6f7B508C02d1b04ec88cC21bf
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": [
        {
            "poolAddress": "0x7eC6C9D993D9832Aa654593f2Dbc21303650Bc6c",
            "tickSpacing": "100",
            "tokensLiquidity": {
                "WETH": "48768555569924423019",
                "VVV": "53838383560167152098431"
            },
            "liquidity": "17265977496275101973877"
        },
        {
            "poolAddress": "0x46D398A5b33709877f50c8918A7eE96F1Be1d7dd",
            "tickSpacing": "200",
            "tokensLiquidity": {
                "WETH": "20559058494109486027",
                "VVV": "32656440862879438912554"
            },
            "liquidity": "53885788767252899437975"
        }
    ]
}
```

{% endtab %}
{% endtabs %}

### /swap

Initiate a swap transaction on a specified DEX.

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

#### Request Body

<table><thead><tr><th width="177">Name</th><th width="105">Type</th><th>Description</th></tr></thead><tbody><tr><td>rpc</td><td>String</td><td>Remote procedural call URL.</td></tr><tr><td>dexId<mark style="color:red;">*</mark></td><td>String</td><td>Refer to the <a href="/pages/8x8qwIu19Aq8uFsjOXvI">DEX ID</a> page for details. </td></tr><tr><td>path<mark style="color:red;">*</mark></td><td>Array</td><td>Comma-separated values of token addresses, inside an array, to swap.</td></tr><tr><td>amountIn<mark style="color:red;">*</mark></td><td>String</td><td>Amount of token to be swapped.</td></tr><tr><td>amountOutMin</td><td>String</td><td>Minimum amount accepted as a result of swap.</td></tr><tr><td>to<mark style="color:red;">*</mark></td><td>String</td><td>Address of the recipient of the token.</td></tr><tr><td>from<mark style="color:red;">*</mark></td><td>String</td><td>Address of the sender of the token.</td></tr><tr><td>gas</td><td>String</td><td>Maximum gas limit provided by the sender, for the transaction.</td></tr><tr><td>tickSpacing</td><td>String</td><td>Different pool based on the tick spacing. By default, it is selected as 100.</td></tr><tr><td>gasPriority</td><td>String</td><td>low, medium, or high.</td></tr><tr><td>slippage</td><td>String</td><td><p>Percentage of total swap value. <br>By default, 1.</p><p>0 &#x3C;= slippage  value &#x3C;= 100</p></td></tr></tbody></table>

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

```json
{
    "path": [
        "0x4200000000000000000000000000000000000006",
        "0xcbB7C0000aB88B473b1f5aFd9ef808440eed33Bf"
    ],
    "amountIn": "1017533960529743",
    "amountOutMin": "0",
    "involveBaseToken": "2",
    "gas": "100000",
    "tickSpacing": "100",
    "deadline": "1747703271",
    "from": "0x6A00277E6F9E5b5773772BDE0f8F154f2875Dc26",
    "to": "0x6A00277E6F9E5b5773772BDE0f8F154f2875Dc26",
    "dexId": "3600"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "8453",
        "from": "0x6A00277E6F9E5b5773772BDE0f8F154f2875Dc26",
        "to": "0xBE6D8f0d05cC4be24d5167a3eF062215bE6D18a5",
        "value": "0",
        "gas": "262173",
        "data": "0xac9650d800000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000001800000000000000000000000000000000000000000000000000000000000000104a026383e0000000000000000000000004200000000000000000000000000000000000006000000000000000000000000cbb7c0000ab88b473b1f5afd9ef808440eed33bf0000000000000000000000000000000000000000000000000000000000000064000000000000000000000000be6d8f0d05cc4be24d5167a3ef062215be6d18a500000000000000000000000000000000000000000000000000000000682bd5e700000000000000000000000000000000000000000000000000039d711643a74f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004449404b7c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000006a00277e6f9e5b5773772bde0f8f154f2875dc2600000000000000000000000000000000000000000000000000000000",
        "estimationCheck": true,
        "referenceId": "501d277a48f2437d91e239d762f4713c"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
**With gasPriority (medium):**

```json
{
    "path": [
        "0x4200000000000000000000000000000000000006",
        "0xcbB7C0000aB88B473b1f5aFd9ef808440eed33Bf"
    ],
    "amountIn": "1017533960529743",
    "amountOutMin": "0",
    "involveBaseToken": "2",
    "gas": "100000",
    "tickSpacing": "100",
    "deadline": "1747703271",
    "from": "0x6A00277E6F9E5b5773772BDE0f8F154f2875Dc26",
    "to": "0x6A00277E6F9E5b5773772BDE0f8F154f2875Dc26",
    "dexId": "3600",
    "gasPriority": "medium"
}
```

{% endtab %}

{% tab title="Sample Response" %}
**With gasPriority:**

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "8453",
        "from": "0x6A00277E6F9E5b5773772BDE0f8F154f2875Dc26",
        "to": "0xBE6D8f0d05cC4be24d5167a3eF062215bE6D18a5",
        "value": "0",
        "gas": "267752",
        "data": "0xac9650d800000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000001800000000000000000000000000000000000000000000000000000000000000104a026383e0000000000000000000000004200000000000000000000000000000000000006000000000000000000000000cbb7c0000ab88b473b1f5afd9ef808440eed33bf0000000000000000000000000000000000000000000000000000000000000064000000000000000000000000be6d8f0d05cc4be24d5167a3ef062215be6d18a500000000000000000000000000000000000000000000000000000000682bd5e700000000000000000000000000000000000000000000000000039d711643a74f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004449404b7c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000006a00277e6f9e5b5773772bde0f8f154f2875dc2600000000000000000000000000000000000000000000000000000000",
        "gasPrice": "5867623",
        "estimationCheck": true,
        "referenceId": "5a7a5eaf11bd49abb81c8d6af79b9964"
    }
}
```

{% endtab %}
{% endtabs %}

[back to top](#endpoints-available)

### /addliquidity

Add liquidity to a specified pool in a specified DEX.

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

#### Request Body

| Name                                             | Type   | Description                                                                            |
| ------------------------------------------------ | ------ | -------------------------------------------------------------------------------------- |
| dexId<mark style="color:red;">\*</mark>          | String | Refer to the [DEX ID](broken://pages/8x8qwIu19Aq8uFsjOXvI) page for details.           |
| tokenA<mark style="color:red;">\*</mark>         | String | Address of the first token being added.                                                |
| tokenB<mark style="color:red;">\*</mark>         | String | Address of the second token being added.                                               |
| tickSpacing                                      | String | Different pool based on the tick spacing. By default, it is selected as 100.           |
| amountADesired<mark style="color:red;">\*</mark> | String | Desired amount of token A.                                                             |
| amountBDesired<mark style="color:red;">\*</mark> | String | Desired amount of token B.                                                             |
| amountAMin<mark style="color:red;">\*</mark>     | String | Minimum amount of token A.                                                             |
| amountBMin<mark style="color:red;">\*</mark>     | String | Minimum amount of token B.                                                             |
| deadline<mark style="color:red;">\*</mark>       | String | Deadline for the transaction to be executed (UNIX Timestamp).                          |
| to<mark style="color:red;">\*</mark>             | String | Address of the recipient of the token.                                                 |
| from<mark style="color:red;">\*</mark>           | String | Address of the sender of the token.                                                    |
| gas                                              | String | Maximum gas limit provided by the sender, for the transaction.                         |
| rpc                                              | String | Remote procedural call URL.                                                            |
| tokenId                                          | String | The token ID for Aerodrome liquidity position.                                         |
| gasPriority                                      | String | low, medium, or high.                                                                  |
| slippage                                         | String | <p>Percentage of total value. <br>By default, 1.</p><p>0 <= slippage  value <= 100</p> |

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

```json
{
    "tokenA": "0x4200000000000000000000000000000000000006",
    "tokenB": "0xcbB7C0000aB88B473b1f5aFd9ef808440eed33Bf",
    "tickSpacing": "100",
    "amountADesired": "10000000000000",
    "amountBDesired": "24437",
    "amountAMin": "0",
    "amountBMin": "0",
    "from": "0xDb8b672ce5aE1Cb537EEd31b2a61dFEef1feA65a",
    "to": "0xDb8b672ce5aE1Cb537EEd31b2a61dFEef1feA65a",
    "deadline": "1740727106",
    "gas": "10000",
    "dexId": "3600"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "8453",
        "from": "0xDb8b672ce5aE1Cb537EEd31b2a61dFEef1feA65a",
        "to": "0x827922686190790b37229fd06084350E74485b72",
        "value": "0",
        "gas": "10000",
        "data": "0xac9650d80000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000184b5007d1f0000000000000000000000004200000000000000000000000000000000000006000000000000000000000000cbb7c0000ab88b473b1f5afd9ef808440eed33bf0000000000000000000000000000000000000000000000000000000000000064fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffbe27cfffffffffffffffffffffffffffffffffffffffffffffffffffffffffffbe40c000000000000000000000000000000000000000000000000000009184e72a0000000000000000000000000000000000000000000000000000000000000005f7500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000db8b672ce5ae1cb537eed31b2a61dfeef1fea65a0000000000000000000000000000000000000000000000000000000067c16342000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
        "estimationCheck": true,
        "referenceId": "79356a26d508445c9da3e57e7b6d6ebf"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
**With gasPriority (medium):**

```json
{
    "tokenA": "0x4200000000000000000000000000000000000006",
    "tokenB": "0xcbB7C0000aB88B473b1f5aFd9ef808440eed33Bf",
    "tickSpacing": "100",
    "amountADesired": "10000000000000",
    "amountBDesired": "24437",
    "amountAMin": "0",
    "amountBMin": "0",
    "from": "0xDb8b672ce5aE1Cb537EEd31b2a61dFEef1feA65a",
    "to": "0xDb8b672ce5aE1Cb537EEd31b2a61dFEef1feA65a",
    "deadline": "1740727106",
    "gas": "10000",
    "dexId": "3600",
     "gasPriority": "medium"
}
```

{% endtab %}

{% tab title="Sample Response" %}
**With gasPriority:**

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "8453",
        "from": "0xDb8b672ce5aE1Cb537EEd31b2a61dFEef1feA65a",
        "to": "0x827922686190790b37229fd06084350E74485b72",
        "value": "0",
        "gas": "10000",
        "data": "0xac9650d80000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000184b5007d1f0000000000000000000000004200000000000000000000000000000000000006000000000000000000000000cbb7c0000ab88b473b1f5afd9ef808440eed33bf0000000000000000000000000000000000000000000000000000000000000064fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffbe27cfffffffffffffffffffffffffffffffffffffffffffffffffffffffffffbe40c000000000000000000000000000000000000000000000000000009184e72a0000000000000000000000000000000000000000000000000000000000000005f7500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000db8b672ce5ae1cb537eed31b2a61dfeef1fea65a0000000000000000000000000000000000000000000000000000000067c16342000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
        "gasPrice": "5712444",
        "estimationCheck": "Returned error: execution reverted",
        "referenceId": "4bae0cacf32548ceb1d037cd16668d73"
    }
}
```

{% endtab %}
{% endtabs %}

[back to top](#endpoints-available)

### /removeliquidity

Remove liquidity from a specified pool for a specified DEX.

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

#### Request Body

| Name                                        | Type   | Description                                                                            |
| ------------------------------------------- | ------ | -------------------------------------------------------------------------------------- |
| dexId<mark style="color:red;">\*</mark>     | String | Refer to the [DEX ID](broken://pages/8x8qwIu19Aq8uFsjOXvI) page for details.           |
| tokenId<mark style="color:red;">\*</mark>   | String | The token ID for Aerodrome liquidity position.                                         |
| amountAMin                                  | String | Minimum amount of Token A.                                                             |
| amountAMax                                  | String | Maximum amount of Token A.                                                             |
| amountBMax                                  | String | Maximum amount of Token B.                                                             |
| to<mark style="color:red;">\*</mark>        | String | Recipient for sweep tokens.                                                            |
| deadline<mark style="color:red;">\*</mark>  | String | Deadline for the transaction to be executed (UNIX Timestamp).                          |
| from<mark style="color:red;">\*</mark>      | String | Address of the sender of the token.                                                    |
| gas                                         | String | Maximum gas limit provided by the sender, for the transaction.                         |
| rpc                                         | String | Remote procedural call URL.                                                            |
| tokenA<mark style="color:red;">\*</mark>    | String | Address of the first token being removed.                                              |
| tokenB                                      | String | Address of the second token being removed.                                             |
| liquidity<mark style="color:red;">\*</mark> | string | The liquidity to be removed.                                                           |
| amountBMin                                  | String | Minimum amount of Token B.                                                             |
| gasPriority                                 | String | low, medium, or high.                                                                  |
| slippage                                    | String | <p>Percentage of total value. <br>By default, 1.</p><p>0 <= slippage  value <= 100</p> |

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

```json
{
    "tokenA": "0x4200000000000000000000000000000000000006",
    "tokenB": "0x4F9Fd6Be4a90f2620860d680c0d4d5Fb53d1A825",
    "tickSpacing": "50",
    "liquidity": "10000000000000",
    "amountAMin": "0",
    "amountBMin": "0",
    "from": "0x67d12A43b726C58412Eb9CD1EaF3f4aC16381dEC",
    "to": "0x67d12A43b726C58412Eb9CD1EaF3f4aC16381dEC",
    "deadline": "1840727106",
    "gas": "10000",
    "tokenId": "6762916",
    "dexId": "3600"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "8453",
        "from": "0x67d12A43b726C58412Eb9CD1EaF3f4aC16381dEC",
        "to": "0x827922686190790b37229fd06084350E74485b72",
        "value": "0",
        "gas": "10000",
        "data": "0xac9650d80000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000a40c49ccbe00000000000000000000000000000000000000000000000000000000006731a4000000000000000000000000000000000000000000000000000009184e72a00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006db74442000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000084fc6f786500000000000000000000000000000000000000000000000000000000006731a4000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffffffffffffffffffffffff00000000000000000000000000000000ffffffffffffffffffffffffffffffff000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000064df2ab5bb0000000000000000000000004200000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000000000000000000000000000067d12a43b726c58412eb9cd1eaf3f4ac16381dec00000000000000000000000000000000000000000000000000000000",
        "estimationCheck": true,
        "referenceId": "2c05c202673b4d7993380467601cc8ce"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
**With gasPriority:**

```json
{
    "tokenA": "0x4200000000000000000000000000000000000006",
    "tokenB": "0x4F9Fd6Be4a90f2620860d680c0d4d5Fb53d1A825",
    "tickSpacing": "50",
    "liquidity": "10000000000000",
    "amountAMin": "0",
    "amountBMin": "0",
    "from": "0x67d12A43b726C58412Eb9CD1EaF3f4aC16381dEC",
    "to": "0x67d12A43b726C58412Eb9CD1EaF3f4aC16381dEC",
    "deadline": "1840727106",
    "gas": "10000",
    "tokenId": "6762916",
    "dexId": "3600",
    "gasPriority": "medium"
}
```

{% endtab %}

{% tab title="Sample Response" %}
**With gasPriority:**

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "8453",
        "from": "0x67d12A43b726C58412Eb9CD1EaF3f4aC16381dEC",
        "to": "0x827922686190790b37229fd06084350E74485b72",
        "value": "0",
        "gas": "10000",
        "data": "0xac9650d80000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000a40c49ccbe00000000000000000000000000000000000000000000000000000000006731a4000000000000000000000000000000000000000000000000000009184e72a00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006db74442000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000084fc6f786500000000000000000000000000000000000000000000000000000000006731a4000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffffffffffffffffffffffff00000000000000000000000000000000ffffffffffffffffffffffffffffffff000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000064df2ab5bb0000000000000000000000004200000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000000000000000000000000000067d12a43b726c58412eb9cd1eaf3f4ac16381dec00000000000000000000000000000000000000000000000000000000",
        "gasPrice": "5999660",
        "estimationCheck": true,
        "referenceId": "dbf1a131feec4d85a15b5e0941e9260a"
    }
}
```

{% endtab %}
{% endtabs %}

[back to top](#endpoints-available)

[^1]: getpool


# Camelot V3

### Supported Chains

Available on **Arbitrum Mainnet and Testnet.**

### Available Endpoints:

*Click on the endpoint to jump to the section with full details*

* [<mark style="color:blue;">/getprice</mark>](#getprice) <mark style="color:blue;">`GET`</mark> - Returns the swap quotation for a given token pair on Camelot V3.
* [<mark style="color:blue;">/getuserliquidity</mark>](#getuserliquidity) <mark style="color:blue;">`GET`</mark> - Returns the balance of a particular token pair of accounts.&#x20;
* [<mark style="color:blue;">/getpoolliquidity</mark>](#getpoolliquidity) <mark style="color:blue;">`GET`</mark> - Returns the total liquidity for a specified pool.
* [<mark style="color:blue;">/gettokenliquidity</mark>](#gettokenliquidity) <mark style="color:blue;">`GET`</mark> - Returns the individual token liquidity within the specified liquidity pool.
* [/<mark style="color:blue;">swap</mark>](#swap) <mark style="color:green;">`POST`</mark> - Initiate a swap transaction on a specified DEX.&#x20;
* [/<mark style="color:blue;">addliquidity</mark>](#addliquidity) <mark style="color:green;">`POST`</mark> - Add liquidity to a specified pool in a specified DEX.&#x20;
* [<mark style="color:blue;">/removeliquidity</mark>](#removeliquidity) <mark style="color:green;">`POST`</mark> - Remove liquidity from a specified pool in a specified DEX.&#x20;

### DEX IDs

Many endpoints have a parameter where you can provide a DEX ID.&#x20;

Below is a list of DEX IDs related to Camelot V3. For a complete list and more information, please see the [DEX ID](/ids/dex-ids) page.

| DEX Name           | Chain            | DEX ID |
| ------------------ | ---------------- | ------ |
| Camelot V3         | Arbitrum         | 3000   |
| Camelot V3 Testnet | Arbitrum Sepolia | 3001   |

## Endpoint Details

### /getprice

Returns the swap quotation for a given token pair on Camelot V3

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

#### Query Parameters

| Name                                       | Type   | Description                                                             |
| ------------------------------------------ | ------ | ----------------------------------------------------------------------- |
| rpc                                        | String | Remote procedural call URL.                                             |
| dexId<mark style="color:red;">\*</mark>    | String | See the [DEX ID](#dex-ids) page for a list of all DEX IDs.              |
| path<mark style="color:red;">\*</mark>     | String | Comma separated values of token addresses whose price is to be fetched. |
| amountIn<mark style="color:red;">\*</mark> | String | Amount of token.                                                        |

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

```url
https://api.expand.network/dex/getprice?dexId=3000&path=0x82aF49447D8a07e3bd95BD0d56f35241523fBab1%2C0xaf88d065e77c8cC2239327C5EDb3A432268e5831&amountIn=100000000000000000
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "amountIn": "100000000000000000",
        "path": [
            "0x82aF49447D8a07e3bd95BD0d56f35241523fBab1",
            "0xaf88d065e77c8cC2239327C5EDb3A432268e5831"
        ],
        "amountsOut": [
            "100000000000000000",
            "291735930"
        ]
    }
}
```

{% endtab %}
{% endtabs %}

[<mark style="color:blue;">back to top</mark>](#endpoints-available)

### /getuserliquidity

Returns the balance of a particular token pair of an account.

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

#### Query Parameters

| Name                                      | Type   | Description                                      |
| ----------------------------------------- | ------ | ------------------------------------------------ |
| rpc                                       | String | Remote procedural call URL.                      |
| tokenId<mark style="color:red;">\*</mark> | String | The token ID for Camelot V3 liquidity position.  |
| dexId<mark style="color:red;">\*</mark>   | String | Refer to [DexId](/ids/dex-ids) page for details. |

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

```url
https://api.expand.network/dex/getuserliquidity?dexId=3000&tokenId=164692
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
  "status": 200,
  "msg": "success",
  "data": {
    "liquidity": "12082867945807172675",
    "tokenA": "98309531299581149184",
    "tokenB": "84418887853330160",
    "tokenV3": "0x6985884C4392D348587B19cb9eAAf157F13271cd"
  }
}
```

{% endtab %}
{% endtabs %}

[back to top](#endpoints-available)

### /getpoolliquidity

Returns the total liquidity for a specified pool.

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

#### Query Parameters

| Name                                          | Type   | Description                                       |
| --------------------------------------------- | ------ | ------------------------------------------------- |
| rpc                                           | String | Remote procedural call URL.                       |
| poolAddress<mark style="color:red;">\*</mark> | String | Pool address whose liquidity is to be fetched.    |
| dexId<mark style="color:red;">\*</mark>       | String | Refer to [DEX ID](/ids/dex-ids) page for details. |

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

```url
https://api.expand.network/dex/getpoolliquidity?dexId=3000&poolAddress=0x28ADaC57728a7fB7A52d3B51F31992f404E7B010
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "totalLiquidity": "560979530528078399256"
    }
}
```

{% endtab %}
{% endtabs %}

[back to top](#endpoints-available)

### /getpool

&#x20;Returns poolAddress, tickSpacing, poolFees, tokensLiquidity and liquidity data based on tokenA and tokenB

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

#### Query Parameters

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

```url
https://api.expand.network/dex/getpool?dexId=3000&tokenA=0xf97f4df75117a78c1A5a0DBb814Af92458539FB4&tokenB=0x82aF49447D8a07e3bd95BD0d56f35241523fBab1
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": [
        {
            "poolAddress": "0xe8795cF9c2309eCfe05Df028eB0F21D5D6e3a951",
            "tickSpacing": "10",
            "poolFees": "2670",
            "tokensLiquidity": {
                "WETH": "84517603087829299517",
                "LINK": "20259794053121426552652"
            },
            "liquidity": "14034724983098162832945"
        }
    ]
}
```

{% endtab %}
{% endtabs %}

### /gettokenliquidity

Returns the individual token liquidity within the specified liquidity pool.

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

#### Query Parameters

| Name                                          | Type   | Description                                       |
| --------------------------------------------- | ------ | ------------------------------------------------- |
| rpc                                           | String | Remote procedural call URL.                       |
| poolAddress<mark style="color:red;">\*</mark> | String | The pool address.                                 |
| dexId<mark style="color:red;">\*</mark>       | String | Refer to [DEX ID](/ids/dex-ids) page for details. |

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

```
https://api.expand.network/dex/gettokenliquidity?dexId=3000&poolAddress=0x28ADaC57728a7fB7A52d3B51F31992f404E7B010
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "USDY": "9757072351229292430752246",
        "USDC": "1157179943379"
    }
}
```

{% endtab %}
{% endtabs %}

[back to top](#endpoints-available)

### /swap

Initiate a swap transaction on a specified DEX.

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

#### Request Body

<table><thead><tr><th width="233.6796875">Name</th><th width="203.71484375">Type</th><th>Description</th></tr></thead><tbody><tr><td>rpc</td><td>String</td><td>Remote procedural call URL.</td></tr><tr><td>dexId<mark style="color:red;">*</mark></td><td>String</td><td>Refer to the <a href="/pages/TTKE85z6mWOr5G3jQ5gB">DEX ID</a> page for details. </td></tr><tr><td>path<mark style="color:red;">*</mark></td><td>Array</td><td>Comma-separated values of token addresses, inside an array, to swap.</td></tr><tr><td>amountIn<mark style="color:red;">*</mark></td><td>String</td><td>Amount of token to be swapped.</td></tr><tr><td>amountOutMin</td><td>String</td><td>Minimum amount accepted as a result of swap.</td></tr><tr><td>to<mark style="color:red;">*</mark></td><td>String</td><td>Address of the recipient of the token.</td></tr><tr><td>from<mark style="color:red;">*</mark></td><td>String</td><td>Address of the sender of the token.</td></tr><tr><td>gas</td><td>String</td><td>Maximum gas limit provided by the sender, for the transaction.</td></tr><tr><td>poolFees</td><td>String</td><td>Different pool based on the fees. By default, it is selected as 3000.</td></tr><tr><td>gasPriority</td><td>String</td><td>low, medium, or high.</td></tr><tr><td>slippage</td><td>String</td><td><p>Percentage of total swap value. <br>By default, 1.</p><p>0 &#x3C;= slippage  value &#x3C;= 100</p></td></tr></tbody></table>

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

```json
{
    "dexId": "3000",
    "path": [
        "0x82aF49447D8a07e3bd95BD0d56f35241523fBab1",
        "0xaf88d065e77c8cC2239327C5EDb3A432268e5831"
    ],
    "amountIn": "100000000000000",
    "amountOutMin": "143003",
    "gas": "800000",
    "from": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
    "to": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
    "deadline": "1740727106",
    "involveBaseToken": "1"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "42161",
        "from": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
        "to": "0x1F721E2E82F6676FCE4eA07A5958cF098D339e18",
        "value": "100000000000000",
        "gas": "393223",
        "data": "0xac9650d8000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000000e4bc65118800000000000000000000000082af49447d8a07e3bd95bd0d56f35241523fbab1000000000000000000000000af88d065e77c8cc2239327c5edb3a432268e5831000000000000000000000000dae2f6eddda6fb4fb60cc02633de27e2b431b4020000000000000000000000000000000000000000000000000000000067c1634200000000000000000000000000000000000000000000000000005af3107a40000000000000000000000000000000000000000000000000000000000000022e9b00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044186527000000000000000000000000000000000000000000000000000000000",
        "estimationCheck": true,
        "referenceId": "a0ffe21d76de421cbf7e3e8e9ecbd5cd"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
**With gasPriority (medium):**

```json
{
    "dexId": "3000",
    "path": [
        "0x82aF49447D8a07e3bd95BD0d56f35241523fBab1",
        "0xaf88d065e77c8cC2239327C5EDb3A432268e5831"
    ],
    "amountIn": "100000000000000",
    "amountOutMin": "143003",
    "gas": "800000",
    "gasPriority":"high",
    "from": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
    "to": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
    "deadline": "1740727106",
    "involveBaseToken": "1"
}
```

{% endtab %}

{% tab title="Sample Response" %}
**With gasPriority:**

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "42161",
        "from": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
        "to": "0x1F721E2E82F6676FCE4eA07A5958cF098D339e18",
        "value": "100000000000000",
        "gas": "393223",
        "data": "0xac9650d8000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000000e4bc65118800000000000000000000000082af49447d8a07e3bd95bd0d56f35241523fbab1000000000000000000000000af88d065e77c8cc2239327c5edb3a432268e5831000000000000000000000000dae2f6eddda6fb4fb60cc02633de27e2b431b4020000000000000000000000000000000000000000000000000000000067c1634200000000000000000000000000000000000000000000000000005af3107a40000000000000000000000000000000000000000000000000000000000000022e9b00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044186527000000000000000000000000000000000000000000000000000000000",
        "gasPrice": "15000000",
        "estimationCheck": true,
        "referenceId": "52580b418aec4162bb37a8ad89cf4612"
    }
}
```

{% endtab %}
{% endtabs %}

[back to top](#endpoints-available)

### /addliquidity

Add liquidity to a specified pool in a specified DEX.

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

#### Request Body

| Name                                             | Type   | Description                                                                                                                      |
| ------------------------------------------------ | ------ | -------------------------------------------------------------------------------------------------------------------------------- |
| dexId<mark style="color:red;">\*</mark>          | String | Refer to the [DEX ID](/ids/dex-ids) page for details.                                                                            |
| tokenA<mark style="color:red;">\*</mark>         | String | Address of the first token being added.                                                                                          |
| tokenB<mark style="color:red;">\*</mark>         | String | Address of the second token being added.                                                                                         |
| amountADesired<mark style="color:red;">\*</mark> | String | Desired amount of token A.                                                                                                       |
| amountBDesired<mark style="color:red;">\*</mark> | String | Desired amount of token B.                                                                                                       |
| amountAMin<mark style="color:red;">\*</mark>     | String | Minimum amount of token A.                                                                                                       |
| amountBMin<mark style="color:red;">\*</mark>     | String | Minimum amount of token B.                                                                                                       |
| deadline<mark style="color:red;">\*</mark>       | String | Deadline for the transaction to be executed (UNIX Timestamp).                                                                    |
| to<mark style="color:red;">\*</mark>             | String | Address of the recipient of the token.                                                                                           |
| from<mark style="color:red;">\*</mark>           | String | Address of the sender of the token.                                                                                              |
| gas                                              | String | Maximum gas limit provided by the sender, for the transaction.                                                                   |
| rpc                                              | String | Remote procedural call URL.                                                                                                      |
| tokenId                                          | String | <p>The token ID for Camelot V3 liquidity position.<br>Note- tokenId is required while adding liquidity in the same position.</p> |
| gasPriority                                      | String | low, medium, or high.                                                                                                            |
| slippage                                         | String | <p>Percentage of total value. <br>By default, 1.</p><p>0 <= slippage  value <= 100</p>                                           |

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

```json
{
    "dexId": "3000",
    "tokenA": "0x82aF49447D8a07e3bd95BD0d56f35241523fBab1",
    "tokenB": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
    "amountADesired": "10000000000000",
    "amountBDesired": "24437",
    "amountAMin": "0",
    "amountBMin": "0",
    "gas": "800000",
    "from": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
    "to": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
    "deadline": "1740727106",
    "tokenId": "164692"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "42161",
        "from": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
        "to": "0x00c7f3082833e796A5b3e4Bd59f6642FF44DCD15",
        "value": "0",
        "gas": "800000",
        "data": "0xac9650d8000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000000c4219f5d170000000000000000000000000000000000000000000000000000000000028354000000000000000000000000000000000000000000000000000009184e72a0000000000000000000000000000000000000000000000000000000000000005f75000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000067c163420000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044186527000000000000000000000000000000000000000000000000000000000",
        "estimationCheck": true,
        "referenceId": "b1c1943fbb5c47a8a13ef4a3057cb90e"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
**With gasPriority (medium):**

```json
{
    "dexId": "3000",
    "tokenA": "0x82aF49447D8a07e3bd95BD0d56f35241523fBab1",
    "tokenB": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
    "amountADesired": "10000000000000",
    "amountBDesired": "24437",
    "amountAMin": "0",
    "amountBMin": "0",
    "gas": "800000",
    "gasPriority":"high",
    "from": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
    "to": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
    "deadline": "1740727106",
    "tokenId": "164692"
}
```

{% endtab %}

{% tab title="Sample Response" %}
**With gasPriority:**

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "42161",
        "from": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
        "to": "0x00c7f3082833e796A5b3e4Bd59f6642FF44DCD15",
        "value": "0",
        "gas": "800000",
        "data": "0xac9650d8000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000000c4219f5d170000000000000000000000000000000000000000000000000000000000028354000000000000000000000000000000000000000000000000000009184e72a0000000000000000000000000000000000000000000000000000000000000005f75000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000067c163420000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044186527000000000000000000000000000000000000000000000000000000000",
        "gasPrice": "15000000",
        "estimationCheck": true,
        "referenceId": "740fe260aeba44e3a60b7fb0aaa60a5e"
    }
}
```

{% endtab %}
{% endtabs %}

[back to top](#endpoints-available)

### /removeliquidity

Remove liquidity from a specified pool for a specified DEX.

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

#### Request Body

| Name                                        | Type   | Description                                                                            |
| ------------------------------------------- | ------ | -------------------------------------------------------------------------------------- |
| dexId<mark style="color:red;">\*</mark>     | String | Refer to the [DEX ID](/ids/dex-ids) page for details.                                  |
| tokenId<mark style="color:red;">\*</mark>   | String | The token ID for Camelot V3 liquidity position.                                        |
| deadline<mark style="color:red;">\*</mark>  | String | Deadline for the transaction to be executed (UNIX Timestamp).                          |
| from<mark style="color:red;">\*</mark>      | String | Address of the sender of the token.                                                    |
| gas                                         | String | Maximum gas limit provided by the sender, for the transaction.                         |
| rpc                                         | String | Remote procedural call URL.                                                            |
| liquidity<mark style="color:red;">\*</mark> | string | The liquidity to be removed.                                                           |
| gasPriority                                 | String | low, medium, or high.                                                                  |
| slippage                                    | String | <p>Percentage of total value. <br>By default, 1.</p><p>0 <= slippage  value <= 100</p> |

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

```json
{
    "dexId": "3000",
    "liquidity": "155231340559",
    "tokenId":"164018",
    "gas": "800000",
    "from": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
    "deadline": "1740727106",
    "slippage":"10"
}

```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "42161",
        "from": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
        "to": "0x00c7f3082833e796A5b3e4Bd59f6642FF44DCD15",
        "value": "0",
        "gas": "501591",
        "data": "0xac9650d80000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000160000000000000000000000000000000000000000000000000000000000000022000000000000000000000000000000000000000000000000000000000000002a000000000000000000000000000000000000000000000000000000000000000a40c49ccbe00000000000000000000000000000000000000000000000000000000000280b2000000000000000000000000000000000000000000000000000000242482480f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000067c16342000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000084fc6f786500000000000000000000000000000000000000000000000000000000000280b2000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffffffffffffffffffffffff00000000000000000000000000000000ffffffffffffffffffffffffffffffff00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004469bc35b20000000000000000000000000000000000000000000000000000000000000000000000000000000000000000dae2f6eddda6fb4fb60cc02633de27e2b431b402000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000064df2ab5bb00000000000000000000000082af49447d8a07e3bd95bd0d56f35241523fbab10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000dae2f6eddda6fb4fb60cc02633de27e2b431b40200000000000000000000000000000000000000000000000000000000",
        "estimationCheck": true,
        "referenceId": "9d0c1d0bef37470c8e51dd1e9867b028"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
**With gasPriority:**

```json
{
    "dexId": "3000",
    "liquidity": "155231340559",
    "tokenId":"164018",
    "gas": "800000",
    "gasPriority":"high",
    "from": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
    "deadline": "1740727106",
    "slippage":"10"
}
```

{% endtab %}

{% tab title="Sample Response" %}
**With gasPriority:**

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "42161",
        "from": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
        "to": "0x00c7f3082833e796A5b3e4Bd59f6642FF44DCD15",
        "value": "0",
        "gas": "501591",
        "data": "0xac9650d80000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000160000000000000000000000000000000000000000000000000000000000000022000000000000000000000000000000000000000000000000000000000000002a000000000000000000000000000000000000000000000000000000000000000a40c49ccbe00000000000000000000000000000000000000000000000000000000000280b2000000000000000000000000000000000000000000000000000000242482480f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000067c16342000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000084fc6f786500000000000000000000000000000000000000000000000000000000000280b2000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffffffffffffffffffffffff00000000000000000000000000000000ffffffffffffffffffffffffffffffff00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004469bc35b20000000000000000000000000000000000000000000000000000000000000000000000000000000000000000dae2f6eddda6fb4fb60cc02633de27e2b431b402000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000064df2ab5bb00000000000000000000000082af49447d8a07e3bd95bd0d56f35241523fbab10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000dae2f6eddda6fb4fb60cc02633de27e2b431b40200000000000000000000000000000000000000000000000000000000",
        "gasPrice": "15000000",
        "estimationCheck": true,
        "referenceId": "9d0c1d0bef37470c8e51dd1e9867b028"
    }
}
```

{% endtab %}
{% endtabs %}

[back to top](#endpoints-available)


# Curve V2

#### Below is the list of tokens we currently support for these endpoints. We are happy to add support for additional tokens upon request.

<details>

<summary>Supported Mainnet Token Pairs</summary>

1. **steth - ETH/stETH** \
   0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee, 0xae7ab96520de3a18e5e111b5eaab095312d7fe84
2. **threepool - DAI/USDC/USDT** \
   0x6b175474e89094c44da98b954eedeac495271d0f, 0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48, 0xdac17f958d2ee523a2206206994597c13d831ec7
3. **FRAXsDAI - FRAX/sDAI** \
   0x853d955acef822db058eb8505911ed77f175b99e, 0x83f20f44975d03b1b09e64809b757c47f942beea
4. **FRAXPYUSD - FRAX/PYUSD** \
   0x853d955acef822db058eb8505911ed77f175b99e, 0x6c3ea9036406852006290770bedfcaba0e23a0e8
5. **frxETHWETH - WETH/frxETH** \
   0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2, 0x5e8422345238f34275888049021821e8e08caa1f
6. **stETHng - ETH/stETH** \
   0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee, 0xae7ab96520de3a18e5e111b5eaab095312d7fe84
7. **fraxusdc - FRAX/USDC** \
   0x853d955acef822db058eb8505911ed77f175b99e, 0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48
8. **tricrypto2 - USDT/WBTC/WETH**\
   0xdac17f958d2ee523a2206206994597c13d831ec7, 0x2260fac5e5542a773aa44fbcfedf7c193bc2c599, 0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
9. **TriCryptoUSDT - USDT/WBTC/WETH** \
   0xdac17f958d2ee523a2206206994597c13d831ec7, 0x2260fac5e5542a773aa44fbcfedf7c193bc2c599, 0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
10. **stETHfrxETH - stETH/frxETH** \
    0xae7ab96520de3a18e5e111b5eaab095312d7fe84, 0x5e8422345238f34275888049021821e8e08caa1f
11. **alUSDFRAXBP - alUSD/FRAX/BASIS** \
    0xbc6da0fe9ad5f3b0d58160288917aa56653660e9, 0x3175df0976dfa876431c2e9ee6bc45b65d3473cc
12. **PayPool - PYUSD/USDC**\
    0x6c3ea9036406852006290770bedfcaba0e23a0e8, 0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48
13. **mkUSDUSDC - mkUSD/USDC** \
    0x4591dbff62656e7859afe5e45f6f47d3669fbb28, 0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48
14. **TriCryptoUSDC - USDC/WBTC/WETH** \
    0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48, 0x2260fac5e5542a773aa44fbcfedf7c193bc2c599, 0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
15. **frxeth - ETH/frxETH** \
    0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee, 0x5e8422345238f34275888049021821e8e08caa1f
16. **OETH - ETH/OETH** \
    0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee, 0x856c4efb76c1d1ae02e20ceb03a2a6a08b0b8dc3
17. **cvxCrvCrv - cvxCrv/Crv** \
    0xd533a949740bb3306d119cc777fa900ba034cd52, 0x62b9c7356a2dc64a1969e19c23e4f579f9810aa7
18. **ETHxwstETH - ETHx/wstETH** \
    0x7f39c581f595b53c5cb19bd0b3f8da6c935e2ca0, 0xa35b1b31ce002fbf2058d22f30f95d405200a15b
19. **cvxFxsFxs - cvxFXS/FXS**\
    0x3432b6a60d23ca0dfca7761b7ab56459d9c964d0, 0xfeef77d3f69374f66429c91d732a244f074bdf74
20. **FRAXFPI - FRAX/FPI** \
    0x853d955acef822db058eb8505911ed77f175b99e, 0x5ca135cb8527d76e932f34b5145575f9d8cbe08e
21. **mim - MIM/DAI/USDC/USDT** \
    0x99d8a9c45b2eca8864373a26d1459e3dff1e17f3, 0x6c3f90f043a72fa612cbac8115ee7e52bde6e490
22. **crvUSDUSDC - USDC/crvUSD** \
    0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48, 0xf939e0a03fb07f59a73314e73794be0e57ac1b4e
23. **alETHfrxETH - alETH/frxETH** \
    0x0100546f2cd4c9d97f798ffc9755e47865ff7ee6, 0x5e8422345238f34275888049021821e8e08caa1f
24. **aave - DAI/USDC/USDT**\
    0x028171bca77440897b824ca71d1c56cac55b68a3, 0xbcca60bb61934080951369a648fb03df4f96263c, 0x3ed3b47dd13ec9a98b44e6204a523e766b225811
25. **crvUSDUSDT - USDT/crvUSD** \
    0xdac17f958d2ee523a2206206994597c13d831ec7, 0xf939e0a03fb07f59a73314e73794be0e57ac1b4e
26. **eursusd - EURS/USDC**\
    0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48\
    0xdb25f211ab05b1c97d595516f45794528a807ad8
27. **pufETHwstETH - pufETH/wstETH** \
    0xd9a442856c234a39a81a089c06451ebaa4306a72\
    0x7f39c581f595b53c5cb19bd0b3f8da6c935e2ca0
28. **pxETHWETH - pxETH/WETH**\
    0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2\
    0x04c154b66cb340f3ae24111cc767e0184ed00cc6
29. **agEUREUROC - agEUR/EURC**\
    0x1a7e4e63778b4f12a199c062f3efdd288afcbce8 0x1abaea1f7c830bd89acc67ec4af516284b1bc33c
30. **rUSDYUSDC - rUSDY/USDC**\
    0xaf37c1167910ebc994e266949387d2c7c326b879\
    0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48

</details>

### /getprice

Returns the swap quotation for the given token pair.

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

#### Query Parameters

| Name                                       | Type   | Description                                                             |
| ------------------------------------------ | ------ | ----------------------------------------------------------------------- |
| rpc                                        | String | Remote procedural call URL.                                             |
| dexId<mark style="color:red;">\*</mark>    | String | Refer to the [DEX ID](/ids/dex-ids) page for details.                   |
| path<mark style="color:red;">\*</mark>     | String | Comma separated values of token addresses whose price is to be fetched. |
| amountIn<mark style="color:red;">\*</mark> | String | Amount of token.                                                        |

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

```
https://api.expand.network/dex/getprice?dexId=1500&path=0x6b175474e89094c44da98b954eedeac495271d0f,0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48&amountIn=10000000000000000000
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "amountIn": "10000000000000000000",
        "path": [
            "0x6b175474e89094c44da98b954eedeac495271d0f",
            "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48"
        ],
        "amountsOut": [
            "10000000000000000000",
            "9998342"
        ]
    }
}
```

{% endtab %}
{% endtabs %}

### /getuserliquidity

Returns the balance of a particular token pair of an account.

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

#### Query Parameters

| Name                                      | Type   | Description                                                              |
| ----------------------------------------- | ------ | ------------------------------------------------------------------------ |
| rpc                                       | String | Remote procedural call URL.                                              |
| tokenA<mark style="color:red;">\*</mark>  | String | Address of token.                                                        |
| address<mark style="color:red;">\*</mark> | String | Public address of liquidity provider.                                    |
| dexId<mark style="color:red;">\*</mark>   | String | Refer to [DEX ID](broken://pages/8x8qwIu19Aq8uFsjOXvI) page for details. |
| tokenB<mark style="color:red;">\*</mark>  | String | Address of token.                                                        |
| tokenC                                    | String | Address of token.                                                        |
| tokenD                                    | String | Address of token.                                                        |

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

```url
https://api.expand.network/dex/getuserliquidity?address=0x6fb447ae94f5180254d436a693907a1f57696900&dexId=1500&tokenA=0x6b175474e89094c44da98b954eedeac495271d0f&tokenB=0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48&tokenC=0xdac17f958d2ee523a2206206994597c13d831ec7
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "pairAddress": "0x6c3f90f043a72fa612cbac8115ee7e52bde6e490",
        "tokenA": "0",
        "tokenB": "0",
        "tokenC": "0",
        "liquidity": "0"
    }
}
```

{% endtab %}
{% endtabs %}

### /getpoolliquidity

Returns the total liquidity for a specified pool.

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

#### Query Parameters

| Name                                          | Type   | Description                                                              |
| --------------------------------------------- | ------ | ------------------------------------------------------------------------ |
| rpc                                           | String | Remote procedural call URL.                                              |
| poolAddress<mark style="color:red;">\*</mark> | String | Pool address whose liquidity is to be fetched.                           |
| dexId<mark style="color:red;">\*</mark>       | String | Refer to [DEX ID](broken://pages/8x8qwIu19Aq8uFsjOXvI) page for details. |

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

```url
https://api.expand.network/dex/getpoolliquidity?dexId=1500&poolAddress=0xc5424b857f758e906013f3555dad202e4bdb4567
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "totalLiquidity": "6906912970691008135418"
    }
}
```

{% endtab %}
{% endtabs %}

### /gettokenliquidity

Returns the individual token liquidity within the specified liquidity pool.

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

#### Query Parameters

| Name                                          | Type   | Description                                                              |
| --------------------------------------------- | ------ | ------------------------------------------------------------------------ |
| rpc                                           | String | Remote procedural call URL.                                              |
| poolAddress<mark style="color:red;">\*</mark> | String | The pool address.                                                        |
| dexId<mark style="color:red;">\*</mark>       | String | Refer to [DEX ID](broken://pages/8x8qwIu19Aq8uFsjOXvI) page for details. |

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

```
https://api.expand.network/dex/gettokenliquidity?dexId=1500&poolAddress=0xdebf20617708857ebe4f679508e7b7863a8a8eee
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "aDAI": "4410821251140993186643520",
        "aUSDC": "4427459634996",
        "aUSDT": "12345097594917"
    }
}
```

{% endtab %}
{% endtabs %}

### /getindividualposition

Returns the liquidity position for a specified user address across all the pools for the DEX.&#x20;

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

#### Query Parameters

| Name                                      | Type   | Description                                                              |
| ----------------------------------------- | ------ | ------------------------------------------------------------------------ |
| rpc                                       | String | Remote procedural call URL.                                              |
| address<mark style="color:red;">\*</mark> | String | The public address of the liquidity holder.                              |
| dexId<mark style="color:red;">\*</mark>   | String | Refer to [DEX ID](broken://pages/8x8qwIu19Aq8uFsjOXvI) page for details. |

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

```url
https://api.expand.network/dex/getindividualposition?address=0x9bb98140F36553dB71fe4a570aC0b1401BC61B4F&dexId=1500
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "aggregatedLiquidity": "1807177360143696334",
        "poolAddresses": {
            "DAIUSDCUSDT": {
                "0xbebc44782c7db0a1a60cb6fe97d0b483032ff1c7": "1797671437464531430"
            },
            "ETHstETH": {
                "0xdc24316b9ae028f1497c275eb9192a3ea0f67022": "9505922679164904"
            }
        }
    }
}
```

{% endtab %}
{% endtabs %}

### /getpool

&#x20;Returns poolAddress, tickSpacing, poolFees, tokensLiquidity and liquidity data based on tokenA and tokenB

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

#### Query Parameter

| Name                                     | Type   | Description                                                              |
| ---------------------------------------- | ------ | ------------------------------------------------------------------------ |
| dexId<mark style="color:red;">\*</mark>  | String | Refer to [DEX ID](broken://pages/8x8qwIu19Aq8uFsjOXvI) page for details. |
| tokenA<mark style="color:red;">\*</mark> | String | TokenA address                                                           |
| tokenB<mark style="color:red;">\*</mark> | String | TokenB address                                                           |
| tokenC                                   | String | TokenC address                                                           |
| tokenD                                   | String | TokenD address                                                           |

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

```url
https://api.expand.network/dex/getpool?dexId=1500&tokenA=0x853d955acef822db058eb8505911ed77f175b99e&tokenB=0x6c3ea9036406852006290770bedfcaba0e23a0e8
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": [
        {
            "poolAddress": "0xa5588f7cdf560811710a2d82d3c9c99769db1dcb",
            "poolFees": "NA",
            "tickSpacing": "NA",
            "tokensLiquidity": {
                "PYUSD": "7777756332718759809928",
                "FRAX": "1862174392"
            },
            "liquidity": "9617186452485961097179"
        }
    ]
}
```

{% endtab %}
{% endtabs %}

### /gethistoricalpoolchartdata

Get the data the OHCLV (Open, High, Close, Low, and Volume) within the specified time interval for pool on Curve V2. Available on Ethereum only.

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

#### Query Parameter

| Name                                          | Type   | Description                                                                                                                                              |
| --------------------------------------------- | ------ | -------------------------------------------------------------------------------------------------------------------------------------------------------- |
| dexId<mark style="color:red;">\*</mark>       | String | Refer to [DEX ID](broken://pages/8x8qwIu19Aq8uFsjOXvI) page for details.                                                                                 |
| interval                                      | String | <p>A number values representing the number of unix epoch seconds or in format of . For example 1m,1h<br>By default 15m</p>                               |
| limit                                         | String | <p>No of iteration.<br>Start limit is 100 and maximum limit is 500.<br>By default 100</p>                                                                |
| poolAddress<mark style="color:red;">\*</mark> | String | <p>Pool address whose transactions is to be fetched. <br>Note: We supported pool mentioned in the <a href="#supported-mainnet-token-pairs">list</a>.</p> |
| rpc                                           | String | Remote procedural call URL.                                                                                                                              |

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

```url
https://api.expand.network/dex/gethistoricalpoolchartdata?dexId=1500&poolAddress=0xdc24316b9ae028f1497c275eb9192a3ea0f67022&interval=15m&limit=100
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "pair": "ETH/stETH",
        "chartData": [
            {
                "1719839676-1719840576": {
                    "open": "1.000011026587306",
                    "high": "1.000215273461691",
                    "low": "1.000011026587306",
                    "close": "1.000215273461691",
                    "volume": "103743.2464882694"
                }
            },
            {
                "1719840576-1719841476": {
                    "open": "1.000215273461691",
                    "high": "1.000215273461691",
                    "close": "1.000215273461691",
                    "low": "1.000215273461691",
                    "volume": "0"
                }
            },
            {
                "1719841476-1719842376": {
                    "open": "1.000215273461691",
                    "high": "1.000215273461691",
                    "close": "1.000215273461691",
                    "low": "1.000215273461691",
                    "volume": "0"
                }
            },
            {
                "1719842376-1719843276": {
                    "open": "1.000215273461691",
                    "high": "1.000215273461691",
                    "close": "1.000215273461691",
                    "low": "1.000215273461691",
                    "volume": "0"
                }
            },
            {
                "1719843276-1719844176": {
                    "open": "1.000215273461691",
                    "high": "1.000215273461691",
                    "close": "1.000215273461691",
                    "low": "1.000215273461691",
                    "volume": "0"
                }
            },
            {
                "1719844176-1719845076": {
                    "open": "1.000215273461691",
                    "high": "1.000215273461691",
                    "close": "1.000215273461691",
                    "low": "1.000215273461691",
                    "volume": "0"
                }
            },
            {
                "1719845076-1719845976": {
                    "open": "1.000215273461691",
                    "high": "1.000215273461691",
                    "close": "1.000215273461691",
                    "low": "1.000215273461691",
                    "volume": "0"
                }
            },
            {
                "1719845976-1719846876": {
                    "open": "1.000215273461691",
                    "high": "1.000219820950448",
                    "low": "1.000020070459434",
                    "close": "1.000020070459434",
                    "volume": "6855.129987442908"
                }
            },
            {
                "1719846876-1719847776": {
                    "open": "1.000020070459434",
                    "high": "1.000020070459434",
                    "close": "1.000020070459434",
                    "low": "1.000020070459434",
                    "volume": "0"
                }
            },
            {
                "1719847776-1719848676": {
                    "open": "1.000020070459434",
                    "high": "1.00024882068491",
                    "low": "1.000020070459434",
                    "close": "1.000248820684910",
                    "volume": "348773.97008431476"
                }
            },
            {
                "1719848676-1719849576": {
                    "open": "1.000248820684910",
                    "high": "1.000248820684910",
                    "close": "1.000248820684910",
                    "low": "1.000248820684910",
                    "volume": "0"
                }
            },
            {
                "1719849576-1719850476": {
                    "open": "1.000248820684910",
                    "high": "1.000248820684910",
                    "close": "1.000248820684910",
                    "low": "1.000248820684910",
                    "volume": "0"
                }
            },
            {
                "1719850476-1719851376": {
                    "open": "1.000248820684910",
                    "high": "1.000282323100647",
                    "low": "1.00024882068491",
                    "close": "1.000282323100647",
                    "volume": "798327.1175274279"
                }
            },
            {
                "1719851376-1719852276": {
                    "open": "1.000282323100647",
                    "high": "1.000282323100647",
                    "close": "1.000282323100647",
                    "low": "1.000282323100647",
                    "volume": "0"
                }
            },
            {
                "1719852276-1719853176": {
                    "open": "1.000282323100647",
                    "high": "1.000282323100647",
                    "close": "1.000282323100647",
                    "low": "1.000282323100647",
                    "volume": "0"
                }
            },
            {
                "1719853176-1719854076": {
                    "open": "1.000282323100647",
                    "high": "1.000282323100647",
                    "low": "1.000061676503981",
                    "close": "1.000061676503981",
                    "volume": "776154.0826499853"
                }
            },
            {
                "1719854076-1719854976": {
                    "open": "1.000061676503981",
                    "high": "1.000061676503981",
                    "close": "1.000061676503981",
                    "low": "1.000061676503981",
                    "volume": "0"
                }
            },
            {
                "1719854976-1719855876": {
                    "open": "1.000061676503981",
                    "high": "1.000252349043247",
                    "low": "1.000061676503981",
                    "close": "1.000252349043247",
                    "volume": "33903.992995726425"
                }
            },
            {
                "1719855876-1719856776": {
                    "open": "1.000252349043247",
                    "high": "1.000252349043247",
                    "close": "1.000252349043247",
                    "low": "1.000252349043247",
                    "volume": "0"
                }
            },
            {
                "1719856776-1719857676": {
                    "open": "1.000252349043247",
                    "high": "1.000252349043247",
                    "close": "1.000252349043247",
                    "low": "1.000252349043247",
                    "volume": "0"
                }
            },
            {
                "1719857676-1719858576": {
                    "open": "1.000252349043247",
                    "high": "1.000281463045525",
                    "low": "1.000252349043247",
                    "close": "1.000281463045525",
                    "volume": "356564.33336387924"
                }
            },
            {
                "1719858576-1719859476": {
                    "open": "1.000281463045525",
                    "high": "1.000281463045525",
                    "low": "1.000081994156834",
                    "close": "1.000081994156834",
                    "volume": "17697.035651103743"
                }
            },
            {
                "1719859476-1719860376": {
                    "open": "1.000081994156834",
                    "high": "1.000081994156834",
                    "low": "1.000081888512435",
                    "close": "1.000081888512435",
                    "volume": "487.20998663871035"
                }
            },
            {
                "1719860376-1719861276": {
                    "open": "1.000081888512435",
                    "high": "1.000081888512435",
                    "close": "1.000081888512435",
                    "low": "1.000081888512435",
                    "volume": "0"
                }
            },
            {
                "1719861276-1719862176": {
                    "open": "1.000081888512435",
                    "high": "1.000081888512435",
                    "close": "1.000081888512435",
                    "low": "1.000081888512435",
                    "volume": "0"
                }
            },
            {
                "1719862176-1719863076": {
                    "open": "1.000081888512435",
                    "high": "1.000081888512435",
                    "close": "1.000081888512435",
                    "low": "1.000081888512435",
                    "volume": "0"
                }
            },
            {
                "1719863076-1719863976": {
                    "open": "1.000081888512435",
                    "high": "1.000081888512435",
                    "close": "1.000081888512435",
                    "low": "1.000081888512435",
                    "volume": "0"
                }
            },
            {
                "1719863976-1719864876": {
                    "open": "1.000081888512435",
                    "high": "1.000081888512435",
                    "close": "1.000081888512435",
                    "low": "1.000081888512435",
                    "volume": "0"
                }
            },
            {
                "1719864876-1719865776": {
                    "open": "1.000081888512435",
                    "high": "1.000282768782475",
                    "low": "1.000081888512435",
                    "close": "1.000282768782475",
                    "volume": "20489.7395317784"
                }
            },
            {
                "1719865776-1719866676": {
                    "open": "1.000282768782475",
                    "high": "1.000282768782475",
                    "close": "1.000282768782475",
                    "low": "1.000282768782475",
                    "volume": "0"
                }
            },
            {
                "1719866676-1719867576": {
                    "open": "1.000282768782475",
                    "high": "1.000283792069166",
                    "low": "1.000282768782475",
                    "close": "1.000283792069166",
                    "volume": "2403.2320454550486"
                }
            },
            {
                "1719867576-1719868476": {
                    "open": "1.000283792069166",
                    "high": "1.000283792069166",
                    "low": "1.000068216968752",
                    "close": "1.000068216968752",
                    "volume": "194331.7377786595"
                }
            },
            {
                "1719868476-1719869376": {
                    "open": "1.000068216968752",
                    "high": "1.000068216968752",
                    "close": "1.000068216968752",
                    "low": "1.000068216968752",
                    "volume": "0"
                }
            },
            {
                "1719869376-1719870276": {
                    "open": "1.000068216968752",
                    "high": "1.000068216968752",
                    "low": "1.00006758566797",
                    "close": "1.000067585667970",
                    "volume": "373.35670555050655"
                }
            },
            {
                "1719870276-1719871176": {
                    "open": "1.000067585667970",
                    "high": "1.000067585667970",
                    "close": "1.000067585667970",
                    "low": "1.000067585667970",
                    "volume": "0"
                }
            },
            {
                "1719871176-1719872076": {
                    "open": "1.000067585667970",
                    "high": "1.00006758566797",
                    "low": "1.000059138514303",
                    "close": "1.000059138514303",
                    "volume": "202691.97445706374"
                }
            },
            {
                "1719872076-1719872976": {
                    "open": "1.000059138514303",
                    "high": "1.00026160072234",
                    "low": "1.000059138514303",
                    "close": "1.000261600722340",
                    "volume": "260895.12166201358"
                }
            },
            {
                "1719872976-1719873876": {
                    "open": "1.000261600722340",
                    "high": "1.000261600722340",
                    "close": "1.000261600722340",
                    "low": "1.000261600722340",
                    "volume": "0"
                }
            },
            {
                "1719873876-1719874776": {
                    "open": "1.000261600722340",
                    "high": "1.000261600722340",
                    "close": "1.000261600722340",
                    "low": "1.000261600722340",
                    "volume": "0"
                }
            },
            {
                "1719874776-1719875676": {
                    "open": "1.000261600722340",
                    "high": "1.000272459324614",
                    "low": "1.00026160072234",
                    "close": "1.000272459324614",
                    "volume": "125.5703610392907"
                }
            },
            {
                "1719875676-1719876576": {
                    "open": "1.000272459324614",
                    "high": "1.000272466275237",
                    "low": "1.000272459324614",
                    "close": "1.000272466275237",
                    "volume": "41.48347065628334"
                }
            },
            {
                "1719876576-1719877476": {
                    "open": "1.000272466275237",
                    "high": "1.000272829463945",
                    "low": "1.000072403024002",
                    "close": "1.000272829463945",
                    "volume": "10118.372633676838"
                }
            },
            {
                "1719877476-1719878376": {
                    "open": "1.000272829463945",
                    "high": "1.000272829463945",
                    "low": "1.000272829463945",
                    "close": "1.000272829463945",
                    "volume": "0"
                }
            },
            {
                "1719878376-1719879276": {
                    "open": "1.000272829463945",
                    "high": "1.000272829463945",
                    "low": "1.000073042138261",
                    "close": "1.000073042138261",
                    "volume": "3395.401289131808"
                }
            },
            {
                "1719879276-1719880176": {
                    "open": "1.000073042138261",
                    "high": "1.000255798762702",
                    "low": "1.000058534729327",
                    "close": "1.000255798762702",
                    "volume": "484915.6629217491"
                }
            },
            {
                "1719880176-1719881076": {
                    "open": "1.000255798762702",
                    "high": "1.000255835826708",
                    "low": "1.000255798762702",
                    "close": "1.000255835826708",
                    "volume": "374.08586949381106"
                }
            },
            {
                "1719881076-1719881976": {
                    "open": "1.000255835826708",
                    "high": "1.000255980570336",
                    "low": "1.000255835826708",
                    "close": "1.000255980570336",
                    "volume": "1566.728129796136"
                }
            },
            {
                "1719881976-1719882876": {
                    "open": "1.000255980570336",
                    "high": "1.000255980570336",
                    "close": "1.000255980570336",
                    "low": "1.000255980570336",
                    "volume": "0"
                }
            },
            {
                "1719882876-1719883776": {
                    "open": "1.000255980570336",
                    "high": "1.00025608837841",
                    "low": "1.000054512992118",
                    "close": "1.000054512992118",
                    "volume": "22475.841835231826"
                }
            },
            {
                "1719883776-1719884676": {
                    "open": "1.000054512992118",
                    "high": "1.000255087293024",
                    "low": "1.000054512992118",
                    "close": "1.000255087293024",
                    "volume": "7226.298427090914"
                }
            },
            {
                "1719884676-1719885576": {
                    "open": "1.000255087293024",
                    "high": "1.000255087293024",
                    "close": "1.000255087293024",
                    "low": "1.000255087293024",
                    "volume": "0"
                }
            },
            {
                "1719885576-1719886476": {
                    "open": "1.000255087293024",
                    "high": "1.000255087293024",
                    "low": "1.000053731890531",
                    "close": "1.000053731890531",
                    "volume": "32075.110036924176"
                }
            },
            {
                "1719886476-1719887376": {
                    "open": "1.000053731890531",
                    "high": "1.000252585197593",
                    "low": "1.000037934064211",
                    "close": "1.000223508121641",
                    "volume": "362120.06768811523"
                }
            },
            {
                "1719887376-1719888276": {
                    "open": "1.000223508121641",
                    "high": "1.000245984129629",
                    "low": "1.000056095994072",
                    "close": "1.000056095994072",
                    "volume": "405517.13249377836"
                }
            },
            {
                "1719888276-1719889176": {
                    "open": "1.000056095994072",
                    "high": "1.00025576877053",
                    "low": "1.000056095994072",
                    "close": "1.000255768770530",
                    "volume": "32.34145238588303"
                }
            },
            {
                "1719889176-1719890076": {
                    "open": "1.000255768770530",
                    "high": "1.000255768770530",
                    "close": "1.000255768770530",
                    "low": "1.000255768770530",
                    "volume": "0"
                }
            },
            {
                "1719890076-1719890976": {
                    "open": "1.000255768770530",
                    "high": "1.000255798558196",
                    "low": "1.00025576877053",
                    "close": "1.000255798558196",
                    "volume": "683.8034900192428"
                }
            },
            {
                "1719890976-1719891876": {
                    "open": "1.000255798558196",
                    "high": "1.000255798558196",
                    "close": "1.000255798558196",
                    "low": "1.000255798558196",
                    "volume": "0"
                }
            },
            {
                "1719891876-1719892776": {
                    "open": "1.000255798558196",
                    "high": "1.000255914767894",
                    "low": "1.000255798558196",
                    "close": "1.000255914767894",
                    "volume": "2110.094764718195"
                }
            },
            {
                "1719892776-1719893676": {
                    "open": "1.000255914767894",
                    "high": "1.000255914767894",
                    "low": "1.00005411553488",
                    "close": "1.000054115534880",
                    "volume": "44378.84650224885"
                }
            },
            {
                "1719893676-1719894576": {
                    "open": "1.000054115534880",
                    "high": "1.000254794891601",
                    "low": "1.00005411553488",
                    "close": "1.000055517247425",
                    "volume": "101105.04495481214"
                }
            },
            {
                "1719894576-1719895476": {
                    "open": "1.000055517247425",
                    "high": "1.000055517247425",
                    "low": "1.000018261479563",
                    "close": "1.000018261479563",
                    "volume": "854754.3625240533"
                }
            },
            {
                "1719895476-1719896376": {
                    "open": "1.000018261479563",
                    "high": "1.000182908657702",
                    "low": "0.99998300138422",
                    "close": "0.999983001384220",
                    "volume": "3908.162292280492"
                }
            },
            {
                "1719896376-1719897276": {
                    "open": "0.999983001384220",
                    "high": "1.000183126630358",
                    "low": "0.99998300138422",
                    "close": "1.000183126630358",
                    "volume": "2892.073651609367"
                }
            },
            {
                "1719897276-1719898176": {
                    "open": "1.000183126630358",
                    "high": "1.000183673901114",
                    "low": "1.000183126630358",
                    "close": "1.000183673901114",
                    "volume": "10279.463078363544"
                }
            },
            {
                "1719898176-1719899076": {
                    "open": "1.000183673901114",
                    "high": "1.000184527176884",
                    "low": "1.000183673901114",
                    "close": "1.000184527176884",
                    "volume": "10257.05235028864"
                }
            },
            {
                "1719899076-1719899976": {
                    "open": "1.000184527176884",
                    "high": "1.000185237424569",
                    "low": "1.000184527176884",
                    "close": "1.000185237424569",
                    "volume": "6837.031519407347"
                }
            },
            {
                "1719899976-1719900876": {
                    "open": "1.000185237424569",
                    "high": "1.000210934969175",
                    "low": "1.000010732165968",
                    "close": "1.000010732165968",
                    "volume": "309603.0859194277"
                }
            },
            {
                "1719900876-1719901776": {
                    "open": "1.000010732165968",
                    "high": "1.000210919318359",
                    "low": "1.000010732165968",
                    "close": "1.000210919318359",
                    "volume": "4400.248605542209"
                }
            },
            {
                "1719901776-1719902676": {
                    "open": "1.000210919318359",
                    "high": "1.000236334828425",
                    "low": "1.000011738932797",
                    "close": "1.000236334828425",
                    "volume": "31079.281491467533"
                }
            },
            {
                "1719902676-1719903576": {
                    "open": "1.000236334828425",
                    "high": "1.000238954731162",
                    "low": "1.000025310763003",
                    "close": "1.000025310763003",
                    "volume": "355390.77629832976"
                }
            },
            {
                "1719903576-1719904476": {
                    "open": "1.000025310763003",
                    "high": "1.000211857032402",
                    "low": "1.000025310763003",
                    "close": "1.000211857032402",
                    "volume": "3638.4157746311553"
                }
            },
            {
                "1719904476-1719905376": {
                    "open": "1.000211857032402",
                    "high": "1.000211942836073",
                    "low": "1.000011924096078",
                    "close": "1.000211942836073",
                    "volume": "356.23136868444374"
                }
            },
            {
                "1719905376-1719906276": {
                    "open": "1.000211942836073",
                    "high": "1.00023179463015",
                    "low": "1.000211942836073",
                    "close": "1.000231794630150",
                    "volume": "245181.03471087202"
                }
            },
            {
                "1719906276-1719907176": {
                    "open": "1.000231794630150",
                    "high": "1.00023179463015",
                    "low": "1.000032323352229",
                    "close": "1.000032323352229",
                    "volume": "410.2820940115456"
                }
            },
            {
                "1719907176-1719908076": {
                    "open": "1.000032323352229",
                    "high": "1.000032323352229",
                    "close": "1.000032323352229",
                    "low": "1.000032323352229",
                    "volume": "0"
                }
            },
            {
                "1719908076-1719908976": {
                    "open": "1.000032323352229",
                    "high": "1.000032323352229",
                    "low": "1.000032002186919",
                    "close": "1.000032002186919",
                    "volume": "7296.183238505319"
                }
            },
            {
                "1719908976-1719909876": {
                    "open": "1.000032002186919",
                    "high": "1.000231735904898",
                    "low": "1.000027121683681",
                    "close": "1.000027121683681",
                    "volume": "120930.64720990308"
                }
            },
            {
                "1719909876-1719910776": {
                    "open": "1.000027121683681",
                    "high": "1.000027121683681",
                    "close": "1.000027121683681",
                    "low": "1.000027121683681",
                    "volume": "0"
                }
            },
            {
                "1719910776-1719911676": {
                    "open": "1.000027121683681",
                    "high": "1.000224377157146",
                    "low": "1.000027121683681",
                    "close": "1.000224377157146",
                    "volume": "52606.93825649445"
                }
            },
            {
                "1719911676-1719912576": {
                    "open": "1.000224377157146",
                    "high": "1.000226658278937",
                    "low": "1.000224377157146",
                    "close": "1.000226658278937",
                    "volume": "3419.0174500962135"
                }
            },
            {
                "1719912576-1719913476": {
                    "open": "1.000226658278937",
                    "high": "1.000241158238946",
                    "low": "1.000226658278937",
                    "close": "1.000241158238946",
                    "volume": "172673.07621166538"
                }
            },
            {
                "1719913476-1719914376": {
                    "open": "1.000241158238946",
                    "high": "1.000241158238946",
                    "close": "1.000241158238946",
                    "low": "1.000241158238946",
                    "volume": "0"
                }
            },
            {
                "1719914376-1719915276": {
                    "open": "1.000241158238946",
                    "high": "1.000241158238946",
                    "close": "1.000241158238946",
                    "low": "1.000241158238946",
                    "volume": "0"
                }
            },
            {
                "1719915276-1719916176": {
                    "open": "1.000241158238946",
                    "high": "1.000241231262067",
                    "low": "1.000241158238946",
                    "close": "1.000241231262067",
                    "volume": "909.771914303281"
                }
            },
            {
                "1719916176-1719917076": {
                    "open": "1.000241231262067",
                    "high": "1.000241231262067",
                    "close": "1.000241231262067",
                    "low": "1.000241231262067",
                    "volume": "0"
                }
            },
            {
                "1719917076-1719917976": {
                    "open": "1.000241231262067",
                    "high": "1.000241502939886",
                    "low": "1.000035329217437",
                    "close": "1.000229580852706",
                    "volume": "165440.02967295557"
                }
            },
            {
                "1719917976-1719918876": {
                    "open": "1.000229580852706",
                    "high": "1.000229580852706",
                    "low": "1.000015283650519",
                    "close": "1.000015283650519",
                    "volume": "171163.48449330142"
                }
            },
            {
                "1719918876-1719919776": {
                    "open": "1.000015283650519",
                    "high": "1.000215357724655",
                    "low": "1.000015283650519",
                    "close": "1.000215357724655",
                    "volume": "1025.9211042218046"
                }
            },
            {
                "1719919776-1719920676": {
                    "open": "1.000215357724655",
                    "high": "1.000215357724655",
                    "close": "1.000215357724655",
                    "low": "1.000215357724655",
                    "volume": "0"
                }
            },
            {
                "1719920676-1719921576": {
                    "open": "1.000215357724655",
                    "high": "1.000215357724655",
                    "close": "1.000215357724655",
                    "low": "1.000215357724655",
                    "volume": "0"
                }
            },
            {
                "1719921576-1719922476": {
                    "open": "1.000215357724655",
                    "high": "1.000215357724655",
                    "low": "1.000015092655225",
                    "close": "1.000015092655225",
                    "volume": "7179.936645202048"
                }
            },
            {
                "1719922476-1719923376": {
                    "open": "1.000015092655225",
                    "high": "1.000015092655225",
                    "close": "1.000015092655225",
                    "low": "1.000015092655225",
                    "volume": "0"
                }
            },
            {
                "1719923376-1719924276": {
                    "open": "1.000015092655225",
                    "high": "1.000015092655225",
                    "close": "1.000015092655225",
                    "low": "1.000015092655225",
                    "volume": "0"
                }
            },
            {
                "1719924276-1719925176": {
                    "open": "1.000015092655225",
                    "high": "1.000015092655225",
                    "low": "0.999784219268914",
                    "close": "0.999784219268914",
                    "volume": "711.0530314153677"
                }
            },
            {
                "1719925176-1719926076": {
                    "open": "0.999784219268914",
                    "high": "0.999784219268914",
                    "close": "0.999784219268914",
                    "low": "0.999784219268914",
                    "volume": "0"
                }
            },
            {
                "1719926076-1719926976": {
                    "open": "0.999784219268914",
                    "high": "0.999784219268914",
                    "close": "0.999784219268914",
                    "low": "0.999784219268914",
                    "volume": "0"
                }
            },
            {
                "1719926976-1719927876": {
                    "open": "0.999784219268914",
                    "high": "0.999784219268914",
                    "close": "0.999784219268914",
                    "low": "0.999784219268914",
                    "volume": "0"
                }
            },
            {
                "1719927876-1719928776": {
                    "open": "0.999784219268914",
                    "high": "0.999784219268914",
                    "close": "0.999784219268914",
                    "low": "0.999784219268914",
                    "volume": "0"
                }
            },
            {
                "1719928776-1719929676": {
                    "open": "0.999784219268914",
                    "high": "0.999784219268914",
                    "close": "0.999784219268914",
                    "low": "0.999784219268914",
                    "volume": "0"
                }
            }
        ]
    }
}
```

{% endtab %}
{% endtabs %}

### /swap

Initiate a swap transaction on a specified DEX.

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

#### Request Body

<table><thead><tr><th width="185">Name</th><th width="142">Type</th><th>Description</th></tr></thead><tbody><tr><td>dexId<mark style="color:red;">*</mark></td><td>String</td><td>Refer to the <a href="/pages/8x8qwIu19Aq8uFsjOXvI">DEX ID</a> page for details. </td></tr><tr><td>path<mark style="color:red;">*</mark></td><td>Array</td><td>Comma-separated values of token addresses, inside an array, to swap.</td></tr><tr><td>amountIn<mark style="color:red;">*</mark></td><td>String</td><td>Amount of token to be swapped.</td></tr><tr><td>amountOutmin</td><td>String</td><td>Minimum amount accepted as a result of swap.</td></tr><tr><td>from<mark style="color:red;">*</mark></td><td>String</td><td>Address of the sender of the token.</td></tr><tr><td>gas</td><td>String</td><td>Maximum gas limit provided by the sender, for the transaction.</td></tr><tr><td>rpc</td><td>String</td><td>Remote procedural call URL.</td></tr><tr><td>gasPriority</td><td>String</td><td>low, medium, or high.</td></tr><tr><td>slippage</td><td>String</td><td><p>Percentage of total swap value. <br>By default, 1.</p><p>0 &#x3C;= slippage  value &#x3C;= 100</p></td></tr></tbody></table>

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

```json
{
    "dexId": "1500",
    "path": [
        "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
        "0xae7ab96520de3a18e5e111b5eaab095312d7fe84"
    ],
    "amountIn": "1000000000000",
    "amountOutMin": "101368",
    "gas": "800000",
    "from": "0x6Fb447Ae94F5180254D436A693907a1f57696900"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x6Fb447Ae94F5180254D436A693907a1f57696900",
        "to": "0xdc24316b9ae028f1497c275eb9192a3ea0f67022",
        "value": "0",
        "gas": "800000",
        "data": "0x3df0212400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000e8d4a510000000000000000000000000000000000000000000000000000000000000018bf8",
        "estimationCheck": true,
        "referenceId": "5442f5fe3f6b4613806976947814ffaa"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
**With gasPriority:**

```json
{
    "dexId": "1500",
    "path": [
        "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
        "0xae7ab96520de3a18e5e111b5eaab095312d7fe84"
    ],
    "amountIn": "1000000000000",
    "amountOutMin": "101368",
    "gas": "800000",
    "from": "0x6Fb447Ae94F5180254D436A693907a1f57696900",
    "gasPriority": "medium"
}
```

{% endtab %}

{% tab title="Sample Response" %}
**With gasPriority:**

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x6Fb447Ae94F5180254D436A693907a1f57696900",
        "to": "0xdc24316b9ae028f1497c275eb9192a3ea0f67022",
        "value": "0",
        "gas": "800000",
        "data": "0x3df0212400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000e8d4a510000000000000000000000000000000000000000000000000000000000000018bf8",
        "gasPrice": "2694531336",
        "estimationCheck": true,
        "referenceId": "d44140cb13b34cfa8ac80723d137ed78"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
**With Slippage:**

```json
{
    "dexId": "1500",
    "amountIn": "1000000",
    "amountOutMin": "949846",
    "path": [
        "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
        "0xdAC17F958D2ee523a2206206994597C13D831ec7"
    ],
    "to": "0x22cf65ae3fa16d6379e72f4b4c2401c1b7c69731",
    "deadline": "1711931771",
    "from": "0x22cf65ae3fa16d6379e72f4b4c2401c1b7c69731",
    "gas": "933376",
    "slippage": "4"
}
```

{% endtab %}

{% tab title="Sample Response" %}
**With Slippage:**

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x22cf65ae3fa16d6379e72f4b4c2401c1b7c69731",
        "to": "0xbebc44782c7db0a1a60cb6fe97d0b483032ff1c7",
        "value": "0",
        "gas": "933376",
        "data": "0x3df021240000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000f424000000000000000000000000000000000000000000000000000000000000ea4c0",
        "estimationCheck": true,
        "referenceId": "ae3e92278be545419f28c0be62d2ba85"
    }
}
```

{% endtab %}
{% endtabs %}

### /addliquidity

Add liquidity to a specified pool in a specified DEX.

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

#### Request Body

| Name                                        | Type   | Description                                                                            |
| ------------------------------------------- | ------ | -------------------------------------------------------------------------------------- |
| dexId<mark style="color:red;">\*</mark>     | String | Refer to the [DEX ID](broken://pages/8x8qwIu19Aq8uFsjOXvI) page for details.           |
| path<mark style="color:red;">\*</mark>      | Array  | Comma separated values of token addresses.                                             |
| amountIn<mark style="color:red;">\*</mark>  | Array  | Amount of tokens to add liquidity.                                                     |
| amountOut<mark style="color:red;">\*</mark> | String | Amount of tokens accepted as a result of the transaction.                              |
| from<mark style="color:red;">\*</mark>      | String | Address of the sender of the token.                                                    |
| gas                                         | String | Maximum gas limit provided by the sender, for the transaction.                         |
| rpc                                         | String | Remote procedural call URL.                                                            |
| slippage                                    | String | <p>Percentage of total value. <br>By default, 1.</p><p>0 <= slippage  value <= 100</p> |
| gasPriority                                 | String | low, medium, or high.                                                                  |

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

```json
{
    "dexId":  "1500",
    "path": [ "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee", "0xae7ab96520de3a18e5e111b5eaab095312d7fe84" ],
    "amountIn":   [ "100000000000000", "10000000000000" ], 
    "amountOut":  "10136848990976",
    "gas":  "800000",
    "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
        "to": "0x21e27a5e5513d6e65c4f830167390997aa84843a",
        "value": "10000000000000",
        "gas": "800000",
        "data": "0x0b4c7e4d00000000000000000000000000000000000000000000000000005af3107a4000000000000000000000000000000000000000000000000000000009184e72a000000000000000000000000000000000000000000000000000000009382b488300",
        "estimationCheck": true,
        "referenceId": "7429cadb5c14448cb10c042d417a383d"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
**With gasPriority:**

```json
{
    "dexId": "1500",
    "path": [
        "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
        "0xae7ab96520de3a18e5e111b5eaab095312d7fe84"
    ],
    "amountIn": [
        "100000000000000",
        "10000000000000"
    ],
    "amountOut": "10136848990976",
    "gas": "800000",
    "gasPriority": "high",
    "from": "0x6Fb447Ae94F5180254D436A693907a1f57696900"
}
```

{% endtab %}

{% tab title="Sample Response" %}
**With gasPriority:**

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x6Fb447Ae94F5180254D436A693907a1f57696900",
        "to": "0x21e27a5e5513d6e65c4f830167390997aa84843a",
        "value": "10000000000000",
        "gas": "800000",
        "data": "0x0b4c7e4d00000000000000000000000000000000000000000000000000005af3107a4000000000000000000000000000000000000000000000000000000009184e72a000000000000000000000000000000000000000000000000000000009382b488300",
        "gasPrice": "3394903250",
        "estimationCheck": true,
        "referenceId": "a9bf3d739c8a4bb983bbce931e9324c3"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
**With slippage:**&#x20;

```json
{
    "dexId":  "1500",
    "path": [ "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee", "0xae7ab96520de3a18e5e111b5eaab095312d7fe84" ],
    "amountIn":   [ "100000000000000", "10000000000000" ], 
    "amountOut":  "10136848990976",
    "gas":  "800000",
    "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
    "slippage":"2.0001"
}
```

{% endtab %}

{% tab title="Sample Response" %}
**With slippage:**&#x20;

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
        "to": "0x21e27a5e5513d6e65c4f830167390997aa84843a",
        "value": "10000000000000",
        "gas": "800000",
        "data": "0x0b4c7e4d00000000000000000000000000000000000000000000000000005af3107a4000000000000000000000000000000000000000000000000000000009184e72a00000000000000000000000000000000000000000000000000000000908f69d0683",
        "estimationCheck": true,
        "referenceId": "62f2c632bef1432b888ff5e7400a5900"
    }
}
```

{% endtab %}
{% endtabs %}

### /removeliquidity

Remove liquidity from a specified pool for a specified DEX.

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

#### Request Body

| Name                                        | Type   | Description                                                                  |
| ------------------------------------------- | ------ | ---------------------------------------------------------------------------- |
| dexId<mark style="color:red;">\*</mark>     | String | Refer to the [DEX ID](broken://pages/8x8qwIu19Aq8uFsjOXvI) page for details. |
| path<mark style="color:red;">\*</mark>      | Array  | Comma separated values of token addresses.                                   |
| amountIn<mark style="color:red;">\*</mark>  | String | Amount of tokens to remove liquidity.                                        |
| amountOut<mark style="color:red;">\*</mark> | Array  | Amount of tokens accepted as a result of the transaction.                    |
| from<mark style="color:red;">\*</mark>      | String | Address of the sender of the token.                                          |
| gas                                         | String | Maximum gas limit provided by the sender, for the transaction.               |
| rpc                                         | String | Remote procedural call URL.                                                  |
| slippage                                    | String | Percentage of total value. By default, 1. 0 <= slippage value <= 10          |
| gasPriority                                 | String | low, medium, or high.                                                        |

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

```json
{
    "dexId": "1500",
    "path": [
        "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
        "0xae7ab96520de3a18e5e111b5eaab095312d7fe84"
    ],
    "amountIn": "1000000",
    "amountOut": [
        "100000000000000",
        "10000000000000"
    ],
    "gas": "800000",
    "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
        "to": "0x21e27a5e5513d6e65c4f830167390997aa84843a",
        "value": "0",
        "gas": "800000",
        "data": "0x5b36389c00000000000000000000000000000000000000000000000000000000000f424000000000000000000000000000000000000000000000000000005af3107a4000000000000000000000000000000000000000000000000000000009184e72a000",
        "estimationCheck": true,
        "referenceId": "9a2a1270a4034742a4e0aea62b75f6ec"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
**With gasPriority:**

```json
{
    "dexId": "1500",
    "path": [
        "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
        "0xae7ab96520de3a18e5e111b5eaab095312d7fe84"
    ],
    "amountIn": "1000000",
    "amountOut": [
        "100000000000000",
        "10000000000000"
    ],
    "gas": "800000",
    "gasPriority": "medium",
    "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006"
}
```

{% endtab %}

{% tab title="Sample Response" %}
**With gasPriority:**

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
        "to": "0x21e27a5e5513d6e65c4f830167390997aa84843a",
        "value": "0",
        "gas": "800000",
        "data": "0x5b36389c00000000000000000000000000000000000000000000000000000000000f424000000000000000000000000000000000000000000000000000005af3107a4000000000000000000000000000000000000000000000000000000009184e72a000",
        "gasPrice": "2472048230",
        "estimationCheck": true,
        "referenceId": "9a0f0f02934b494ab3dcc2fd83daf4b8"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
**With Slippage:**

```json
{
    "dexId": "1500",
    "path": [
        "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
        "0xae7ab96520de3a18e5e111b5eaab095312d7fe84"
    ],
    "amountIn": "1000000",
    "amountOut": [
        "100000000000000",
        "10000000000000"
    ],
    "gas": "800000",
    "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
    "slippage": "10"
}
```

{% endtab %}

{% tab title="Sample Response" %}
**With Slippage:**&#x20;

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
        "to": "0x21e27a5e5513d6e65c4f830167390997aa84843a",
        "value": "0",
        "gas": "800000",
        "data": "0x5b36389c00000000000000000000000000000000000000000000000000000000000f4240000000000000000000000000000000000000000000000000000051dac207a0000000000000000000000000000000000000000000000000000000082f79cd9000",
        "estimationCheck": true,
        "referenceId": "3cc2f1d70204481d80bd6866960d1885"
    }
}
```

{% endtab %}
{% endtabs %}


# Balancer V2

#### Below is the list of tokens we currently support for the mentioned endpoints. We are happy to add support for additional tokens upon request.

<details>

<summary>Supported Mainnet Token Pairs (For add &#x26; remove liquidity)</summary>

1. **WETH/DAI** \
   0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2, 0x6B175474E89094C44Da98b954EedeAC495271d0F
2. **wstETH/WETH** - **Composable Stable**\
   0x7f39c581f595b53c5cb19bd0b3f8da6c935e2ca0,\
   0x93d199263632a4ef4bb438f1feb99e57b4b5f0bd,\
   0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
3. **ezETH/WETH**\
   0x596192bb6e41802428ac943d2f1476c1af25cc0e,\
   0xbf5495efe5db9ce00f80364c8b423567e58d2110,\
   0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
4. **wstETH/WETH - Stable** \
   0x7f39c581f595b53c5cb19bd0b3f8da6c935e2ca0,\
   0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
5. **rETH/WETH** \
   0xae78736Cd615f374D3085123A210448E74Fc6393, 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2
6. **AAVE/wstETH** \
   0x7f39c581f595b53c5cb19bd0b3f8da6c935e2ca0, 0x7fc66500c84a76ad7e9c93437bfc5ac33e2ddae9
7. **weETH/ezETH/rswETH**\
   0x848a5564158d84b8a8fb68ab5d004fae11619a54, \
   0xbf5495efe5db9ce00f80364c8b423567e58d2110,\
   0xcd5fe23c85820f7b72d0926fc9b05b43e359b7ee,\
   0xfae103dc9cf190ed75350761e95403b7b8afa6c0
8. **osETH/wETH**\
   0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2, 0xdacf5fa19b1f720111609043ac67a9818262850c,\
   0xf1c9acdc66974dfb6decb12aa385b9cd01190e38
9. **Gyroscope ECLP GYD/sDAI**\
   0x83f20f44975d03b1b09e64809b757c47f942beea, 0xe07f9d810a48ab5c3c914ba3ca53af14e4491e8a
10. **weETH/rETH** \
    0xcd5fe23c85820f7b72d0926fc9b05b43e359b7ee,\
    0xae78736cd615f374d3085123a210448e74fc6393
11. **wstETH-rETH-sfrxETH-BPT**\
    0x42ed016f826165c2e5976fe5bc3df540c5ad0af7, 0x7f39c581f595b53c5cb19bd0b3f8da6c935e2ca0,\
    0xac3e018457b222d93114458476f3e3416abbe38f,\
    0xae78736cd615f374d3085123a210448e74fc6393
12. **RDNT/WETH**\
    0x137ddb47ee24eaa998a535ab00378d6bfa84f893, 0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
13. **20WETH-80PSP**\
    0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2, 0xcafe001067cdef266afb7eb5a286dcfd277f3de5
14. **STG/USDC**\
    0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48, 0xaf5191b0de278c7286d6c7cc6ab6bb8a73ba2cd6
15. **20WETH-80ALCX**\
    0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2, 0xdbdb4d16eda451d0503b854cf79d55697f90c8df
16. **GHO/USDT/USDC**\
    0x40d16fc0246ad3160ccc09b8d0d3a2cd28ae6c2f, 0x8353157092ed8be69a9df8f95af097bbf33cb2af,\
    0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48,\
    0xdac17f958d2ee523a2206206994597c13d831ec7
17. **COW/GNO** \
    0xDEf1CA1fb7FBcDC777520aa7f396b4E015F497aB, 0x6810e776880C02933D47DB1b9fc05908e5386b96
18. **ankrETH/wstETH**\
    0x7f39c581f595b53c5cb19bd0b3f8da6c935e2ca0, 0xdfe6e7e18f6cc65fa13c8d8966013d4fda74b6ba,\
    0xe95a203b1a91a908f9b9ce46459d101078c2c3cb
19. **50wstETH-ACX**\
    0x44108f0223a3c3028f5fe7aec7f9bb2e66bef82f, 0x7f39c581f595b53c5cb19bd0b3f8da6c935e2ca0
20. **rsETH / ETHx**\
    0x7761b6e0daa04e70637d81f1da7d186c205c2ade, 0xa1290d69c65a6fe4df752f95823fae25cb99e5a7,\
    0xa35b1b31ce002fbf2058d22f30f95d405200a15b
21. **Gyroscope ECLP wstETH/wETH** \
    0x7f39c581f595b53c5cb19bd0b3f8da6c935e2ca0, 0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
22. **20 WETH 80 LIT**\
    0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,\
    0xfd0205066521550d7d7ab19da8f72bb004b4c341
23. **50rETH-50RPL**\
    0xae78736cd615f374d3085123a210448e74fc6393, 0xd33526068d116ce69f19a9ee46f0bd304f21a51f
24. **wstETH-rETH-sfrxETH**\
    0x5aee1e99fe86960377de9f88689616916d5dcabe,\
    0x7f39c581f595b53c5cb19bd0b3f8da6c935e2ca0,\
    0xac3e018457b222d93114458476f3e3416abbe38f,\
    0xae78736cd615f374d3085123a210448e74fc6393
25. **50KNC-25WETH-25USDC**\
    0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48,\
    0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,\
    0xdefa4e8a7bcba345f687a2f1456f5edd9ce97202<br>

</details>

<details>

<summary>Supported Testnet Token Pairs (For add &#x26; remove liquidity)</summary>

1. **USDC/WETH** \
   0xe0C9275E44Ea80eF17579d33c55136b7DA269aEb, 0xdFCeA9088c8A88A76FF74892C1457C17dfeef9C1
2. **wstETH/WETH** \
   0x6320cD32aA674d2898A68ec82e869385Fc5f7E2f, 0xdFCeA9088c8A88A76FF74892C1457C17dfeef9C1

</details>

### /getprice

Returns the swap quotation for the given token pair.

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

#### Query Parameters

| Name                                       | Type   | Description                                                                  |
| ------------------------------------------ | ------ | ---------------------------------------------------------------------------- |
| rpc                                        | String | Remote procedural call URL.                                                  |
| dexId<mark style="color:red;">\*</mark>    | String | Refer to the [DEX ID](broken://pages/8x8qwIu19Aq8uFsjOXvI) page for details. |
| path<mark style="color:red;">\*</mark>     | String | Comma separated values of token addresses whose price is to be fetched.      |
| amountIn<mark style="color:red;">\*</mark> | String | Amount of token.                                                             |

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

```url
https://api.expand.network/dex/getprice?dexId=1400&path=0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2,0x6B175474E89094C44Da98b954EedeAC495271d0F&amountIn=10000000000000000000
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "amountIn": "10000000000000000000",
        "path": [
            "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
            "0x6B175474E89094C44Da98b954EedeAC495271d0F"
        ],
        "amountsOut": [
            "10000000000000000000",
            "15680384060944301565791"
        ]
    }
}
```

{% endtab %}
{% endtabs %}

### /getuserliquidity

Returns the balance of a particular token pair of an account.

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

#### Query Parameters

| Name                                      | Type   | Description                                                              |
| ----------------------------------------- | ------ | ------------------------------------------------------------------------ |
| rpc                                       | String | Remote procedural call URL.                                              |
| tokenA<mark style="color:red;">\*</mark>  | String | Address of token.                                                        |
| address<mark style="color:red;">\*</mark> | String | Public address of liquidity provider.                                    |
| dexId<mark style="color:red;">\*</mark>   | String | Refer to [DEX ID](broken://pages/8x8qwIu19Aq8uFsjOXvI) page for details. |
| tokenB<mark style="color:red;">\*</mark>  | String | Address of token.                                                        |
| tokenC                                    | String | Address of token.                                                        |
| tokenD                                    | String | Address of token.                                                        |

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

```url
https://api.expand.network/dex/getuserliquidity?tokenA=0x848a5564158d84b8a8fb68ab5d004fae11619a54&tokenB=0xbf5495efe5db9ce00f80364c8b423567e58d2110&address=0xBA12222222228d8Ba445958a75a0704d566BF2C8&dexId=1400&tokenC=0xcd5fe23c85820f7b72d0926fc9b05b43e359b7ee&tokenD=0xfae103dc9cf190ed75350761e95403b7b8afa6c0
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "pairAddress": "0x848a5564158d84b8A8fb68ab5D004Fae11619A54",
        "tokenA": "2.5961484292651062e+33",
        "tokenB": "518246888620238960000",
        "tokenC": "405657635213650800000",
        "tokenD": "1.9980975440730658e+21",
        "liquidity": "2596148429268034432222942162585746"
    }
}
```

{% endtab %}
{% endtabs %}

### /getpoolliquidity

Returns the total liquidity for a specified pool.

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

#### Query Parameters

| Name                                          | Type   | Description                                                              |
| --------------------------------------------- | ------ | ------------------------------------------------------------------------ |
| rpc                                           | String | Remote procedural call URL.                                              |
| poolAddress<mark style="color:red;">\*</mark> | String | Pool address whose liquidity is to be fetched.                           |
| dexId<mark style="color:red;">\*</mark>       | String | Refer to [DEX ID](broken://pages/8x8qwIu19Aq8uFsjOXvI) page for details. |

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

```url
https://api.expand.network/dex/getpoolliquidity?dexId=1400&poolAddress=0x25Accb7943Fd73Dda5E23bA6329085a3C24bfb6a
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "totalLiquidity": "21939886662955269687535"
    }
}
```

{% endtab %}
{% endtabs %}

### /gettokenliquidity

Returns the individual token liquidity within the specified liquidity pool.

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

#### Query Parameters

| Name                                          | Type   | Description                                                              |
| --------------------------------------------- | ------ | ------------------------------------------------------------------------ |
| rpc                                           | String | Remote procedural call URL.                                              |
| poolAddress<mark style="color:red;">\*</mark> | String | The pool address.                                                        |
| dexId<mark style="color:red;">\*</mark>       | String | Refer to [DEX ID](broken://pages/8x8qwIu19Aq8uFsjOXvI) page for details. |

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

```
https://api.expand.network/dex/gettokenliquidity?dexId=1400&poolAddress=0x25Accb7943Fd73Dda5E23bA6329085a3C24bfb6a
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "wstETH": "241859600516947967997",
        "bb-a-USD": "503400928836915874116420"
    }
}
```

{% endtab %}
{% endtabs %}

### /getindividualposition

Returns the liquidity position for a specified user address across all the pools for the DEX.&#x20;

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

#### Query Parameters

| Name                                      | Type   | Description                                                                     |
| ----------------------------------------- | ------ | ------------------------------------------------------------------------------- |
| rpc                                       | String | Remote procedural call URL.                                                     |
| address<mark style="color:red;">\*</mark> | String | The public address of the liquidity holder.                                     |
| dexId<mark style="color:red;">\*</mark>   | String | Refer to [DEX ID](broken://pages/8x8qwIu19Aq8uFsjOXvI) page for details.        |
| poolAddresses                             | String | The pool Addresses whose liquidity is to be fetched. *(Comma-separated vaules)* |

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

```url
https://api.expand.network/dex/getindividualposition?address=0xc29562b045D80fD77c69Bec09541F5c16fe20d9d&dexId=1400&poolAddresses=0xc29562b045D80fD77c69Bec09541F5c16fe20d9d
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "aggregatedLiquidity": "0",
        "poolAddresses": {
            "WETHAURA": {
                "0xc29562b045D80fD77c69Bec09541F5c16fe20d9d": "0"
            }
        }
    }
}
```

{% endtab %}
{% endtabs %}

### /getpool

&#x20;Returns poolAddress, tickSpacing, poolFees, tokensLiquidity and liquidity data based on tokenA and tokenB

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

#### Query Parameter

| Name                                     | Type   | Description                                                              |
| ---------------------------------------- | ------ | ------------------------------------------------------------------------ |
| dexId<mark style="color:red;">\*</mark>  | String | Refer to [DEX ID](broken://pages/8x8qwIu19Aq8uFsjOXvI) page for details. |
| tokenA<mark style="color:red;">\*</mark> | String | TokenA address                                                           |
| tokenB<mark style="color:red;">\*</mark> | String | TokenB address                                                           |
| tokenC                                   | String | TokenC address                                                           |
| tokenD                                   | String | TokenD address                                                           |

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

```url
https://api.expand.network/dex/getpool?dexId=1400&tokenB=0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2&tokenA=0x7f39c581f595b53c5cb19bd0b3f8da6c935e2ca0
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": [
        {
            "poolAddress": "0xf01b0684C98CD7aDA480BFDF6e43876422fa1Fc1",
            "poolFees": "NA",
            "tickSpacing": "NA",
            "tokensLiquidity": {
                "wstETH": "608794356880640390",
                "WETH": "143547732443847"
            },
            "liquidity": "709023940579790121"
        }
    ]
}
```

{% endtab %}
{% endtabs %}

### /gethistoricalpoolchartdata

Get the data the OHCLV (Open, High, Close, Low, and Volume) within the specified time interval for pool on Balancer V2. Available on Ethereum only.

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

#### Query Parameter

| Name                                          | Type   | Description                                                                                                                                                                           |
| --------------------------------------------- | ------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| dexId<mark style="color:red;">\*</mark>       | String | Refer to [DEX ID](broken://pages/8x8qwIu19Aq8uFsjOXvI) page for details.                                                                                                              |
| interval                                      | String | <p>A number values representing the number of unix epoch seconds or in format of . For example 1m,1h<br>By default 15m</p>                                                            |
| limit                                         | String | <p>No of iteration.<br>Start limit is 100 and maximum limit is 500.<br>By default 100</p>                                                                                             |
| poolAddress<mark style="color:red;">\*</mark> | String | <p>Pool address whose transactions is to be fetched. <br>Note: We supported pool mentioned in the <a href="#supported-mainnet-token-pairs-for-add-and-remove-liquidity">list</a>.</p> |
| rpc                                           | String | Remote procedural call URL.                                                                                                                                                           |

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

```url
https://api.expand.network/dex/gethistoricalpoolchartdata?dexId=1400&poolAddress=0x3de27efa2f1aa663ae5d458857e731c129069f29&interval=15m&limit=100
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "pair": "wstETH/AAVE",
        "chartData": [
            {
                "1719839904-1719840804": {
                    "open": "41.064132382011408",
                    "high": "41.06413238201141",
                    "low": "41.06413238201141",
                    "close": "41.064132382011408",
                    "volume": "24439.663082753745"
                }
            },
            {
                "1719840804-1719841704": {
                    "open": "41.064132382011408",
                    "high": "41.064132382011408",
                    "close": "41.064132382011408",
                    "low": "41.064132382011408",
                    "volume": "0"
                }
            },
            {
                "1719841704-1719842604": {
                    "open": "41.064132382011408",
                    "high": "41.29213830872066",
                    "low": "41.06413238201141",
                    "close": "41.292138308720659",
                    "volume": "221588.52297509776"
                }
            },
            {
                "1719842604-1719843504": {
                    "open": "41.292138308720659",
                    "high": "41.467216162192926",
                    "low": "41.29213830872066",
                    "close": "41.467216162192926",
                    "volume": "142778.9043970995"
                }
            },
            {
                "1719843504-1719844404": {
                    "open": "41.467216162192926",
                    "high": "41.467216162192926",
                    "close": "41.467216162192926",
                    "low": "41.467216162192926",
                    "volume": "0"
                }
            },
            {
                "1719844404-1719845304": {
                    "open": "41.467216162192926",
                    "high": "41.467216162192926",
                    "close": "41.467216162192926",
                    "low": "41.467216162192926",
                    "volume": "0"
                }
            },
            {
                "1719845304-1719846204": {
                    "open": "41.467216162192926",
                    "high": "41.467216162192926",
                    "close": "41.467216162192926",
                    "low": "41.467216162192926",
                    "volume": "0"
                }
            },
            {
                "1719846204-1719847104": {
                    "open": "41.467216162192926",
                    "high": "41.467216162192926",
                    "close": "41.467216162192926",
                    "low": "41.467216162192926",
                    "volume": "0"
                }
            },
            {
                "1719847104-1719848004": {
                    "open": "41.467216162192926",
                    "high": "41.467216162192926",
                    "close": "41.467216162192926",
                    "low": "41.467216162192926",
                    "volume": "0"
                }
            },
            {
                "1719848004-1719848904": {
                    "open": "41.467216162192926",
                    "high": "41.467216162192926",
                    "close": "41.467216162192926",
                    "low": "41.467216162192926",
                    "volume": "0"
                }
            },
            {
                "1719848904-1719849804": {
                    "open": "41.467216162192926",
                    "high": "41.467216162192926",
                    "close": "41.467216162192926",
                    "low": "41.467216162192926",
                    "volume": "0"
                }
            },
            {
                "1719849804-1719850704": {
                    "open": "41.467216162192926",
                    "high": "41.467216162192926",
                    "close": "41.467216162192926",
                    "low": "41.467216162192926",
                    "volume": "0"
                }
            },
            {
                "1719850704-1719851604": {
                    "open": "41.467216162192926",
                    "high": "41.467216162192926",
                    "close": "41.467216162192926",
                    "low": "41.467216162192926",
                    "volume": "0"
                }
            },
            {
                "1719851604-1719852504": {
                    "open": "41.467216162192926",
                    "high": "41.467216162192926",
                    "close": "41.467216162192926",
                    "low": "41.467216162192926",
                    "volume": "0"
                }
            },
            {
                "1719852504-1719853404": {
                    "open": "41.467216162192926",
                    "high": "41.467216162192926",
                    "close": "41.467216162192926",
                    "low": "41.467216162192926",
                    "volume": "0"
                }
            },
            {
                "1719853404-1719854304": {
                    "open": "41.467216162192926",
                    "high": "41.467216162192926",
                    "close": "41.467216162192926",
                    "low": "41.467216162192926",
                    "volume": "0"
                }
            },
            {
                "1719854304-1719855204": {
                    "open": "41.467216162192926",
                    "high": "41.467216162192926",
                    "close": "41.467216162192926",
                    "low": "41.467216162192926",
                    "volume": "0"
                }
            },
            {
                "1719855204-1719856104": {
                    "open": "41.467216162192926",
                    "high": "41.467216162192926",
                    "close": "41.467216162192926",
                    "low": "41.467216162192926",
                    "volume": "0"
                }
            },
            {
                "1719856104-1719857004": {
                    "open": "41.467216162192926",
                    "high": "41.467216162192926",
                    "close": "41.467216162192926",
                    "low": "41.467216162192926",
                    "volume": "0"
                }
            },
            {
                "1719857004-1719857904": {
                    "open": "41.467216162192926",
                    "high": "41.467216162192926",
                    "close": "41.467216162192926",
                    "low": "41.467216162192926",
                    "volume": "0"
                }
            },
            {
                "1719857904-1719858804": {
                    "open": "41.467216162192926",
                    "high": "41.467216162192926",
                    "close": "41.467216162192926",
                    "low": "41.467216162192926",
                    "volume": "0"
                }
            },
            {
                "1719858804-1719859704": {
                    "open": "41.467216162192926",
                    "high": "41.467216162192926",
                    "low": "41.031012262141864",
                    "close": "41.031012262141864",
                    "volume": "25713.604786159434"
                }
            },
            {
                "1719859704-1719860604": {
                    "open": "41.031012262141864",
                    "high": "41.031012262141864",
                    "close": "41.031012262141864",
                    "low": "41.031012262141864",
                    "volume": "0"
                }
            },
            {
                "1719860604-1719861504": {
                    "open": "41.031012262141864",
                    "high": "41.031012262141864",
                    "close": "41.031012262141864",
                    "low": "41.031012262141864",
                    "volume": "0"
                }
            },
            {
                "1719861504-1719862404": {
                    "open": "41.031012262141864",
                    "high": "41.08198277472719",
                    "low": "41.031012262141864",
                    "close": "41.081982774727187",
                    "volume": "85995.86448448348"
                }
            },
            {
                "1719862404-1719863304": {
                    "open": "41.081982774727187",
                    "high": "41.081982774727187",
                    "close": "41.081982774727187",
                    "low": "41.081982774727187",
                    "volume": "0"
                }
            },
            {
                "1719863304-1719864204": {
                    "open": "41.081982774727187",
                    "high": "41.08198277472719",
                    "low": "40.90754754307026",
                    "close": "40.907547543070258",
                    "volume": "85995.1874796135"
                }
            },
            {
                "1719864204-1719865104": {
                    "open": "40.907547543070258",
                    "high": "40.907547543070258",
                    "close": "40.907547543070258",
                    "low": "40.907547543070258",
                    "volume": "0"
                }
            },
            {
                "1719865104-1719866004": {
                    "open": "40.907547543070258",
                    "high": "40.907547543070258",
                    "close": "40.907547543070258",
                    "low": "40.907547543070258",
                    "volume": "0"
                }
            },
            {
                "1719866004-1719866904": {
                    "open": "40.907547543070258",
                    "high": "40.907547543070258",
                    "close": "40.907547543070258",
                    "low": "40.907547543070258",
                    "volume": "0"
                }
            },
            {
                "1719866904-1719867804": {
                    "open": "40.907547543070258",
                    "high": "40.907547543070258",
                    "close": "40.907547543070258",
                    "low": "40.907547543070258",
                    "volume": "0"
                }
            },
            {
                "1719867804-1719868704": {
                    "open": "40.907547543070258",
                    "high": "40.907547543070258",
                    "close": "40.907547543070258",
                    "low": "40.907547543070258",
                    "volume": "0"
                }
            },
            {
                "1719868704-1719869604": {
                    "open": "40.907547543070258",
                    "high": "40.907547543070258",
                    "close": "40.907547543070258",
                    "low": "40.907547543070258",
                    "volume": "0"
                }
            },
            {
                "1719869604-1719870504": {
                    "open": "40.907547543070258",
                    "high": "40.907547543070258",
                    "close": "40.907547543070258",
                    "low": "40.907547543070258",
                    "volume": "0"
                }
            },
            {
                "1719870504-1719871404": {
                    "open": "40.907547543070258",
                    "high": "40.907547543070258",
                    "close": "40.907547543070258",
                    "low": "40.907547543070258",
                    "volume": "0"
                }
            },
            {
                "1719871404-1719872304": {
                    "open": "40.907547543070258",
                    "high": "40.907547543070258",
                    "close": "40.907547543070258",
                    "low": "40.907547543070258",
                    "volume": "0"
                }
            },
            {
                "1719872304-1719873204": {
                    "open": "40.907547543070258",
                    "high": "40.90754754307026",
                    "low": "40.62297793379955",
                    "close": "40.622977933799547",
                    "volume": "34397.20797441442"
                }
            },
            {
                "1719873204-1719874104": {
                    "open": "40.622977933799547",
                    "high": "40.62297793379955",
                    "low": "40.5713593821584",
                    "close": "40.571359382158398",
                    "volume": "17198.746133980247"
                }
            },
            {
                "1719874104-1719875004": {
                    "open": "40.571359382158398",
                    "high": "40.571359382158398",
                    "close": "40.571359382158398",
                    "low": "40.571359382158398",
                    "volume": "0"
                }
            },
            {
                "1719875004-1719875904": {
                    "open": "40.571359382158398",
                    "high": "40.571359382158398",
                    "close": "40.571359382158398",
                    "low": "40.571359382158398",
                    "volume": "0"
                }
            },
            {
                "1719875904-1719876804": {
                    "open": "40.571359382158398",
                    "high": "40.571359382158398",
                    "close": "40.571359382158398",
                    "low": "40.571359382158398",
                    "volume": "0"
                }
            },
            {
                "1719876804-1719877704": {
                    "open": "40.571359382158398",
                    "high": "40.571359382158398",
                    "close": "40.571359382158398",
                    "low": "40.571359382158398",
                    "volume": "0"
                }
            },
            {
                "1719877704-1719878604": {
                    "open": "40.571359382158398",
                    "high": "41.05025398539319",
                    "low": "40.5713593821584",
                    "close": "41.050253985393191",
                    "volume": "2104457.824647459"
                }
            },
            {
                "1719878604-1719879504": {
                    "open": "41.050253985393191",
                    "high": "41.13993945355519",
                    "low": "41.05025398539319",
                    "close": "41.139939453555193",
                    "volume": "1612244.078705859"
                }
            },
            {
                "1719879504-1719880404": {
                    "open": "41.139939453555193",
                    "high": "41.139939453555193",
                    "close": "41.139939453555193",
                    "low": "41.139939453555193",
                    "volume": "0"
                }
            },
            {
                "1719880404-1719881304": {
                    "open": "41.139939453555193",
                    "high": "41.139939453555193",
                    "close": "41.139939453555193",
                    "low": "41.139939453555193",
                    "volume": "0"
                }
            },
            {
                "1719881304-1719882204": {
                    "open": "41.139939453555193",
                    "high": "41.139939453555193",
                    "close": "41.139939453555193",
                    "low": "41.139939453555193",
                    "volume": "0"
                }
            },
            {
                "1719882204-1719883104": {
                    "open": "41.139939453555193",
                    "high": "41.15738777330809",
                    "low": "41.13993945355519",
                    "close": "41.157387773308088",
                    "volume": "453333.9070743636"
                }
            },
            {
                "1719883104-1719884004": {
                    "open": "41.157387773308088",
                    "high": "41.19794631112469",
                    "low": "41.15738777330809",
                    "close": "41.197946311124689",
                    "volume": "823189.9204179838"
                }
            },
            {
                "1719884004-1719884904": {
                    "open": "41.197946311124689",
                    "high": "41.197946311124689",
                    "close": "41.197946311124689",
                    "low": "41.197946311124689",
                    "volume": "0"
                }
            },
            {
                "1719884904-1719885804": {
                    "open": "41.197946311124689",
                    "high": "41.197946311124689",
                    "close": "41.197946311124689",
                    "low": "41.197946311124689",
                    "volume": "0"
                }
            },
            {
                "1719885804-1719886704": {
                    "open": "41.197946311124689",
                    "high": "41.197946311124689",
                    "close": "41.197946311124689",
                    "low": "41.197946311124689",
                    "volume": "0"
                }
            },
            {
                "1719886704-1719887604": {
                    "open": "41.197946311124689",
                    "high": "41.22546954413207",
                    "low": "41.19794631112469",
                    "close": "41.225469544132068",
                    "volume": "574040.9247605792"
                }
            },
            {
                "1719887604-1719888504": {
                    "open": "41.225469544132068",
                    "high": "41.24607310926254",
                    "low": "41.22546954413207",
                    "close": "41.246073109262539",
                    "volume": "257561.3386499036"
                }
            },
            {
                "1719888504-1719889404": {
                    "open": "41.246073109262539",
                    "high": "41.24607310926254",
                    "low": "40.83442224556452",
                    "close": "40.834422245564518",
                    "volume": "6508.60837328465"
                }
            },
            {
                "1719889404-1719890304": {
                    "open": "40.834422245564518",
                    "high": "40.834422245564518",
                    "close": "40.834422245564518",
                    "low": "40.834422245564518",
                    "volume": "0"
                }
            },
            {
                "1719890304-1719891204": {
                    "open": "40.834422245564518",
                    "high": "40.834422245564518",
                    "close": "40.834422245564518",
                    "low": "40.834422245564518",
                    "volume": "0"
                }
            },
            {
                "1719891204-1719892104": {
                    "open": "40.834422245564518",
                    "high": "40.83442224556452",
                    "low": "40.717142516591004",
                    "close": "40.717142516591004",
                    "volume": "60141.129374726"
                }
            },
            {
                "1719892104-1719893004": {
                    "open": "40.717142516591004",
                    "high": "40.717142516591004",
                    "close": "40.717142516591004",
                    "low": "40.717142516591004",
                    "volume": "0"
                }
            },
            {
                "1719893004-1719893904": {
                    "open": "40.717142516591004",
                    "high": "40.717142516591004",
                    "close": "40.717142516591004",
                    "low": "40.717142516591004",
                    "volume": "0"
                }
            },
            {
                "1719893904-1719894804": {
                    "open": "40.717142516591004",
                    "high": "40.717142516591004",
                    "close": "40.717142516591004",
                    "low": "40.717142516591004",
                    "volume": "0"
                }
            },
            {
                "1719894804-1719895704": {
                    "open": "40.717142516591004",
                    "high": "41.14523010898722",
                    "low": "40.717142516591004",
                    "close": "41.096508730377209",
                    "volume": "5084441.447006281"
                }
            },
            {
                "1719895704-1719896604": {
                    "open": "41.096508730377209",
                    "high": "41.28899695517518",
                    "low": "41.09650873037721",
                    "close": "41.288996955175179",
                    "volume": "3432359.522578925"
                }
            },
            {
                "1719896604-1719897504": {
                    "open": "41.288996955175179",
                    "high": "41.288996955175179",
                    "close": "41.288996955175179",
                    "low": "41.288996955175179",
                    "volume": "0"
                }
            },
            {
                "1719897504-1719898404": {
                    "open": "41.288996955175179",
                    "high": "41.288996955175179",
                    "close": "41.288996955175179",
                    "low": "41.288996955175179",
                    "volume": "0"
                }
            },
            {
                "1719898404-1719899304": {
                    "open": "41.288996955175179",
                    "high": "41.288996955175179",
                    "close": "41.288996955175179",
                    "low": "41.288996955175179",
                    "volume": "0"
                }
            },
            {
                "1719899304-1719900204": {
                    "open": "41.288996955175179",
                    "high": "41.288996955175179",
                    "close": "41.288996955175179",
                    "low": "41.288996955175179",
                    "volume": "0"
                }
            },
            {
                "1719900204-1719901104": {
                    "open": "41.288996955175179",
                    "high": "41.288996955175179",
                    "close": "41.288996955175179",
                    "low": "41.288996955175179",
                    "volume": "0"
                }
            },
            {
                "1719901104-1719902004": {
                    "open": "41.288996955175179",
                    "high": "41.288996955175179",
                    "close": "41.288996955175179",
                    "low": "41.288996955175179",
                    "volume": "0"
                }
            },
            {
                "1719902004-1719902904": {
                    "open": "41.288996955175179",
                    "high": "41.288996955175179",
                    "close": "41.288996955175179",
                    "low": "41.288996955175179",
                    "volume": "0"
                }
            },
            {
                "1719902904-1719903804": {
                    "open": "41.288996955175179",
                    "high": "41.288996955175179",
                    "close": "41.288996955175179",
                    "low": "41.288996955175179",
                    "volume": "0"
                }
            },
            {
                "1719903804-1719904704": {
                    "open": "41.288996955175179",
                    "high": "41.288996955175179",
                    "close": "41.288996955175179",
                    "low": "41.288996955175179",
                    "volume": "0"
                }
            },
            {
                "1719904704-1719905604": {
                    "open": "41.288996955175179",
                    "high": "41.288996955175179",
                    "close": "41.288996955175179",
                    "low": "41.288996955175179",
                    "volume": "0"
                }
            },
            {
                "1719905604-1719906504": {
                    "open": "41.288996955175179",
                    "high": "41.288996955175179",
                    "close": "41.288996955175179",
                    "low": "41.288996955175179",
                    "volume": "0"
                }
            },
            {
                "1719906504-1719907404": {
                    "open": "41.288996955175179",
                    "high": "41.288996955175179",
                    "close": "41.288996955175179",
                    "low": "41.288996955175179",
                    "volume": "0"
                }
            },
            {
                "1719907404-1719908304": {
                    "open": "41.288996955175179",
                    "high": "41.54919609302778",
                    "low": "41.28899695517518",
                    "close": "41.549196093027781",
                    "volume": "345286.01712099643"
                }
            },
            {
                "1719908304-1719909204": {
                    "open": "41.549196093027781",
                    "high": "41.549196093027781",
                    "close": "41.549196093027781",
                    "low": "41.549196093027781",
                    "volume": "0"
                }
            },
            {
                "1719909204-1719910104": {
                    "open": "41.549196093027781",
                    "high": "41.549196093027781",
                    "close": "41.549196093027781",
                    "low": "41.549196093027781",
                    "volume": "0"
                }
            },
            {
                "1719910104-1719911004": {
                    "open": "41.549196093027781",
                    "high": "41.99939215611474",
                    "low": "41.54919609302778",
                    "close": "41.999392156114737",
                    "volume": "9138942.1174517"
                }
            },
            {
                "1719911004-1719911904": {
                    "open": "41.999392156114737",
                    "high": "41.999392156114737",
                    "close": "41.999392156114737",
                    "low": "41.999392156114737",
                    "volume": "0"
                }
            },
            {
                "1719911904-1719912804": {
                    "open": "41.999392156114737",
                    "high": "41.999392156114737",
                    "close": "41.999392156114737",
                    "low": "41.999392156114737",
                    "volume": "0"
                }
            },
            {
                "1719912804-1719913704": {
                    "open": "41.999392156114737",
                    "high": "42.03644038097751",
                    "low": "41.99939215611474",
                    "close": "42.036440380977510",
                    "volume": "841782.5677245092"
                }
            },
            {
                "1719913704-1719914604": {
                    "open": "42.036440380977510",
                    "high": "42.036440380977510",
                    "close": "42.036440380977510",
                    "low": "42.036440380977510",
                    "volume": "0"
                }
            },
            {
                "1719914604-1719915504": {
                    "open": "42.036440380977510",
                    "high": "42.036440380977510",
                    "close": "42.036440380977510",
                    "low": "42.036440380977510",
                    "volume": "0"
                }
            },
            {
                "1719915504-1719916404": {
                    "open": "42.036440380977510",
                    "high": "42.10029101106189",
                    "low": "42.03644038097751",
                    "close": "42.100291011061891",
                    "volume": "860301.816796245"
                }
            },
            {
                "1719916404-1719917304": {
                    "open": "42.100291011061891",
                    "high": "42.100291011061891",
                    "close": "42.100291011061891",
                    "low": "42.100291011061891",
                    "volume": "0"
                }
            },
            {
                "1719917304-1719918204": {
                    "open": "42.100291011061891",
                    "high": "42.100291011061891",
                    "close": "42.100291011061891",
                    "low": "42.100291011061891",
                    "volume": "0"
                }
            },
            {
                "1719918204-1719919104": {
                    "open": "42.100291011061891",
                    "high": "42.100291011061891",
                    "close": "42.100291011061891",
                    "low": "42.100291011061891",
                    "volume": "0"
                }
            },
            {
                "1719919104-1719920004": {
                    "open": "42.100291011061891",
                    "high": "42.100291011061891",
                    "close": "42.100291011061891",
                    "low": "42.100291011061891",
                    "volume": "0"
                }
            },
            {
                "1719920004-1719920904": {
                    "open": "42.100291011061891",
                    "high": "42.100291011061891",
                    "close": "42.100291011061891",
                    "low": "42.100291011061891",
                    "volume": "0"
                }
            },
            {
                "1719920904-1719921804": {
                    "open": "42.100291011061891",
                    "high": "42.100291011061891",
                    "close": "42.100291011061891",
                    "low": "42.100291011061891",
                    "volume": "0"
                }
            },
            {
                "1719921804-1719922704": {
                    "open": "42.100291011061891",
                    "high": "42.100291011061891",
                    "close": "42.100291011061891",
                    "low": "42.100291011061891",
                    "volume": "0"
                }
            },
            {
                "1719922704-1719923604": {
                    "open": "42.100291011061891",
                    "high": "42.100291011061891",
                    "close": "42.100291011061891",
                    "low": "42.100291011061891",
                    "volume": "0"
                }
            },
            {
                "1719923604-1719924504": {
                    "open": "42.100291011061891",
                    "high": "42.100291011061891",
                    "close": "42.100291011061891",
                    "low": "42.100291011061891",
                    "volume": "0"
                }
            },
            {
                "1719924504-1719925404": {
                    "open": "42.100291011061891",
                    "high": "42.100291011061891",
                    "close": "42.100291011061891",
                    "low": "42.100291011061891",
                    "volume": "0"
                }
            },
            {
                "1719925404-1719926304": {
                    "open": "42.100291011061891",
                    "high": "42.100291011061891",
                    "close": "42.100291011061891",
                    "low": "42.100291011061891",
                    "volume": "0"
                }
            },
            {
                "1719926304-1719927204": {
                    "open": "42.100291011061891",
                    "high": "42.100291011061891",
                    "close": "42.100291011061891",
                    "low": "42.100291011061891",
                    "volume": "0"
                }
            },
            {
                "1719927204-1719928104": {
                    "open": "42.100291011061891",
                    "high": "42.100291011061891",
                    "close": "42.100291011061891",
                    "low": "42.100291011061891",
                    "volume": "0"
                }
            },
            {
                "1719928104-1719929004": {
                    "open": "42.100291011061891",
                    "high": "42.100291011061891",
                    "close": "42.100291011061891",
                    "low": "42.100291011061891",
                    "volume": "0"
                }
            },
            {
                "1719929004-1719929904": {
                    "open": "42.100291011061891",
                    "high": "42.100291011061891",
                    "close": "42.100291011061891",
                    "low": "42.100291011061891",
                    "volume": "0"
                }
            }
        ]
    }
}
```

{% endtab %}
{% endtabs %}

### /swap

Initiate a swap transaction on a specified DEX.

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

#### Request Body

<table><thead><tr><th width="177">Name</th><th width="146">Type</th><th>Description</th></tr></thead><tbody><tr><td>dexId<mark style="color:red;">*</mark></td><td>String</td><td>Refer to the <a href="/pages/8x8qwIu19Aq8uFsjOXvI">DEX ID</a> page for details. </td></tr><tr><td>path<mark style="color:red;">*</mark></td><td>Array</td><td>Comma-separated values of token addresses, inside an array, to swap.</td></tr><tr><td>amountIn<mark style="color:red;">*</mark></td><td>String</td><td>Amount of token to be swapped.</td></tr><tr><td>from<mark style="color:red;">*</mark></td><td>String</td><td>Address of the sender of the token.</td></tr><tr><td>gas</td><td>String</td><td>Maximum gas limit provided by the sender, for the transaction.</td></tr><tr><td>rpc</td><td>String</td><td>Remote procedural call URL.</td></tr><tr><td>swapKind<mark style="color:red;">*</mark></td><td>String</td><td>The type of batch swap we want to perform.</td></tr><tr><td>deadline<mark style="color:red;">*</mark></td><td>String</td><td>Deadline for the transaction to be executed (UNIX Timestamp). </td></tr><tr><td>gasPriority</td><td>String</td><td>low, medium, or high.</td></tr><tr><td>slippage</td><td>String</td><td><p>Percentage of total swap value. <br>By default, 1.</p><p>0 &#x3C;= slippage  value &#x3C;= 100</p></td></tr></tbody></table>

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

```json
{
    "dexId": "1400",
    "swapKind": "0",
    "path": [
        "0x7f39c581f595b53c5cb19bd0b3f8da6c935e2ca0",
        "0x7fc66500c84a76ad7e9c93437bfc5ac33e2ddae9"
    ],
    "amountIn": "100000",
    "gas": "800000",
    "from": "0x4C99D660A51D41bE5D47D66a3d89d5B83D92f27E",
    "deadline": "1668973383"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x4C99D660A51D41bE5D47D66a3d89d5B83D92f27E",
        "to": "0xba12222222228d8ba445958a75a0704d566bf2c8",
        "value": "0",
        "gas": "800000",
        "estimationCheck": true,
        "data": "0x945bcec90000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000003000000000000000000000000004c99d660a51d41be5d47d66a3d89d5b83d92f27e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000004c99d660a51d41be5d47d66a3d89d5b83d92f27e0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000038000000000000000000000000000000000000000000000000000000000637a834700000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000010087a867f5d240a782d43d90b6b06dea470f3f8f220002000000000000000005160000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000186a000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000003b40d7d5ae25df2561944dd68b252016c4c7b2800001000000000000000000c200000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000030000000000000000000000007f39c581f595b53c5cb19bd0b3f8da6c935e2ca0000000000000000000000000c00e94cb662c3520282e6f5717214004a7f268880000000000000000000000007fc66500c84a76ad7e9c93437bfc5ac33e2ddae900000000000000000000000000000000000000000000000000000000000000030000000000000000000000000000000000000000000000000000000000460f1f0000000000000000000000000000000000000000000000000000000000000000fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe7960"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
**With gasPriority:**

```json
{
    "dexId": "1400",
    "swapKind": "0",
    "path": [
        "0x7f39c581f595b53c5cb19bd0b3f8da6c935e2ca0",
        "0x7fc66500c84a76ad7e9c93437bfc5ac33e2ddae9"
    ],
    "amountIn": "100000",
    "gas": "800000",
    "gasPriority": "medium",
    "from": "0x4C99D660A51D41bE5D47D66a3d89d5B83D92f27E",
    "deadline": "1668973383"
}
```

{% endtab %}

{% tab title="Sample Response" %}
**With gasPriority:**

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x4C99D660A51D41bE5D47D66a3d89d5B83D92f27E",
        "to": "0xba12222222228d8ba445958a75a0704d566bf2c8",
        "value": "0",
        "gas": "800000",
        "data": "0x945bcec90000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000003000000000000000000000000004c99d660a51d41be5d47d66a3d89d5b83d92f27e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000004c99d660a51d41be5d47d66a3d89d5b83d92f27e0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000038000000000000000000000000000000000000000000000000000000000637a834700000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000010087a867f5d240a782d43d90b6b06dea470f3f8f220002000000000000000005160000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000186a000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000003b40d7d5ae25df2561944dd68b252016c4c7b2800001000000000000000000c200000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000030000000000000000000000007f39c581f595b53c5cb19bd0b3f8da6c935e2ca0000000000000000000000000c00e94cb662c3520282e6f5717214004a7f268880000000000000000000000007fc66500c84a76ad7e9c93437bfc5ac33e2ddae900000000000000000000000000000000000000000000000000000000000000030000000000000000000000000000000000000000000000000000000000460f1f0000000000000000000000000000000000000000000000000000000000000000fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe7960",
        "gasPrice": "19734722723"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
**With slippage:**&#x20;

```json
{
    "dexId": "1400",
    "swapKind": "0",
    "path": [
        "0x7f39c581f595b53c5cb19bd0b3f8da6c935e2ca0",
        "0x7fc66500c84a76ad7e9c93437bfc5ac33e2ddae9"
    ],
    "amountIn": "100000",
    "gas": "800000",
    "slippage": "1",
    "from": "0x4C99D660A51D41bE5D47D66a3d89d5B83D92f27E",
    "deadline": "1668973383"
}
```

{% endtab %}

{% tab title="Sample Response" %}
**With slippage:**&#x20;

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x4C99D660A51D41bE5D47D66a3d89d5B83D92f27E",
        "to": "0xba12222222228d8ba445958a75a0704d566bf2c8",
        "value": "0",
        "gas": "800000",
        "data": "0x945bcec90000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000003000000000000000000000000004c99d660a51d41be5d47d66a3d89d5b83d92f27e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000004c99d660a51d41be5d47d66a3d89d5b83d92f27e0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000038000000000000000000000000000000000000000000000000000000000637a834700000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000010087a867f5d240a782d43d90b6b06dea470f3f8f220002000000000000000005160000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000186a000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000003b40d7d5ae25df2561944dd68b252016c4c7b2800001000000000000000000c200000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000030000000000000000000000007f39c581f595b53c5cb19bd0b3f8da6c935e2ca0000000000000000000000000c00e94cb662c3520282e6f5717214004a7f268880000000000000000000000007fc66500c84a76ad7e9c93437bfc5ac33e2ddae900000000000000000000000000000000000000000000000000000000000000030000000000000000000000000000000000000000000000000000000000460f1f0000000000000000000000000000000000000000000000000000000000000000fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe7960"
    }
}
```

{% endtab %}
{% endtabs %}

### /addliquidity

Add liquidity to a specified pool in a specified DEX.

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

#### Request Body

| Name                                                  | Type    | Description                                                                                 |
| ----------------------------------------------------- | ------- | ------------------------------------------------------------------------------------------- |
| dexId<mark style="color:red;">\*</mark>               | String  | Refer to the [DEX ID](broken://pages/8x8qwIu19Aq8uFsjOXvI) page for details.                |
| path<mark style="color:red;">\*</mark>                | Array   | Comma separated values of token addresses.                                                  |
| amountIn<mark style="color:red;">\*</mark>            | Array   | Amount of tokens to add liquidity.                                                          |
| amountOut<mark style="color:red;">\*</mark>           | String  | Amount of tokens accepted as a result of the transaction.                                   |
| from<mark style="color:red;">\*</mark>                | String  | Address of the sender of the token.                                                         |
| gas                                                   | String  | Maximum gas limit provided by the sender, for the transaction.                              |
| rpc                                                   | String  | Remote procedural call URL.                                                                 |
| fromInternalBalance<mark style="color:red;">\*</mark> | Boolean | `True` if sending from internal token balances. `False` if sending ERC20.                   |
| to<mark style="color:red;">\*</mark>                  | String  | Address of the recipient of the token.                                                      |
| gasPriority                                           | String  | low, medium, or high.                                                                       |
| slippage                                              | String  | <p>Percentage of total swap value. <br>By default, 1.</p><p>0 <= slippage  value <= 100</p> |

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

```json
{
    "dexId": "1400",
    "path": ["0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2", "0x6B175474E89094C44Da98b954EedeAC495271d0F"],
    "amountIn": ["0","100000000"],
    "amountOut": "2331262690208301876",
    "fromInternalBalance": false,
    "gas": "2307200",
    "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
    "to": "0x63056E00436Da25BcF48A40dfBbDcc7089351006"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
        "to": "0xBA12222222228d8Ba445958a75a0704d566BF2C8",
        "value": "0",
        "gas": "2307200",
        "data": "0xb95cac280b09dea16768f0799065c475be02919503cb2a3500020000000000000000001a00000000000000000000000063056e00436da25bcf48a40dfbbdcc708935100600000000000000000000000063056e00436da25bcf48a40dfbbdcc70893510060000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000006b175474e89094c44da98b954eedeac495271d0f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc200000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000005f5e100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000205a4f10affcc33400000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000005f5e1000000000000000000000000000000000000000000000000000000000000000000",
        "referenceId": "f0011836bfdf441d88eda385c2171e3f"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
**With gasPriority:**

```json
{
    "dexId": "1400",
    "amountIn": [
        "1000000000000000000",
        "1000000000000000000"
    ],
    "amountOut": "0",
    "path": [
        "0x6B175474E89094C44Da98b954EedeAC495271d0F",
        "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"
    ],
    "to": "0xDeBB1a42a27051FD18d6d6C2055A44d330A4D80a",
    "deadline": "1710209834351",
    "from": "0xDeBB1a42a27051FD18d6d6C2055A44d330A4D80a",
    "gas": "273376",
    "fromInternalBalance": false,
    "gasPriority": "low"
}
```

{% endtab %}

{% tab title="Sample Response" %}
**With gasPriority:**

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0xDeBB1a42a27051FD18d6d6C2055A44d330A4D80a",
        "to": "0xBA12222222228d8Ba445958a75a0704d566BF2C8",
        "value": "0",
        "gas": "273376",
        "data": "0xb95cac280b09dea16768f0799065c475be02919503cb2a3500020000000000000000001a000000000000000000000000debb1a42a27051fd18d6d6c2055a44d330a4d80a000000000000000000000000debb1a42a27051fd18d6d6c2055a44d330a4d80a0000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000006b175474e89094c44da98b954eedeac495271d0f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc200000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000de0b6b3a76400000000000000000000000000000000000000000000000000000de0b6b3a764000000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000de0b6b3a76400000000000000000000000000000000000000000000000000000de0b6b3a7640000",
        "gasPrice": "2212191686",
        "referenceId": "b2a9bcc354d745b5a601828a4c361cb2"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
**With slippage:**

```json
{
    "dexId": "1400",
    "path": [
        "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
        "0x6B175474E89094C44Da98b954EedeAC495271d0F"
    ],
    "amountIn": [
        "0",
        "100000000"
    ],
    "amountOut": "2331262690208301876",
    "fromInternalBalance": false,
    "gas": "2307200",
    "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
    "to": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
    "slippage": "7.02"
}
```

{% endtab %}

{% tab title="Sample Response" %}
**With slippage:**

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
        "to": "0xBA12222222228d8Ba445958a75a0704d566BF2C8",
        "value": "0",
        "gas": "2307200",
        "data": "0xb95cac280b09dea16768f0799065c475be02919503cb2a3500020000000000000000001a00000000000000000000000063056e00436da25bcf48a40dfbbdcc708935100600000000000000000000000063056e00436da25bcf48a40dfbbdcc70893510060000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000006b175474e89094c44da98b954eedeac495271d0f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc200000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000005f5e100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000001e14e409521f660000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000005f5e1000000000000000000000000000000000000000000000000000000000000000000",
        "referenceId": "0aa88b50c73f4970b77afe3cf8d63826"
    }
}
```

{% endtab %}
{% endtabs %}

### /removeliquidity

Remove liquidity from a specified pool for a specified DEX.

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

#### Request Body

| Name                                                | Type    | Description                                                                                 |
| --------------------------------------------------- | ------- | ------------------------------------------------------------------------------------------- |
| dexId<mark style="color:red;">\*</mark>             | String  | Refer to the [DEX ID](broken://pages/8x8qwIu19Aq8uFsjOXvI) page for details.                |
| path<mark style="color:red;">\*</mark>              | Array   | Comma separated values of token addresses.                                                  |
| amountIn<mark style="color:red;">\*</mark>          | String  | Amount of tokens to add liquidity.                                                          |
| amountOut<mark style="color:red;">\*</mark>         | Array   | Amount of tokens accepted as a result of the transaction.                                   |
| from<mark style="color:red;">\*</mark>              | String  | Address of the sender of the token.                                                         |
| gas                                                 | String  | Maximum gas limit provided by the sender, for the transaction.                              |
| rpc                                                 | String  | Remote procedural call URL.                                                                 |
| toInternalBalance<mark style="color:red;">\*</mark> | Boolean | `True` if you receiving tokens as internal token balances. `False` if receiving as ERC20.   |
| to<mark style="color:red;">\*</mark>                | String  | Address of the recipient of the token.                                                      |
| gasPriority                                         | String  | low, medium, or high.                                                                       |
| slippage                                            | String  | <p>Percentage of total swap value. <br>By default, 1.</p><p>0 <= slippage  value <= 100</p> |

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

```json
{
    "dexId": "1400",
    "path": ["0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2", "0x6B175474E89094C44Da98b954EedeAC495271d0F"],
    "amountOut": ["0","100000000"],
    "amountIn": "2427326557218525461",
    "toInternalBalance": false,
    "gas": "2307200",
    "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
    "to": "0x63056E00436Da25BcF48A40dfBbDcc7089351006"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
        "to": "0xBA12222222228d8Ba445958a75a0704d566BF2C8",
        "value": "0",
        "gas": "2307200",
        "data": "0x8bdb39130b09dea16768f0799065c475be02919503cb2a3500020000000000000000001a00000000000000000000000063056e00436da25bcf48a40dfbbdcc708935100600000000000000000000000063056e00436da25bcf48a40dfbbdcc70893510060000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000006b175474e89094c44da98b954eedeac495271d0f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc200000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000005f5e100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000021af98a4ace1d11500000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000005f5e1000000000000000000000000000000000000000000000000000000000000000000",
        "referenceId": "685902196c9d46c2a68ed13b8b0a8ffd"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
**With gasPriority (medium):**

```json
{
    "dexId": "1400",
    "path": [
        "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
        "0x6B175474E89094C44Da98b954EedeAC495271d0F"
    ],
    "amountOut": [
        "0",
        "100000000"
    ],
    "amountIn": "2427326557218525461",
    "toInternalBalance": false,
    "gas": "2307200",
    "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
    "to": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
    "gasPriority": "medium"
}
```

{% endtab %}

{% tab title="Sample Response" %}
**With gasPriority:**

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
        "to": "0xBA12222222228d8Ba445958a75a0704d566BF2C8",
        "value": "0",
        "gas": "2307200",
        "data": "0x8bdb39130b09dea16768f0799065c475be02919503cb2a3500020000000000000000001a00000000000000000000000063056e00436da25bcf48a40dfbbdcc708935100600000000000000000000000063056e00436da25bcf48a40dfbbdcc70893510060000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000006b175474e89094c44da98b954eedeac495271d0f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc200000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000005f5e100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000021af98a4ace1d11500000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000005f5e1000000000000000000000000000000000000000000000000000000000000000000",
        "gasPrice": "2555097500",
        "referenceId": "c05267e2aae746e8bdec057255e2d3f9"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
**With Slippage:**

```json
{
    "dexId": "1400",
    "path": [
        "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
        "0x6B175474E89094C44Da98b954EedeAC495271d0F"
    ],
    "amountOut": [
        "100",
        "100000000"
    ],
    "amountIn": "2427326557218525461",
    "toInternalBalance": false,
    "gas": "2307200",
    "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
    "to": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
    "slippage": "6.01"
}
```

{% endtab %}

{% tab title="Sample Response" %}
**With Slippage:**

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
        "to": "0xBA12222222228d8Ba445958a75a0704d566BF2C8",
        "value": "0",
        "gas": "2307200",
        "data": "0x8bdb39130b09dea16768f0799065c475be02919503cb2a3500020000000000000000001a00000000000000000000000063056e00436da25bcf48a40dfbbdcc708935100600000000000000000000000063056e00436da25bcf48a40dfbbdcc70893510060000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000006b175474e89094c44da98b954eedeac495271d0f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc200000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000005f5e100000000000000000000000000000000000000000000000000000000000000006400000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000021af98a4ace1d11500000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000005f5e1000000000000000000000000000000000000000000000000000000000000000064",
        "referenceId": "c1037b0907484e62906881ff65da2fcf"
    }
}
```

{% endtab %}
{% endtabs %}


# STON.fi

### /getprice

Returns the swap quotation for the given token pair.

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

#### Query Parameters

| Name                                       | Type   | Description                                                             |
| ------------------------------------------ | ------ | ----------------------------------------------------------------------- |
| rpc                                        | String | Remote procedural call URL.                                             |
| dexId<mark style="color:red;">\*</mark>    | String | Refer to the [DEX ID](/ids/dex-ids) page for details.                   |
| path<mark style="color:red;">\*</mark>     | String | Comma separated values of token addresses whose price is to be fetched. |
| amountIn<mark style="color:red;">\*</mark> | String | Amount of token.                                                        |

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

```url
https://api.expand.network/dex/getprice?dexId=2300&path=EQBynBO23ywHy_CgarY9NK9FTz0yDsG82PtcbSTQgGoXwiuA,EQB5Wjo7yXdaB70yBoN2YEv8iVPjAdMObf_Dq40ELLaPllNb&amountIn=1
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "amountIn": "1",
        "path": [
            "EQBynBO23ywHy_CgarY9NK9FTz0yDsG82PtcbSTQgGoXwiuA",
            "EQB5Wjo7yXdaB70yBoN2YEv8iVPjAdMObf_Dq40ELLaPllNb"
        ],
        "amountsOut": [
            "1",
            "22018"
        ]
    }
}
```

{% endtab %}
{% endtabs %}

### /getuserliquidity

Returns the balance of a particular token pair of an account.

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

#### Query Parameters

| Name                                      | Type   | Description                                       |
| ----------------------------------------- | ------ | ------------------------------------------------- |
| rpc                                       | String | Remote procedural call URL.                       |
| tokenA<mark style="color:red;">\*</mark>  | String | Address of token.                                 |
| address<mark style="color:red;">\*</mark> | String | Public address of liquidity provider.             |
| dexId<mark style="color:red;">\*</mark>   | String | Refer to [DEX ID](/ids/dex-ids) page for details. |
| tokenB<mark style="color:red;">\*</mark>  | String | Address of token.                                 |

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

```url
https://api.expand.network/dex/getuserliquidity?tokenA=EQBT2Ee4Lx5w9uI7oMly5upXNs3ABWL_Fwk1uiM74gZCGaYt&tokenB=EQC47093oX5Xhb0xuk2lCr2RhS8rj-vul61u4W2UH5ORmG_O&address=UQAAjw7MBB_2-DvNKsjtOAPJBeqTK8iiDl8Xyv37zbIRbKrt&dexId=2300
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "tokenA": "12544748660283056",
        "tokenB": "295478740252006"
    }
}
```

{% endtab %}
{% endtabs %}

### /getpoolliquidity

Returns the total liquidity for a specified pool.

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

#### Query Parameters

| Name                                          | Type   | Description                                       |
| --------------------------------------------- | ------ | ------------------------------------------------- |
| rpc                                           | String | Remote procedural call URL.                       |
| poolAddress<mark style="color:red;">\*</mark> | String | Pool address whose liquidity is to be fetched.    |
| dexId<mark style="color:red;">\*</mark>       | String | Refer to [DEX ID](/ids/dex-ids) page for details. |

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

```url
https://api.expand.network/dex/getpoolliquidity?poolAddress=EQAZFS5dJ8STrKcn5VnptYsoKILXbAYaDhdJJjbzUrNkDdH_&dexId=2300
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "totalLiquidity": "149487260181"
    }
}
```

{% endtab %}
{% endtabs %}

### /gettokenliquidity

Returns the individual token liquidity within the specified liquidity pool.

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

#### Query Parameters

| Name                                          | Type   | Description                                       |
| --------------------------------------------- | ------ | ------------------------------------------------- |
| rpc                                           | String | Remote procedural call URL.                       |
| poolAddress<mark style="color:red;">\*</mark> | String | The pool address.                                 |
| dexId<mark style="color:red;">\*</mark>       | String | Refer to [DEX ID](/ids/dex-ids) page for details. |

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

```
https://api.expand.network/dex/gettokenliquidity?poolAddress=EQD1c0gDs91J-9FzeiC_V9VbizFxDUs09P6eIO4Fe4l2WDbm&dexId=2300
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "tokenA": "19467094",
        "tokenB": "1028"
    }
}
```

{% endtab %}
{% endtabs %}

### /swap

Initiate a swap transaction on a specified DEX.

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

#### Request Body

| Name                                       | Type   | Description                                                                                 |
| ------------------------------------------ | ------ | ------------------------------------------------------------------------------------------- |
| dexId<mark style="color:red;">\*</mark>    | String | Refer to the [DEX ID](/ids/dex-ids) page for details.                                       |
| path<mark style="color:red;">\*</mark>     | Array  | Comma-separated values of token addresses, inside an array, to swap.                        |
| amountIn<mark style="color:red;">\*</mark> | String | Amount of token to be swapped.                                                              |
| amountOutmin                               | String | Minimum amount accepted as the result of swap.                                              |
| from<mark style="color:red;">\*</mark>     | String | Address of the sender of the token.                                                         |
| gas                                        | String | Maximum gas limit provided by the sender, for the transaction.                              |
| rpc                                        | String | Remote procedural call URL.                                                                 |
| slippage                                   | String | <p>Percentage of total swap value. <br>By default, 1.</p><p>0 <= slippage  value <= 100</p> |
| referralAddress                            | String | The referral address.                                                                       |
| queryId                                    | String | The query id, used to identify your transaction.                                            |

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

```json
{
    "dexId": "2300",
    "amountIn": "100",
    "amountOutMin": "0",
    "path": [
        "EQBynBO23ywHy_CgarY9NK9FTz0yDsG82PtcbSTQgGoXwiuA",
        "EQA2kCVNwVsil2EM2mB0SkXytxCqQjS4mttjDpnXmwG9T6bO"
    ],
    "from": "UQAxmMo2wxu_yQTySoV7u7-Con2csmcBloW0CrflBCQEr-7R",
    "referralAddress": "UQAxmMo2wxu_yQTySoV7u7-Con2csmcBloW0CrflBCQEr-7R",
    "queryId": "1",
    "involveBaseToken": "0",
    "gas": "123"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1100",
        "to": "0:73d110ca89db91fcb58feaa567a0448a8db0635a1c6076509dea8439c6d351be",
        "value": "320000000",
        "message": "te6ccsEBAgEAogAANwFnD4p+pQAAAAAAAAABFkgA7zuZAqJxsqAciTilI8/iTnGEeq62piAAHtRKd6wOcJwQPy5RAwEA0SWThWGAEPckSDVNSvvmJOKMGCE4qb+zE0NdQGXsIPpYy63RDznBAAxmMo2wxu/yQTySoV7u7+Con2csmcBloW0CrflBCQEr8ADGYyjbDG7/JBPJKhXu7v4KifZyyZwGWhbQKt+UEJASvoaQiNw="
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
**With Slippage:**

```json
{
    "dexId": "2300",
    "amountIn": "100",
    "amountOutMin": "0",
    "path": [
        "EQBynBO23ywHy_CgarY9NK9FTz0yDsG82PtcbSTQgGoXwiuA",
        "EQA2kCVNwVsil2EM2mB0SkXytxCqQjS4mttjDpnXmwG9T6bO"
    ],
    "from": "UQAxmMo2wxu_yQTySoV7u7-Con2csmcBloW0CrflBCQEr-7R",
    "referralAddress": "UQAxmMo2wxu_yQTySoV7u7-Con2csmcBloW0CrflBCQEr-7R",
    "queryId": "1",
    "slippage": "10",
    "involveBaseToken": "0",
    "gas": "123"
}
```

{% endtab %}

{% tab title="Sample Response" %}
**With Slippage:**

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1100",
        "to": "0:73d110ca89db91fcb58feaa567a0448a8db0635a1c6076509dea8439c6d351be",
        "value": "320000000",
        "message": "te6ccsEBAgEAogAANwFnD4p+pQAAAAAAAAABFkgA7zuZAqJxsqAciTilI8/iTnGEeq62piAAHtRKd6wOcJwQPy5RAwEA0SWThWGAEPckSDVNSvvmJOKMGCE4qb+zE0NdQGXsIPpYy63RDznBAAxmMo2wxu/yQTySoV7u7+Con2csmcBloW0CrflBCQEr8ADGYyjbDG7/JBPJKhXu7v4KifZyyZwGWhbQKt+UEJASvoaQiNw="
    }
}
```

{% endtab %}
{% endtabs %}

### /addliquidity

Add liquidity to a specified pool in a specified DEX.

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

#### Request Body

| Name                                             | Type   | Description                                                                            |
| ------------------------------------------------ | ------ | -------------------------------------------------------------------------------------- |
| dexId<mark style="color:red;">\*</mark>          | String | Refer to the [DEX ID](broken://pages/8x8qwIu19Aq8uFsjOXvI) page for details.           |
| tokenA<mark style="color:red;">\*</mark>         | String | Address of the first token being added.                                                |
| tokenB<mark style="color:red;">\*</mark>         | String | Address of the second token being added.                                               |
| amountADesired<mark style="color:red;">\*</mark> | String | Desired amount of token A.                                                             |
| amountBDesired<mark style="color:red;">\*</mark> | String | Desired amount of token B.                                                             |
| amountAMin<mark style="color:red;">\*</mark>     | String | Minimum amount of token A.                                                             |
| amountBMin<mark style="color:red;">\*</mark>     | String | Minimum amount of token B.                                                             |
| from<mark style="color:red;">\*</mark>           | String | Address of the sender of the token.                                                    |
| gas                                              | String | Maximum gas limit provided by the sender, for the transaction.                         |
| rpc                                              | String | Remote procedural call URL.                                                            |
| slippage                                         | String | <p>Percentage of total value. <br>By default, 1.</p><p>0 <= slippage  value <= 100</p> |
| queryId                                          | String | The query id, used to identify your transaction.                                       |

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

```json
{
    "dexId": "2300",
    "tokenA": "EQBynBO23ywHy_CgarY9NK9FTz0yDsG82PtcbSTQgGoXwiuA",
    "tokenB": "EQA2kCVNwVsil2EM2mB0SkXytxCqQjS4mttjDpnXmwG9T6bO",
    "amountADesired": "1100",
    "amountBDesired": "411858",
    "amountAMin": "1",
    "amountBMin": "1",
    "queryId": "166978170",
    "from": "UQAxmMo2wxu_yQTySoV7u7-Con2csmcBloW0CrflBCQEr-7R",
    "gas": "230000"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "jetton0Transaction": {
            "chainId": "1100",
            "to": "0:73d110ca89db91fcb58feaa567a0448a8db0635a1c6076509dea8439c6d351be",
            "value": "320000000",
            "message": "te6ccsEBAgEAYQAAOAFpD4p+pQAAAAAJ8+J6IETIAO87mQKicbKgHIk4pSPP4k5xhHqutqYgAB7USnesDnCcED8uUQMBAE38+eWPgBD3JEg1TUr75iTijBghOKm/sxNDXUBl7CD6WMut0Q85wgN+Gc78"
        },
        "jetton1Transaction": {
            "chainId": "1100",
            "to": "0:f74345def726901e85075be154c7b5066f30a3386c8df01ed3e76fc20cff4ad4",
            "value": "320000000",
            "message": "te6ccsEBAgEAYgAAOQFrD4p+pQAAAAAJ8+J6MGSNKADvO5kConGyoByJOKUjz+JOcYR6rramIAAe1Ep3rA5wnBA/LlEDAQBN/Pnlj4AClYDlisUiRlr5snu9gkBGuLy568QE/pN3i1RO3LpEmwIDgzC5aA=="
        },
        "referenceId": "d731d01873364afda14b1f6041f8508d"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
**With Slippage:**

```json
{
    "dexId": "2300",
    "tokenA": "EQBynBO23ywHy_CgarY9NK9FTz0yDsG82PtcbSTQgGoXwiuA",
    "tokenB": "EQA2kCVNwVsil2EM2mB0SkXytxCqQjS4mttjDpnXmwG9T6bO",
    "amountADesired": "1100",
    "amountBDesired": "411858",
    "amountAMin": "1",
    "amountBMin": "1",
    "slippage": "1",
    "queryId": "166978170",
    "from": "UQAxmMo2wxu_yQTySoV7u7-Con2csmcBloW0CrflBCQEr-7R",
    "gas": "230000"
}
```

{% endtab %}

{% tab title="Sample Response" %}
**With Slippage:**

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "jetton0Transaction": {
            "chainId": "1100",
            "to": "0:73d110ca89db91fcb58feaa567a0448a8db0635a1c6076509dea8439c6d351be",
            "value": "320000000",
            "message": "te6ccsEBAgEAYQAAOAFpD4p+pQAAAAAJ8+J6IETIAO87mQKicbKgHIk4pSPP4k5xhHqutqYgAB7USnesDnCcED8uUQMBAE38+eWPgBD3JEg1TUr75iTijBghOKm/sxNDXUBl7CD6WMut0Q85wgN+Gc78"
        },
        "jetton1Transaction": {
            "chainId": "1100",
            "to": "0:f74345def726901e85075be154c7b5066f30a3386c8df01ed3e76fc20cff4ad4",
            "value": "320000000",
            "message": "te6ccsEBAgEAYgAAOQFrD4p+pQAAAAAJ8+J6MGSNKADvO5kConGyoByJOKUjz+JOcYR6rramIAAe1Ep3rA5wnBA/LlEDAQBN/Pnlj4AClYDlisUiRlr5snu9gkBGuLy568QE/pN3i1RO3LpEmwIDgzC5aA=="
        },
        "referenceId": "5274a75ef842459490e4fa496793fee5"
    }
}
```

{% endtab %}
{% endtabs %}

### /removeliquidity

Remove liquidity from a specified pool for a specified DEX.

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

#### Request Body

| Name                                        | Type   | Description                                                                  |
| ------------------------------------------- | ------ | ---------------------------------------------------------------------------- |
| dexId<mark style="color:red;">\*</mark>     | String | Refer to the [DEX ID](broken://pages/8x8qwIu19Aq8uFsjOXvI) page for details. |
| tokenA<mark style="color:red;">\*</mark>    | String | Address of the first token being removed.                                    |
| tokenB<mark style="color:red;">\*</mark>    | String | Address of the second token being removed.                                   |
| liquidity<mark style="color:red;">\*</mark> | String | Total amount of liquidity to be removed from the given pool.                 |
| from<mark style="color:red;">\*</mark>      | String | Address of the sender of the token.                                          |
| gas                                         | String | Maximum gas limit provided by the sender, for the transaction.               |
| rpc                                         | String | Remote procedural call URL.                                                  |
| queryId                                     | String | The query id, used to identify your transaction.                             |

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

```json
{
    "dexId": "2300",
    "tokenA": "EQBynBO23ywHy_CgarY9NK9FTz0yDsG82PtcbSTQgGoXwiuA",
    "tokenB": "EQA2kCVNwVsil2EM2mB0SkXytxCqQjS4mttjDpnXmwG9T6bO",
    "liquidity": "20",
    "queryId": "0",
    "from": "UQAxmMo2wxu_yQTySoV7u7-Con2csmcBloW0CrflBCQEr-7R",
    "gas": "230000"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1100",
        "to": "0:dbcb1554a8c4a09df5d1120e18b2286a1b23c75369d7a0f5d6e87b0878217b17",
        "value": "520000000",
        "message": "te6ccsEBAQEAMQAAAF1ZXwe8AAAAAAAAAAARSABjMZRthjd/kgnklQr3d38FRPs5ZM4DLQtoFW/KCEgJX2HFnx0=",
        "referenceId": "4c96461bb7864f6f900b43606c8aab1e"
    }
}
```

{% endtab %}
{% endtabs %}


# Trader Joe

### /getprice

Returns the swap quotation for the given token pair.

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

#### Query Parameters

| Name                                       | Type   | Description                                                                  |
| ------------------------------------------ | ------ | ---------------------------------------------------------------------------- |
| rpc                                        | String | Remote procedural call URL.                                                  |
| dexId<mark style="color:red;">\*</mark>    | String | Refer to the [DEX ID](broken://pages/8x8qwIu19Aq8uFsjOXvI) page for details. |
| path<mark style="color:red;">\*</mark>     | String | Comma separated values of token addresses whose price is to be fetched.      |
| amountIn<mark style="color:red;">\*</mark> | String | Amount of token.                                                             |

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

```url
https://api.expand.network/dex/getprice?dexId=2100&path=0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7%2C0x49D5c2BdFfac6CE2BFdB6640F4F80f226bc10bAB&amountIn=1000000000000000000
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "amountIn": "1000000000000000000",
        "path": [
            "0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7",
            "0x49D5c2BdFfac6CE2BFdB6640F4F80f226bc10bAB"
        ],
        "amountsOut": "57798768565384314383"
    }
}
```

{% endtab %}
{% endtabs %}

### /getuserliquidity

Returns the balance of a particular token pair of an account.

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

#### Query Parameters

| Name                                      | Type   | Description                                                             |
| ----------------------------------------- | ------ | ----------------------------------------------------------------------- |
| rpc                                       | String | Remote procedural call URL.                                             |
| tokenA<mark style="color:red;">\*</mark>  | String | Token Address of first token.                                           |
| dexId<mark style="color:red;">\*</mark>   | String | Refer to [DexId](broken://pages/8x8qwIu19Aq8uFsjOXvI) page for details. |
| tokenB<mark style="color:red;">\*</mark>  | String | Token Address of second token.                                          |
| address<mark style="color:red;">\*</mark> | String | User public address.                                                    |
| id<mark style="color:red;">\*</mark>      | String | Bin ID whose liquidity is to be fetched.                                |

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

```url
https://api.expand.network/dex/getuserliquidity?tokenA=0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7&tokenB=0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E&address=0x41917217DD34CEAd24Daa02b4Ca07bDE9E5FcD1d&dexId=2100&id=8376649
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "pairAddress": "0xD446eb1660F766d533BeCeEf890Df7A69d26f7d1",
        "liquidity": "0",
        "tokenA": "0",
        "tokenB": "0"
    }
}
```

{% endtab %}
{% endtabs %}

### /getpoolliquidity

Returns the total liquidity for a specified pool.

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

#### Query Parameters

| Name                                          | Type   | Description                                                              |
| --------------------------------------------- | ------ | ------------------------------------------------------------------------ |
| rpc                                           | String | Remote procedural call URL.                                              |
| poolAddress<mark style="color:red;">\*</mark> | String | Pool address whose liquidity is to be fetched.                           |
| dexId<mark style="color:red;">\*</mark>       | String | Refer to [DEX ID](broken://pages/8x8qwIu19Aq8uFsjOXvI) page for details. |
| id<mark style="color:red;">\*</mark>          | String | Bin ID whose liquidity is to be fetched.                                 |

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

```url
https://api.expand.network/dex/getpoolliquidity?dexId=2100&poolAddress=0xD446eb1660F766d533BeCeEf890Df7A69d26f7d1&id=8376653
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "totalLiquidity": "18984902854076810313408139190182580659015940571489"
    }
}
```

{% endtab %}
{% endtabs %}

### /gettokenliquidity

Returns the individual token liquidity within the specified liquidity pool.

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

#### Query Parameters

| Name                                          | Type   | Description                                                              |
| --------------------------------------------- | ------ | ------------------------------------------------------------------------ |
| rpc                                           | String | Remote procedural call URL.                                              |
| poolAddress<mark style="color:red;">\*</mark> | String | The pool address.                                                        |
| dexId<mark style="color:red;">\*</mark>       | String | Refer to [DEX ID](broken://pages/8x8qwIu19Aq8uFsjOXvI) page for details. |

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

```
https://api.expand.network/dex/gettokenliquidity?dexId=2100&poolAddress=0x9f8973FB86b35C307324eC31fd81Cf565E2F4a63
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "JOE": "3227032040427534312517737",
        "WAVAX": "41007188287627115196537"
    }
}
```

{% endtab %}
{% endtabs %}

### /swap

Initiate a swap transaction on a specified DEX.

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

#### Request Body

| Name                                       | Type   | Description                                                                                 |
| ------------------------------------------ | ------ | ------------------------------------------------------------------------------------------- |
| dexId<mark style="color:red;">\*</mark>    | String | Refer to the [DEX ID](broken://pages/8x8qwIu19Aq8uFsjOXvI) page for details.                |
| path<mark style="color:red;">\*</mark>     | Array  | Comma-separated values of token addresses, inside an array, to swap.                        |
| amountIn<mark style="color:red;">\*</mark> | String | Amount of token to be swapped.                                                              |
| amountOutMin                               | String | Minimum amount accepted as a result of swap.                                                |
| to<mark style="color:red;">\*</mark>       | String | Address of the recipient of the token.                                                      |
| from<mark style="color:red;">\*</mark>     | String | Address of the sender of the token.                                                         |
| gas                                        | String | Maximum gas limit provided by the sender, for the transaction.                              |
| rpc                                        | String | Remote procedural call URL.                                                                 |
| gasPriority                                | String | low, medium, or high.                                                                       |
| slippage                                   | String | <p>Percentage of total swap value. <br>By default, 1.</p><p>0 <= slippage  value <= 100</p> |
| deadline<mark style="color:red;">\*</mark> | String | Deadline for the transaction to be executed (UNIX Timestamp).                               |

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

```json
{
    "dexId": "2100",
    "amountIn": "10000000000",
    "amountOutMin": "100",
    "path": [
        "0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7",
        "0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E"
    ],
    "to": "0xa67E9B68c41b0f26184D64C26e0b2B81466E5994",
    "deadline": "1753156839",
    "from": "0xa67E9B68c41b0f26184D64C26e0b2B81466E5994",
    "gas": "100000"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "43114",
        "from": "0xa67E9B68c41b0f26184D64C26e0b2B81466E5994",
        "to": "0xb4315e873dBcf96Ffd0acd8EA43f689D8c20fB30",
        "value": "0",
        "gas": "100000",
        "data": "0x2a443fae00000000000000000000000000000000000000000000000000000002540be400000000000000000000000000000000000000000000000000000000000000006400000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000a67e9b68c41b0f26184d64c26e0b2b81466e599400000000000000000000000000000000000000000000000000000000687f0ce7000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000b31f66aa3c1e785363f0875a1b74e27b85fd66c7000000000000000000000000b97ef9ef8734c71904d8002f8b6bc66dd9c48a6e",
        "referenceId": "5c9704299e964d74acb0aaa16d9bbc77"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
**With gasPriority:**

```json
{
    "dexId": "2100",
    "amountIn": "10000000000",
    "amountOutMin": "100",
    "path": [
        "0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7",
        "0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E"
    ],
    "to": "0xa67E9B68c41b0f26184D64C26e0b2B81466E5994",
    "deadline": "1753156839",
    "from": "0xa67E9B68c41b0f26184D64C26e0b2B81466E5994",
    "gas": "100000",
    "gasPriority": "high"
}
```

{% endtab %}

{% tab title="Sample Response" %}
**With gasPriority (high):**

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "43114",
        "from": "0xa67E9B68c41b0f26184D64C26e0b2B81466E5994",
        "to": "0xb4315e873dBcf96Ffd0acd8EA43f689D8c20fB30",
        "value": "0",
        "gas": "100000",
        "data": "0x2a443fae00000000000000000000000000000000000000000000000000000002540be400000000000000000000000000000000000000000000000000000000000000006400000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000a67e9b68c41b0f26184d64c26e0b2b81466e599400000000000000000000000000000000000000000000000000000000687f0ce7000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000b31f66aa3c1e785363f0875a1b74e27b85fd66c7000000000000000000000000b97ef9ef8734c71904d8002f8b6bc66dd9c48a6e",
        "gasPrice": "37500000000",
        "referenceId": "093c99284535404195176f1481d280f2"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
**With Slippage:**

```json
{
    "dexId": "2100",
    "amountIn": "10000000000",
    "amountOutMin": "100",
    "path": [
        "0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7",
        "0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E"
    ],
    "to": "0xa67E9B68c41b0f26184D64C26e0b2B81466E5994",
    "deadline": "1753156839",
    "from": "0xa67E9B68c41b0f26184D64C26e0b2B81466E5994",
    "gas": "100000",
    "slippage": "6"
}
```

{% endtab %}

{% tab title="Sample Response" %}
**With Slippage:**

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "43114",
        "from": "0xa67E9B68c41b0f26184D64C26e0b2B81466E5994",
        "to": "0xb4315e873dBcf96Ffd0acd8EA43f689D8c20fB30",
        "value": "0",
        "gas": "100000",
        "data": "0x2a443fae00000000000000000000000000000000000000000000000000000002540be400000000000000000000000000000000000000000000000000000000000000005e00000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000a67e9b68c41b0f26184d64c26e0b2b81466e599400000000000000000000000000000000000000000000000000000000687f0ce7000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000b31f66aa3c1e785363f0875a1b74e27b85fd66c7000000000000000000000000b97ef9ef8734c71904d8002f8b6bc66dd9c48a6e",
        "referenceId": "ff871910a2734625bced6749f1d4954f"
    }
}
```

{% endtab %}
{% endtabs %}

### /addliquidity

Add liquidity to a specified pool in a specified DEX.

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

#### Request Body

| Name                                         | Type   | Description                                                                           |
| -------------------------------------------- | ------ | ------------------------------------------------------------------------------------- |
| dexId<mark style="color:red;">\*</mark>      | String | Refer to the [DEX ID](broken://pages/8x8qwIu19Aq8uFsjOXvI) page for details.          |
| tokenA<mark style="color:red;">\*</mark>     | String | Address of the first token being added.                                               |
| tokenB<mark style="color:red;">\*</mark>     | String | Address of the second token being added.                                              |
| amountA<mark style="color:red;">\*</mark>    | String | Desired amount of token A.                                                            |
| amountB<mark style="color:red;">\*</mark>    | String | Desired amount of token B.                                                            |
| amountAMin<mark style="color:red;">\*</mark> | String | Minimum amount of token A.                                                            |
| amountBMin<mark style="color:red;">\*</mark> | String | Minimum amount of token B.                                                            |
| deadline<mark style="color:red;">\*</mark>   | String | Deadline for the transaction to be executed (UNIX Timestamp).                         |
| to<mark style="color:red;">\*</mark>         | String | Address of the recipient of the token.                                                |
| from<mark style="color:red;">\*</mark>       | String | Address of the sender of the token.                                                   |
| gas                                          | String | Maximum gas limit provided by the sender, for the transaction.                        |
| rpc                                          | String | Remote procedural call URL.                                                           |
| gasPriority                                  | String | low, medium, or high.                                                                 |
| slippage                                     | String | <p>Percentage of total value.<br>By default, 1.</p><p>0 <= slippage  value <= 100</p> |
| strategy                                     | String | <p>spotUniform, curve or bidask.</p><p>By default, spotUniform.</p>                   |

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

```json
{
    "dexId": "2100",
    "tokenA": "0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7",
    "tokenB": "0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E",
    "amountA": "10000000000000000",
    "amountB": "1000",
    "amountAMin": "1000000000",
    "amountBMin": "100",
    "to": "0xa67E9B68c41b0f26184D64C26e0b2B81466E5994",
    "deadline": "1706678170",
    "from": "0xa67E9B68c41b0f26184D64C26e0b2B81466E5994",
    "gas": "530000",
    "strategy": "bidask"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "43114",
        "from": "0xa67E9B68c41b0f26184D64C26e0b2B81466E5994",
        "to": "0xb4315e873dBcf96Ffd0acd8EA43f689D8c20fB30",
        "value": "0",
        "gas": "530000",
        "data": "0xa3c7271a0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000b31f66aa3c1e785363f0875a1b74e27b85fd66c7000000000000000000000000b97ef9ef8734c71904d8002f8b6bc66dd9c48a6e0000000000000000000000000000000000000000000000000000000000000005000000000000000000000000000000000000000000000000002386f26fc1000000000000000000000000000000000000000000000000000000000000000003e8000000000000000000000000000000000000000000000000000000003b9aca00000000000000000000000000000000000000000000000000000000000000006400000000000000000000000000000000000000000000000000000000007f4753000000000000000000000000000000000000000000000000000000000000000500000000000000000000000000000000000000000000000000000000000001e0000000000000000000000000000000000000000000000000000000000000036000000000000000000000000000000000000000000000000000000000000004e0000000000000000000000000a67e9b68c41b0f26184d64c26e0b2b81466e5994000000000000000000000000a67e9b68c41b0f26184d64c26e0b2b81466e59940000000000000000000000000000000000000000000000000000000065b9d79a000000000000000000000000000000000000000000000000000000000000000bfffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffbfffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffcfffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffdfffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffeffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000005000000000000000000000000000000000000000000000000000000000000000b00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008e1bc9bf04000000000000000000000000000000000000000000000000000001aa535d3d0c000000000000000000000000000000000000000000000000000002386f26fc10000000000000000000000000000000000000000000000000000002c68af0bb1400000000000000000000000000000000000000000000000000000354a6ba7a1800000000000000000000000000000000000000000000000000000354a6ba7a180000000000000000000000000000000000000000000000000000000000000000000b0000000000000000000000000000000000000000000000000354a6ba7a1800000000000000000000000000000000000000000000000000000354a6ba7a18000000000000000000000000000000000000000000000000000002c68af0bb14000000000000000000000000000000000000000000000000000002386f26fc10000000000000000000000000000000000000000000000000000001aa535d3d0c0000000000000000000000000000000000000000000000000000008e1bc9bf04000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
        "referenceId": "c1e2bf7f2f034181b6f273eeab4f912f"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
**With gasPriority (medium):**

```json
{
    "dexId": "2100",
    "tokenA": "0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7",
    "tokenB": "0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E",
    "amountA": "10000000000000000",
    "amountB": "1000",
    "amountAMin": "1000000000",
    "amountBMin": "100",
    "to": "0xa67E9B68c41b0f26184D64C26e0b2B81466E5994",
    "deadline": "1706678170",
    "from": "0xa67E9B68c41b0f26184D64C26e0b2B81466E5994",
    "gas": "530000",
    "strategy": "bidask",
    "gasPriority": "medium"
}
```

{% endtab %}

{% tab title="Sample Response" %}
**With gasPriority:**

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "43114",
        "from": "0xa67E9B68c41b0f26184D64C26e0b2B81466E5994",
        "to": "0xb4315e873dBcf96Ffd0acd8EA43f689D8c20fB30",
        "value": "0",
        "gas": "530000",
        "data": "0xa3c7271a0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000b31f66aa3c1e785363f0875a1b74e27b85fd66c7000000000000000000000000b97ef9ef8734c71904d8002f8b6bc66dd9c48a6e0000000000000000000000000000000000000000000000000000000000000005000000000000000000000000000000000000000000000000002386f26fc1000000000000000000000000000000000000000000000000000000000000000003e8000000000000000000000000000000000000000000000000000000003b9aca00000000000000000000000000000000000000000000000000000000000000006400000000000000000000000000000000000000000000000000000000007f4753000000000000000000000000000000000000000000000000000000000000000500000000000000000000000000000000000000000000000000000000000001e0000000000000000000000000000000000000000000000000000000000000036000000000000000000000000000000000000000000000000000000000000004e0000000000000000000000000a67e9b68c41b0f26184d64c26e0b2b81466e5994000000000000000000000000a67e9b68c41b0f26184d64c26e0b2b81466e59940000000000000000000000000000000000000000000000000000000065b9d79a000000000000000000000000000000000000000000000000000000000000000bfffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffbfffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffcfffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffdfffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffeffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000005000000000000000000000000000000000000000000000000000000000000000b00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008e1bc9bf04000000000000000000000000000000000000000000000000000001aa535d3d0c000000000000000000000000000000000000000000000000000002386f26fc10000000000000000000000000000000000000000000000000000002c68af0bb1400000000000000000000000000000000000000000000000000000354a6ba7a1800000000000000000000000000000000000000000000000000000354a6ba7a180000000000000000000000000000000000000000000000000000000000000000000b0000000000000000000000000000000000000000000000000354a6ba7a1800000000000000000000000000000000000000000000000000000354a6ba7a18000000000000000000000000000000000000000000000000000002c68af0bb14000000000000000000000000000000000000000000000000000002386f26fc10000000000000000000000000000000000000000000000000000001aa535d3d0c0000000000000000000000000000000000000000000000000000008e1bc9bf04000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
        "gasPrice": "30000000000",
        "referenceId": "d9f09ae10abe4b2a86760b6a2982a742"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
**With Slippage:**

```json
{
    "dexId": "2100",
    "tokenA": "0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7",
    "tokenB": "0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E",
    "amountA": "10000000000000000",
    "amountB": "1000",
    "amountAMin": "1000000000",
    "amountBMin": "100",
    "to": "0xa67E9B68c41b0f26184D64C26e0b2B81466E5994",
    "deadline": "1706678170",
    "from": "0xa67E9B68c41b0f26184D64C26e0b2B81466E5994",
    "gas": "530000",
    "strategy": "bidask",
    "slippage": "5"
}
```

{% endtab %}

{% tab title="Sample Response" %}
**With Slippage:**

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "43114",
        "from": "0xa67E9B68c41b0f26184D64C26e0b2B81466E5994",
        "to": "0xb4315e873dBcf96Ffd0acd8EA43f689D8c20fB30",
        "value": "0",
        "gas": "530000",
        "data": "0xa3c7271a0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000b31f66aa3c1e785363f0875a1b74e27b85fd66c7000000000000000000000000b97ef9ef8734c71904d8002f8b6bc66dd9c48a6e0000000000000000000000000000000000000000000000000000000000000005000000000000000000000000000000000000000000000000002386f26fc1000000000000000000000000000000000000000000000000000000000000000003e800000000000000000000000000000000000000000000000000000000389fd980000000000000000000000000000000000000000000000000000000000000005f00000000000000000000000000000000000000000000000000000000007f4753000000000000000000000000000000000000000000000000000000000000000500000000000000000000000000000000000000000000000000000000000001e0000000000000000000000000000000000000000000000000000000000000036000000000000000000000000000000000000000000000000000000000000004e0000000000000000000000000a67e9b68c41b0f26184d64c26e0b2b81466e5994000000000000000000000000a67e9b68c41b0f26184d64c26e0b2b81466e59940000000000000000000000000000000000000000000000000000000065b9d79a000000000000000000000000000000000000000000000000000000000000000bfffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffbfffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffcfffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffdfffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffeffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000005000000000000000000000000000000000000000000000000000000000000000b00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008e1bc9bf04000000000000000000000000000000000000000000000000000001aa535d3d0c000000000000000000000000000000000000000000000000000002386f26fc10000000000000000000000000000000000000000000000000000002c68af0bb1400000000000000000000000000000000000000000000000000000354a6ba7a1800000000000000000000000000000000000000000000000000000354a6ba7a180000000000000000000000000000000000000000000000000000000000000000000b0000000000000000000000000000000000000000000000000354a6ba7a1800000000000000000000000000000000000000000000000000000354a6ba7a18000000000000000000000000000000000000000000000000000002c68af0bb14000000000000000000000000000000000000000000000000000002386f26fc10000000000000000000000000000000000000000000000000000001aa535d3d0c0000000000000000000000000000000000000000000000000000008e1bc9bf04000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
        "referenceId": "0433a8cfb259438fbac866db02b37c31"
    }
}
```

{% endtab %}
{% endtabs %}

### /removeliquidity

Remove liquidity from a specified pool for a specified DEX.

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

#### Request Body

| Name                                         | Type   | Description                                                                                 |
| -------------------------------------------- | ------ | ------------------------------------------------------------------------------------------- |
| dexId<mark style="color:red;">\*</mark>      | String | Refer to the [DEX ID](broken://pages/8x8qwIu19Aq8uFsjOXvI) page for details.                |
| amountAMin<mark style="color:red;">\*</mark> | String | Minimum amount of Token A.                                                                  |
| deadline<mark style="color:red;">\*</mark>   | String | Deadline for the transaction to be executed (UNIX Timestamp).                               |
| from<mark style="color:red;">\*</mark>       | String | Address of the sender of the token.                                                         |
| gas                                          | String | Maximum gas limit provided by the sender, for the transaction.                              |
| rpc                                          | String | Remote procedural call URL.                                                                 |
| tokenA<mark style="color:red;">\*</mark>     | String | Address of the first token being removed.                                                   |
| tokenB<mark style="color:red;">\*</mark>     | String | Address of the second token being removed.                                                  |
| amountBMin<mark style="color:red;">\*</mark> | String | Minimum amount of Token B.                                                                  |
| gasPriority                                  | String | low, medium, or high.                                                                       |
| binStep<mark style="color:red;">\*</mark>    | String | Difference between two consecutive bins.                                                    |
| ids<mark style="color:red;">\*</mark>        | Array  | Bin IDs that liquidity should be removed from.                                              |
| amounts<mark style="color:red;">\*</mark>    | Array  | LBToken(Liquidity Book Token) amount that should be removed.                                |
| to<mark style="color:red;">\*</mark>         | String | Address of the recipient of the token.                                                      |
| slippage                                     | String | <p>Percentage of total swap value. <br>By default, 1.</p><p>0 <= slippage  value <= 100</p> |

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

```json
{
    "dexId": "2100",
    "tokenA": "0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7",
    "tokenB": "0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E",
    "amountBMin": "150",
    "amountAMin": "9140195223753",
    "to": "0xa67E9B68c41b0f26184D64C26e0b2B81466E5994",
    "deadline": "1705994811",
    "from": "0xa67E9B68c41b0f26184D64C26e0b2B81466E5994",
    "gas": "0",
    "binStep": "20",
    "ids": [
        "8375816",
        "8375817",
        "8375818",
        "8375819",
        "8375820",
        "8375821",
        "8375822",
        "8375823",
        "8375824",
        "8375825",
        "8375826"
    ],
    "amounts": [
        "6125082604576892342340742933771827806208",
        "6125082604576892342340742933771827806208",
        "6125082604576892342340742933771827806208",
        "6125082604576892342340742933771827806208",
        "6092234575456602778057561670181153099728",
        "27680318192948304012362129290692653566283",
        "49451196782276463859932823798226771515026",
        "49649387794231952910105025177550757137373",
        "49747539066384995844387966236176975326734",
        "49845022333457547462772063936365946907208",
        "49759874534344782452838208519883050222759"
    ]
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "43114",
        "from": "0xa67E9B68c41b0f26184D64C26e0b2B81466E5994",
        "to": "0xb4315e873dBcf96Ffd0acd8EA43f689D8c20fB30",
        "value": "0",
        "gas": "0",
        "data": "0xc22159b6000000000000000000000000b31f66aa3c1e785363f0875a1b74e27b85fd66c7000000000000000000000000b97ef9ef8734c71904d8002f8b6bc66dd9c48a6e0000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000008501e16e8c90000000000000000000000000000000000000000000000000000000000000096000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000002a0000000000000000000000000a67e9b68c41b0f26184d64c26e0b2b81466e59940000000000000000000000000000000000000000000000000000000065af6a3b000000000000000000000000000000000000000000000000000000000000000b00000000000000000000000000000000000000000000000000000000007fce0800000000000000000000000000000000000000000000000000000000007fce0900000000000000000000000000000000000000000000000000000000007fce0a00000000000000000000000000000000000000000000000000000000007fce0b00000000000000000000000000000000000000000000000000000000007fce0c00000000000000000000000000000000000000000000000000000000007fce0d00000000000000000000000000000000000000000000000000000000007fce0e00000000000000000000000000000000000000000000000000000000007fce0f00000000000000000000000000000000000000000000000000000000007fce1000000000000000000000000000000000000000000000000000000000007fce1100000000000000000000000000000000000000000000000000000000007fce12000000000000000000000000000000000000000000000000000000000000000b000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000011e749b320370f2ffb725d59b83e134fd000000000000000000000000000000051585b5e27eade350ea520385aa349494b0000000000000000000000000000009152f2111edd2c814572e815769b40169200000000000000000000000000000091e80c44706e125e67a2ac3942edf58bdd0000000000000000000000000000009231e383c6d15f59c343db6e36486aee0e000000000000000000000000000000927b3a1bebb9d6fdc33c4f660035ceaa48000000000000000000000000000000923b2b3d4d8e1fe24bae173e9ca7a884a7",
        "referenceId": "8d0e630e55fd476fb691758eb231a1b6"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
**With gasPriority:**

```json
{
    "dexId": "2100",
    "tokenA": "0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7",
    "tokenB": "0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E",
    "amountBMin": "150",
    "amountAMin": "9140195223753",
    "to": "0xa67E9B68c41b0f26184D64C26e0b2B81466E5994",
    "deadline": "1705994811",
    "from": "0xa67E9B68c41b0f26184D64C26e0b2B81466E5994",
    "gas": "0",
    "gasPriority": "high",
    "binStep": "20",
    "ids": [
        "8375816",
        "8375817",
        "8375818",
        "8375819",
        "8375820",
        "8375821",
        "8375822",
        "8375823",
        "8375824",
        "8375825",
        "8375826"
    ],
    "amounts": [
        "6125082604576892342340742933771827806208",
        "6125082604576892342340742933771827806208",
        "6125082604576892342340742933771827806208",
        "6125082604576892342340742933771827806208",
        "6092234575456602778057561670181153099728",
        "27680318192948304012362129290692653566283",
        "49451196782276463859932823798226771515026",
        "49649387794231952910105025177550757137373",
        "49747539066384995844387966236176975326734",
        "49845022333457547462772063936365946907208",
        "49759874534344782452838208519883050222759"
    ]
}
```

{% endtab %}

{% tab title="Sample Response" %}
**With gasPriority:**

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "43114",
        "from": "0xa67E9B68c41b0f26184D64C26e0b2B81466E5994",
        "to": "0xb4315e873dBcf96Ffd0acd8EA43f689D8c20fB30",
        "value": "0",
        "gas": "0",
        "data": "0xc22159b6000000000000000000000000b31f66aa3c1e785363f0875a1b74e27b85fd66c7000000000000000000000000b97ef9ef8734c71904d8002f8b6bc66dd9c48a6e0000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000008501e16e8c90000000000000000000000000000000000000000000000000000000000000096000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000002a0000000000000000000000000a67e9b68c41b0f26184d64c26e0b2b81466e59940000000000000000000000000000000000000000000000000000000065af6a3b000000000000000000000000000000000000000000000000000000000000000b00000000000000000000000000000000000000000000000000000000007fce0800000000000000000000000000000000000000000000000000000000007fce0900000000000000000000000000000000000000000000000000000000007fce0a00000000000000000000000000000000000000000000000000000000007fce0b00000000000000000000000000000000000000000000000000000000007fce0c00000000000000000000000000000000000000000000000000000000007fce0d00000000000000000000000000000000000000000000000000000000007fce0e00000000000000000000000000000000000000000000000000000000007fce0f00000000000000000000000000000000000000000000000000000000007fce1000000000000000000000000000000000000000000000000000000000007fce1100000000000000000000000000000000000000000000000000000000007fce12000000000000000000000000000000000000000000000000000000000000000b000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000011e749b320370f2ffb725d59b83e134fd000000000000000000000000000000051585b5e27eade350ea520385aa349494b0000000000000000000000000000009152f2111edd2c814572e815769b40169200000000000000000000000000000091e80c44706e125e67a2ac3942edf58bdd0000000000000000000000000000009231e383c6d15f59c343db6e36486aee0e000000000000000000000000000000927b3a1bebb9d6fdc33c4f660035ceaa48000000000000000000000000000000923b2b3d4d8e1fe24bae173e9ca7a884a7",
        "gasPrice": "37500000000",
        "referenceId": "353043762845429e9edf7da9605c3531"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
**With Slippage:**

```json
{
    "dexId": "2100",
    "tokenA": "0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7",
    "tokenB": "0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E",
    "amountBMin": "150",
    "amountAMin": "9140195223753",
    "to": "0xa67E9B68c41b0f26184D64C26e0b2B81466E5994",
    "slippage": "7",
    "deadline": "1705994811",
    "from": "0xa67E9B68c41b0f26184D64C26e0b2B81466E5994",
    "gas": "0",
    "binStep": "20",
    "ids": [
        "8375816",
        "8375817",
        "8375818",
        "8375819",
        "8375820",
        "8375821",
        "8375822",
        "8375823",
        "8375824",
        "8375825",
        "8375826"
    ],
    "amounts": [
        "6125082604576892342340742933771827806208",
        "6125082604576892342340742933771827806208",
        "6125082604576892342340742933771827806208",
        "6125082604576892342340742933771827806208",
        "6092234575456602778057561670181153099728",
        "27680318192948304012362129290692653566283",
        "49451196782276463859932823798226771515026",
        "49649387794231952910105025177550757137373",
        "49747539066384995844387966236176975326734",
        "49845022333457547462772063936365946907208",
        "49759874534344782452838208519883050222759"
    ]
}
```

{% endtab %}

{% tab title="Sample Response" %}
**With Slippage:**

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "43114",
        "from": "0xa67E9B68c41b0f26184D64C26e0b2B81466E5994",
        "to": "0xb4315e873dBcf96Ffd0acd8EA43f689D8c20fB30",
        "value": "0",
        "gas": "0",
        "data": "0xc22159b6000000000000000000000000b31f66aa3c1e785363f0875a1b74e27b85fd66c7000000000000000000000000b97ef9ef8734c71904d8002f8b6bc66dd9c48a6e0000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000007bb2639254a000000000000000000000000000000000000000000000000000000000000008c000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000002a0000000000000000000000000a67e9b68c41b0f26184d64c26e0b2b81466e59940000000000000000000000000000000000000000000000000000000065af6a3b000000000000000000000000000000000000000000000000000000000000000b00000000000000000000000000000000000000000000000000000000007fce0800000000000000000000000000000000000000000000000000000000007fce0900000000000000000000000000000000000000000000000000000000007fce0a00000000000000000000000000000000000000000000000000000000007fce0b00000000000000000000000000000000000000000000000000000000007fce0c00000000000000000000000000000000000000000000000000000000007fce0d00000000000000000000000000000000000000000000000000000000007fce0e00000000000000000000000000000000000000000000000000000000007fce0f00000000000000000000000000000000000000000000000000000000007fce1000000000000000000000000000000000000000000000000000000000007fce1100000000000000000000000000000000000000000000000000000000007fce12000000000000000000000000000000000000000000000000000000000000000b000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000011e749b320370f2ffb725d59b83e134fd000000000000000000000000000000051585b5e27eade350ea520385aa349494b0000000000000000000000000000009152f2111edd2c814572e815769b40169200000000000000000000000000000091e80c44706e125e67a2ac3942edf58bdd0000000000000000000000000000009231e383c6d15f59c343db6e36486aee0e000000000000000000000000000000927b3a1bebb9d6fdc33c4f660035ceaa48000000000000000000000000000000923b2b3d4d8e1fe24bae173e9ca7a884a7",
        "referenceId": "fa40a832c4f947c5aef87e58b579a77a"
    }
}
```

{% endtab %}
{% endtabs %}


# Orca

### /getprice

Returns the swap quotation for the given token pair.

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

#### Query Parameters

| Name                                       | Type   | Description                                                                  |
| ------------------------------------------ | ------ | ---------------------------------------------------------------------------- |
| rpc                                        | String | Remote procedural call URL.                                                  |
| dexId<mark style="color:red;">\*</mark>    | String | Refer to the [DEX ID](broken://pages/8x8qwIu19Aq8uFsjOXvI) page for details. |
| path<mark style="color:red;">\*</mark>     | String | Comma separated values of token addresses whose price is to be fetched.      |
| amountIn<mark style="color:red;">\*</mark> | String | Token amount for which the swap quotation is to be fetched.                  |

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

```json
https://api.expand.network/dex/getprice?path=So11111111111111111111111111111111111111112,EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v&amountIn=100000&dexId=2500
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
  "status": 200,
  "msg": "success",
  "data": {
    "amountIn": "100000",
    "path": [
      "So11111111111111111111111111111111111111112",
      "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"
    ],
    "amountsOut": [
      "100000",
      "16887"
    ]
  }
}
```

{% endtab %}
{% endtabs %}

### /getuserliquidity

Returns the balance of a particular token pair of an account.

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

#### Query Parameters

| Name                                          | Type   | Description                                                              |
| --------------------------------------------- | ------ | ------------------------------------------------------------------------ |
| rpc                                           | String | Remote procedural call URL.                                              |
| dexId<mark style="color:red;">\*</mark>       | String | Refer to [DEX ID](broken://pages/8x8qwIu19Aq8uFsjOXvI) page for details. |
| positionNFT<mark style="color:red;">\*</mark> | String | LP token that represents a position in a pool.                           |

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

```json
https://api.expand.network/dex/getuserliquidity?dexId=2500&positionNFT=45z3G8PxyTuFa9tbr9QMmscGVHvZir4vQK1U5LRKeSQd
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
  "status": 200,
  "msg": "success",
  "data": {
    "positionNFT": "45z3G8PxyTuFa9tbr9QMmscGVHvZir4vQK1U5LRKeSQd",
    "liquidity": "479818718",
    "tokenA": "37396067",
    "tokenB": "60553520"
  }
}
```

{% endtab %}
{% endtabs %}

### /getpoolliquidity

Returns the total liquidity for a specified pool.

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

#### Query Parameters

| Name                                          | Type   | Description                                                              |
| --------------------------------------------- | ------ | ------------------------------------------------------------------------ |
| rpc                                           | String | Remote procedural call URL.                                              |
| poolAddress<mark style="color:red;">\*</mark> | String | Pool address whose liquidity is to be fetched.                           |
| dexId<mark style="color:red;">\*</mark>       | String | Refer to [DEX ID](broken://pages/8x8qwIu19Aq8uFsjOXvI) page for details. |

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

```json
https://api.expand.network/dex/getpoolliquidity?dexId=2500&poolAddress=Hp53XEtt4S8SvPCXarsLSdGfZBuUr5mMmZmX2DRNXQKp
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
  "status": 200,
  "msg": "success",
  "data": {
    "totalLiquidity": "279772744620096455"
  }
}
```

{% endtab %}
{% endtabs %}

### /gettokenliquidity

Returns the individual token liquidity within the specified liquidity pool.

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

#### Query Parameters

| Name                                          | Type   | Description                                                              |
| --------------------------------------------- | ------ | ------------------------------------------------------------------------ |
| rpc                                           | String | Remote procedural call URL.                                              |
| dexId<mark style="color:red;">\*</mark>       | String | Refer to [DEX ID](broken://pages/8x8qwIu19Aq8uFsjOXvI) page for details. |
| poolAddress<mark style="color:red;">\*</mark> | String | Pool address whose token liquidity is to be fetched.                     |

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

```json
https://api.expand.network/dex/gettokenliquidity?dexId=2500&poolAddress=8phK65jxmTPEN158xLgSr4oZvssw9SyTErpNZj3g7px4
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
  "status": 200,
  "msg": "success",
  "data": {
    "SOL": "5322375483983",
    "bSo13r4TkiE4KumL71LsHTPpL2euBYLFx6h9HP3piy1": "22791743147075"
  }
}
```

{% endtab %}
{% endtabs %}

### /swap

Initiate a swap transaction on a specified DEX.

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

#### Request Body

| Name                                       | Type    | Description                                                                                 |
| ------------------------------------------ | ------- | ------------------------------------------------------------------------------------------- |
| rpc                                        | String  | Remote procedural call URL.                                                                 |
| dexId<mark style="color:red;">\*</mark>    | String  | Refer to the [DEX ID](broken://pages/8x8qwIu19Aq8uFsjOXvI) page for details.                |
| path<mark style="color:red;">\*</mark>     | Array   | Comma-separated values of token addresses, inside an array, which needs to be swap.         |
| amountIn<mark style="color:red;">\*</mark> | String  | Amount of token to be swapped.                                                              |
| from<mark style="color:red;">\*</mark>     | String  | Address of the sender of the token.                                                         |
| slippage                                   | String  | <p>Percentage of total swap value. <br>By default, 1.</p><p>0 <= slippage  value <= 100</p> |
| closeWSolAccount                           | Boolean | <p>By default, false.<br>If true, will convert the entire WSOL token to SOL token.</p>      |

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

```json
{
  "dexId": "2500",
  "from": "6r3DSYWNRw437o6cZfe9CnygqoeFDZbnxiqf5xhFMMD9",
  "amountIn": "100000",
  "closeWSolAccount": false,
  "path": [
    "So11111111111111111111111111111111111111112",
    "Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB"
  ]
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "900",
        "from": "6r3DSYWNRw437o6cZfe9CnygqoeFDZbnxiqf5xhFMMD9",
        "to": "whirLbMiicVdio4qvUfM5KAg6Ct8VwpYzGff3uctyCc",
        "data": "AQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAYNVtpl8POZ0xSmnip918JAP2s4C8zuKOSvcufD/BU4AFBepPxHNefL9YwJYgNOb0o4xCm3Lov/fWjGxQTCgIOa0IbZXG8GwNAiiSt7zweHFw1BGCusKj8tC//dDIn7Y+56lMthC2WflKoBh1VmZ4e4IJH/3p3doAciTYfdF4M2+MaYNcB/TmTZaFqUQToaR2z6CMEE1iGBrnHHDUflJ71kYb4adiZd1OmZBusqiSjlYUolJWfwJb6CIMDHQQscLrUR3gPhC53oE8dClmlADPxIvu8CZMrNCAwh+bYGtjhcvKEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIyXJY9OJInxuz0QKRSODYMLWhOZ2v8QhASOe9jb6fhZpajhwAtNSA2GxLWleoIz8sZ6xYm4bCGYbf6MlWJvIpIGm4hX/quBhPtof2NGGMA12sQ53BrrO1WYoPAAAAAAAQbd9uHXZaGT2cvhRs7reawctIXtX1s3kTqM9YV+/wCpDgNoX46QkFPkWBIcZvWnau3HcGqhHIL4qpUqjyt4ean216u9TdRc/dpmjBGy5hSS58hkIHLdaFTeNyBc8pjClQQIBgAFAAoHCwAHAgAFDAIAAACghgEAAAAAAAsBBQERDAsLAAYFBAEDAgICCSr4xp6R4XWHyKCGAQAAAAAAwDYAAAAAAABQOwEAAQAAAAAAAAAAAAAAAQE=",
        "referenceId": "cb4b64b1b54a481e85e87a492da45f49"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
With Slippage:

```json
{
  "dexId": "2500",
  "from": "6r3DSYWNRw437o6cZfe9CnygqoeFDZbnxiqf5xhFMMD9",
  "amountIn": "100000",
  "slippage": "3",
  "path": [
    "So11111111111111111111111111111111111111112",
    "Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB"
  ]
}
```

{% endtab %}

{% tab title="Sample Response" %}
With Slippage:

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "900",
        "from": "6r3DSYWNRw437o6cZfe9CnygqoeFDZbnxiqf5xhFMMD9",
        "to": "whirLbMiicVdio4qvUfM5KAg6Ct8VwpYzGff3uctyCc",
        "data": "AQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAYNVtpl8POZ0xSmnip918JAP2s4C8zuKOSvcufD/BU4AFBepPxHNefL9YwJYgNOb0o4xCm3Lov/fWjGxQTCgIOa0IbZXG8GwNAiiSt7zweHFw1BGCusKj8tC//dDIn7Y+56lMthC2WflKoBh1VmZ4e4IJH/3p3doAciTYfdF4M2+MaYNcB/TmTZaFqUQToaR2z6CMEE1iGBrnHHDUflJ71kYb4adiZd1OmZBusqiSjlYUolJWfwJb6CIMDHQQscLrUR3gPhC53oE8dClmlADPxIvu8CZMrNCAwh+bYGtjhcvKEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIyXJY9OJInxuz0QKRSODYMLWhOZ2v8QhASOe9jb6fhZpajhwAtNSA2GxLWleoIz8sZ6xYm4bCGYbf6MlWJvIpIGm4hX/quBhPtof2NGGMA12sQ53BrrO1WYoPAAAAAAAQbd9uHXZaGT2cvhRs7reawctIXtX1s3kTqM9YV+/wCpDgNoX46QkFPkWBIcZvWnau3HcGqhHIL4qpUqjyt4ealzXN5b59bgz6SPtLOzbsB2VTx+5vVvTvlV5oc8KD4/5wQIBgAFAAoHCwAHAgAFDAIAAACghgEAAAAAAAsBBQERDAsLAAYFBAEDAgICCSr4xp6R4XWHyKCGAQAAAAAAJzUAAAAAAABQOwEAAQAAAAAAAAAAAAAAAQE=",
        "referenceId": "80f7607613fd485389543466c56a532d"
    }
}
```

{% endtab %}
{% endtabs %}

### /addliquidity

Add liquidity to a specified pool in a specified DEX.

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

#### Request Body

| Name                                       | Type   | Description                                                                                      |
| ------------------------------------------ | ------ | ------------------------------------------------------------------------------------------------ |
| rpc                                        | String | Remote procedural call URL.                                                                      |
| dexId<mark style="color:red;">\*</mark>    | String | Refer to the [DEX ID](broken://pages/8x8qwIu19Aq8uFsjOXvI) page for details.                     |
| path<mark style="color:red;">\*</mark>     | Array  | Comma-separated values of token addresses, inside an array, which needs to be added to the pool. |
| amountIn<mark style="color:red;">\*</mark> | Array  | Comma-separated values of tokens amount, inside an array, which needs to be added to the pool.   |
| from<mark style="color:red;">\*</mark>     | String | Address of the sender of the token.                                                              |
| slippage                                   | String | <p>Percentage of total swap value. <br>By default, 1.</p><p>0 <= slippage  value <= 100</p>      |

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

```json
{
  "dexId": "2500",
  "from": "6r3DSYWNRw437o6cZfe9CnygqoeFDZbnxiqf5xhFMMD9",
  "amountIn": [
    "100000",
    "100000"
  ],
  "path": [
    "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
    "Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB"
  ]
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "900",
        "from": "6r3DSYWNRw437o6cZfe9CnygqoeFDZbnxiqf5xhFMMD9",
        "to": "whirLbMiicVdio4qvUfM5KAg6Ct8VwpYzGff3uctyCc",
        "positionNFT": "4jdtkCCzy5szqqPy6EyRWBcRpKnA1B1cowLg4foCSdK2",
        "data": "AgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAFEFbaZfDzmdMUpp4qfdfCQD9rOAvM7ijkr3Lnw/wVOABQsfOiFyLplqXsjNd+Wxabz0hda685KctfQogjS1BX7zM16Ihsf5MisfzTwyjrjLU1xRNe+FMjL81KQs/iHPE+gjaKd+ulpv4PyVjdyfS4prEPvBs1A7XYgTG+s9RAdMMTN38rOZV2g16P6dKC0TizYH5zzQ5D+cr15A4i7nQ1F304fteoFh4Sj2MAndOGy1mxcxXcJpSqJC9rsam5rwfmTUMJ0joDUVWgc6VQWgLF0mLNEwI4K4U+oMZS6ImrDniUXqT8RzXny/WMCWIDTm9KOMQpty6L/31oxsUEwoCDmtBuJLJgYS6zQsoqLNnXe3on2he8XZI6A+Z0DaVUD6lnHbBYbGeABj5Nz1geq2VgDysQBfnSllJWDi2miS9iGiDutIrDOB2TpEph6dRhXOaiTlU9G6GC/0jZjEo5RTGQtcUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIyXJY9OJInxuz0QKRSODYMLWhOZ2v8QhASOe9jb6fhZBqfVFxksXFEhjMlMPUrxf1ja7gibof1E49vZigAAAAAG3fbh12Whk9nL4UbO63msHLSF7V9bN5E6jPWFfv8AqQ4DaF+OkJBT5FgSHGb1p2rtx3BqoRyC+KqVKo8reHmpYWUWqSghGo7MghMBGUb6A9w/JJrAfOfIZqGyAK3HMi0CDwoAAAQBBgMOCw0MEYeAL00PmPAx/gns//8jDQAADwsDDgAEBgoHBQIJCCgunPN2Dc37sovaCQAAAAAAAAAAAAAAAACghgEAAAAAAJ04AgAAAAAA",
        "additionalSigners": "HQoJnK8oHeaGvE8jRmzCn3nr3qnabwpirZvxhm5L7aau9K3QvTYJaa53vHYsGTGYogWHMz8yyNBQ9cPP28h8Gbk",
        "referenceId": "ca006bb595674902992771a1c11d7870"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
With Slippage:

```json
{
  "dexId": "2500",
  "from": "6r3DSYWNRw437o6cZfe9CnygqoeFDZbnxiqf5xhFMMD9",
  "amountIn": [
    "100000",
    "100000"
  ],
  "slippage": "3",
  "path": [
    "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
    "Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB"
  ]
}
```

{% endtab %}

{% tab title="Sample Response" %}
With Slippage:

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "900",
        "from": "6r3DSYWNRw437o6cZfe9CnygqoeFDZbnxiqf5xhFMMD9",
        "to": "whirLbMiicVdio4qvUfM5KAg6Ct8VwpYzGff3uctyCc",
        "positionNFT": "3wXUwQEapeTzAEygEwXQYfznV18MrSH1nNdAbPbNBvx4",
        "data": "AgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAFEFbaZfDzmdMUpp4qfdfCQD9rOAvM7ijkr3Lnw/wVOABQprbpHI1HlJAfAvlzhf5X8F379Qq5HbyvyFRyiiDrLoArrzQLVimeA2MfkJGrxaTpxa2Lcbqq9l9LtYVeGu/XjTXoiGx/kyKx/NPDKOuMtTXFE174UyMvzUpCz+Ic8T6CNop366Wm/g/JWN3J9LimsQ+8GzUDtdiBMb6z1EB0wxM4fteoFh4Sj2MAndOGy1mxcxXcJpSqJC9rsam5rwfmTUlTBtXyJncetZwvOL5Q4lg3rryxl7FTox0RM2HE6FbYXqT8RzXny/WMCWIDTm9KOMQpty6L/31oxsUEwoCDmtBuJLJgYS6zQsoqLNnXe3on2he8XZI6A+Z0DaVUD6lnHbBYbGeABj5Nz1geq2VgDysQBfnSllJWDi2miS9iGiDutIrDOB2TpEph6dRhXOaiTlU9G6GC/0jZjEo5RTGQtcUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIyXJY9OJInxuz0QKRSODYMLWhOZ2v8QhASOe9jb6fhZBqfVFxksXFEhjMlMPUrxf1ja7gibof1E49vZigAAAAAG3fbh12Whk9nL4UbO63msHLSF7V9bN5E6jPWFfv8AqQ4DaF+OkJBT5FgSHGb1p2rtx3BqoRyC+KqVKo8reHmpDXh+26+mRYSCx+2MZ2XUylWjMc5Xo/bYBsIYVIzSUswCDwoAAAIBBgQOCw0MEYeAL00PmPAx/wns//8jDQAADwsEDgACBgoHBQMJCCgunPN2Dc37sovaCQAAAAAAAAAAAAAAAABYkgEAAAAAAKtJAgAAAAAA",
        "additionalSigners": "4wtzp48yxPTbPM9ZLyse2mbZWk7s3KnCwNsdyHRcKUJYpoWMEU98z3fjR1KasCVrqwAfC9necJz11zeHCA4NASRu",
        "referenceId": "54ac39351ee94b4fa312025fe0208fdb"
    }
}
```

{% endtab %}
{% endtabs %}

### /removeliquidity

Remove liquidity from a specified pool for a specified DEX.

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

#### Request Body

| Name                                          | Type   | Description                                                                                      |
| --------------------------------------------- | ------ | ------------------------------------------------------------------------------------------------ |
| rpc                                           | String |                                                                                                  |
| dexId<mark style="color:red;">\*</mark>       | String | Refer to the [DEX ID](broken://pages/8x8qwIu19Aq8uFsjOXvI) page for details.                     |
| path<mark style="color:red;">\*</mark>        | Array  | Comma-separated values of token addresses, inside an array, which needs to be added to the pool. |
| from<mark style="color:red;">\*</mark>        | String | Address of the sender of the token.                                                              |
| liquidity<mark style="color:red;">\*</mark>   | String | Total amount of liquidity to be removed from the given pool.                                     |
| positionNFT<mark style="color:red;">\*</mark> | String | LP token that represents a position in a pool.                                                   |
| Slippage                                      | String | Percentage of total value. By default, 1. 0 <= slippage value <= 10                              |

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

```json
{
    "dexId": "2500",
    "from": "6r3DSYWNRw437o6cZfe9CnygqoeFDZbnxiqf5xhFMMD9",
    "liquidity": "16056",
    "positionNFT": "2mMzQ1s29HkC2b5VWiwWdciy7TUo2jx5BV1F2aXNYA2q",
    "path": [
        "So11111111111111111111111111111111111111112",
        "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"
    ]
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "900",
        "from": "6r3DSYWNRw437o6cZfe9CnygqoeFDZbnxiqf5xhFMMD9",
        "to": "whirLbMiicVdio4qvUfM5KAg6Ct8VwpYzGff3uctyCc",
        "data": "AQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAMMVtpl8POZ0xSmnip918JAP2s4C8zuKOSvcufD/BU4AFAaOPm9IhrjvgNHo0MUbw17gpJGi/+43JHcSsJDP4fDVhZflXLFqWqlAt1REFSiam0ljvfB1tbBruEpGRTcUQIyh5IoWbAxpqPocPBaisXfUtRflvLedpwmqb4un2MOUqWyNpDX0HWNHV2LiVDOx6m018ea6P+1xroNvWKhmDeTW7SKwzgdk6RKYenUYVzmok5VPRuhgv9I2YxKOUUxkLXFvhp2Jl3U6ZkG6yqJKOVhSiUlZ/AlvoIgwMdBCxwutRG/QeYuOV6j2Wh+LxfGuroGHM1G+pzDBJb3SjDNuW8sCshN8kM4mDvkqFswl7r0C8lXEQjSiawAs2jfF11Edc96m+b82m2P2SiTZVAfxwv5FACLrsi3Xw6KU3bdnFw5RkgG3fbh12Whk9nL4UbO63msHLSF7V9bN5E6jPWFfv8AqQ4DaF+OkJBT5FgSHGb1p2rtx3BqoRyC+KqVKo8reHmpW1E7mSCPKy8b5yzr/9AjdhRJM/k2snOETZFMGiMrVOIBCwsECgABCQYFCAIHAyigJtBvaFssAbg+AAAAAAAAAAAAAAAAAAA1JAAAAAAAAN8DAAAAAAAA",
        "referenceId": "ab5a5b4f948b4080a6eec68b634e20f6"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
With Slippage:

```json
{
    "dexId": "2500",
    "from": "6r3DSYWNRw437o6cZfe9CnygqoeFDZbnxiqf5xhFMMD9",
    "liquidity": "16056",
    "positionNFT": "2mMzQ1s29HkC2b5VWiwWdciy7TUo2jx5BV1F2aXNYA2q",
    "path": [
        "So11111111111111111111111111111111111111112",
        "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"
    ],
    "slippage": "10"
}
```

{% endtab %}

{% tab title="Sample Response" %}
With Slippage:

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "900",
        "from": "6r3DSYWNRw437o6cZfe9CnygqoeFDZbnxiqf5xhFMMD9",
        "to": "whirLbMiicVdio4qvUfM5KAg6Ct8VwpYzGff3uctyCc",
        "data": "AQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAMMVtpl8POZ0xSmnip918JAP2s4C8zuKOSvcufD/BU4AFAaOPm9IhrjvgNHo0MUbw17gpJGi/+43JHcSsJDP4fDVhZflXLFqWqlAt1REFSiam0ljvfB1tbBruEpGRTcUQIyh5IoWbAxpqPocPBaisXfUtRflvLedpwmqb4un2MOUqWyNpDX0HWNHV2LiVDOx6m018ea6P+1xroNvWKhmDeTW7SKwzgdk6RKYenUYVzmok5VPRuhgv9I2YxKOUUxkLXFvhp2Jl3U6ZkG6yqJKOVhSiUlZ/AlvoIgwMdBCxwutRG/QeYuOV6j2Wh+LxfGuroGHM1G+pzDBJb3SjDNuW8sCshN8kM4mDvkqFswl7r0C8lXEQjSiawAs2jfF11Edc96m+b82m2P2SiTZVAfxwv5FACLrsi3Xw6KU3bdnFw5RkgG3fbh12Whk9nL4UbO63msHLSF7V9bN5E6jPWFfv8AqQ4DaF+OkJBT5FgSHGb1p2rtx3BqoRyC+KqVKo8reHmptQSzx3cbgGID+WQ2Ral+AmW46xBRwR7mKSXA/VDNV0kBCwsECgABCQYFCAIHAyigJtBvaFssAbg+AAAAAAAAAAAAAAAAAADqIAAAAAAAAIQDAAAAAAAA",
        "referenceId": "e520830924b840b792dd53f33efd9a41"
    }
}
```

{% endtab %}
{% endtabs %}


# Raydium

Raydium is a decentralized exchange built on the Solana Blockchain.

### Supported Chains

Available on **Solana**

### Available Endpoints:

*Click on the endpoint to jump to the section with full details*

* [**/getprice**](#getprice) <mark style="color:blue;">`GET`</mark> - Returns the swap quotation for a given token pair on Raydium AMM
* [**/getuserliquidity**](#getuserliquidity) <mark style="color:blue;">`GET`</mark> - Returns the balance of a particular token pair of an account.&#x20;
* [**/getpoolliquidity**](#getpoolliquidity) <mark style="color:blue;">`GET`</mark> - Returns the total liquidity for a specified pool.
* [**/gettokenliquidity**](#gettokenliquidity) <mark style="color:blue;">`GET`</mark> - Returns the individual token liquidity within the specified liquidity pool.
* [**/swap**](#swap) <mark style="color:green;">`POST`</mark> - Initiate a swap transaction on a specified DEX.&#x20;
* [**/addliquidity**](#addliquidity) <mark style="color:green;">`POST`</mark> - Add liquidity to a specified pool in a specified DEX.&#x20;
* [**/removeliquidity**](#removeliquidity) <mark style="color:green;">`POST`</mark> - Remove liquidity from a specified pool in a specified DEX.&#x20;

*Also see* [Error Handling Details](#error-handling-details)

### DEX IDs

Please use DEX ID <mark style="color:orange;">**2700**</mark> for Raydium.\
\
See the [DEX ID page](broken://pages/8x8qwIu19Aq8uFsjOXvI) for a complete list of DEX IDs.

## Endpoint Details

### /getprice

Returns the swap quotation for the given token pair.

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

#### Query Parameters

| Name                                       | Type   | Description                                                                  |
| ------------------------------------------ | ------ | ---------------------------------------------------------------------------- |
| rpc                                        | String | Remote procedural call URL.                                                  |
| dexId<mark style="color:red;">\*</mark>    | String | Refer to the [DEX ID](broken://pages/8x8qwIu19Aq8uFsjOXvI) page for details. |
| path<mark style="color:red;">\*</mark>     | String | Comma separated values of token addresses whose price is to be fetched.      |
| amountIn<mark style="color:red;">\*</mark> | String | Token amount for which the swap quotation is to be fetched.                  |

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

```
https://api.expand.network/dex/getprice?dexId=2700&path=So11111111111111111111111111111111111111112,EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v&amountIn=1000000000000000
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "amountIn": "10000000000",
        "path": [
            "So11111111111111111111111111111111111111112",
            "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"
        ],
        "amountsOut": [
            "10000000000",
            "1261071113"
        ]
    }
}
```

{% endtab %}
{% endtabs %}

[back to top](#endpoints-available)

### /getuserliquidity

Returns the balance of a particular token pair of an account.

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

#### Query Parameters

| Name                                          | Type   | Description                                                              |
| --------------------------------------------- | ------ | ------------------------------------------------------------------------ |
| rpc                                           | String | Remote procedural call URL.                                              |
| dexId<mark style="color:red;">\*</mark>       | String | Refer to [DEX ID](broken://pages/8x8qwIu19Aq8uFsjOXvI) page for details. |
| poolAddress<mark style="color:red;">\*</mark> | String | Pool address whose liquidity is to be fetched.                           |
| address<mark style="color:red;">\*</mark>     | String | Public address of liquidity provider.                                    |

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

```
https://api.expand.network/dex/getuserliquidity?dexId=2700&poolAddress=58oQChx4yWmvKdwLLZzBi4ChoCc2fqCUWBkwMihLYQo2&address=DgbCWnbXg43nmeiAveMCkUUPEpAr3rZo3iop3TyP6S63
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "pairAddress": "58oQChx4yWmvKdwLLZzBi4ChoCc2fqCUWBkwMihLYQo2",
        "liquidity": "34665717201069",
        "tokenA": "18456761489485",
        "tokenB": "2508924971865"
    }
}
```

{% endtab %}
{% endtabs %}

[back to top](#endpoints-available)

### /getpoolliquidity

Returns the total liquidity for a specified pool.

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

#### Query Parameters

| Name                                          | Type   | Description                                                              |
| --------------------------------------------- | ------ | ------------------------------------------------------------------------ |
| rpc                                           | String | Remote procedural call URL.                                              |
| poolAddress<mark style="color:red;">\*</mark> | String | Pool address whose liquidity is to be fetched.                           |
| dexId<mark style="color:red;">\*</mark>       | String | Refer to [DEX ID](broken://pages/8x8qwIu19Aq8uFsjOXvI) page for details. |

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

```
https://api.expand.network/dex/getpoolliquidity?dexId=2700&poolAddress=58oQChx4yWmvKdwLLZzBi4ChoCc2fqCUWBkwMihLYQo2
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "totalLiquidity": "45961012710"
    }
}
```

{% endtab %}
{% endtabs %}

[back to top](#endpoints-available)

### /gettokenliquidity

Returns the individual token liquidity within the specified liquidity pool.

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

#### Query Parameters

| Name                                          | Type   | Description                                                              |
| --------------------------------------------- | ------ | ------------------------------------------------------------------------ |
| rpc                                           | String | Remote procedural call URL.                                              |
| dexId<mark style="color:red;">\*</mark>       | String | Refer to [DEX ID](broken://pages/8x8qwIu19Aq8uFsjOXvI) page for details. |
| poolAddress<mark style="color:red;">\*</mark> | String | Pool address whose token liquidity is to be fetched.                     |

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

```
https://api.expand.network/dex/gettokenliquidity?dexId=2700&poolAddress=58oQChx4yWmvKdwLLZzBi4ChoCc2fqCUWBkwMihLYQo2
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "WSOL": "733843263201",
        "USDC": "294556177599"
    }
}
```

{% endtab %}
{% endtabs %}

[back to top](#endpoints-available)

### /swap

Initiate a swap transaction on a specified DEX.

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

#### Request Body

| Name                                       | Type   | Description                                                                                 |
| ------------------------------------------ | ------ | ------------------------------------------------------------------------------------------- |
| rpc                                        | String | Remote procedural call URL.                                                                 |
| dexId<mark style="color:red;">\*</mark>    | String | Refer to the [DEX ID](broken://pages/8x8qwIu19Aq8uFsjOXvI) page for details.                |
| path<mark style="color:red;">\*</mark>     | Array  | Comma-separated values of token addresses, inside an array, which needs to be swap.         |
| amountIn<mark style="color:red;">\*</mark> | String | Amount of token to be swapped.                                                              |
| from<mark style="color:red;">\*</mark>     | String | Address of the sender of the token.                                                         |
| slippage                                   | String | <p>Percentage of total swap value. <br>By default, 1.</p><p>0 <= slippage  value <= 100</p> |

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

```json
{
    "dexId": "2700",
    "from": "5tzFkiKscXHK5ZXCGbXZxdw7gTjjD1mBwuoFbhUvuAi9",
    "amountIn": "1000000000",
    "path": [
        "So11111111111111111111111111111111111111112",
        "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"
    ]
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "900",
        "from": "5tzFkiKscXHK5ZXCGbXZxdw7gTjjD1mBwuoFbhUvuAi9",
        "to": "675kPX9MHTjS2zt1qfr1NYHuzeLXfQM9H24wFSUt1Mp8",
        "data": "AQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAQAHFUjAG1BZAFRV2dywxrzs3LT7Wy6rwamoK1c5K6qkDwTmcmHVW2tZXZTG37F2awg7OCJoV1XfJE6cAN6yYjy35kw9bkcuZ6RuprS9C6ud/TXitMcvHW1Zwuq5XJQlc60i8fkvOQ/5YJ6K1De7jkwfGqQ6wF0kMIzKd96FEsVQkpLTq+Q8fB4h6qb5fIvTVeIb0SeWdHVsHI4QbG5xK6EW2XC4cOEt03mJFWHS6fqPJkMYNOtzby8k/CoqTf8f1dyk3/LLubdg7dsYVwYwMGOtM9e1cpbqAtTgM14xzq+kzELdasTDzvqfGb9UyNwPXk0c7uUyfSZIKynSsTy6pDRHIY1GUnlJ4KemWfiq3Ia8U8x8QkaaF3Zam61isbBbyGi17sm+ubFtGKgnOXbvibf96Ersm6rKDbFz24/aSuDeR4o0axAyMcl1BQzsjabeQDV8m8pg756PMxZaJVZlZSqCUzuoS7ZGYkZ4HXqa2rhYi6hrKszlE1jIRPVETkBkCHX9WkydmX0uxDvcDSNiac+w0IORr9ED/Y+9Y0U/9YtuI6kg3sTeRGTwuXxew5/kivghLMd/7RlS2oFJdI1UTmJL6wADBkZv5SEXMv/srbpyw5vnvIzlu8X3EmssQ5s6QAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABt324ddloZPZy+FGzut5rBy0he1fWzeROoz1hX7/AKkGm4hX/quBhPtof2NGGMA12sQ53BrrO1WYoPAAAAAAAUvZScQ2AsM/IHeQ7RajUkyhuZdc8SGiqQz/7H34torNQVewWA8xxfzkSmJYLbz5147nWUOghKOTs1A2jSKJkwiqWjHLAguwAphcqSmQgXGUD+Y1y3bpnOT7iAVCi7glSrCA6a7N2uCcmhY5fiGxleqH8LpAl9H6RuPGImQPWpSfBg4ACQMA4fUFAAAAAA4ABQLAJwkADwIAAXwDAAAASMAbUFkAVFXZ3LDGvOzctPtbLqvBqagrVzkrqqQPBOYgAAAAAAAAADhOYVVMNjNzOUxuVTZqcEVUVTU3cmIycUhGRXRvb0Rq8Oe5OwAAAAClAAAAAAAAAAbd9uHXZaGT2cvhRs7reawctIXtX1s3kTqM9YV+/wCpEAQBEQAVAQESEhACEwMEBQYWBwgJCgsMFAENABEJAMqaOwAAAAB7CVMIAAAAABADAQAAAQkBGY8fTDpFImPUE7LNF+vLwaDliHNk5iYaEqgXkuoWWj4AAgUL",
        "referenceId": "7f3a8c65a33c4109ab175b7d8b6d1c15"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
With Slippage:

```json
{
    "dexId": "2700",
    "from": "5tzFkiKscXHK5ZXCGbXZxdw7gTjjD1mBwuoFbhUvuAi9",
    "amountIn": "1000000000",
    "path": [
        "So11111111111111111111111111111111111111112",
        "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"
    ],
    "slippage": "10"
}
```

{% endtab %}

{% tab title="Sample Response" %}
With Slippage:

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "900",
        "from": "5tzFkiKscXHK5ZXCGbXZxdw7gTjjD1mBwuoFbhUvuAi9",
        "to": "675kPX9MHTjS2zt1qfr1NYHuzeLXfQM9H24wFSUt1Mp8",
        "data": "AQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAQAHFUjAG1BZAFRV2dywxrzs3LT7Wy6rwamoK1c5K6qkDwTm/bKkuSbxgb6e6y0kykszqK4sgB2125CxqMqOVfgmQgE9bkcuZ6RuprS9C6ud/TXitMcvHW1Zwuq5XJQlc60i8fkvOQ/5YJ6K1De7jkwfGqQ6wF0kMIzKd96FEsVQkpLTq+Q8fB4h6qb5fIvTVeIb0SeWdHVsHI4QbG5xK6EW2XC4cOEt03mJFWHS6fqPJkMYNOtzby8k/CoqTf8f1dyk3/LLubdg7dsYVwYwMGOtM9e1cpbqAtTgM14xzq+kzELdasTDzvqfGb9UyNwPXk0c7uUyfSZIKynSsTy6pDRHIY1GUnlJ4KemWfiq3Ia8U8x8QkaaF3Zam61isbBbyGi17sm+ubFtGKgnOXbvibf96Ersm6rKDbFz24/aSuDeR4o0axAyMcl1BQzsjabeQDV8m8pg756PMxZaJVZlZSqCUzuoS7ZGYkZ4HXqa2rhYi6hrKszlE1jIRPVETkBkCHX9WkydmX0uxDvcDSNiac+w0IORr9ED/Y+9Y0U/9YtuI6kg3sTeRGTwuXxew5/kivghLMd/7RlS2oFJdI1UTmJL6wADBkZv5SEXMv/srbpyw5vnvIzlu8X3EmssQ5s6QAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABt324ddloZPZy+FGzut5rBy0he1fWzeROoz1hX7/AKkGm4hX/quBhPtof2NGGMA12sQ53BrrO1WYoPAAAAAAAUvZScQ2AsM/IHeQ7RajUkyhuZdc8SGiqQz/7H34torNQVewWA8xxfzkSmJYLbz5147nWUOghKOTs1A2jSKJkwiqWjHLAguwAphcqSmQgXGUD+Y1y3bpnOT7iAVCi7glSkX6ZkOoLM2xLL0WaXoO4tYiUaKoYYA1gJFt7ZnCdIpcBg4ACQMA4fUFAAAAAA4ABQLAJwkADwIAAXwDAAAASMAbUFkAVFXZ3LDGvOzctPtbLqvBqagrVzkrqqQPBOYgAAAAAAAAADhaNUJZREs4djFiVlJ0QVdncnVNZG12c2czTmR2c05m8Oe5OwAAAAClAAAAAAAAAAbd9uHXZaGT2cvhRs7reawctIXtX1s3kTqM9YV+/wCpEAQBEQAVAQESEhACEwMEBQYWBwgJCgsMFAENABEJAMqaOwAAAACl3lIIAAAAABADAQAAAQkBGY8fTDpFImPUE7LNF+vLwaDliHNk5iYaEqgXkuoWWj4AAgUL",
        "referenceId": "a3e868e4f5334ae38883584ffa44d798"
    }
}
```

{% endtab %}
{% endtabs %}

[back to top](#endpoints-available)

### /addliquidity

Add liquidity to a specified pool in a specified DEX.

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

#### Request Body

| Name                                       | Type   | Description                                                                                      |
| ------------------------------------------ | ------ | ------------------------------------------------------------------------------------------------ |
| rpc                                        | String | Remote procedural call URL.                                                                      |
| dexId<mark style="color:red;">\*</mark>    | String | Refer to the [DEX ID](broken://pages/8x8qwIu19Aq8uFsjOXvI) page for details.                     |
| path<mark style="color:red;">\*</mark>     | Array  | Comma-separated values of token addresses, inside an array, which needs to be added to the pool. |
| amountIn<mark style="color:red;">\*</mark> | Array  | Comma-separated values of tokens amount, inside an array, which needs to be added to the pool.   |
| from<mark style="color:red;">\*</mark>     | String | Address of the sender of the token.                                                              |
| slippage                                   | String | <p>Percentage of total swap value. <br>By default, 1.</p><p>0 <= slippage  value <= 100</p>      |

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

```json
{
    "amountIn": [
        "100000000",
        "1000000"
    ],
    "from": "3CpV6SbiX65BmZ8g3Bx7X1uMcWBueHxrpYbVrL1E5y8J",
    "path": [
        "7BgBvyjrZX1YKz4oh9mjb8ZScatkkwb8DzFx7LoiVkM3",
        "So11111111111111111111111111111111111111112"
    ],
    "dexId": "2700"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "900",
        "from": "3CpV6SbiX65BmZ8g3Bx7X1uMcWBueHxrpYbVrL1E5y8J",
        "to": "675kPX9MHTjS2zt1qfr1NYHuzeLXfQM9H24wFSUt1Mp8",
        "data": "AQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAoTIL50GRZwGAaYW2Ao2FL43oJs0DlBxBj1Xme/4qVIATdD3P/t/DO1pzBrpS1xaaRywxcQdnuxSLl5MSIJSjU1AFDGXbEdOCsVyMfYSqKnNDywUM5i/EVEalaBU8b5grmMZm+2K/rD9/2xMclVb8Zt49BXP5W7D0uksP0M/cC4iy55LX6CCXZG8PqIMbiPxAkbA4R7w8nT6e6K0MZkNXzXII/HjJfNHnzvp/+optMcHs5MT2x2zZSH1R/JCX2iowFJ6Cx4E0HBtuxRtPKIX/F2wY1mGhDFnGq1tMprzBotlvfqd9VDlQaPc+tsni54IZf8WjJ8Rp3GVEDMlYIHuBVlqeqYDBUH0Q2ehyn8j7XvMJPvhdyScu14ooXvNGFBLzKrAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBV7BYDzHF/ORKYlgtvPnXjudZQ6CEo5OzUDaNIomTCEvZScQ2AsM/IHeQ7RajUkyhuZdc8SGiqQz/7H34torNWFsbWV7tFM88jou9VJPCjTaxuXC2wV2EzoN09RDjoA99ThHpEJdZ0Ip9+Dv+3xLYI5YIL2KD6Tj3kfeX/5WANAMGRm/lIRcy/+ytunLDm+e8jOW7xfcSayxDmzpAAAAA1rGv5a09TO8jPWu0n0e1SFuTVywy5mjetL7AzfLVTMoGm4hX/quBhPtof2NGGMA12sQ53BrrO1WYoPAAAAAAAQan1RcZLFxRIYzJTD1K8X9Y2u4Im6H9ROPb2YoAAAAABt324ddloZPZy+FGzut5rBy0he1fWzeROoz1hX7/AKlFlVA+AqmYQjqsF8ikOiqSc4HU0az7Q+328AdG53KC0QYOAAkDAOH1BQAAAAAOAAUCwCcJAAkCAAh8AwAAACC+dBkWcBgGmFtgKNhS+N6CbNA5QcQY9V5nv+KlSAE3IAAAAAAAAABIQ1NDR0t1R013NFoxUHZnRlBlM2g5TmhQTjFwN05TWaMmIQAAAAAApQAAAAAAAAAG3fbh12Whk9nL4UbO63msHLSF7V9bN5E6jPWFfv8AqRIECBAAEQEBCw4SBQoPBgIEAQwHCAMADRkDAOH1BQAAAACzCAIAAAAAAAAAAAAAAAAAEgMIAAABCQ==",
        "referenceId": "34c563a373284101871473a7c58509c8"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
With Slippage:

```json
{
    "amountIn": [
        "100000000",
        "1000000"
    ],
    "from": "3CpV6SbiX65BmZ8g3Bx7X1uMcWBueHxrpYbVrL1E5y8J",
    "path": [
        "7BgBvyjrZX1YKz4oh9mjb8ZScatkkwb8DzFx7LoiVkM3",
        "So11111111111111111111111111111111111111112"
    ],
    "slippage": "10",
    "dexId": "2700"
}
```

{% endtab %}

{% tab title="Sample Response" %}
With Slippage:

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "900",
        "from": "3CpV6SbiX65BmZ8g3Bx7X1uMcWBueHxrpYbVrL1E5y8J",
        "to": "675kPX9MHTjS2zt1qfr1NYHuzeLXfQM9H24wFSUt1Mp8",
        "data": "AQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAoTIL50GRZwGAaYW2Ao2FL43oJs0DlBxBj1Xme/4qVIATdD3P/t/DO1pzBrpS1xaaRywxcQdnuxSLl5MSIJSjU1AFDGXbEdOCsVyMfYSqKnNDywUM5i/EVEalaBU8b5grmMZm+2K/rD9/2xMclVb8Zt49BXP5W7D0uksP0M/cC4iy55LX6CCXZG8PqIMbiPxAkbA4R7w8nT6e6K0MZkNXzXII/HjJfNHnzvp/+optMcHs5MT2x2zZSH1R/JCX2iowFJ6Cx4E0HBtuxRtPKIX/F2wY1mGhDFnGq1tMprzBotlvfqd9VDlQaPc+tsni54IZf8WjJ8Rp3GVEDMlYIHuBVlqeqYDBUH0Q2ehyn8j7XvMJPvhdyScu14ooXvNGFBLzKrAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBV7BYDzHF/ORKYlgtvPnXjudZQ6CEo5OzUDaNIomTCEvZScQ2AsM/IHeQ7RajUkyhuZdc8SGiqQz/7H34torNWFsbWV7tFM88jou9VJPCjTaxuXC2wV2EzoN09RDjoA99ThHpEJdZ0Ip9+Dv+3xLYI5YIL2KD6Tj3kfeX/5WANAMGRm/lIRcy/+ytunLDm+e8jOW7xfcSayxDmzpAAAAA1rGv5a09TO8jPWu0n0e1SFuTVywy5mjetL7AzfLVTMoGm4hX/quBhPtof2NGGMA12sQ53BrrO1WYoPAAAAAAAQan1RcZLFxRIYzJTD1K8X9Y2u4Im6H9ROPb2YoAAAAABt324ddloZPZy+FGzut5rBy0he1fWzeROoz1hX7/AKlFlVA+AqmYQjqsF8ikOiqSc4HU0az7Q+328AdG53KC0QYOAAkDAOH1BQAAAAAOAAUCwCcJAAkCAAh8AwAAACC+dBkWcBgGmFtgKNhS+N6CbNA5QcQY9V5nv+KlSAE3IAAAAAAAAABIQ1NDR0t1R013NFoxUHZnRlBlM2g5TmhQTjFwN05TWaMmIQAAAAAApQAAAAAAAAAG3fbh12Whk9nL4UbO63msHLSF7V9bN5E6jPWFfv8AqRIECBAAEQEBCw4SBQoPBgIEAQwHCAMADRkDAOH1BQAAAACzCAIAAAAAAAAAAAAAAAAAEgMIAAABCQ==",
        "referenceId": "34c563a373284101871473a7c58509c8"
    }
}
```

{% endtab %}
{% endtabs %}

[back to top](#endpoints-available)

### /removeliquidity

Remove liquidity from a specified pool for a specified DEX.

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

#### Request Body

| Name                                          | Type   | Description                                                                                      |
| --------------------------------------------- | ------ | ------------------------------------------------------------------------------------------------ |
| rpc                                           | String |                                                                                                  |
| dexId<mark style="color:red;">\*</mark>       | String | Refer to the [DEX ID](broken://pages/8x8qwIu19Aq8uFsjOXvI) page for details.                     |
| path<mark style="color:red;">\*</mark>        | Array  | Comma-separated values of token addresses, inside an array, which needs to be added to the pool. |
| from<mark style="color:red;">\*</mark>        | String | Address of the sender of the token.                                                              |
| liquidity<mark style="color:red;">\*</mark>   | String | Total amount of liquidity to be removed from the given pool.                                     |
| poolAddress<mark style="color:red;">\*</mark> | String | The address of the pool.                                                                         |
| Slippage                                      | String | Percentage of total value. By default, 1. 0 <= slippage value <= 10                              |

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

```json
{
    "dexId": "2700",
    "from": "HXjWEL3bYucHDpLi81NwCewYKaqJMPdCfxkaSZTu6K2s",
    "liquidity": "10000",
    "path": [
        "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
        "So11111111111111111111111111111111111111112"
    ],
    "poolAddress": "58oQChx4yWmvKdwLLZzBi4ChoCc2fqCUWBkwMihLYQo2"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "900",
        "from": "HXjWEL3bYucHDpLi81NwCewYKaqJMPdCfxkaSZTu6K2s",
        "to": "675kPX9MHTjS2zt1qfr1NYHuzeLXfQM9H24wFSUt1Mp8",
        "data": "AQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAQAHF/WaeXdTJ27Q/+deDFn6U7t40VnlvJwN5rXCtN67t/K8kaHYvpE8dlTOOztSa+a8k3mpfe7787cfTSa5IlRHtHA9bkcuZ6RuprS9C6ud/TXitMcvHW1Zwuq5XJQlc60i8fkvOQ/5YJ6K1De7jkwfGqQ6wF0kMIzKd96FEsVQkpLTq+Q8fB4h6qb5fIvTVeIb0SeWdHVsHI4QbG5xK6EW2XBsT5PYWOiP+v6gjENnRJfo5qkywMgxSCYqGuPMx4Kexrhw4S3TeYkVYdLp+o8mQxg063NvLyT8KipN/x/V3KTf8su5t2Dt2xhXBjAwY60z17VyluoC1OAzXjHOr6TMQt1qxMPO+p8Zv1TI3A9eTRzu5TJ9JkgrKdKxPLqkNEchjahLtkZiRngdeprauFiLqGsqzOUTWMhE9UROQGQIdf1aTJ2ZfS7EO9wNI2Jpz7DQg5Gv0QP9j71jRT/1i24jqSCs22+N/lu1YxJsx9m7BZadnIJ77Rrsw6dkMYzBAbJIcDgP8n9tpRklKZQIlRLblVwnq9QqGMmt3PPesAqVFBQyaxAyMcl1BQzsjabeQDV8m8pg756PMxZaJVZlZSqCUztGUnlJ4KemWfiq3Ia8U8x8QkaaF3Zam61isbBbyGi17sm+ubFtGKgnOXbvibf96Ersm6rKDbFz24/aSuDeR4o0AwZGb+UhFzL/7K26csOb57yM5bvF9xJrLEObOkAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAbd9uHXZaGT2cvhRs7reawctIXtX1s3kTqM9YV+/wCpBpuIV/6rgYT7aH9jRhjANdrEOdwa6ztVmKDwAAAAAAFL2UnENgLDPyB3kO0Wo1JMobmXXPEhoqkM/+x9+LaKzUFXsFgPMcX85EpiWC28+deO51lDoISjk7NQNo0iiZMIqloxywILsAKYXKkpkIFxlA/mNct26Zzk+4gFQou4JUr8kjAZlFtn2+0wnP2gKcVDku1xPghLNRo5eog7ef07gwYQAAkDAOH1BQAAAAAQAAUCwCcJABECAAF8AwAAAPWaeXdTJ27Q/+deDFn6U7t40VnlvJwN5rXCtN67t/K8IAAAAAAAAABCRllIdmF6VnJReXE3WDhSU3FLQUN1aGRDc2dBd0pOcfAdHwAAAAAApQAAAAAAAAAG3fbh12Whk9nL4UbO63msHLSF7V9bN5E6jPWFfv8AqRIEARMAFwEBFBYSAhUDBAUGBwICGAgJChYLAQwADQ4PCQQQJwAAAAAAABIDAQAAAQkBGY8fTDpFImPUE7LNF+vLwaDliHNk5iYaEqgXkuoWWj4AAgUL",
        "referenceId": "636907790d65493eb9c77dcd9463a537"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
With Slippage:

```json
{
    "dexId": "2700",
    "from": "HXjWEL3bYucHDpLi81NwCewYKaqJMPdCfxkaSZTu6K2s",
    "liquidity": "10000",
    "path": [
        "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
        "So11111111111111111111111111111111111111112"
    ],
    "poolAddress": "58oQChx4yWmvKdwLLZzBi4ChoCc2fqCUWBkwMihLYQo2",
    "slippage": "10"
}
```

{% endtab %}

{% tab title="Sample Response" %}
With Slippage:

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "900",
        "from": "HXjWEL3bYucHDpLi81NwCewYKaqJMPdCfxkaSZTu6K2s",
        "to": "675kPX9MHTjS2zt1qfr1NYHuzeLXfQM9H24wFSUt1Mp8",
        "data": "AQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAQAHF/WaeXdTJ27Q/+deDFn6U7t40VnlvJwN5rXCtN67t/K8kaHYvpE8dlTOOztSa+a8k3mpfe7787cfTSa5IlRHtHA9bkcuZ6RuprS9C6ud/TXitMcvHW1Zwuq5XJQlc60i8fkvOQ/5YJ6K1De7jkwfGqQ6wF0kMIzKd96FEsVQkpLTq+Q8fB4h6qb5fIvTVeIb0SeWdHVsHI4QbG5xK6EW2XBsT5PYWOiP+v6gjENnRJfo5qkywMgxSCYqGuPMx4Kexrhw4S3TeYkVYdLp+o8mQxg063NvLyT8KipN/x/V3KTf8su5t2Dt2xhXBjAwY60z17VyluoC1OAzXjHOr6TMQt1qxMPO+p8Zv1TI3A9eTRzu5TJ9JkgrKdKxPLqkNEchjahLtkZiRngdeprauFiLqGsqzOUTWMhE9UROQGQIdf1aTJ2ZfS7EO9wNI2Jpz7DQg5Gv0QP9j71jRT/1i24jqSCs22+N/lu1YxJsx9m7BZadnIJ77Rrsw6dkMYzBAbJIcDgP8n9tpRklKZQIlRLblVwnq9QqGMmt3PPesAqVFBQyaxAyMcl1BQzsjabeQDV8m8pg756PMxZaJVZlZSqCUztGUnlJ4KemWfiq3Ia8U8x8QkaaF3Zam61isbBbyGi17sm+ubFtGKgnOXbvibf96Ersm6rKDbFz24/aSuDeR4o0AwZGb+UhFzL/7K26csOb57yM5bvF9xJrLEObOkAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAbd9uHXZaGT2cvhRs7reawctIXtX1s3kTqM9YV+/wCpBpuIV/6rgYT7aH9jRhjANdrEOdwa6ztVmKDwAAAAAAFL2UnENgLDPyB3kO0Wo1JMobmXXPEhoqkM/+x9+LaKzUFXsFgPMcX85EpiWC28+deO51lDoISjk7NQNo0iiZMIqloxywILsAKYXKkpkIFxlA/mNct26Zzk+4gFQou4JUr8kjAZlFtn2+0wnP2gKcVDku1xPghLNRo5eog7ef07gwYQAAkDAOH1BQAAAAAQAAUCwCcJABECAAF8AwAAAPWaeXdTJ27Q/+deDFn6U7t40VnlvJwN5rXCtN67t/K8IAAAAAAAAABCRllIdmF6VnJReXE3WDhSU3FLQUN1aGRDc2dBd0pOcfAdHwAAAAAApQAAAAAAAAAG3fbh12Whk9nL4UbO63msHLSF7V9bN5E6jPWFfv8AqRIEARMAFwEBFBYSAhUDBAUGBwICGAgJChYLAQwADQ4PCQQQJwAAAAAAABIDAQAAAQkBGY8fTDpFImPUE7LNF+vLwaDliHNk5iYaEqgXkuoWWj4AAgUL",
        "referenceId": "636907790d65493eb9c77dcd9463a537"
    }
}
```

{% endtab %}
{% endtabs %}

[back to top](#endpoints-available)

### Error Handling Details

<table><thead><tr><th width="253">Error</th><th>Description</th></tr></thead><tbody><tr><td>400 (Bad Request)</td><td>Indicates the request is invalid or missing the required parameters. The msg field will contain details about the error.</td></tr><tr><td>401 (Unauthorised)</td><td>Indicates the request lacks valid authentication credentials (API key). Ensure that you provide a valid API key in the request headers.</td></tr><tr><td>404 (Not Found)</td><td>Indicates that the specified endpoint or resource does not exist.</td></tr><tr><td>500 (Server Error)</td><td>Indicates an internal server error.</td></tr></tbody></table>

[back to top](#endpoints-available)


# SDEX

### /getprice

Returns the swap quotation for a given token pair.

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

#### Query Parameter

| Name                                       | Type   | Description                                                                      |
| ------------------------------------------ | ------ | -------------------------------------------------------------------------------- |
| rpc                                        | String | Remote procedural call URL.                                                      |
| dexId<mark style="color:red;">\*</mark>    | String | Refer to the [DEX ID](https://docs.expand.network/ids/dex-ids) page for details. |
| amountIn<mark style="color:red;">\*</mark> | String | Amount of token.                                                                 |
| path<mark style="color:red;">\*</mark>     | String | Comma separated values of token addresses whose price is to be fetched.          |

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

```url
https://api.expand.network/dex/getprice?dexId=2400&amountIn=100000000000000000&path=yUSDC%3AGDGTVWSM4MGS4T7Z6W4RPWOCHE2I6RDFCIFZGS3DOA63LWQTRNZNTTFF%2CXLM
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "amountIn": "100000000000000000",
        "path": [
            "yUSDC:GDGTVWSM4MGS4T7Z6W4RPWOCHE2I6RDFCIFZGS3DOA63LWQTRNZNTTFF",
            "XLM"
        ],
        "amountsOut": [
            "100000000000000000",
            "6403037405751"
        ]
    }
}
```

{% endtab %}
{% endtabs %}

### /getuserliquidity

Returns  the balance of a particular token pair of an account.

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

#### Query Parameter

| Name                                      | Type   | Description                                                                                                                                                                                                           |
| ----------------------------------------- | ------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| rpc                                       | String | Remote procedural call URL.                                                                                                                                                                                           |
| dexId<mark style="color:red;">\*</mark>   | String | Refer to the [DEX ID](https://docs.expand.network/ids/dex-ids) page for details.                                                                                                                                      |
| address<mark style="color:red;">\*</mark> | String | Public address of liquidity provider.                                                                                                                                                                                 |
| path<mark style="color:red;">\*</mark>    | String | <p>Comma separated values of token addresses whose price is to be fetched.<br>Note: <br>1) Assets should be in lexicographic order.<br>2) For assets other than XLM (Native token), the token issuer is required.</p> |

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

```url
https://api.expand.network/dex/getuserliquidity?address=GDZUSPMPAWY3JF6J4BEC7RVVVOUKCQZJRVA4NAA6HCS2GRG57DIMGCW3&dexId=2400&path=XBTC%3AGA7JNTXAHMMDUTLX72UM5PWHOAMJEDUQ6GREQZBLMAPVF5WM2JH4XBTC%2CyXLM%3AGARDNV3Q7YGT4AKSDF25LT32YSCCW4EV22Y2TV3I2PU2MMXJTEDL5T55
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "pairAddress": "fd2b4dbb80fe7e2a93caf8ff42b1c6cc74c1c2b9c0b7cc41e1c21955b01fc1f5",
        "liquidity": "31306548835",
        "tokenA": "319735818813889",
        "tokenB": "11224502"
    }
}
```

{% endtab %}
{% endtabs %}

### /getpoolliquidity

Returns the total liquidity for a specified pool.

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

#### Query Parameter

| Name                                          | Type   | Description                                                                      |
| --------------------------------------------- | ------ | -------------------------------------------------------------------------------- |
| rpc                                           | String | Remote procedural call URL.                                                      |
| dexId<mark style="color:red;">\*</mark>       | String | Refer to the [DEX ID](https://docs.expand.network/ids/dex-ids) page for details. |
| poolAddress<mark style="color:red;">\*</mark> | String | Pool address whose liquidity is to be fetched.                                   |

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

```url
https://api.expand.network/dex/getpoolliquidity?poolAddress=ffff7fe3743b3c63b12e80f22aed5e8799aa986e25fe155a19277b660d547e71&dexId=2400
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "totalLiquidity": "313065488356"
    }
}
```

{% endtab %}
{% endtabs %}

### /gettokenliquidity

Returns the individual token liquidity within the specified liquidity pool.

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

#### Query Parameter

| Name                                          | Type   | Description                                                                      |
| --------------------------------------------- | ------ | -------------------------------------------------------------------------------- |
| rpc                                           | String | Remote procedural call URL.                                                      |
| dexId<mark style="color:red;">\*</mark>       | String | Refer to the [DEX ID](https://docs.expand.network/ids/dex-ids) page for details. |
| poolAddress<mark style="color:red;">\*</mark> | String | Pool address whose liquidity is to be fetched.                                   |

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

```url
https://api.expand.network/dex/gettokenliquidity?poolAddress=843659d3962c3193a16388d60702e725940d36ec534727dc2308e8e7e427dbdd&dexId=2400
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "native": "222295315",
        "BTC:GBWCFQGDIUJ35X3VTUDB2LHCJFIPZJGDE3XOGMKPWA2D3EZPL2LBNBTC": "2467709804653380"
    }
}
```

{% endtab %}
{% endtabs %}

### /getliquidityholders

Returns the total number of liquidity holders in the specified pool.

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

#### Query Parameter

| Name                                          | Type   | Description                                                                      |
| --------------------------------------------- | ------ | -------------------------------------------------------------------------------- |
| rpc                                           | String | Remote procedural call URL.                                                      |
| dexId<mark style="color:red;">\*</mark>       | String | Refer to the [DEX ID](https://docs.expand.network/ids/dex-ids) page for details. |
| poolAddress<mark style="color:red;">\*</mark> | String | Pool address whose liquidity is to be fetched.                                   |

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

```url
https://api.expand.network/dex/getliquidityholders?poolAddress=66b2286fa2cabdf1914abea058e3a18b1267643d818ae76dc1a5994fb22b9886&dexId=2400
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "totalTokenHolders": "803"
    }
}
```

{% endtab %}
{% endtabs %}

### /swap

Initiate a swap transaction on a specified DEX.

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

#### Request Body

| Name                                       | Type   | Description                                                                                                                                                  |
| ------------------------------------------ | ------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| rpc                                        | String | Remote procedural call URL.                                                                                                                                  |
| dexId<mark style="color:red;">\*</mark>    | String | Refer to the [DEX ID](https://docs.expand.network/ids/dex-ids) page for details.                                                                             |
| path<mark style="color:red;">\*</mark>     | String | <p>Comma-separated values of token addresses, inside an array, to swap.<br>Note: For assets other than XLM (Native token), the token issuer is required.</p> |
| amountIn<mark style="color:red;">\*</mark> | String | Amount of token to be swapped.                                                                                                                               |
| amountOutMin                               | String | Minimum amount accepted as the result of swap.                                                                                                               |
| from<mark style="color:red;">\*</mark>     | String | Address of the sender of the token.                                                                                                                          |
| slippage                                   | String | <p>Percentage of total swap value. By default, 1.</p><p>0 <= slippage value <= 10</p>                                                                        |

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

```json
{
    "amountIn": "150000000",
    "amountOutMin": "12",
    "from": "GARNHXH36IUZE4F5MON5XBQX37OGVFGCOPOPN7CPQL3TP7VX2XI35QUJ",
    "slippage": "10",
    "dexId": "2400",
    "path": [
      "XLM",
      "apUSDC:GALLBRBQHAPW5FOVXXHYWR6J4ZDAQ35BMSNADYGBW25VOUHUYRZM4XIL"
    ]
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1500",
        "from": "GARNHXH36IUZE4F5MON5XBQX37OGVFGCOPOPN7CPQL3TP7VX2XI35QUJ",
        "gas": "100",
        "data": "AAAAAgAAAAAi09z78imScL1jm9uGF9/capTCc9z2/E+C9zf+t9XRvgAAAGQDC8UiAAAACQAAAAEAAAAAAAAAAAAAAABmxhT0AAAAAAAAAAEAAAAAAAAADQAAAAAAAAAACPDRgAAAAAAi09z78imScL1jm9uGF9/capTCc9z2/E+C9zf+t9XRvgAAAAJhcFVTREMAAAAAAAAAAAAAFrDEMDgfbpXVvc+LR8nmRghvoWSaAeDBtrtXUPTEcs4AAAAAAAAACwAAAAAAAAAAAAAAAA==",
        "referenceId": "3b37b58444cf4d8fbdf81437adf4d547"
    }
}
```

{% endtab %}
{% endtabs %}

### /addliquidity

Add liquidity to a specified pool in a specified DEX.

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

#### Request Body

| Name                                       | Type   | Description                                                                                                                                                  |
| ------------------------------------------ | ------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| rpc                                        | String | Remote procedural call URL.                                                                                                                                  |
| dexId<mark style="color:red;">\*</mark>    | String | Refer to the [DEX ID](https://docs.expand.network/ids/dex-ids) page for details.                                                                             |
| path<mark style="color:red;">\*</mark>     | String | <p>Comma-separated values of token addresses, inside an array, to swap.<br>Note: For assets other than XLM (Native token), the token issuer is required.</p> |
| amountIn<mark style="color:red;">\*</mark> | String | Amount of token to be swapped.                                                                                                                               |
| slippage                                   | String | <p>Percentage of total swap value. By default, 1.</p><p>0 <= slippage value <= 10</p>                                                                        |
| from<mark style="color:red;">\*</mark>     | String | Address of the sender of the token.                                                                                                                          |

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

```json
{
    "dexId": "2400",
    "amountIn": [
        "1000000",
        "1000000"
    ],
    "from": "GARNHXH36IUZE4F5MON5XBQX37OGVFGCOPOPN7CPQL3TP7VX2XI35QUJ",
    "path": [
        
        "XBTC:GA7JNTXAHMMDUTLX72UM5PWHOAMJEDUQ6GREQZBLMAPVF5WM2JH4XBTC",
        "yXLM:GARDNV3Q7YGT4AKSDF25LT32YSCCW4EV22Y2TV3I2PU2MMXJTEDL5T55"
    ],
    "slippage": "10"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1500",
        "from": "GARNHXH36IUZE4F5MON5XBQX37OGVFGCOPOPN7CPQL3TP7VX2XI35QUJ",
        "gas": "100",
        "data": "AAAAAgAAAAAi09z78imScL1jm9uGF9/capTCc9z2/E+C9zf+t9XRvgAAAZADC8UiAAAACQAAAAEAAAAAAAAAAAAAAABmxhUEAAAAAAAAAAQAAAAAAAAABgAAAAMAAAAAAAAAAVhCVEMAAAAAPpbO4DsYOk13/qjOvsdwGJIOkPGiSGQrYB9S9szST8sAAAABeVhMTQAAAAAiNtdw/g0+AVIZddXPesSEK3CV1rGp12jT6aYy6ZkGvgAAAB4AAAAAfSt1AAAAAAAAAAAGAAAAAVhCVEMAAAAAPpbO4DsYOk13/qjOvsdwGJIOkPGiSGQrYB9S9szST8sAAAAAAA9CQAAAAAAAAAAGAAAAAXlYTE0AAAAAIjbXcP4NPgFSGXXVz3rEhCtwldaxqddo0+mmMumZBr4AAAAAAA9CQAAAAAAAAAAW/StNu4D+fiqTyvj/QrHGzHTBwrnAt8xB4cIZVbAfwfUAAAAAAA9CQAAAAAAAD0JAAAAAAQAAAAoAAAATAAAACgAAAAAAAAAA",
        "referenceId": "aae58191213a4f7c89e1511487e02946"
    }
}
```

{% endtab %}
{% endtabs %}

### /removeliquidity

Remove liquidity from a specified pool for a specified DEX.

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

#### Request Body

| Name                                           | Type   | Description                                                                                                                                                  |
| ---------------------------------------------- | ------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| rpc                                            | String | Remote procedural call URL.                                                                                                                                  |
| dexId<mark style="color:red;">\*</mark>        | String | Refer to the [DEX ID](https://docs.expand.network/ids/dex-ids) page for details.                                                                             |
| path<mark style="color:red;">\*</mark>         | String | <p>Comma-separated values of token addresses, inside an array, to swap.<br>Note: For assets other than XLM (Native token), the token issuer is required.</p> |
| amountOutMin<mark style="color:red;">\*</mark> | String | Minimum amount to be received.                                                                                                                               |
| slippage                                       | String | <p>Percentage of total swap value. By default, 1.</p><p>0 <= slippage value <= 10</p>                                                                        |
| from<mark style="color:red;">\*</mark>         | String | Address of the sender of the token.                                                                                                                          |
| liquidity<mark style="color:red;">\*</mark>    | String | The liquidity to be removed.                                                                                                                                 |

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

```json
{
    "dexId": "2400",
    "from": "GARNHXH36IUZE4F5MON5XBQX37OGVFGCOPOPN7CPQL3TP7VX2XI35QUJ",
    "path": [
        "XBTC:GA7JNTXAHMMDUTLX72UM5PWHOAMJEDUQ6GREQZBLMAPVF5WM2JH4XBTC",
        "yXLM:GARDNV3Q7YGT4AKSDF25LT32YSCCW4EV22Y2TV3I2PU2MMXJTEDL5T55"
    ],
    "liquidity": "100000",
    "amountOutMin": [
        "32",
        "32"
    ],
    "slippage": "10"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1500",
        "from": "GARNHXH36IUZE4F5MON5XBQX37OGVFGCOPOPN7CPQL3TP7VX2XI35QUJ",
        "gas": "100",
        "data": "AAAAAgAAAAAi09z78imScL1jm9uGF9/capTCc9z2/E+C9zf+t9XRvgAAAGQDC8UiAAAACQAAAAEAAAAAAAAAAAAAAABmxhUUAAAAAAAAAAEAAAAAAAAAF/0rTbuA/n4qk8r4/0Kxxsx0wcK5wLfMQeHCGVWwH8H1AAAAAAABhqAAAAAAAAAAHQAAAAAAAAAdAAAAAAAAAAA=",
        "referenceId": "83a42ff85f7045829ec2f8809102caa6"
    }
}
```

{% endtab %}
{% endtabs %}


# Cetus

### Supported Chains

Available on **Sui Mainnet and Testnet**

### Available Endpoints:

*Click on the endpoint to jump to the section with full details*

* [<mark style="color:blue;">**/getprice**</mark>](#getprice) <mark style="color:blue;">`GET`</mark> - Returns the swap quotation for a given token pair on Cetus.
* [<mark style="color:blue;">**/getuserliquidity**</mark>](#getuserliquidity) <mark style="color:blue;">`GET`</mark> - Returns the balance of a particular token pair of accounts.&#x20;
* [<mark style="color:blue;">**/getpoolliquidity**</mark>](#getpoolliquidity) <mark style="color:blue;">`GET`</mark> - Returns the total liquidity for a specified pool.
* [<mark style="color:blue;">**/gettokenliquidity**</mark>](#gettokenliquidity) <mark style="color:blue;">`GET`</mark> - Returns the individual token liquidity within the specified liquidity pool.
* [<mark style="color:blue;">**/swap**</mark>](#swap) <mark style="color:green;">`POST`</mark> - Initiate a swap transaction on a specified DEX.&#x20;
* [<mark style="color:blue;">**/**</mark>](#swap)[<mark style="color:blue;">**addliquidity**</mark>](#addliquidity) <mark style="color:green;">`POST`</mark> - Add liquidity to a specified pool in a specified DEX.&#x20;
* [<mark style="color:blue;">**/**</mark>](#swap)[<mark style="color:blue;">**removeliquidity**</mark>](#removeliquidity)<mark style="color:green;">`POST`</mark> - Remove liquidity from a specified pool for a specified DEX.

### DEX IDs

Many endpoints have a parameter where you can provide a DEX ID.&#x20;

Below is a list of DEX IDs related to Cetus. For a complete list and more information, please see the [DEX ID](/ids/dex-ids) page.

| DEX Name | Chain       | DEX ID |
| -------- | ----------- | ------ |
| Cetus    | Sui Mainnet | 3300   |
| Cetus    | Sui Testnet | 3301   |

## Endpoint Details

### /getprice

Returns the swap quotation for a given token pair.

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

#### Query Parameter

| Name                                       | Type   | Description                                                                      |
| ------------------------------------------ | ------ | -------------------------------------------------------------------------------- |
| rpc                                        | String | Remote procedural call URL.                                                      |
| dexId<mark style="color:red;">\*</mark>    | String | Refer to the [DEX ID](https://docs.expand.network/ids/dex-ids) page for details. |
| amountIn<mark style="color:red;">\*</mark> | String | Amount of token.                                                                 |
| path<mark style="color:red;">\*</mark>     | String | Comma separated values of token addresses whose price is to be fetched.          |

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

```url
https://api.expand.network/dex/getprice?path=0xaf3aae4940a248739ce4964857381fc3f3149a6d05375bfbb2118592907e3bbb::dam::DAM,0x0000000000000000000000000000000000000000000000000000000000000002::sui::SUI&amountIn=100000000&dexId=3300
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "amountIn": "100000000",
        "path": [
            "0xaf3aae4940a248739ce4964857381fc3f3149a6d05375bfbb2118592907e3bbb::dam::DAM",
            "0x0000000000000000000000000000000000000000000000000000000000000002::sui::SUI"
        ],
        "amountsOut": [
            "100000000",
            "4526"
        ]
    }
}
```

{% endtab %}
{% endtabs %}

### /getuserliquidity

Returns  the balance of a particular token pair of an account.

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

#### Query Parameter

| Name                                          | Type   | Description                                                                      |
| --------------------------------------------- | ------ | -------------------------------------------------------------------------------- |
| rpc                                           | String | Remote procedural call URL.                                                      |
| dexId<mark style="color:red;">\*</mark>       | String | Refer to the [DEX ID](https://docs.expand.network/ids/dex-ids) page for details. |
| address<mark style="color:red;">\*</mark>     | String | Public address of liquidity provider.                                            |
| poolAddress<mark style="color:red;">\*</mark> | String | Pool address whose liquidity is to be fetched.                                   |

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

```url
https://api.expand.network/dex/getuserliquidity?dexId=3300&address=0xc226836119da363dd93c5c211c495eff6955eb65e68a6cf7b45ded3e82416c92&poolAddress=0xb8d7d9e66a60c239e7a60110efcf8de6c705580ed924d0dde141f4a0e2c90105
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "liquidity": "76053060253",
        "tokenA": "1157821349",
        "tokenB": "39428071481"
    }
}
```

{% endtab %}
{% endtabs %}

### /getpoolliquidity

Returns the total liquidity for a specified pool.

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

#### Query Parameter

| Name                                          | Type   | Description                                                                      |
| --------------------------------------------- | ------ | -------------------------------------------------------------------------------- |
| rpc                                           | String | Remote procedural call URL.                                                      |
| dexId<mark style="color:red;">\*</mark>       | String | Refer to the [DEX ID](https://docs.expand.network/ids/dex-ids) page for details. |
| poolAddress<mark style="color:red;">\*</mark> | String | Pool address whose liquidity is to be fetched.                                   |

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

```url
https://api.expand.network/dex/getpoolliquidity?dexId=3300&poolAddress=0x0fea99ed9c65068638963a81587c3b8cafb71dc38c545319f008f7e9feb2b5f8
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "totalLiquidity": "3612316816652697"
    }
}
```

{% endtab %}
{% endtabs %}

### /gettokenliquidity

Returns the individual token liquidity within the specified liquidity pool.

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

#### Query Parameter

| Name                                          | Type   | Description                                                                      |
| --------------------------------------------- | ------ | -------------------------------------------------------------------------------- |
| rpc                                           | String | Remote procedural call URL.                                                      |
| dexId<mark style="color:red;">\*</mark>       | String | Refer to the [DEX ID](https://docs.expand.network/ids/dex-ids) page for details. |
| poolAddress<mark style="color:red;">\*</mark> | String | Pool address whose liquidity is to be fetched.                                   |

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

```url
https://api.expand.network/dex/gettokenliquidity?dexId=3300&poolAddress=0x0fea99ed9c65068638963a81587c3b8cafb71dc38c545319f008f7e9feb2b5f8
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "USDC": "455337923658",
        "AUSD": "1156109147682"
    }
}
```

{% endtab %}
{% endtabs %}

### /swap

Initiate a swap transaction on a specified DEX.

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

#### Request Body

| Name                                       | Type   | Description                                                                           |
| ------------------------------------------ | ------ | ------------------------------------------------------------------------------------- |
| rpc                                        | String | Remote procedural call URL.                                                           |
| dexId<mark style="color:red;">\*</mark>    | String | Refer to the [DEX ID](https://docs.expand.network/ids/dex-ids) page for details.      |
| path<mark style="color:red;">\*</mark>     | String | Comma separated values of token addresses.                                            |
| amountIn<mark style="color:red;">\*</mark> | String | Amount of token to be swapped.                                                        |
| gas                                        | String | Maximum gas limit provided by the sender, for the transaction.                        |
| poolFees                                   | String | Different pool based on the fees. By default, it is selected as 2500.                 |
| from<mark style="color:red;">\*</mark>     | String | Address of the sender of the token.                                                   |
| slippage                                   | String | <p>Percentage of total swap value. By default, 1.</p><p>0 <= slippage value <= 10</p> |

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

```json
{
    "path": [
        "0x06864a6f921804860930db6ddbe2e16acdf8504495ea7481637a1c8b9a8fe54b::cetus::CETUS",
        "0x0000000000000000000000000000000000000000000000000000000000000002::sui::SUI"
    ],
    "poolFees": "2500",
    "amountIn": "1000000",
    "from": "0xda79a82f67c908b1ed3095887673454226b5da77822898405dc376a1b86bf0f3",
    "slippage": "100",
    "gas": "1000000",
    "dexId": "3300"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "101",
        "from": "0xda79a82f67c908b1ed3095887673454226b5da77822898405dc376a1b86bf0f3",
        "to": "0x2e041f3fd93646dcc877f783c1f2b7fa62d30271bdef1f21ef002cebf857bded",
        "data": "ewogICJ2ZXJzaW9uIjogMiwKICAic2VuZGVyIjogIjB4ZGE3OWE4MmY2N2M5MDhiMWVkMzA5NTg4NzY3MzQ1NDIyNmI1ZGE3NzgyMjg5ODQwNWRjMzc2YTFiODZiZjBmMyIsCiAgImV4cGlyYXRpb24iOiBudWxsLAogICJnYXNEYXRhIjogewogICAgImJ1ZGdldCI6ICIxMDAwMDAwIiwKICAgICJwcmljZSI6IG51bGwsCiAgICAib3duZXIiOiBudWxsLAogICAgInBheW1lbnQiOiBudWxsCiAgfSwKICAiaW5wdXRzIjogWwogICAgewogICAgICAiVW5yZXNvbHZlZE9iamVjdCI6IHsKICAgICAgICAib2JqZWN0SWQiOiAiMHgyYmZiMTY2MTFjN2I2NTNjNjJhM2QzYmQwYjkwNWE2OGVmNmI0ZTM1MmI1ZDA4OWViNjY2YTg1ZDRkZTQ5M2RmIgogICAgICB9CiAgICB9LAogICAgewogICAgICAiUHVyZSI6IHsKICAgICAgICAiYnl0ZXMiOiAiQUFBQUFBQUFBQUE9IgogICAgICB9CiAgICB9LAogICAgewogICAgICAiVW5yZXNvbHZlZE9iamVjdCI6IHsKICAgICAgICAib2JqZWN0SWQiOiAiMHhkYWE0NjI5MjYzMmMzYzRkOGYzMWYyM2VhMGY5YjM2YTI4ZmYzNjc3ZTk2ODQ5ODBlNDQzODQwM2E2N2EzZDhmIgogICAgICB9CiAgICB9LAogICAgewogICAgICAiVW5yZXNvbHZlZE9iamVjdCI6IHsKICAgICAgICAib2JqZWN0SWQiOiAiMHgyZTA0MWYzZmQ5MzY0NmRjYzg3N2Y3ODNjMWYyYjdmYTYyZDMwMjcxYmRlZjFmMjFlZjAwMmNlYmY4NTdiZGVkIgogICAgICB9CiAgICB9LAogICAgewogICAgICAiUHVyZSI6IHsKICAgICAgICAiYnl0ZXMiOiAiQVE9PSIKICAgICAgfQogICAgfSwKICAgIHsKICAgICAgIlB1cmUiOiB7CiAgICAgICAgImJ5dGVzIjogIlFFSVBBQUFBQUFBPSIKICAgICAgfQogICAgfSwKICAgIHsKICAgICAgIlB1cmUiOiB7CiAgICAgICAgImJ5dGVzIjogIlpqTUJBQUFBQUFBPSIKICAgICAgfQogICAgfSwKICAgIHsKICAgICAgIlB1cmUiOiB7CiAgICAgICAgImJ5dGVzIjogIlVEc0JBQUVBQUFBQUFBQUFBQUFBQUE9PSIKICAgICAgfQogICAgfSwKICAgIHsKICAgICAgIlVucmVzb2x2ZWRPYmplY3QiOiB7CiAgICAgICAgIm9iamVjdElkIjogIjB4MDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwNiIKICAgICAgfQogICAgfQogIF0sCiAgImNvbW1hbmRzIjogWwogICAgewogICAgICAiU3BsaXRDb2lucyI6IHsKICAgICAgICAiY29pbiI6IHsKICAgICAgICAgICJHYXNDb2luIjogdHJ1ZQogICAgICAgIH0sCiAgICAgICAgImFtb3VudHMiOiBbCiAgICAgICAgICB7CiAgICAgICAgICAgICJJbnB1dCI6IDEKICAgICAgICAgIH0KICAgICAgICBdCiAgICAgIH0KICAgIH0sCiAgICB7CiAgICAgICJNb3ZlQ2FsbCI6IHsKICAgICAgICAicGFja2FnZSI6ICIweDNhNWFhOTBmZmEzM2QwOTEwMGQ3YjY5NDFlYTFjMGZmZTZhYjY2ZTc3MDYyZGRkMjYzMjBjMWIwNzNhYWJiMTAiLAogICAgICAgICJtb2R1bGUiOiAicG9vbF9zY3JpcHRfdjIiLAogICAgICAgICJmdW5jdGlvbiI6ICJzd2FwX2EyYiIsCiAgICAgICAgInR5cGVBcmd1bWVudHMiOiBbCiAgICAgICAgICAiMHgwNjg2NGE2ZjkyMTgwNDg2MDkzMGRiNmRkYmUyZTE2YWNkZjg1MDQ0OTVlYTc0ODE2MzdhMWM4YjlhOGZlNTRiOjpjZXR1czo6Q0VUVVMiLAogICAgICAgICAgIjB4Mjo6c3VpOjpTVUkiCiAgICAgICAgXSwKICAgICAgICAiYXJndW1lbnRzIjogWwogICAgICAgICAgewogICAgICAgICAgICAiSW5wdXQiOiAyCiAgICAgICAgICB9LAogICAgICAgICAgewogICAgICAgICAgICAiSW5wdXQiOiAzCiAgICAgICAgICB9LAogICAgICAgICAgewogICAgICAgICAgICAiSW5wdXQiOiAwCiAgICAgICAgICB9LAogICAgICAgICAgewogICAgICAgICAgICAiUmVzdWx0IjogMAogICAgICAgICAgfSwKICAgICAgICAgIHsKICAgICAgICAgICAgIklucHV0IjogNAogICAgICAgICAgfSwKICAgICAgICAgIHsKICAgICAgICAgICAgIklucHV0IjogNQogICAgICAgICAgfSwKICAgICAgICAgIHsKICAgICAgICAgICAgIklucHV0IjogNgogICAgICAgICAgfSwKICAgICAgICAgIHsKICAgICAgICAgICAgIklucHV0IjogNwogICAgICAgICAgfSwKICAgICAgICAgIHsKICAgICAgICAgICAgIklucHV0IjogOAogICAgICAgICAgfQogICAgICAgIF0KICAgICAgfQogICAgfQogIF0KfQ==",
        "referenceId": "6ce087fc9d2742d1af2f7f01b3439176"
    }
}
```

{% endtab %}
{% endtabs %}

### /addliquidity

Add liquidity to a specified pool in a specified DEX.

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

#### Request Body

| Name                                      | Type   | Description                                                                           |
| ----------------------------------------- | ------ | ------------------------------------------------------------------------------------- |
| rpc                                       | String | Remote procedural call URL.                                                           |
| dexId<mark style="color:red;">\*</mark>   | String | Refer to the [DEX ID](https://docs.expand.network/ids/dex-ids) page for details.      |
| path<mark style="color:red;">\*</mark>    | String | Comma separated values of token addresses.                                            |
| amountA<mark style="color:red;">\*</mark> | String | Amount of token0.                                                                     |
| amountB<mark style="color:red;">\*</mark> | String | Amount of token1                                                                      |
| slippage                                  | String | <p>Percentage of total swap value. By default, 1.</p><p>0 <= slippage value <= 10</p> |
| poolFees                                  | String | Different pool based on the fees. By default, it is selected as 2500.                 |
| from<mark style="color:red;">\*</mark>    | String | Address of the sender of the token.                                                   |
| gas                                       | String | Maximum gas limit provided by the sender, for the transaction.                        |

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

```json
{
    "path": [
        "0x06864a6f921804860930db6ddbe2e16acdf8504495ea7481637a1c8b9a8fe54b::cetus::CETUS",
        "0x0000000000000000000000000000000000000000000000000000000000000002::sui::SUI"
    ],
    "poolFees": "2500",
    "amountA": "1000000",
    "amountB": "1000000",
    "from": "0xda79a82f67c908b1ed3095887673454226b5da77822898405dc376a1b86bf0f3",
    "slippage": "100",
    "gas": "1000000",
    "dexId": "3300"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "101",
        "from": "0xda79a82f67c908b1ed3095887673454226b5da77822898405dc376a1b86bf0f3",
        "to": "0x2e041f3fd93646dcc877f783c1f2b7fa62d30271bdef1f21ef002cebf857bded",
        "data": "ewogICJ2ZXJzaW9uIjogMiwKICAic2VuZGVyIjogIjB4ZGE3OWE4MmY2N2M5MDhiMWVkMzA5NTg4NzY3MzQ1NDIyNmI1ZGE3NzgyMjg5ODQwNWRjMzc2YTFiODZiZjBmMyIsCiAgImV4cGlyYXRpb24iOiBudWxsLAogICJnYXNEYXRhIjogewogICAgImJ1ZGdldCI6ICIxMDAwMDAwIiwKICAgICJwcmljZSI6IG51bGwsCiAgICAib3duZXIiOiBudWxsLAogICAgInBheW1lbnQiOiBudWxsCiAgfSwKICAiaW5wdXRzIjogWwogICAgewogICAgICAiVW5yZXNvbHZlZE9iamVjdCI6IHsKICAgICAgICAib2JqZWN0SWQiOiAiMHgyYmZiMTY2MTFjN2I2NTNjNjJhM2QzYmQwYjkwNWE2OGVmNmI0ZTM1MmI1ZDA4OWViNjY2YTg1ZDRkZTQ5M2RmIgogICAgICB9CiAgICB9LAogICAgewogICAgICAiUHVyZSI6IHsKICAgICAgICAiYnl0ZXMiOiAiUUVJUEFBQUFBQUE9IgogICAgICB9CiAgICB9LAogICAgewogICAgICAiVW5yZXNvbHZlZE9iamVjdCI6IHsKICAgICAgICAib2JqZWN0SWQiOiAiMHhkYWE0NjI5MjYzMmMzYzRkOGYzMWYyM2VhMGY5YjM2YTI4ZmYzNjc3ZTk2ODQ5ODBlNDQzODQwM2E2N2EzZDhmIgogICAgICB9CiAgICB9LAogICAgewogICAgICAiVW5yZXNvbHZlZE9iamVjdCI6IHsKICAgICAgICAib2JqZWN0SWQiOiAiMHgyZTA0MWYzZmQ5MzY0NmRjYzg3N2Y3ODNjMWYyYjdmYTYyZDMwMjcxYmRlZjFmMjFlZjAwMmNlYmY4NTdiZGVkIgogICAgICB9CiAgICB9LAogICAgewogICAgICAiUHVyZSI6IHsKICAgICAgICAiYnl0ZXMiOiAiZ0o3Ly93PT0iCiAgICAgIH0KICAgIH0sCiAgICB7CiAgICAgICJQdXJlIjogewogICAgICAgICJieXRlcyI6ICIrSjcvL3c9PSIKICAgICAgfQogICAgfSwKICAgIHsKICAgICAgIlB1cmUiOiB7CiAgICAgICAgImJ5dGVzIjogIlFFSVBBQUFBQUFBPSIKICAgICAgfQogICAgfSwKICAgIHsKICAgICAgIlB1cmUiOiB7CiAgICAgICAgImJ5dGVzIjogIlFFSVBBQUFBQUFBPSIKICAgICAgfQogICAgfSwKICAgIHsKICAgICAgIlB1cmUiOiB7CiAgICAgICAgImJ5dGVzIjogIkFRPT0iCiAgICAgIH0KICAgIH0sCiAgICB7CiAgICAgICJVbnJlc29sdmVkT2JqZWN0IjogewogICAgICAgICJvYmplY3RJZCI6ICIweDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDYiCiAgICAgIH0KICAgIH0KICBdLAogICJjb21tYW5kcyI6IFsKICAgIHsKICAgICAgIlNwbGl0Q29pbnMiOiB7CiAgICAgICAgImNvaW4iOiB7CiAgICAgICAgICAiR2FzQ29pbiI6IHRydWUKICAgICAgICB9LAogICAgICAgICJhbW91bnRzIjogWwogICAgICAgICAgewogICAgICAgICAgICAiSW5wdXQiOiAxCiAgICAgICAgICB9CiAgICAgICAgXQogICAgICB9CiAgICB9LAogICAgewogICAgICAiTW92ZUNhbGwiOiB7CiAgICAgICAgInBhY2thZ2UiOiAiMHgzYTVhYTkwZmZhMzNkMDkxMDBkN2I2OTQxZWExYzBmZmU2YWI2NmU3NzA2MmRkZDI2MzIwYzFiMDczYWFiYjEwIiwKICAgICAgICAibW9kdWxlIjogInBvb2xfc2NyaXB0X3YyIiwKICAgICAgICAiZnVuY3Rpb24iOiAib3Blbl9wb3NpdGlvbl93aXRoX2xpcXVpZGl0eV9ieV9maXhfY29pbiIsCiAgICAgICAgInR5cGVBcmd1bWVudHMiOiBbCiAgICAgICAgICAiMHgwNjg2NGE2ZjkyMTgwNDg2MDkzMGRiNmRkYmUyZTE2YWNkZjg1MDQ0OTVlYTc0ODE2MzdhMWM4YjlhOGZlNTRiOjpjZXR1czo6Q0VUVVMiLAogICAgICAgICAgIjB4Mjo6c3VpOjpTVUkiCiAgICAgICAgXSwKICAgICAgICAiYXJndW1lbnRzIjogWwogICAgICAgICAgewogICAgICAgICAgICAiSW5wdXQiOiAyCiAgICAgICAgICB9LAogICAgICAgICAgewogICAgICAgICAgICAiSW5wdXQiOiAzCiAgICAgICAgICB9LAogICAgICAgICAgewogICAgICAgICAgICAiSW5wdXQiOiA0CiAgICAgICAgICB9LAogICAgICAgICAgewogICAgICAgICAgICAiSW5wdXQiOiA1CiAgICAgICAgICB9LAogICAgICAgICAgewogICAgICAgICAgICAiSW5wdXQiOiAwCiAgICAgICAgICB9LAogICAgICAgICAgewogICAgICAgICAgICAiUmVzdWx0IjogMAogICAgICAgICAgfSwKICAgICAgICAgIHsKICAgICAgICAgICAgIklucHV0IjogNgogICAgICAgICAgfSwKICAgICAgICAgIHsKICAgICAgICAgICAgIklucHV0IjogNwogICAgICAgICAgfSwKICAgICAgICAgIHsKICAgICAgICAgICAgIklucHV0IjogOAogICAgICAgICAgfSwKICAgICAgICAgIHsKICAgICAgICAgICAgIklucHV0IjogOQogICAgICAgICAgfQogICAgICAgIF0KICAgICAgfQogICAgfQogIF0KfQ==",
        "referenceId": "7f9fd2b714704752827a70b1aaaaac69"
    }
}
```

{% endtab %}
{% endtabs %}

### /removeliquidity

Remove liquidity from a specified pool for a specified DEX.

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

#### Request Body

| Name                                        | Type   | Description                                                                           |
| ------------------------------------------- | ------ | ------------------------------------------------------------------------------------- |
| rpc                                         | String | Remote procedural call URL.                                                           |
| dexId<mark style="color:red;">\*</mark>     | String | Refer to the [DEX ID](https://docs.expand.network/ids/dex-ids) page for details.      |
| path<mark style="color:red;">\*</mark>      | String | Comma separated values of token addresses.                                            |
| poolFees                                    | String | Different pool based on the fees. By default, it is selected as 2500.                 |
| slippage                                    | String | <p>Percentage of total swap value. By default, 1.</p><p>0 <= slippage value <= 10</p> |
| from<mark style="color:red;">\*</mark>      | String | Address of the sender of the token.                                                   |
| liquidity<mark style="color:red;">\*</mark> | String | The liquidity to be removed.                                                          |
| gas                                         | String | Maximum gas limit provided by the sender, for the transaction.                        |

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

```json
{
    "path": [
        "0x06864a6f921804860930db6ddbe2e16acdf8504495ea7481637a1c8b9a8fe54b::cetus::CETUS",
        "0x0000000000000000000000000000000000000000000000000000000000000002::sui::SUI"
    ],
    "poolFees": "2500",
    "liquidity": "1000000",
    "from": "0x3345e6cb604d02ae98056d1a73c7b79a792f64eb0b58b1f040794adea6b2d956",
    "gas": "1000000",
    "dexId": "3300"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "101",
        "from": "0x3345e6cb604d02ae98056d1a73c7b79a792f64eb0b58b1f040794adea6b2d956",
        "to": "0x2e041f3fd93646dcc877f783c1f2b7fa62d30271bdef1f21ef002cebf857bded",
        "data": "ewogICJ2ZXJzaW9uIjogMiwKICAic2VuZGVyIjogIjB4MzM0NWU2Y2I2MDRkMDJhZTk4MDU2ZDFhNzNjN2I3OWE3OTJmNjRlYjBiNThiMWYwNDA3OTRhZGVhNmIyZDk1NiIsCiAgImV4cGlyYXRpb24iOiBudWxsLAogICJnYXNEYXRhIjogewogICAgImJ1ZGdldCI6ICIxMDAwMDAwIiwKICAgICJwcmljZSI6IG51bGwsCiAgICAib3duZXIiOiBudWxsLAogICAgInBheW1lbnQiOiBudWxsCiAgfSwKICAiaW5wdXRzIjogWwogICAgewogICAgICAiVW5yZXNvbHZlZE9iamVjdCI6IHsKICAgICAgICAib2JqZWN0SWQiOiAiMHgwNjk0MWVkZWFkMzZhYmI1NTA3MzQ5ZjkzZDM5YTkwN2M1NWM1MGIxOGJhNzUwYTYzMzdiNzI1ZGI3NTc0OGY0IgogICAgICB9CiAgICB9LAogICAgewogICAgICAiVW5yZXNvbHZlZE9iamVjdCI6IHsKICAgICAgICAib2JqZWN0SWQiOiAiMHhjMzQ2NzQwNDM2ZGFkMDY3NjEyODgwYWE2OGEyMzAxZDlhZDYwZWIxOWViZTZiNjcwZTM1OWE2MjExYmFhOWI5IgogICAgICB9CiAgICB9LAogICAgewogICAgICAiVW5yZXNvbHZlZE9iamVjdCI6IHsKICAgICAgICAib2JqZWN0SWQiOiAiMHhkYWE0NjI5MjYzMmMzYzRkOGYzMWYyM2VhMGY5YjM2YTI4ZmYzNjc3ZTk2ODQ5ODBlNDQzODQwM2E2N2EzZDhmIgogICAgICB9CiAgICB9LAogICAgewogICAgICAiVW5yZXNvbHZlZE9iamVjdCI6IHsKICAgICAgICAib2JqZWN0SWQiOiAiMHgyZTA0MWYzZmQ5MzY0NmRjYzg3N2Y3ODNjMWYyYjdmYTYyZDMwMjcxYmRlZjFmMjFlZjAwMmNlYmY4NTdiZGVkIgogICAgICB9CiAgICB9LAogICAgewogICAgICAiVW5yZXNvbHZlZE9iamVjdCI6IHsKICAgICAgICAib2JqZWN0SWQiOiAiMHg4NGFkMmU3YjNlOGQ1MWU1M2U5YzQwYmU4MGI4NmE3ZjllMjQ0ZDZhZTA5YjdkODMwNTViY2U3ZTIyZmEyM2U3IgogICAgICB9CiAgICB9LAogICAgewogICAgICAiUHVyZSI6IHsKICAgICAgICAiYnl0ZXMiOiAiUUVJUEFBQUFBQUFBQUFBQUFBQUFBQT09IgogICAgICB9CiAgICB9LAogICAgewogICAgICAiUHVyZSI6IHsKICAgICAgICAiYnl0ZXMiOiAiZXgwQUFBQUFBQUE9IgogICAgICB9CiAgICB9LAogICAgewogICAgICAiUHVyZSI6IHsKICAgICAgICAiYnl0ZXMiOiAid2dBQUFBQUFBQUE9IgogICAgICB9CiAgICB9LAogICAgewogICAgICAiVW5yZXNvbHZlZE9iamVjdCI6IHsKICAgICAgICAib2JqZWN0SWQiOiAiMHgwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDA2IgogICAgICB9CiAgICB9CiAgXSwKICAiY29tbWFuZHMiOiBbCiAgICB7CiAgICAgICJNb3ZlQ2FsbCI6IHsKICAgICAgICAicGFja2FnZSI6ICIweDNhNWFhOTBmZmEzM2QwOTEwMGQ3YjY5NDFlYTFjMGZmZTZhYjY2ZTc3MDYyZGRkMjYzMjBjMWIwNzNhYWJiMTAiLAogICAgICAgICJtb2R1bGUiOiAicG9vbF9zY3JpcHRfdjIiLAogICAgICAgICJmdW5jdGlvbiI6ICJjb2xsZWN0X2ZlZSIsCiAgICAgICAgInR5cGVBcmd1bWVudHMiOiBbCiAgICAgICAgICAiMHgwNjg2NGE2ZjkyMTgwNDg2MDkzMGRiNmRkYmUyZTE2YWNkZjg1MDQ0OTVlYTc0ODE2MzdhMWM4YjlhOGZlNTRiOjpjZXR1czo6Q0VUVVMiLAogICAgICAgICAgIjB4Mjo6c3VpOjpTVUkiCiAgICAgICAgXSwKICAgICAgICAiYXJndW1lbnRzIjogWwogICAgICAgICAgewogICAgICAgICAgICAiSW5wdXQiOiAyCiAgICAgICAgICB9LAogICAgICAgICAgewogICAgICAgICAgICAiSW5wdXQiOiAzCiAgICAgICAgICB9LAogICAgICAgICAgewogICAgICAgICAgICAiSW5wdXQiOiA0CiAgICAgICAgICB9LAogICAgICAgICAgewogICAgICAgICAgICAiSW5wdXQiOiAwCiAgICAgICAgICB9LAogICAgICAgICAgewogICAgICAgICAgICAiSW5wdXQiOiAxCiAgICAgICAgICB9CiAgICAgICAgXQogICAgICB9CiAgICB9LAogICAgewogICAgICAiTW92ZUNhbGwiOiB7CiAgICAgICAgInBhY2thZ2UiOiAiMHgzYTVhYTkwZmZhMzNkMDkxMDBkN2I2OTQxZWExYzBmZmU2YWI2NmU3NzA2MmRkZDI2MzIwYzFiMDczYWFiYjEwIiwKICAgICAgICAibW9kdWxlIjogInBvb2xfc2NyaXB0IiwKICAgICAgICAiZnVuY3Rpb24iOiAicmVtb3ZlX2xpcXVpZGl0eSIsCiAgICAgICAgInR5cGVBcmd1bWVudHMiOiBbCiAgICAgICAgICAiMHgwNjg2NGE2ZjkyMTgwNDg2MDkzMGRiNmRkYmUyZTE2YWNkZjg1MDQ0OTVlYTc0ODE2MzdhMWM4YjlhOGZlNTRiOjpjZXR1czo6Q0VUVVMiLAogICAgICAgICAgIjB4Mjo6c3VpOjpTVUkiCiAgICAgICAgXSwKICAgICAgICAiYXJndW1lbnRzIjogWwogICAgICAgICAgewogICAgICAgICAgICAiSW5wdXQiOiAyCiAgICAgICAgICB9LAogICAgICAgICAgewogICAgICAgICAgICAiSW5wdXQiOiAzCiAgICAgICAgICB9LAogICAgICAgICAgewogICAgICAgICAgICAiSW5wdXQiOiA0CiAgICAgICAgICB9LAogICAgICAgICAgewogICAgICAgICAgICAiSW5wdXQiOiA1CiAgICAgICAgICB9LAogICAgICAgICAgewogICAgICAgICAgICAiSW5wdXQiOiA2CiAgICAgICAgICB9LAogICAgICAgICAgewogICAgICAgICAgICAiSW5wdXQiOiA3CiAgICAgICAgICB9LAogICAgICAgICAgewogICAgICAgICAgICAiSW5wdXQiOiA4CiAgICAgICAgICB9CiAgICAgICAgXQogICAgICB9CiAgICB9CiAgXQp9",
        "referenceId": "93de56efb848442fa2a43dc5faa22dcf"
    }
}
```

{% endtab %}
{% endtabs %}


# REF Finance

### Supported Chains

Available on **Near Mainnet and Testnet**

### Available Endpoints:

*Click on the endpoint to jump to the section with full details*

* [<mark style="color:blue;">**/getprice**</mark>](#getprice) <mark style="color:blue;">`GET`</mark> - Returns the swap quotation for a given token pair on Cetus.
* [<mark style="color:blue;">**/getuserliquidity**</mark>](#getuserliquidity) <mark style="color:blue;">`GET`</mark> - Returns the balance of a particular token pair of accounts.&#x20;
* [<mark style="color:blue;">**/getpoolliquidity**</mark>](#getpoolliquidity) <mark style="color:blue;">`GET`</mark> - Returns the total liquidity for a specified pool.
* [<mark style="color:blue;">**/gettokenliquidity**</mark>](#gettokenliquidity) <mark style="color:blue;">`GET`</mark> - Returns the individual token liquidity within the specified liquidity pool.
* [<mark style="color:blue;">**/swap**</mark>](#swap) <mark style="color:green;">`POST`</mark> - Initiate a swap transaction on a specified DEX.&#x20;
* [<mark style="color:blue;">**/**</mark>](#swap)[<mark style="color:blue;">**addliquidity**</mark>](#addliquidity) <mark style="color:green;">`POST`</mark> - Add liquidity to a specified pool in a specified DEX.&#x20;
* [<mark style="color:blue;">**/**</mark>](#swap)[<mark style="color:blue;">**removeliquidity**</mark>](#removeliquidity)<mark style="color:green;">`POST`</mark> - Remove liquidity from a specified pool for a specified DEX.

### DEX IDs

Many endpoints have a parameter where you can provide a DEX ID.&#x20;

Below is a list of DEX IDs related to Cetus. For a complete list and more information, please see the [DEX ID](/ids/dex-ids) page.

| DEX Name    | Chain        | DEX ID |
| ----------- | ------------ | ------ |
| REF Finance | Near Mainnet | 3400   |
| REF Finance | Near Testnet | 3401   |

## Endpoint Details

### /getprice

Returns the swap quotation for a given token pair.

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

#### Query Parameter

| Name                                       | Type   | Description                                                                      |
| ------------------------------------------ | ------ | -------------------------------------------------------------------------------- |
| rpc                                        | String | Remote procedural call URL.                                                      |
| dexId<mark style="color:red;">\*</mark>    | String | Refer to the [DEX ID](https://docs.expand.network/ids/dex-ids) page for details. |
| amountIn<mark style="color:red;">\*</mark> | String | Amount of token.                                                                 |
| path<mark style="color:red;">\*</mark>     | String | Comma separated values of token addresses whose price is to be fetched.          |

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

```url
https://api.expand.network/dex/getprice?path=17208628f84f5d6ad33f0da3bbbeb27ffcb398eac501a31bd6ad2011e36133a1%2Cwrap.near&amountIn=100000000&dexId=3400
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
  "status": 200,
  "msg": "success",
  "data": {
    "amountIn": "100000000",
    "path": [
      "17208628f84f5d6ad33f0da3bbbeb27ffcb398eac501a31bd6ad2011e36133a1",
      "wrap.near"
    ],
    "amountsOut": [
      "100000000",
      "31456689936699508113692653"
    ]
  }
}
```

{% endtab %}
{% endtabs %}

### /getuserliquidity

Returns  the balance of a particular token pair of an account.

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

#### Query Parameter

| Name                                          | Type   | Description                                                                      |
| --------------------------------------------- | ------ | -------------------------------------------------------------------------------- |
| rpc                                           | String | Remote procedural call URL.                                                      |
| dexId<mark style="color:red;">\*</mark>       | String | Refer to the [DEX ID](https://docs.expand.network/ids/dex-ids) page for details. |
| address<mark style="color:red;">\*</mark>     | String | Public address of liquidity provider.                                            |
| poolAddress<mark style="color:red;">\*</mark> | String | Pool address whose liquidity is to be fetched.                                   |

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

```url
https://api.expand.network/dex/getuserliquidity?poolAddress=17208628f84f5d6ad33f0da3bbbeb27ffcb398eac501a31bd6ad2011e36133a1%7Cwrap.near%7C100&address=g20_dex.near&dexId=3400
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
  "status": 200,
  "msg": "success",
  "data": {
    "pairAddress": "17208628f84f5d6ad33f0da3bbbeb27ffcb398eac501a31bd6ad2011e36133a1|wrap.near|100",
    "liquidity": "7123964496422730"
  }
}
```

{% endtab %}
{% endtabs %}

### /getpoolliquidity

Returns the total liquidity for a specified pool.

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

#### Query Parameter

| Name                                          | Type   | Description                                                                      |
| --------------------------------------------- | ------ | -------------------------------------------------------------------------------- |
| rpc                                           | String | Remote procedural call URL.                                                      |
| dexId<mark style="color:red;">\*</mark>       | String | Refer to the [DEX ID](https://docs.expand.network/ids/dex-ids) page for details. |
| poolAddress<mark style="color:red;">\*</mark> | String | Pool address whose liquidity is to be fetched.                                   |

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

```url
https://api.expand.network/dex/getpoolliquidity?poolAddress=17208628f84f5d6ad33f0da3bbbeb27ffcb398eac501a31bd6ad2011e36133a1%7Cwrap.near%7C100&dexId=3400
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
  "status": 200,
  "msg": "success",
  "data": {
    "totalLiquidity": "492779401499816349"
  }
}
```

{% endtab %}
{% endtabs %}

### /gettokenliquidity

Returns the individual token liquidity within the specified liquidity pool.

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

#### Query Parameter

| Name                                          | Type   | Description                                                                      |
| --------------------------------------------- | ------ | -------------------------------------------------------------------------------- |
| rpc                                           | String | Remote procedural call URL.                                                      |
| dexId<mark style="color:red;">\*</mark>       | String | Refer to the [DEX ID](https://docs.expand.network/ids/dex-ids) page for details. |
| poolAddress<mark style="color:red;">\*</mark> | String | Pool address whose liquidity is to be fetched.                                   |

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

```url
https://api.expand.network/dex/gettokenliquidity?poolAddress=17208628f84f5d6ad33f0da3bbbeb27ffcb398eac501a31bd6ad2011e36133a1%7Cwrap.near%7C100&dexId=3400
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
  "status": 200,
  "msg": "success",
  "data": {
    "17208628f84f5d6ad33f0da3bbbeb27ffcb398eac501a31bd6ad2011e36133a1": "816215156745",
    "wrap.near": "553177251133018373561114031157"
  }
}
```

{% endtab %}
{% endtabs %}

### /swap

Initiate a swap transaction on a specified DEX.

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

#### Request Body

| Name                                       | Type   | Description                                                                      |
| ------------------------------------------ | ------ | -------------------------------------------------------------------------------- |
| rpc                                        | String | Remote procedural call URL.                                                      |
| dexId<mark style="color:red;">\*</mark>    | String | Refer to the [DEX ID](https://docs.expand.network/ids/dex-ids) page for details. |
| path<mark style="color:red;">\*</mark>     | String | Comma separated values of token addresses.                                       |
| amountIn<mark style="color:red;">\*</mark> | String | Amount of token to be swapped.                                                   |
| from<mark style="color:red;">\*</mark>     | String | Address of the sender of the token.                                              |

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

```json
{
  "from": "trader-near.near",
  "path": [
    "a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48.factory.bridge.near",
    "wrap.near"
  ],
  "amountIn": "100000000000",
  "dexId": "3400"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
  "status": 200,
  "msg": "success",
  "data": {
    "chainId": "1200",
    "from": "trader-near.near",
    "to": "a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48.factory.bridge.near",
    "data": [
      "eyJyZWNlaXZlcklkIjoiYTBiODY5OTFjNjIxOGIzNmMxZDE5ZDRhMmU5ZWIwY2UzNjA2ZWI0OC5mYWN0b3J5LmJyaWRnZS5uZWFyIiwiZnVuY3Rpb25DYWxscyI6W3sibWV0aG9kTmFtZSI6ImZ0X3RyYW5zZmVyX2NhbGwiLCJhcmdzIjp7InJlY2VpdmVyX2lkIjoiZGNsdjIucmVmLWxhYnMubmVhciIsImFtb3VudCI6IjEwMDAwMDAwMDAwMCIsIm1zZyI6IntcIlN3YXBcIjp7XCJwb29sX2lkc1wiOltcImEwYjg2OTkxYzYyMThiMzZjMWQxOWQ0YTJlOWViMGNlMzYwNmViNDguZmFjdG9yeS5icmlkZ2UubmVhcnx3cmFwLm5lYXJ8MjAwMFwiXSxcIm91dHB1dF90b2tlblwiOlwid3JhcC5uZWFyXCIsXCJtaW5fb3V0cHV0X2Ftb3VudFwiOlwiMFwiLFwiY2xpZW50X2lkXCI6XCJcIn19In0sImdhcyI6IjE4MDAwMDAwMDAwMDAwMCIsImFtb3VudCI6IjAuMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAxIn1dfQ=="
    ],
    "referenceId": "af32b034389e4f42941f488c856ec04e"
  }
}
```

{% endtab %}
{% endtabs %}

### /addliquidity

Add liquidity to a specified pool in a specified DEX.

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

#### Request Body

| Name                                         | Type   | Description                                                                      |
| -------------------------------------------- | ------ | -------------------------------------------------------------------------------- |
| rpc                                          | String | Remote procedural call URL.                                                      |
| dexId<mark style="color:red;">\*</mark>      | String | Refer to the [DEX ID](https://docs.expand.network/ids/dex-ids) page for details. |
| path<mark style="color:red;">\*</mark>       | String | Comma separated values of token addresses.                                       |
| amountIn                                     | String | Amount of token to be swapped.                                                   |
| amountAMin<mark style="color:red;">\*</mark> | String | Minimum amount of token0.                                                        |
| amountBMin<mark style="color:red;">\*</mark> | String | Minimum amount of token1.                                                        |
| from<mark style="color:red;">\*</mark>       | String | Address of the sender of the token.                                              |

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

```json
{
    "from": "trader-near.near",
    "path": [
        "17208628f84f5d6ad33f0da3bbbeb27ffcb398eac501a31bd6ad2011e36133a1",
        "wrap.near"
    ],
    "amountIn": [
        "1000000000",
        "1000000000"
    ],
    "amountAMin": "0",
    "amountBMin": "0",
    "dexId": "3400"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
  "status": 200,
  "msg": "success",
  "data": {
    "chainId": "1200",
    "from": "trader-near.near",
    "to": "dclv2.ref-labs.near",
    "value": "0",
    "data": [
      "eyJzaWduZXJJZCI6InRyYWRlci1uZWFyLm5lYXIiLCJyZWNlaXZlcklkIjoiZGNsdjIucmVmLWxhYnMubmVhciIsImFjdGlvbnMiOlt7InR5cGUiOiJGdW5jdGlvbkNhbGwiLCJwYXJhbXMiOnsibWV0aG9kTmFtZSI6InN0b3JhZ2VfZGVwb3NpdCIsImFyZ3MiOnsiYWNjb3VudF9pZCI6InRyYWRlci1uZWFyLm5lYXIiLCJyZWdpc3RyYXRpb25fb25seSI6dHJ1ZX0sImdhcyI6IjEwMDAwMDAwMDAwMDAwMCIsImRlcG9zaXQiOiI1MDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAifX1dfQ==",
      "eyJzaWduZXJJZCI6InRyYWRlci1uZWFyLm5lYXIiLCJyZWNlaXZlcklkIjoid3JhcC5uZWFyIiwiYWN0aW9ucyI6W3sidHlwZSI6IkZ1bmN0aW9uQ2FsbCIsInBhcmFtcyI6eyJtZXRob2ROYW1lIjoibmVhcl9kZXBvc2l0IiwiYXJncyI6e30sImdhcyI6IjUwMDAwMDAwMDAwMDAwIiwiZGVwb3NpdCI6IjEwMDAwMDAwMDAifX1dfQ==",
      "eyJzaWduZXJJZCI6InRyYWRlci1uZWFyLm5lYXIiLCJyZWNlaXZlcklkIjoid3JhcC5uZWFyIiwiYWN0aW9ucyI6W3sidHlwZSI6IkZ1bmN0aW9uQ2FsbCIsInBhcmFtcyI6eyJtZXRob2ROYW1lIjoiZnRfdHJhbnNmZXJfY2FsbCIsImFyZ3MiOnsicmVjZWl2ZXJfaWQiOiJkY2x2Mi5yZWYtbGFicy5uZWFyIiwiYW1vdW50IjoiMTAwMDAwMDAwMCIsIm1zZyI6IlwiRGVwb3NpdFwiIn0sImdhcyI6IjE1MDAwMDAwMDAwMDAwMCIsImRlcG9zaXQiOiIxIn19XX0=",
      "eyJzaWduZXJJZCI6InRyYWRlci1uZWFyLm5lYXIiLCJyZWNlaXZlcklkIjoiMTcyMDg2MjhmODRmNWQ2YWQzM2YwZGEzYmJiZWIyN2ZmY2IzOThlYWM1MDFhMzFiZDZhZDIwMTFlMzYxMzNhMSIsImFjdGlvbnMiOlt7InR5cGUiOiJGdW5jdGlvbkNhbGwiLCJwYXJhbXMiOnsibWV0aG9kTmFtZSI6ImZ0X3RyYW5zZmVyX2NhbGwiLCJhcmdzIjp7InJlY2VpdmVyX2lkIjoiZGNsdjIucmVmLWxhYnMubmVhciIsImFtb3VudCI6IjEwMDAwMDAwMDAiLCJtc2ciOiJcIkRlcG9zaXRcIiJ9LCJnYXMiOiIxNTAwMDAwMDAwMDAwMDAiLCJkZXBvc2l0IjoiMSJ9fV19",
      "eyJzaWduZXJJZCI6InRyYWRlci1uZWFyLm5lYXIiLCJyZWNlaXZlcklkIjoiZGNsdjIucmVmLWxhYnMubmVhciIsImFjdGlvbnMiOlt7InR5cGUiOiJGdW5jdGlvbkNhbGwiLCJwYXJhbXMiOnsibWV0aG9kTmFtZSI6ImFkZF9saXF1aWRpdHkiLCJhcmdzIjp7InBvb2xfaWQiOiIxNzIwODYyOGY4NGY1ZDZhZDMzZjBkYTNiYmJlYjI3ZmZjYjM5OGVhYzUwMWEzMWJkNmFkMjAxMWUzNjEzM2ExfHdyYXAubmVhcnwxMDAiLCJsZWZ0X3BvaW50Ijo0MDI5MjgsInJpZ2h0X3BvaW50Ijo0MDI5MzIsImFtb3VudF94IjoiMTAwMDAwMDAwMCIsImFtb3VudF95IjoiMTAwMDAwMDAwMCIsIm1pbl9hbW91bnRfeCI6IjAiLCJtaW5fYW1vdW50X3kiOiIwIn0sImdhcyI6IjE1MDAwMDAwMDAwMDAwMCIsImRlcG9zaXQiOiIwIn19XX0="
    ],
    "referenceId": "7af3999b9d0f46399e4ff06c2e47c29b"
  }
}
```

{% endtab %}
{% endtabs %}

### /removeliquidity

Remove liquidity from a specified pool for a specified DEX.

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

#### Request Body

| Name                                          | Type   | Description                                                                      |
| --------------------------------------------- | ------ | -------------------------------------------------------------------------------- |
| rpc                                           | String | Remote procedural call URL.                                                      |
| dexId<mark style="color:red;">\*</mark>       | String | Refer to the [DEX ID](https://docs.expand.network/ids/dex-ids) page for details. |
| poolAddress<mark style="color:red;">\*</mark> | String | Pool address whose liquidity is to be removed.                                   |
| from<mark style="color:red;">\*</mark>        | String | Address of the sender of the token.                                              |
| liquidity<mark style="color:red;">\*</mark>   | String | The liquidity to be removed.                                                     |
| amountAMin<mark style="color:red;">\*</mark>  | String | Minimum amount of Token0                                                         |
| amountBMin<mark style="color:red;">\*</mark>  | String | Minimum amount of Token1                                                         |

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

```json
{
    "from": "g20_dex.near",
    "poolAddress": "17208628f84f5d6ad33f0da3bbbeb27ffcb398eac501a31bd6ad2011e36133a1|wrap.near|100",
    "liquidity": "100000",
    "amountAMin": "0",
    "amountBMin": "0",
    "dexId": "3400"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
  "status": 200,
  "msg": "success",
  "data": {
    "chainId": "1200",
    "from": "g20_dex.near",
    "to": "dclv2.ref-labs.near",
    "data": [
      "eyJyZWNlaXZlcklkIjoiZGNsdjIucmVmLWxhYnMubmVhciIsImZ1bmN0aW9uQ2FsbHMiOlt7Im1ldGhvZE5hbWUiOiJiYXRjaF9yZW1vdmVfbGlxdWlkaXR5IiwiYXJncyI6eyJyZW1vdmVfbGlxdWlkaXR5X2luZm9zIjpbeyJscHRfaWQiOiIxNzIwODYyOGY4NGY1ZDZhZDMzZjBkYTNiYmJlYjI3ZmZjYjM5OGVhYzUwMWEzMWJkNmFkMjAxMWUzNjEzM2ExfHdyYXAubmVhcnwxMDAjODg2MCIsImFtb3VudCI6IjEwMDAwMCIsIm1pbl9hbW91bnRfeCI6IjAiLCJtaW5fYW1vdW50X3kiOiIwIn1dfSwiZ2FzIjoiMjUwMDAwMDAwMDAwMDAwIn1dfQ=="
    ],
    "referenceId": "a637cf04fee54c288925a8d80a312c1f"
  }
}
```

{% endtab %}
{% endtabs %}


# Liquidswap

### Supported Chains

Available on **Aptos Mainnet**

### Available Endpoints:

*Click on the endpoint to jump to the section with full details*

* [<mark style="color:blue;">**/getprice**</mark>](#getprice) <mark style="color:blue;">`GET`</mark> - Returns the swap quotation for a given token pair on Liquidswap.
* [<mark style="color:blue;">**/getuserliquidity**</mark>](#getuserliquidity) <mark style="color:blue;">`GET`</mark> - Returns the balance of a particular token pair of accounts.&#x20;
* [<mark style="color:blue;">**/getpoolliquidity**</mark>](#getpoolliquidity) <mark style="color:blue;">`GET`</mark> - Returns the total liquidity for a specified pool.
* [<mark style="color:blue;">**/gettokenliquidity**</mark>](#gettokenliquidity) <mark style="color:blue;">`GET`</mark> - Returns the individual token liquidity within the specified liquidity pool.
* [<mark style="color:blue;">**/swap**</mark>](#swap) <mark style="color:green;">`POST`</mark> - Initiate a swap transaction on a specified DEX.&#x20;
* [<mark style="color:blue;">**/**</mark>](#swap)[<mark style="color:blue;">**addliquidity**</mark>](#addliquidity) <mark style="color:green;">`POST`</mark> - Add liquidity to a specified pool in a specified DEX.&#x20;
* [<mark style="color:blue;">**/**</mark>](#swap)[<mark style="color:blue;">**removeliquidity**</mark>](#removeliquidity)<mark style="color:green;">`POST`</mark> - Remove liquidity from a specified pool for a specified DEX.

### DEX IDs

Many endpoints have a parameter where you can provide a DEX ID.&#x20;

Below is a list of DEX IDs related to Liquidswap. For a complete list and more information, please see the [DEX ID](/ids/dex-ids) page.

| DEX Name   | Chain         | DEX ID |
| ---------- | ------------- | ------ |
| Liquidswap | Aptos Mainnet | 3200   |

## Endpoint Details

### /getprice

Returns the swap quotation for a given token pair.

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

#### Query Parameter

| Name                                       | Type   | Description                                                                      |
| ------------------------------------------ | ------ | -------------------------------------------------------------------------------- |
| rpc                                        | String | Remote procedural call URL.                                                      |
| dexId<mark style="color:red;">\*</mark>    | String | Refer to the [DEX ID](https://docs.expand.network/ids/dex-ids) page for details. |
| amountIn<mark style="color:red;">\*</mark> | String | Amount of token.                                                                 |
| path<mark style="color:red;">\*</mark>     | String | Comma separated values of token addresses whose price is to be fetched.          |

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

```url
https://api.expand.network/dex/getprice?dexId=3200&path=0x1::aptos_coin::AptosCoin,0xf22bede237a07e121b56d91a491eb7bcdfd1f5907926a9e58338f964a01b17fa::asset::USDC&amountIn=10000000
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "amountIn": "10000000",
        "path": [
            "0x1::aptos_coin::AptosCoin",
            "0xf22bede237a07e121b56d91a491eb7bcdfd1f5907926a9e58338f964a01b17fa::asset::USDC"
        ],
        "amountsOut": [
            "10000000",
            "864252"
        ]
    }
}
```

{% endtab %}
{% endtabs %}

### /getuserliquidity

Returns  the balance of a particular token pair of an account.

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

#### Query Parameter

| Name                                          | Type   | Description                                                                      |
| --------------------------------------------- | ------ | -------------------------------------------------------------------------------- |
| rpc                                           | String | Remote procedural call URL.                                                      |
| dexId<mark style="color:red;">\*</mark>       | String | Refer to the [DEX ID](https://docs.expand.network/ids/dex-ids) page for details. |
| address<mark style="color:red;">\*</mark>     | String | Public address of liquidity provider.                                            |
| poolAddress<mark style="color:red;">\*</mark> | String | Pool address whose liquidity is to be fetched.                                   |

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

```url
https://api.expand.network/dex/getuserliquidity?dexId=3200&poolAddress=0x61d2c22a6cb7831bee0f48363b0eec92369357aece0d1142062f7d5d85c7bef8::lp_coin::LP<0x1::aptos_coin::AptosCoin, 0x111ae3e5bc816a5e63c2da97d0aa3886519e0cd5e4b046659fa35796bd11542a::stapt_token::StakedApt, 0x163df34fccbf003ce219d3f1d9e70d140b60622cb9dd47599c25fb2f797ba6e::curves::Uncorrelated>&address=0x485300d3fc4fb6b0bcf4431556b13a2e55eec71cbbb33a770aad8958d63c13fd
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "pairAddress": "0x61d2c22a6cb7831bee0f48363b0eec92369357aece0d1142062f7d5d85c7bef8::lp_coin::LP<0x1::aptos_coin::AptosCoin, 0x111ae3e5bc816a5e63c2da97d0aa3886519e0cd5e4b046659fa35796bd11542a::stapt_token::StakedApt, 0x163df34fccbf003ce219d3f1d9e70d140b60622cb9dd47599c25fb2f797ba6e::curves::Uncorrelated>",
        "liquidity": "25368400",
        "tokenA": "29931130",
        "tokenB": "27129313"
    }
}
```

{% endtab %}
{% endtabs %}

### /getpoolliquidity

Returns the total liquidity for a specified pool.

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

#### Query Parameter

| Name                                          | Type   | Description                                                                      |
| --------------------------------------------- | ------ | -------------------------------------------------------------------------------- |
| rpc                                           | String | Remote procedural call URL.                                                      |
| dexId<mark style="color:red;">\*</mark>       | String | Refer to the [DEX ID](https://docs.expand.network/ids/dex-ids) page for details. |
| poolAddress<mark style="color:red;">\*</mark> | String | Pool address whose liquidity is to be fetched.                                   |

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

```url
https://api.expand.network/dex/getpoolliquidity?dexId=3200&poolAddress=0x61d2c22a6cb7831bee0f48363b0eec92369357aece0d1142062f7d5d85c7bef8::lp_coin::LP<0xf22bede237a07e121b56d91a491eb7bcdfd1f5907926a9e58338f964a01b17fa::asset::USDT,0x9770fa9c725cbd97eb50b2be5f7416efdfd1f1554beb0750d4dae4c64e860da3::fa_to_coin_wrapper::WrappedUSDT,0x163df34fccbf003ce219d3f1d9e70d140b60622cb9dd47599c25fb2f797ba6e::curves::Stable>
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "totalLiquidity": "586808351357"
    }
}
```

{% endtab %}
{% endtabs %}

### /gettokenliquidity

Returns the individual token liquidity within the specified liquidity pool.

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

#### Query Parameter

| Name                                          | Type   | Description                                                                      |
| --------------------------------------------- | ------ | -------------------------------------------------------------------------------- |
| rpc                                           | String | Remote procedural call URL.                                                      |
| dexId<mark style="color:red;">\*</mark>       | String | Refer to the [DEX ID](https://docs.expand.network/ids/dex-ids) page for details. |
| poolAddress<mark style="color:red;">\*</mark> | String | Pool address whose liquidity is to be fetched.                                   |

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

```url
https://api.expand.network/dex/gettokenliquidity?dexId=3200&poolAddress=0x61d2c22a6cb7831bee0f48363b0eec92369357aece0d1142062f7d5d85c7bef8::lp_coin::LP<0x1::aptos_coin::AptosCoin, 0xf8fa55ff4265fa9586f74d00da4858b8a0d2320bbe94cb0e91bf3a40773eb60::GREATDANE::GREATDANE, 0x163df34fccbf003ce219d3f1d9e70d140b60622cb9dd47599c25fb2f797ba6e::curves::Uncorrelated>
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "APT": "6649459",
        "GREATDANE": "60847704895806"
    }
}
```

{% endtab %}
{% endtabs %}

### /swap

Initiate a swap transaction on a specified DEX.

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

#### Request Body

| Name                                       | Type   | Description                                                                           |
| ------------------------------------------ | ------ | ------------------------------------------------------------------------------------- |
| rpc                                        | String | Remote procedural call URL.                                                           |
| dexId<mark style="color:red;">\*</mark>    | String | Refer to the [DEX ID](https://docs.expand.network/ids/dex-ids) page for details.      |
| path<mark style="color:red;">\*</mark>     | String | Comma separated values of token addresses.                                            |
| amountIn<mark style="color:red;">\*</mark> | String | Amount of token to be swapped.                                                        |
| gas                                        | String | Maximum gas limit provided by the sender, for the transaction.                        |
| from<mark style="color:red;">\*</mark>     | String | Address of the sender of the token.                                                   |
| slippage                                   | String | <p>Percentage of total swap value. By default, 1.</p><p>0 <= slippage value <= 10</p> |

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

```json
{
    "amountIn": "100000",
    "from": "0xa182b65f4bf10be7ef870496893c170af3079a2540c63b470445417fcfb21c5b",
    "path": [
        "0x1::aptos_coin::AptosCoin",
        "0xf22bede237a07e121b56d91a491eb7bcdfd1f5907926a9e58338f964a01b17fa::asset::USDC"
    ],
    "slippage": "99",
    "dexId": "3200",
    "gas": "10000"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1400",
        "from": "0xa182b65f4bf10be7ef870496893c170af3079a2540c63b470445417fcfb21c5b",
        "to": "0x61d2c22a6cb7831bee0f48363b0eec92369357aece0d1142062f7d5d85c7bef8",
        "data": "oYK2X0vxC+fvhwSWiTwXCvMHmiVAxjtHBEVBf8+yHFsOAAAAAAAAAAIBY980/MvwA84hnT8dnnDRQLYGIsud1HWZwl+y95e6bgdzY3JpcHRzBHN3YXADBwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABCmFwdG9zX2NvaW4JQXB0b3NDb2luAAfyK+3iN6B+EhtW2RpJHre839H1kHkmqeWDOPlkoBsX+gVhc3NldARVU0RDAAcBY980/MvwA84hnT8dnnDRQLYGIsud1HWZwl+y95e6bgZjdXJ2ZXMMVW5jb3JyZWxhdGVkAAIIoIYBAAAAAAAIXAAAAAAAAAAQJwAAAAAAAGQAAAAAAAAAqWRpZwAAAAAB",
        "referenceId": "c20cdb1e18534d62bc8188b3381b0354"
    }
}
```

{% endtab %}
{% endtabs %}

### /addliquidity

Add liquidity to a specified pool in a specified DEX.

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

#### Request Body

| Name                                       | Type   | Description                                                                                                              |
| ------------------------------------------ | ------ | ------------------------------------------------------------------------------------------------------------------------ |
| rpc                                        | String | Remote procedural call URL.                                                                                              |
| dexId<mark style="color:red;">\*</mark>    | String | Refer to the [DEX ID](https://docs.expand.network/ids/dex-ids) page for details.                                         |
| path<mark style="color:red;">\*</mark>     | String | Comma separated values of token addresses.                                                                               |
| amountIn<mark style="color:red;">\*</mark> | String | Amount of token0 and token1 to be added.                                                                                 |
| slippage                                   | String | <p>Percentage of total swap value. By default, 1.</p><p>0 <= slippage value <= 10</p>                                    |
| from<mark style="color:red;">\*</mark>     | String | Address of the sender of the token.                                                                                      |
| gas                                        | String | Maximum gas limit provided by the sender, for the transaction.                                                           |
| curveType                                  | String | <p>Type of curve for pool pair.<br><code>stable</code>/<code>uncorrelated</code>.<br>By Default, <code>stable</code></p> |

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

```json
{
    "amountIn": ["733700","529428"],
    "from": "0xa182b65f4bf10be7ef870496893c170af3079a2540c63b470445417fcfb21c5b",
    "path": [
        "0x1::aptos_coin::AptosCoin",
        "0x53a30a6e5936c0a4c5140daed34de39d17ca7fcae08f947c02e979cef98a3719::coin::LSD"
    ],
    "slippage": "50",
    "dexId": "3200",
    "gas":"10000"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1400",
        "from": "0xa182b65f4bf10be7ef870496893c170af3079a2540c63b470445417fcfb21c5b",
        "to": "0x61d2c22a6cb7831bee0f48363b0eec92369357aece0d1142062f7d5d85c7bef8",
        "data": "oYK2X0vxC+fvhwSWiTwXCvMHmiVAxjtHBEVBf8+yHFsOAAAAAAAAAAIBY980/MvwA84hnT8dnnDRQLYGIsud1HWZwl+y95e6bgdzY3JpcHRzDWFkZF9saXF1aWRpdHkDB1OjCm5ZNsCkxRQNrtNN450Xyn/K4I+UfALpec75ijcZBGNvaW4DTFNEAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQphcHRvc19jb2luCUFwdG9zQ29pbgAHAWPfNPzL8APOIZ0/HZ5w0UC2BiLLndR1mcJfsveXum4GY3VydmVzBlN0YWJsZQAECBQUCAAAAAAACAoKBAAAAAAACAQyCwAAAAAACAKZBQAAAAAAECcAAAAAAABkAAAAAAAAAMlkaWcAAAAAAQ==",
        "referenceId": "4125a4481a984782b9077efd85275e83"
    }
}
```

{% endtab %}
{% endtabs %}

### /removeliquidity

Remove liquidity from a specified pool for a specified DEX.

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

#### Request Body

| Name                                        | Type   | Description                                                                                                              |
| ------------------------------------------- | ------ | ------------------------------------------------------------------------------------------------------------------------ |
| rpc                                         | String | Remote procedural call URL.                                                                                              |
| dexId<mark style="color:red;">\*</mark>     | String | Refer to the [DEX ID](https://docs.expand.network/ids/dex-ids) page for details.                                         |
| path<mark style="color:red;">\*</mark>      | String | Comma separated values of token addresses.                                                                               |
| slippage                                    | String | <p>Percentage of total swap value. By default, 1.</p><p>0 <= slippage value <= 10</p>                                    |
| from<mark style="color:red;">\*</mark>      | String | Address of the sender of the token.                                                                                      |
| liquidity<mark style="color:red;">\*</mark> | String | The liquidity to be removed.                                                                                             |
| gas                                         | String | Maximum gas limit provided by the sender, for the transaction.                                                           |
| curveType                                   | String | <p>Type of curve for pool pair.<br><code>stable</code>/<code>uncorrelated</code>.<br>By Default, <code>stable</code></p> |

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

```json
{
    "liquidity": "10000",
    "from": "0xa182b65f4bf10be7ef870496893c170af3079a2540c63b470445417fcfb21c5b",
    "path": [
        "0x1::aptos_coin::AptosCoin",
        "0x53a30a6e5936c0a4c5140daed34de39d17ca7fcae08f947c02e979cef98a3719::coin::LSD"
    ],
    "slippage": "50",
    "dexId": "3200",
    "curveType": "uncorrelated",
    "gas":"10000"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1400",
        "from": "0xa182b65f4bf10be7ef870496893c170af3079a2540c63b470445417fcfb21c5b",
        "to": "0x61d2c22a6cb7831bee0f48363b0eec92369357aece0d1142062f7d5d85c7bef8",
        "data": "oYK2X0vxC+fvhwSWiTwXCvMHmiVAxjtHBEVBf8+yHFsOAAAAAAAAAAIBY980/MvwA84hnT8dnnDRQLYGIsud1HWZwl+y95e6bgdzY3JpcHRzEHJlbW92ZV9saXF1aWRpdHkDB1OjCm5ZNsCkxRQNrtNN450Xyn/K4I+UfALpec75ijcZBGNvaW4DTFNEAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQphcHRvc19jb2luCUFwdG9zQ29pbgAHAWPfNPzL8APOIZ0/HZ5w0UC2BiLLndR1mcJfsveXum4GY3VydmVzDFVuY29ycmVsYXRlZAADCBAnAAAAAAAACJZBAAAAAAAACDAJAAAAAAAAECcAAAAAAABkAAAAAAAAAA5laWcAAAAAAQ==",
        "referenceId": "4f3ac95b6cb54eeea6fb74573def0a57"
    }
}
```

{% endtab %}
{% endtabs %}


# Sologenic

### Supported Chains

Available on **XRPL Mainnet and Testnet**

### Available Endpoints:

*Click on the endpoint to jump to the section with full details*

* [<mark style="color:blue;">**/getprice**</mark>](#getprice) <mark style="color:blue;">`GET`</mark> - Returns the swap quotation for a given token pair on Sologenic.
* [<mark style="color:blue;">**/getuserliquidity**</mark>](#getuserliquidity) <mark style="color:blue;">`GET`</mark> - Returns the balance of a particular token pair of accounts.&#x20;
* [<mark style="color:blue;">**/getpoolliquidity**</mark>](#getpoolliquidity) <mark style="color:blue;">`GET`</mark> - Returns the total liquidity for a specified pool.
* [<mark style="color:blue;">**/gettokenliquidity**</mark>](#gettokenliquidity) <mark style="color:blue;">`GET`</mark> - Returns the individual token liquidity within the specified liquidity pool.
* [<mark style="color:blue;">**/swap**</mark>](#swap) <mark style="color:green;">`POST`</mark> - Initiate a swap transaction on a specified DEX.&#x20;
* [<mark style="color:blue;">**/**</mark>](#swap)[<mark style="color:blue;">**addliquidity**</mark>](#addliquidity) <mark style="color:green;">`POST`</mark> - Add liquidity to a specified pool in a specified DEX.&#x20;
* [<mark style="color:blue;">**/**</mark>](#swap)[<mark style="color:blue;">**removeliquidity**</mark>](#removeliquidity)<mark style="color:green;">`POST`</mark> - Remove liquidity from a specified pool for a specified DEX.

### DEX IDs

Many endpoints have a parameter where you can provide a DEX ID.&#x20;

Below is a list of DEX IDs related to Sologenic. For a complete list and more information, please see the [DEX ID](/ids/dex-ids) page.

| DEX Name  | Chain        | DEX ID |
| --------- | ------------ | ------ |
| Sologenic | XRPL Mainnet | 3500   |
| Sologenic | XRPL Testnet | 3501   |

## Endpoint Details

### /getprice

Returns the swap quotation for a given token pair.

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

#### Query Parameter

| Name                                       | Type   | Description                                                                      |
| ------------------------------------------ | ------ | -------------------------------------------------------------------------------- |
| rpc                                        | String | Remote procedural call URL.                                                      |
| dexId<mark style="color:red;">\*</mark>    | String | Refer to the [DEX ID](https://docs.expand.network/ids/dex-ids) page for details. |
| amountIn<mark style="color:red;">\*</mark> | String | Amount of token.                                                                 |
| path<mark style="color:red;">\*</mark>     | String | Comma separated values of token addresses whose price is to be fetched.          |

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

```url
https://api.expand.network/dex/getprice?path=PHNIX%3ArDFXbW2ZZCG5WgPtqwNiA2xZokLMm9ivmN,XRP&amountIn=10000000000000000000&dexId=3500
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
  "status": 200,
  "msg": "success",
  "data": {
    "amountIn": "10000000000000000000",
    "path": [
      "PHNIX:rDFXbW2ZZCG5WgPtqwNiA2xZokLMm9ivmN",
      "XRP"
    ],
    "amountsOut": [
      "10000000000000000000",
      "50600"
    ]
  }
}
```

{% endtab %}
{% endtabs %}

### /getuserliquidity

Returns  the balance of a particular token pair of an account.

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

#### Query Parameter

| Name                                          | Type   | Description                                                                      |
| --------------------------------------------- | ------ | -------------------------------------------------------------------------------- |
| rpc                                           | String | Remote procedural call URL.                                                      |
| dexId<mark style="color:red;">\*</mark>       | String | Refer to the [DEX ID](https://docs.expand.network/ids/dex-ids) page for details. |
| address<mark style="color:red;">\*</mark>     | String | Public address of liquidity provider.                                            |
| poolAddress<mark style="color:red;">\*</mark> | String | Pool address whose liquidity is to be fetched.                                   |

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

```url
https://api.expand.network/dex/getuserliquidity?dexId=3500&poolAddress=rakZprdzwsUJ1rD2ouhYYAVP7tPbhrCbtz&address=rfkgjHxPbq1z6i8boURnEXY4qe4JFbiFLQ
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
  "status": 200,
  "msg": "success",
  "data": {
    "pairAddress": "rakZprdzwsUJ1rD2ouhYYAVP7tPbhrCbtz",
    "liquidity": "133406"
  }
}
```

{% endtab %}
{% endtabs %}

### /getpoolliquidity

Returns the total liquidity for a specified pool.

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

#### Query Parameter

| Name                                          | Type   | Description                                                                      |
| --------------------------------------------- | ------ | -------------------------------------------------------------------------------- |
| rpc                                           | String | Remote procedural call URL.                                                      |
| dexId<mark style="color:red;">\*</mark>       | String | Refer to the [DEX ID](https://docs.expand.network/ids/dex-ids) page for details. |
| poolAddress<mark style="color:red;">\*</mark> | String | Pool address whose liquidity is to be fetched.                                   |

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

```url
https://api.expand.network/dex/getpoolliquidity?dexId=3500&poolAddress=rakZprdzwsUJ1rD2ouhYYAVP7tPbhrCbtz
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
  "status": 200,
  "msg": "success",
  "data": {
    "totalLiquidity": "5388788949277917000000000"
  }
}
```

{% endtab %}
{% endtabs %}

### /gettokenliquidity

Returns the individual token liquidity within the specified liquidity pool.

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

#### Query Parameter

| Name                                          | Type   | Description                                                                      |
| --------------------------------------------- | ------ | -------------------------------------------------------------------------------- |
| rpc                                           | String | Remote procedural call URL.                                                      |
| dexId<mark style="color:red;">\*</mark>       | String | Refer to the [DEX ID](https://docs.expand.network/ids/dex-ids) page for details. |
| poolAddress<mark style="color:red;">\*</mark> | String | Pool address whose liquidity is to be fetched.                                   |

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

```url
https://api.expand.network/dex/gettokenliquidity?dexId=3500&poolAddress=rLjUKpwUVmz3vCTmFkXungxwzdoyrWRsFG
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
  "status": 200,
  "msg": "success",
  "data": {
    "XRP": "3834555737847",
    "CRYPTO": "301396241674017700000"
  }
}
```

{% endtab %}
{% endtabs %}

### /swap

Initiate a swap transaction on a specified DEX.

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

#### Request Body

| Name                                       | Type   | Description                                                                           |
| ------------------------------------------ | ------ | ------------------------------------------------------------------------------------- |
| rpc                                        | String | Remote procedural call URL.                                                           |
| dexId<mark style="color:red;">\*</mark>    | String | Refer to the [DEX ID](https://docs.expand.network/ids/dex-ids) page for details.      |
| path<mark style="color:red;">\*</mark>     | String | Comma separated values of token addresses.                                            |
| amountIn<mark style="color:red;">\*</mark> | String | Amount of token to be swapped.                                                        |
| amountOutMin                               | String | Minimum amount accepted as a result of swap.                                          |
| from<mark style="color:red;">\*</mark>     | String | Address of the sender of the token.                                                   |
| slippage                                   | String | <p>Percentage of total swap value. By default, 1.</p><p>0 <= slippage value <= 10</p> |

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

```json
{
    "path": [
        "XRP",
        "SOLO:rsoLo2S1kiGeCcn6hCUXVrCpGMWLrRrLZz"
    ],
    "amountIn": "20000",
    "amountOutMin": "2324",
    "from": "rfkgjHxPbq1z6i8boURnEXY4qe4JFbiFLQ",
    "dexId": "3500"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
  "status": 200,
  "msg": "success",
  "data": {
    "chainId": "1600",
    "from": "rfkgjHxPbq1z6i8boURnEXY4qe4JFbiFLQ",
    "gas": "12",
    "data": "eyJUcmFuc2FjdGlvblR5cGUiOiJPZmZlckNyZWF0ZSIsIkFjY291bnQiOiJyZmtnakh4UGJxMXo2aThib1VSbkVYWTRxZTRKRmJpRkxRIiwiVGFrZXJQYXlzIjp7ImN1cnJlbmN5IjoiNTM0RjRDNEYwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMCIsImlzc3VlciI6InJzb0xvMlMxa2lHZUNjbjZoQ1VYVnJDcEdNV0xyUnJMWnoiLCJ2YWx1ZSI6IjIuMzI0ZS0xMiJ9LCJGbGFncyI6NjU1MzYwLCJUYWtlckdldHMiOiIyMDAwMCIsIkZlZSI6IjEyIiwiU2VxdWVuY2UiOjU4Mjc0MDc3LCJMYXN0TGVkZ2VyU2VxdWVuY2UiOjk0MzQ0MDMwfQ==",
    "referenceId": "6e9a1fbc246846698821985ce7fe43ab"
  }
}
```

{% endtab %}
{% endtabs %}

### /addliquidity

Add liquidity to a specified pool in a specified DEX.

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

#### Request Body

| Name                                           | Type   | Description                                                                           |
| ---------------------------------------------- | ------ | ------------------------------------------------------------------------------------- |
| rpc                                            | String | Remote procedural call URL.                                                           |
| dexId<mark style="color:red;">\*</mark>        | String | Refer to the [DEX ID](https://docs.expand.network/ids/dex-ids) page for details.      |
| path<mark style="color:red;">\*</mark>         | String | Comma separated values of token addresses.                                            |
| amountIn<mark style="color:red;">\*</mark>     | String | Amount of token0 and token1 to be added.                                              |
| slippage                                       | String | <p>Percentage of total swap value. By default, 1.</p><p>0 <= slippage value <= 10</p> |
| from<mark style="color:red;">\*</mark>         | String | Address of the sender of the token.                                                   |
| amountOutMin<mark style="color:red;">\*</mark> | String | Minimum amount accepted as a result of add liquidity.                                 |

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

```json
{
    "dexId": "3500",
    "amountIn": [
        "1000000",
        "1000000"
    ],
    "from": "rPJ2kXNTseFAD1qotRXBtv7cd3x8ZN4BkP",
    "path": [
        "XRP",
        "SOLO:rsoLo2S1kiGeCcn6hCUXVrCpGMWLrRrLZz"
    ],
    "slippage": "10",
    "amountOutMin": "3"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
  "status": 200,
  "msg": "success",
  "data": {
    "chainId": "1600",
    "from": "rPJ2kXNTseFAD1qotRXBtv7cd3x8ZN4BkP",
    "gas": "12",
    "data": "eyJBY2NvdW50IjoiclBKMmtYTlRzZUZBRDFxb3RSWEJ0djdjZDN4OFpONEJrUCIsIkFtb3VudCI6IjEwMDAwMDAiLCJBbW91bnQyIjp7ImN1cnJlbmN5IjoiNTM0RjRDNEYwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMCIsImlzc3VlciI6InJzb0xvMlMxa2lHZUNjbjZoQ1VYVnJDcEdNV0xyUnJMWnoiLCJ2YWx1ZSI6IjFlLTkifSwiQXNzZXQiOnsiY3VycmVuY3kiOiJYUlAifSwiQXNzZXQyIjp7ImN1cnJlbmN5IjoiNTM0RjRDNEYwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMCIsImlzc3VlciI6InJzb0xvMlMxa2lHZUNjbjZoQ1VYVnJDcEdNV0xyUnJMWnoifSwiRmxhZ3MiOjEwNDg1NzYsIkxQVG9rZW5PdXQiOnsiY3VycmVuY3kiOiIwMzQzMTc4MDFCMDg1MDA0NDZCQzUzM0I3MTgzNTlCQzAxNEQ2QjM3IiwiaXNzdWVyIjoick1FSm85SDVYdlRlMTdVb0FKemo4anRLVnZUUmN4d25nbyIsInZhbHVlIjoiMi43In0sIlRyYW5zYWN0aW9uVHlwZSI6IkFNTURlcG9zaXQiLCJGZWUiOiIxMiIsIlNlcXVlbmNlIjo4ODE3MjQ4NSwiTGFzdExlZGdlclNlcXVlbmNlIjo5NDM0NDA0M30=",
    "referenceId": "18fddf710a5b4ebbac7c322387fe6a4a"
  }
}
```

{% endtab %}
{% endtabs %}

### /removeliquidity

Remove liquidity from a specified pool for a specified DEX.

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

#### Request Body

| Name                                        | Type   | Description                                                                      |
| ------------------------------------------- | ------ | -------------------------------------------------------------------------------- |
| rpc                                         | String | Remote procedural call URL.                                                      |
| dexId<mark style="color:red;">\*</mark>     | String | Refer to the [DEX ID](https://docs.expand.network/ids/dex-ids) page for details. |
| path<mark style="color:red;">\*</mark>      | String | Comma separated values of token addresses.                                       |
| from<mark style="color:red;">\*</mark>      | String | Address of the sender of the token.                                              |
| liquidity<mark style="color:red;">\*</mark> | String | The liquidity to be removed.                                                     |

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

```json
{
    "dexId": "3500",
    "liquidity": "1000000",
    "from": "rfkgjHxPbq1z6i8boURnEXY4qe4JFbiFLQ",
    "path": [
        "XRP",
        "SOLO:rsoLo2S1kiGeCcn6hCUXVrCpGMWLrRrLZz"
    ]
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
  "status": 200,
  "msg": "success",
  "data": {
    "chainId": "1600",
    "from": "rfkgjHxPbq1z6i8boURnEXY4qe4JFbiFLQ",
    "gas": "12",
    "data": "eyJBY2NvdW50IjoicmZrZ2pIeFBicTF6Nmk4Ym9VUm5FWFk0cWU0SkZiaUZMUSIsIkxQVG9rZW5JbiI6eyJjdXJyZW5jeSI6IjAzNDMxNzgwMUIwODUwMDQ0NkJDNTMzQjcxODM1OUJDMDE0RDZCMzciLCJpc3N1ZXIiOiJyTUVKbzlINVh2VGUxN1VvQUp6ajhqdEtWdlRSY3h3bmdvIiwidmFsdWUiOiIxMDAwMDAwIn0sIkFzc2V0Ijp7ImN1cnJlbmN5IjoiWFJQIn0sIkFzc2V0MiI6eyJjdXJyZW5jeSI6IjUzNEY0QzRGMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAiLCJpc3N1ZXIiOiJyc29MbzJTMWtpR2VDY242aENVWFZyQ3BHTVdMclJyTFp6In0sIkZsYWdzIjo2NTUzNiwiVHJhbnNhY3Rpb25UeXBlIjoiQU1NV2l0aGRyYXciLCJGZWUiOiIxMiIsIlNlcXVlbmNlIjo1ODI3NDA3NywiTGFzdExlZGdlclNlcXVlbmNlIjo5NDM0NDA1NH0=",
    "referenceId": "57d5293a14be48369d05fbcd44e718a0"
  }
}
```

{% endtab %}
{% endtabs %}


# Alex

### Supported Chains

Available on **Stacks Mainnet.**

### Available Endpoints:

*Click on the endpoint to jump to the section with full details*

* [<mark style="color:blue;">**/getprice**</mark>](#getprice) <mark style="color:blue;">`GET`</mark> - Returns the swap quotation for a given token pair on Uniswap V3.
* [<mark style="color:blue;">**/getuserliquidity**</mark>](#getuserliquidity) <mark style="color:blue;">`GET`</mark> - Returns the balance of a particular token pair of accounts.&#x20;
* [<mark style="color:blue;">**/getpoolliquidity**</mark>](#getpoolliquidity) <mark style="color:blue;">`GET`</mark> - Returns the total liquidity for a specified pool.
* [<mark style="color:blue;">**/gettokenliquidity**</mark>](#gettokenliquidity) <mark style="color:blue;">`GET`</mark> - Returns the individual token liquidity within the specified liquidity pool.
* [<mark style="color:blue;">**/**</mark>](#getliquidityholders)[<mark style="color:blue;">**gettokenidprice**</mark><mark style="color:blue;">**`GET`**</mark>](#gettokenidprice) - Returns the USD price of the liquidity token of a particular pool.&#x20;
* [<mark style="color:blue;">**/swap**</mark>](#swap) <mark style="color:green;">`POST`</mark> - Initiate a swap transaction on a specified DEX.&#x20;

### DEX IDs

Many endpoints have a parameter where you can provide a DEX ID.&#x20;

Below is a list of DEX IDs related to Alex. For a complete list and more information, please see the [DEX ID](/ids/dex-ids) page.

| DEX Name | Chain  | DEX ID |
| -------- | ------ | ------ |
| Alex     | Stacks | 3100   |

## Endpoint Details

### /getprice

Returns the swap quotation for a given token pair.

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

#### Query Parameter

| Name                                       | Type   | Description                                                                      |
| ------------------------------------------ | ------ | -------------------------------------------------------------------------------- |
| rpc                                        | String | Remote procedural call URL.                                                      |
| dexId<mark style="color:red;">\*</mark>    | String | Refer to the [DEX ID](https://docs.expand.network/ids/dex-ids) page for details. |
| amountIn<mark style="color:red;">\*</mark> | String | Amount of token.                                                                 |
| path<mark style="color:red;">\*</mark>     | String | Comma separated values of token addresses whose price is to be fetched.          |

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

```url
https://api.expand.network/dex/getprice?path=SP3K8BC0PPEVCV7NZ6QSRWPQ2JE9E5B6N3PA0KBR9.token-wstx,SP3K8BC0PPEVCV7NZ6QSRWPQ2JE9E5B6N3PA0KBR9.brc20-db20&amountIn=100&dexId=3100
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "amountIn": "100",
        "path": [
            "SP3K8BC0PPEVCV7NZ6QSRWPQ2JE9E5B6N3PA0KBR9.token-wstx",
            "SP3K8BC0PPEVCV7NZ6QSRWPQ2JE9E5B6N3PA0KBR9.brc20-db20"
        ],
        "amountsOut": [
            "100",
            "2603"
        ]
    }
}
```

{% endtab %}
{% endtabs %}

### /getuserliquidity

Returns the total liquidity (amount of liquidity pool token) that a user holds.

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

#### Query Parameter

| Name                                      | Type   | Description                                                                      |
| ----------------------------------------- | ------ | -------------------------------------------------------------------------------- |
| rpc                                       | String | Remote procedural call URL.                                                      |
| dexId<mark style="color:red;">\*</mark>   | String | Refer to the [DEX ID](https://docs.expand.network/ids/dex-ids) page for details. |
| address<mark style="color:red;">\*</mark> | String | Public address of liquidity provider.                                            |
| poolId<mark style="color:red;">\*</mark>  | String | pool id of pair                                                                  |

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

```url
https://api.expand.network/dex/getuserliquidity?dexId=3100&poolId=13&address=SP16PBYTMSTXSQY9F0CFNFNYSZ1JD3JGEPM4AZBTD
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "poolId": "13",
        "liquidity": "7031371207288",
        "tokenA": "1047964",
        "tokenB": "21118906"
    }
}
```

{% endtab %}
{% endtabs %}

### /getpoolliquidity

Returns the total liquidity for a specified pool.

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

#### Query Parameter

| Name                                     | Type   | Description                                                                      |
| ---------------------------------------- | ------ | -------------------------------------------------------------------------------- |
| rpc                                      | String | Remote procedural call URL.                                                      |
| dexId<mark style="color:red;">\*</mark>  | String | Refer to the [DEX ID](https://docs.expand.network/ids/dex-ids) page for details. |
| poolId<mark style="color:red;">\*</mark> | String | Pool Id whose liquidity is to be fetched.                                        |

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

```url
https://api.expand.network/dex/getpoolliquidity?dexId=3100&poolId=59
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "totalLiquidity": "900000000000000000"
    }
}
```

{% endtab %}
{% endtabs %}

### /gettokenliquidity

Returns the individual token liquidity within the specified liquidity pool.

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

#### Query Parameter

| Name                                     | Type   | Description                                                                      |
| ---------------------------------------- | ------ | -------------------------------------------------------------------------------- |
| rpc                                      | String | Remote procedural call URL.                                                      |
| dexId<mark style="color:red;">\*</mark>  | String | Refer to the [DEX ID](https://docs.expand.network/ids/dex-ids) page for details. |
| poolId<mark style="color:red;">\*</mark> | String | Pool Id whose liquidity is to be fetched.                                        |

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

```url
https://api.expand.network/dex/gettokenliquidity?dexId=3100&poolId=117
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "token-wstx-v2": "79571081726",
        "token-wchillguy": "115134358586619695"
    }
}
```

{% endtab %}
{% endtabs %}

### /gettokenidprice

Returns the USD price of the liquidity token of a particular pool.&#x20;

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

#### Query Parameter

| Name                                     | Type   | Description                                                                      |
| ---------------------------------------- | ------ | -------------------------------------------------------------------------------- |
| rpc                                      | String | Remote procedural call URL.                                                      |
| dexId<mark style="color:red;">\*</mark>  | String | Refer to the [DEX ID](https://docs.expand.network/ids/dex-ids) page for details. |
| poolId<mark style="color:red;">\*</mark> | String | Pool Id whose USD price of liquidity token is to be fetched.                     |

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

```url
https://api.expand.network/dex/gettokenidprice?dexId=3100&poolId=14
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "poolId": "14",
        "price": "0.9698074551870216"
    }
}
```

{% endtab %}
{% endtabs %}

### /swap

Initiate a swap transaction on a specified DEX.

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

#### Request Body

<table><thead><tr><th width="191">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>dexId<mark style="color:red;">*</mark></td><td>String</td><td>Refer to the <a href="https://docs.expand.network/ids/dex-ids">DEX ID</a> page for details.</td></tr><tr><td>path<mark style="color:red;">*</mark></td><td>String</td><td>Comma-separated values of token addresses, inside an array, to swap.<br>Note: For assets other than XLM (Native token), the token issuer is required.</td></tr><tr><td>amountIn<mark style="color:red;">*</mark></td><td>String</td><td>Amount of token to be swapped.</td></tr><tr><td>amountOutMin</td><td>String</td><td>Minimum amount accepted as the result of swap.</td></tr><tr><td>from<mark style="color:red;">*</mark></td><td>String</td><td>Address of the sender of the token.</td></tr><tr><td>slippage</td><td>String</td><td><p>Percentage of total swap value. By default, 1.</p><p>0 &#x3C;= slippage value &#x3C;= 10</p></td></tr></tbody></table>

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

```json
{
    "dexId": "3100",
    "path": [
        "SP102V8P0F7JX67ARQ77WEA3D3CFB5XW39REDT0AM.token-wstx-v2",
        "sp102v8p0f7jx67arq77wea3d3cfb5xw39redt0am.token-alex"
    ],
    "amountIn": "1000",
    "from": "SP16PBYTMSTXSQY9F0CFNFNYSZ1JD3JGEPM4AZBTD",
    "amountOutMin": "0",
    "slippage": "10"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1700",
        "from": "SP16PBYTMSTXSQY9F0CFNFNYSZ1JD3JGEPM4AZBTD",
        "data": "eyJjb250cmFjdE5hbWUiOiJhbW0tcG9vbC12Mi0wMSIsImZ1bmN0aW9uTmFtZSI6InN3YXAtaGVscGVyIiwiZnVuY3Rpb25BcmdzIjpbeyJ0eXBlIjo2LCJhZGRyZXNzIjp7InR5cGUiOjAsInZlcnNpb24iOjIyLCJoYXNoMTYwIjoiNDAyZGEyYzA3OWU1ZDMxZDU4YjljZmM3Mjg2ZDFiMWViMmY3ODM0ZSJ9LCJjb250cmFjdE5hbWUiOnsidHlwZSI6MiwiY29udGVudCI6InRva2VuLXdzdHgtdjIiLCJsZW5ndGhQcmVmaXhCeXRlcyI6MSwibWF4TGVuZ3RoQnl0ZXMiOjEyOH19LHsidHlwZSI6NiwiYWRkcmVzcyI6eyJ0eXBlIjowLCJ2ZXJzaW9uIjoyMiwiaGFzaDE2MCI6IjQwMmRhMmMwNzllNWQzMWQ1OGI5Y2ZjNzI4NmQxYjFlYjJmNzgzNGUifSwiY29udHJhY3ROYW1lIjp7InR5cGUiOjIsImNvbnRlbnQiOiJ0b2tlbi1hbGV4IiwibGVuZ3RoUHJlZml4Qnl0ZXMiOjEsIm1heExlbmd0aEJ5dGVzIjoxMjh9fSx7InR5cGUiOjEsInZhbHVlIjoiMTAwMDAwMDAwIn0seyJ0eXBlIjoxLCJ2YWx1ZSI6IjEwMDAifSx7InR5cGUiOjEwLCJ2YWx1ZSI6eyJ0eXBlIjoxLCJ2YWx1ZSI6IjE4MTAzIn19XSwiY29udHJhY3RBZGRyZXNzIjoiU1AxMDJWOFAwRjdKWDY3QVJRNzdXRUEzRDNDRkI1WFczOVJFRFQwQU0iLCJwb3N0Q29uZGl0aW9ucyI6W3sidHlwZSI6NSwiY29uZGl0aW9uVHlwZSI6MCwicHJpbmNpcGFsIjp7InR5cGUiOjEsInByZWZpeCI6MiwiYWRkcmVzcyI6eyJ0eXBlIjowLCJ2ZXJzaW9uIjoyMiwiaGFzaDE2MCI6IjRkNjVmYjU0Y2ViYjliZjkyZjAzMWY1N2Q3ZDlmODY0ZDFjYTBlYjUifX0sImNvbmRpdGlvbkNvZGUiOjEsImFtb3VudCI6IjEwIn0seyJ0eXBlIjo1LCJjb25kaXRpb25UeXBlIjoxLCJwcmluY2lwYWwiOnsidHlwZSI6MSwicHJlZml4IjozLCJhZGRyZXNzIjp7InR5cGUiOjAsInZlcnNpb24iOjIyLCJoYXNoMTYwIjoiNDAyZGEyYzA3OWU1ZDMxZDU4YjljZmM3Mjg2ZDFiMWViMmY3ODM0ZSJ9LCJjb250cmFjdE5hbWUiOnsidHlwZSI6MiwiY29udGVudCI6ImFtbS12YXVsdC12Mi0wMSIsImxlbmd0aFByZWZpeEJ5dGVzIjoxLCJtYXhMZW5ndGhCeXRlcyI6MTI4fX0sImNvbmRpdGlvbkNvZGUiOjMsImFtb3VudCI6IjE4MTAzIiwiYXNzZXRJbmZvIjp7InR5cGUiOjQsImFkZHJlc3MiOnsidHlwZSI6MCwidmVyc2lvbiI6MjIsImhhc2gxNjAiOiI0MDJkYTJjMDc5ZTVkMzFkNThiOWNmYzcyODZkMWIxZWIyZjc4MzRlIn0sImNvbnRyYWN0TmFtZSI6eyJ0eXBlIjoyLCJjb250ZW50IjoidG9rZW4tYWxleCIsImxlbmd0aFByZWZpeEJ5dGVzIjoxLCJtYXhMZW5ndGhCeXRlcyI6MTI4fSwiYXNzZXROYW1lIjp7InR5cGUiOjIsImNvbnRlbnQiOiJhbGV4IiwibGVuZ3RoUHJlZml4Qnl0ZXMiOjEsIm1heExlbmd0aEJ5dGVzIjoxMjh9fX1dLCJ2YWxpZGF0ZVdpdGhBYmkiOnRydWV9",
        "referenceId": "10b9072658dd43b388b24bf39471400e"
    }
}
```

{% endtab %}
{% endtabs %}


# DragonSwap

### Supported Chains

Available on Kaia **Mainnet.**

### Available Endpoints:

*Click on the endpoint to jump to the section with full details*

* [<mark style="color:blue;">/getprice</mark>](#getprice) <mark style="color:blue;">`GET`</mark> - Returns the swap quotation for a given token pair on Klayswap V3.
* [<mark style="color:blue;">/getuserliquidity</mark>](#getuserliquidity) <mark style="color:blue;">`GET`</mark> - Returns the balance of a particular token pair of accounts.&#x20;
* [<mark style="color:blue;">/getpoolliquidity</mark>](#getpoolliquidity) <mark style="color:blue;">`GET`</mark> - Returns the total liquidity for a specified pool.
* [<mark style="color:blue;">/gettokenliquidity</mark>](#gettokenliquidity) <mark style="color:blue;">`GET`</mark> - Returns the individual token liquidity within the specified liquidity pool.
* [/<mark style="color:blue;">swap</mark>](#swap) <mark style="color:green;">`POST`</mark> - Initiate a swap transaction on a specified DEX.&#x20;
* [/<mark style="color:blue;">addliquidity</mark>](#addliquidity) <mark style="color:green;">`POST`</mark> - Add liquidity to a specified pool in a specified DEX.&#x20;
* [<mark style="color:blue;">/removeliquidity</mark>](#removeliquidity) <mark style="color:green;">`POST`</mark> - Remove liquidity from a specified pool in a specified DEX.&#x20;

### DEX IDs

Many endpoints have a parameter where you can provide a DEX ID.&#x20;

Below is a list of DEX IDs related to DragonSwap V3. For a complete list and more information, please see the [DEX ID](/ids/dex-ids) page.

| DEX Name      | Chain        | DEX ID |
| ------------- | ------------ | ------ |
| DragonSwap V3 | Kaia Mainnet | 3700   |

## Endpoint Details

### /getprice

Returns the swap quotation for the given token pair.

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

#### Query Parameters

| Name                                       | Type   | Description                                                             |
| ------------------------------------------ | ------ | ----------------------------------------------------------------------- |
| rpc                                        | String | Remote procedural call URL.                                             |
| dexId                                      | String | Refer to the [DEX ID](/ids/dex-ids) page for details.                   |
| path<mark style="color:red;">\*</mark>     | String | Comma separated values of token addresses whose price is to be fetched. |
| amountIn<mark style="color:red;">\*</mark> | String | Amount of token.                                                        |
| poolFees                                   | String | Different pool based on the fees. By default, it is selected as 10000.  |

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

```url
https://api.expand.network/dex/getprice?path=0x0BA2bA407E80bcb8a314649d9bC12efEECC81519,0xd077A400968890Eacc75cdc901F0356c943e4fDb&amountIn=1000000000000000000&vsCurrencies=inr&dexId=3700&poolFees=2000
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "amountIn": "1000000000000000000",
        "path": [
            "0x0BA2bA407E80bcb8a314649d9bC12efEECC81519",
            "0xd077A400968890Eacc75cdc901F0356c943e4fDb"
        ],
        "amountsOut": [
            "1000000000000000000",
            "303"
        ],
        "prices": {
            "usd": [
                {
                    "0x0ba2ba407e80bcb8a314649d9bc12efeecc81519": "NA"
                },
                {
                    "0xd077a400968890eacc75cdc901f0356c943e4fdb": "1.0003293919119833"
                }
            ],
            "inr": [
                {
                    "0x0ba2ba407e80bcb8a314649d9bc12efeecc81519": "NA"
                },
                {
                    "0xd077a400968890eacc75cdc901f0356c943e4fdb": "87.8000000868226"
                }
            ]
        }
    }
}
```

{% endtab %}
{% endtabs %}

Returns the total liquidity for a specified pool.

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

#### Query Parameters

| Name                                          | Type   | Description                                       |
| --------------------------------------------- | ------ | ------------------------------------------------- |
| rpc                                           | String | Remote procedural call URL.                       |
| poolAddress<mark style="color:red;">\*</mark> | String | Pool address whose liquidity is to be fetched.    |
| dexId                                         | String | Refer to [DEX ID](/ids/dex-ids) page for details. |

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

```url
https://api.expand.network/dex/getpoolliquidity?dexId=3700&poolAddress=0xe6FAcE64967c6CDd53651d6ac97a04Bc9ef305d6
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "totalLiquidity": "2411396765347967129"
    }
}
```

{% endtab %}
{% endtabs %}

### /gettokenliquidity

Returns the individual token liquidity within the specified liquidity pool.

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

#### Query Parameters

| Name                                          | Type   | Description                                       |
| --------------------------------------------- | ------ | ------------------------------------------------- |
| rpc                                           | String | Remote procedural call URL.                       |
| poolAddress<mark style="color:red;">\*</mark> | String | The pool address.                                 |
| dexId<mark style="color:red;">\*</mark>       | String | Refer to [DEX ID](/ids/dex-ids) page for details. |

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

```
https://api.expand.network/dex/gettokenliquidity?poolAddress=0xe6FAcE64967c6CDd53651d6ac97a04Bc9ef305d6&vsCurrencies=inr&dexId=3700
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "BOMB": "115964969965512332185276088",
        "USD₮": "18672491500",
        "prices": {
            "usd": [
                {
                    "BOMB": "NA"
                },
                {
                    "USD₮": "1.0003687497958833"
                }
            ],
            "inr": [
                {
                    "BOMB": "NA"
                },
                {
                    "USD₮": "87.81829804266268"
                }
            ]
        }
    }
}
```

{% endtab %}
{% endtabs %}

### /getpoolliquidity

Returns the total liquidity for a specified pool.

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

#### Query Parameters

| Name                                          | Type   | Description                                       |
| --------------------------------------------- | ------ | ------------------------------------------------- |
| rpc                                           | String | Remote procedural call URL.                       |
| poolAddress<mark style="color:red;">\*</mark> | String | Pool address whose liquidity is to be fetched.    |
| dexId<mark style="color:red;">\*</mark>       | String | Refer to [DEX ID](/ids/dex-ids) page for details. |

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

<pre class="language-url"><code class="lang-url"><strong>https://api.expand.network/dex/getpoolliquidity?dexId=3700&#x26;poolAddress=0xe6FAcE64967c6CDd53651d6ac97a04Bc9ef305d6
</strong></code></pre>

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "totalLiquidity": "2413131228303615201"
    }
}
```

{% endtab %}
{% endtabs %}

[back to top](#endpoints-available)

### /getindividualposition

Returns the liquidity position for a specified user address across all the pools for the DEX.&#x20;

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

#### Query Parameters

| Name                                      | Type   | Description                                                                     |
| ----------------------------------------- | ------ | ------------------------------------------------------------------------------- |
| rpc                                       | String | Remote procedural call URL.                                                     |
| address<mark style="color:red;">\*</mark> | String | The public address of the liquidity holder.                                     |
| dexId                                     | String | Refer to [DEX ID](/ids/dex-ids) page for details.                               |
| poolAddresses                             | String | The pool Addresses whose liquidity is to be fetched. *(Comma-separated vaules)* |

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

```url
https://api.expand.network/dex/getindividualposition?address=0x0ebc19619e8aa912d393ca321c0b6b4f7d98697d&dexId=3700
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "aggregatedLiquidity": "13220301478",
        "poolAddresses": {
            "WKLAYUSD₮": {
                "0x938779A1989e7635fdac1E040631255C3555708e": "13220301478"
            }
        }
    }
}
```

{% endtab %}
{% endtabs %}

### /getpool

&#x20;Returns poolAddress, tickSpacing, poolFees, tokensLiquidity and liquidity data based on tokenA and tokenB

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

#### Query Parameters

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

```url
https://api.expand.network/dex/getpool?dexId=3700&tokenA=0x0BA2bA407E80bcb8a314649d9bC12efEECC81519&tokenB=0xd077A400968890Eacc75cdc901F0356c943e4fDb
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": [
        {
            "poolAddress": "0xC4CE4D15E943a7556FD31311882c78329E7C6bCe",
            "poolFees": "100",
            "tickSpacing": "1",
            "tokensLiquidity": {
                "BOMB": "0",
                "USD₮": "3"
            },
            "liquidity": "0"
        },
        {
            "poolAddress": "0x23565CD113957Fd8F8792Ac1d8DC7e171770ba01",
            "poolFees": "500",
            "tickSpacing": "10",
            "tokensLiquidity": {
                "BOMB": "0",
                "USD₮": "1"
            },
            "liquidity": "0"
        },
        {
            "poolAddress": "0x7553E95a0F75Cd725877F2E46b1B3A92269340B4",
            "poolFees": "1000",
            "tickSpacing": "20",
            "tokensLiquidity": {
                "BOMB": "9",
                "USD₮": "8"
            },
            "liquidity": "0"
        },
        {
            "poolAddress": "0xe6FAcE64967c6CDd53651d6ac97a04Bc9ef305d6",
            "poolFees": "2000",
            "tickSpacing": "40",
            "tokensLiquidity": {
                "BOMB": "115964969965512332185276088",
                "USD₮": "18672491500"
            },
            "liquidity": "2411396765347967129"
        },
        {
            "poolAddress": "0x703F6f09003114bB4Ce09089D92b639e81e7939F",
            "poolFees": "5000",
            "tickSpacing": "100",
            "tokensLiquidity": {
                "BOMB": "24",
                "USD₮": "23"
            },
            "liquidity": "0"
        },
        {
            "poolAddress": "0x5f7259d3b662bd41d04955870C627f92197687a5",
            "poolFees": "10000",
            "tickSpacing": "200",
            "tokensLiquidity": {
                "BOMB": "8",
                "USD₮": "12"
            },
            "liquidity": "0"
        }
    ]
}
```

{% endtab %}
{% endtabs %}

### /swap

Initiate a swap transaction on a specified DEX.

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

#### Request Body

| Name                                       | Type   | Description                                                                                 |
| ------------------------------------------ | ------ | ------------------------------------------------------------------------------------------- |
| dexId<mark style="color:red;">\*</mark>    | String | Refer to the [DEX ID](/ids/dex-ids) page for details.                                       |
| path<mark style="color:red;">\*</mark>     | Array  | Comma-separated values of token addresses, inside an array, to swap.                        |
| amountIn<mark style="color:red;">\*</mark> | String | Amount of token to be swapped.                                                              |
| amountOutmin                               | String | Minimum amount accepted as the result of swap.                                              |
| to<mark style="color:red;">\*</mark>       | String | Address of the recipient of the token.                                                      |
| deadline<mark style="color:red;">\*</mark> | String | Deadline for the transaction to be executed (UNIX Timestamp).                               |
| from<mark style="color:red;">\*</mark>     | String | Address of the sender of the token.                                                         |
| gas<mark style="color:red;">\*</mark>      | String | Maximum gas limit provided by the sender, for the transaction.                              |
| poolFees                                   | String | Different pool based on the fees. By default, it is selected as 10000.                      |
| gasPriority                                | String | low, medium, or high.                                                                       |
| slippage                                   | String | <p>Percentage of total swap value. <br>By default, 1.</p><p>0 <= slippage  value <= 100</p> |

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

```json
{
    "path": [
        "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee","0xd077A400968890Eacc75cdc901F0356c943e4fDb"
    ],
    "amountIn": "1000000000000000000",
    "deadline": "1799212923",
    "to": "0x0eBc19619e8aA912d393Ca321c0B6b4f7d98697D",
    "from": "0x0eBc19619e8aA912d393Ca321c0B6b4f7d98697D",
    "gas": "1000000",
    "poolFees": "1000",
    "slippage": "10",
    "dexId": "3700"
}

```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "8217",
        "from": "0x0eBc19619e8aA912d393Ca321c0B6b4f7d98697D",
        "to": "0xA324880f884036E3d21a09B90269E1aC57c7EC8a",
        "gas": "184337",
        "value": "1000000000000000000",
        "data": "0xac9650d800000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000001800000000000000000000000000000000000000000000000000000000000000104414bf38900000000000000000000000019aac5f612f524b754ca7e7c41cbfa2e981a4432000000000000000000000000d077a400968890eacc75cdc901f0356c943e4fdb00000000000000000000000000000000000000000000000000000000000003e80000000000000000000000000ebc19619e8aa912d393ca321c0b6b4f7d98697d000000000000000000000000000000000000000000000000000000006b3dcf7b0000000000000000000000000000000000000000000000000de0b6b3a76400000000000000000000000000000000000000000000000000000000000000018066000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000412210e8a00000000000000000000000000000000000000000000000000000000",
        "gasPrice": "41250000000",
        "estimationCheck": true,
        "referenceId": "2470e3e3df964964b461f8a0afa449d0"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
**With gasPriority:**

```json
{
    "path": [
        "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee","0xd077A400968890Eacc75cdc901F0356c943e4fDb"
    ],
    "amountIn": "1000000000000000000",
    "deadline": "1799212923",
    "to": "0x0eBc19619e8aA912d393Ca321c0B6b4f7d98697D",
    "from": "0x0eBc19619e8aA912d393Ca321c0B6b4f7d98697D",
    "gas": "1000000",
    "poolFees": "1000",
    "gasPriority": "high",
    "slippage": "10",
    "dexId": "3700"
}

```

{% endtab %}

{% tab title="Sample Response" %}
**With gasPriority:**

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "8217",
        "from": "0x0eBc19619e8aA912d393Ca321c0B6b4f7d98697D",
        "to": "0xA324880f884036E3d21a09B90269E1aC57c7EC8a",
        "gas": "184337",
        "value": "1000000000000000000",
        "data": "0xac9650d800000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000001800000000000000000000000000000000000000000000000000000000000000104414bf38900000000000000000000000019aac5f612f524b754ca7e7c41cbfa2e981a4432000000000000000000000000d077a400968890eacc75cdc901f0356c943e4fdb00000000000000000000000000000000000000000000000000000000000003e80000000000000000000000000ebc19619e8aa912d393ca321c0b6b4f7d98697d000000000000000000000000000000000000000000000000000000006b3dcf7b0000000000000000000000000000000000000000000000000de0b6b3a76400000000000000000000000000000000000000000000000000000000000000018066000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000412210e8a00000000000000000000000000000000000000000000000000000000",
        "gasPrice": "41250000000",
        "estimationCheck": true,
        "referenceId": "2470e3e3df964964b461f8a0afa449d0"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
**With Slippage:**

```json
{
    "path": [
        "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee","0xd077A400968890Eacc75cdc901F0356c943e4fDb"
    ],
    "amountIn": "1000000000000000000",
    "deadline": "1799212923",
    "to": "0x0eBc19619e8aA912d393Ca321c0B6b4f7d98697D",
    "from": "0x0eBc19619e8aA912d393Ca321c0B6b4f7d98697D",
    "gas": "1000000",
    "poolFees": "1000",
    "gasPriority": "high",
    "slippage": "10",
    "dexId": "3700"
}

```

{% endtab %}

{% tab title="Sample Response" %}
**With Slippage:**

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "8217",
        "from": "0x0eBc19619e8aA912d393Ca321c0B6b4f7d98697D",
        "to": "0xA324880f884036E3d21a09B90269E1aC57c7EC8a",
        "gas": "184337",
        "value": "1000000000000000000",
        "data": "0xac9650d800000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000001800000000000000000000000000000000000000000000000000000000000000104414bf38900000000000000000000000019aac5f612f524b754ca7e7c41cbfa2e981a4432000000000000000000000000d077a400968890eacc75cdc901f0356c943e4fdb00000000000000000000000000000000000000000000000000000000000003e80000000000000000000000000ebc19619e8aa912d393ca321c0b6b4f7d98697d000000000000000000000000000000000000000000000000000000006b3dcf7b0000000000000000000000000000000000000000000000000de0b6b3a76400000000000000000000000000000000000000000000000000000000000000018066000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000412210e8a00000000000000000000000000000000000000000000000000000000",
        "gasPrice": "41250000000",
        "estimationCheck": true,
        "referenceId": "2470e3e3df964964b461f8a0afa449d0"
    }
}
```

{% endtab %}
{% endtabs %}


# Klayswap V3

### Supported Chains

Available on Kaia **Mainnet.**

### Available Endpoints:

*Click on the endpoint to jump to the section with full details*

* [<mark style="color:blue;">/getprice</mark>](#getprice) <mark style="color:blue;">`GET`</mark> - Returns the swap quotation for a given token pair on Klayswap V3.
* [<mark style="color:blue;">/getuserliquidity</mark>](#getuserliquidity) <mark style="color:blue;">`GET`</mark> - Returns the balance of a particular token pair of accounts.&#x20;
* [<mark style="color:blue;">/getpoolliquidity</mark>](#getpoolliquidity) <mark style="color:blue;">`GET`</mark> - Returns the total liquidity for a specified pool.
* [<mark style="color:blue;">/gettokenliquidity</mark>](#gettokenliquidity) <mark style="color:blue;">`GET`</mark> - Returns the individual token liquidity within the specified liquidity pool.
* [/<mark style="color:blue;">swap</mark>](#swap) <mark style="color:green;">`POST`</mark> - Initiate a swap transaction on a specified DEX.&#x20;
* [/<mark style="color:blue;">addliquidity</mark>](#addliquidity) <mark style="color:green;">`POST`</mark> - Add liquidity to a specified pool in a specified DEX.&#x20;
* [<mark style="color:blue;">/removeliquidity</mark>](#removeliquidity) <mark style="color:green;">`POST`</mark> - Remove liquidity from a specified pool in a specified DEX.&#x20;

### DEX IDs

Many endpoints have a parameter where you can provide a DEX ID.&#x20;

Below is a list of DEX IDs related to Klayswap V3. For a complete list and more information, please see the [DEX ID](/ids/dex-ids) page.

| DEX Name    | Chain        | DEX ID |
| ----------- | ------------ | ------ |
| Klayswap V3 | Kaia Mainnet | 3800   |

## Endpoint Details

### /getprice

Returns the swap quotation for a given token pair on Klayswap V3

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

#### Query Parameters

| Name                                       | Type   | Description                                                             |
| ------------------------------------------ | ------ | ----------------------------------------------------------------------- |
| rpc                                        | String | Remote procedural call URL.                                             |
| dexId<mark style="color:red;">\*</mark>    | String | See the [DEX ID](#dex-ids) page for a list of all DEX IDs.              |
| path<mark style="color:red;">\*</mark>     | String | Comma separated values of token addresses whose price is to be fetched. |
| amountIn<mark style="color:red;">\*</mark> | String | Amount of token.                                                        |
| poolFees                                   | String | Different pool based on the fees. By default, it is selected as 3000.   |

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

```url
https://api.expand.network/dex/getprice?path=0x19aac5f612f524b754ca7e7c41cbfa2e981a4432%2C0xe815a060b9279eba642f8c889fab7afc0d0aca63&amountIn=100000000000&vsCurrencies=inr&dexId=3800
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "amountIn": "100000000000",
        "path": [
            "0x19aac5f612f524b754ca7e7c41cbfa2e981a4432",
            "0xe815a060b9279eba642f8c889fab7afc0d0aca63"
        ],
        "amountsOut": [
            "100000000000",
            "26756168926310"
        ],
        "prices": {
            "usd": [
                {
                    "0x19aac5f612f524b754ca7e7c41cbfa2e981a4432": "0.15094559073474745"
                },
                {
                    "0xe815a060b9279eba642f8c889fab7afc0d0aca63": "0.000552569860306771"
                }
            ],
            "inr": [
                {
                    "0x19aac5f612f524b754ca7e7c41cbfa2e981a4432": "13.394202277525034"
                },
                {
                    "0xe815a060b9279eba642f8c889fab7afc0d0aca63": "0.04903245232527941"
                }
            ]
        }
    }
}
```

{% endtab %}
{% endtabs %}

[<mark style="color:blue;">back to top</mark>](#endpoints-available)

### /getindividualposition

Returns the liquidity position for a specified user address across all the pools for a given DEX.

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

#### Query Parameters

| Name                                            | Type   | Description                                                                     |
| ----------------------------------------------- | ------ | ------------------------------------------------------------------------------- |
| rpc                                             | String | Remote procedural call URL.                                                     |
| poolAddresses<mark style="color:red;">\*</mark> | String | The pool Addresses whose liquidity is to be fetched. *(Comma-separated vaules)* |
| dexId<mark style="color:red;">\*</mark>         | String | Refer to [DexId](/ids/dex-ids) page for details.                                |
| address<mark style="color:red;">\*</mark>       | String | The public address of the liquidity holder.                                     |

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

```url
https://api.expand.network/dex/getindividualposition?address=0xb6ab494d9b20ede5e57b42b6d7f058a9c802b0e2&poolAddresses=0x191a182fb17f2f675975e53ee879fac113e848ab&dexId=3800
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "aggregatedLiquidity": "95899567691827176369068",
        "poolAddresses": {
            "KSPoUSDT": {
                "0x21eCDFb99772b10fb913a6F4658A9F97185C82Be": "47575488039154"
            },
            "oWBTCoETH": {
                "0x3EBAa1bc3a4812bEFAa1Ba3f611FA3C7B75dAb43": "59972988388"
            },
            "WKLAYKCD": {
                "0xBaD00f23c69Ef33260Bc238C382263EDE81F2788": "8312675688443705086"
            },
            "WKLAYSKLAY": {
                "0x15b6cdf8Ba5E1843f05D21e48DE4E2f726B8A66f": "18206220498940597001"
            },
            "WKLAYoORC-S": {
                "0x3Da5272C3A0E3d41De4F7601054155461E4ec897": "88423114140914193068966"
            },
            "WKLAYKTU": {
                "0x9F694553Dbc2E420E160383a988Fb8197af339b4": "1224290378684356488636"
            },
            "WKLAYKSP": {
                "0x033255aB9B4a267D1eb5621c3B95007F2048b1F3": "53948147290090809095"
            },
            "WKLAYGXA": {
                "0x71F4F8832a8DeF3C148DD5c4FAE1C84a54938100": "498456459756672919440"
            },
            "WKLAYoWEMIX": {
                "0x0c4E316F4B9DcDEA6bA3da96BbB5567dD955E0b6": "12745500112011056148"
            },
            "oUSDCoUSDT": {
                "0x5a41C41A3141a89ea3618269A4Abe9e5EbEbE8c0": "30035837"
            },
            "oWBTCsBWPM": {
                "0x4bbB84D768F744B0bd32aafA0264c3d31e63153E": "18954365326"
            },
            "KSPoORC-S": {
                "0x01d24357809E0642EedAc745271202f56Ad197f5": "379815573924825280104"
            },
            "oWBTCoUSDT": {
                "0x5D6E306D0d534C439C356c6a7E4cbA15fd0564AB": "371081"
            },
            "oETHoUSDT": {
                "0x6B0177E96C3623B6F6940dA18378d52f78CeA12D": "797227830299"
            },
            "BORAWKLAY": {
                "0x9DD1F13a16d2A3924Df105a86E027C1C43490D5E": "33019012257688786308"
            },
            "KSPMBX": {
                "0x2e8561D0A2153978335cF8e8446C61C76c5C704A": "4765578435449351382564"
            },
            "oWBTCWKLAY": {
                "0xf1Bbb24132d3Ed2C6067130300289baf0e5e2A57": "846114215623"
            },
            "oWEMIXKSP": {
                "0xD7A7cB5Fe4488f2Fa7f23c2E7052a66191bA6d84": "235011202306965828567"
            },
            "GRNDoUSDT": {
                "0x7957FF7046b2794E65D1731349A67319ec38EE3a": "29810379550317"
            },
            "GXAoUSDT": {
                "0x1636762D565cA8E875aBc8DF26Ea0652693a8021": "188327754363788"
            },
            "oWEMIXoUSDT": {
                "0xd01e0c5f2F8037Da5d612ec5989b1A1FfD28a72B": "7100179676421"
            },
            "WKLAYMBX": {
                "0x277E85A9228d7711586F4156D3937B35CBAc7792": "29077301190037109023"
            },
            "GPCKSP": {
                "0x14CB95Aa0cA7188EFC5254bAA488aab09990e0C4": "11741096247189138247"
            },
            "WKLAYKDAI": {
                "0x63893baA4F92A248c93937ef2Bab3b72B658Cf04": "8853785335843203425"
            },
            "oBNBoUSDT": {
                "0x14aFEda13bC2028cEf34d3F45d1b4e3f44747b9a": "267539133370"
            },
            "oSOL-BoUSDT": {
                "0x3f18F2c3525CF0413FA0AB68726aA6e82F6764f2": "1110841467450"
            },
            "KDAIMBX": {
                "0xDC4eC1AFA3308C249499172f7fc65223F1B36AC2": "6073058497386581511"
            },
            "oWEMIXoUSDC": {
                "0x080bF7534c359980D918D7A43e4Dcd8f21ee8Aae": "6781306522085"
            },
            "KDAIKSP": {
                "0x0a7e1D8a48AfD2281074C082873d655Bd017C68c": "105175768862008026115"
            },
            "WKLAYoETH": {
                "0xFeED282a0d6F1Dd86838997E80B7A2CF5b5bE483": "706150521601985135"
            },
            "WKLAYoUSDT": {
                "0x2C081F2EE4aC7C695CAf6ae0fCB83Ca4EdD0F61f": "33908276261960"
            },
            "WKLAYoUSDC": {
                "0x5bCeDc22468095DafeAE066f3951232c24FC0fb1": "11211293483872"
            },
            "KDAIoUSDT": {
                "0x8d688181b13482863eD748af440eda1093504a62": "50012116822185"
            },
            "KDAIoORC-S": {
                "0xFC65C95333058aA489a4d6D5b7785956CC19cc47": "83591495010689904499"
            },
            "CLAMoUSDT": {
                "0x633fD7084e9B2c098B88E90A2FCb582AF5d9b0E1": "49174702660525"
            },
            "oETHKSP": {
                "0xBBEB70f8448Aa4047aF3Ab70d3f8dB72a98ed240": "148569593208348109"
            },
            "oUSDCKSP": {
                "0xc21cFA4F55Dc0ce9c310159196Cf9f5532943777": "28470471174324"
            },
            "WKLAYoSOL-B": {
                "0x5B774FC45ffcc64123036d6AF952D7b353342890": "1702264213023189084"
            }
        }
    }
}




```

{% endtab %}
{% endtabs %}

[back to top](#endpoints-available)

### /getpoolliquidity

Returns the total liquidity for a specified pool.

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

#### Query Parameters

| Name                                          | Type   | Description                                       |
| --------------------------------------------- | ------ | ------------------------------------------------- |
| rpc                                           | String | Remote procedural call URL.                       |
| poolAddress<mark style="color:red;">\*</mark> | String | Pool address whose liquidity is to be fetched.    |
| dexId<mark style="color:red;">\*</mark>       | String | Refer to [DEX ID](/ids/dex-ids) page for details. |

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

```url
https://api.expand.network/dex/getpoolliquidity?poolAddress=0x191a182fb17f2f675975e53ee879fac113e848ab&dexId=3800
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "totalLiquidity": "10313363211346636331660"
    }
}
```

{% endtab %}
{% endtabs %}

[back to top](#endpoints-available)

### /getpool

&#x20;Returns poolAddress, tickSpacing, poolFees, tokensLiquidity and liquidity data based on tokenA and tokenB

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

#### Query Parameters

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

```url
https://api.expand.network/dex/getpool?tokenA=0x19aac5f612f524b754ca7e7c41cbfa2e981a4432&tokenB=0xe815a060b9279eba642f8c889fab7afc0d0aca63&dexId=3800
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": [
        {
            "poolAddress": "0x179f9e9a643988f4fBC5b7F0A718EF7cc16dC0D2",
            "poolFees": "100",
            "tickSpacing": "1",
            "tokensLiquidity": {
                "WKLAY": "0",
                "META": "0"
            },
            "liquidity": "0"
        },
        {
            "poolAddress": "0x191A182Fb17F2F675975e53ee879faC113e848Ab",
            "poolFees": "2000",
            "tickSpacing": "40",
            "tokensLiquidity": {
                "WKLAY": "40433694414507887756",
                "META": "507645839619610930096654"
            },
            "liquidity": "10313363211346636331660"
        },
        {
            "poolAddress": "0x938c55c1a75bE120928fF6Fd6F0E6C2b9FF85f9f",
            "poolFees": "10000",
            "tickSpacing": "200",
            "tokensLiquidity": {
                "WKLAY": "117848622190866910092",
                "META": "32091197095856557038939"
            },
            "liquidity": "1879931609622313478885"
        }
    ]
}
```

{% endtab %}
{% endtabs %}

### /gettokenliquidity

Returns the individual token liquidity within the specified liquidity pool.

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

#### Query Parameters

| Name                                          | Type   | Description                                       |
| --------------------------------------------- | ------ | ------------------------------------------------- |
| rpc                                           | String | Remote procedural call URL.                       |
| poolAddress<mark style="color:red;">\*</mark> | String | The pool address.                                 |
| dexId<mark style="color:red;">\*</mark>       | String | Refer to [DEX ID](/ids/dex-ids) page for details. |

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

```
https://api.expand.network/dex/gettokenliquidity?poolAddress=0x191a182fb17f2f675975e53ee879fac113e848ab&vsCurrencies=inr&dexId=3800
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "WKLAY": "40433694414507887756",
        "META": "507645839619610930096654",
        "prices": {
            "usd": [
                {
                    "WKLAY": "0.1511168281459648"
                },
                {
                    "META": "0.000551120861421028"
                }
            ],
            "inr": [
                {
                    "WKLAY": "13.409397080580627"
                },
                {
                    "META": "0.04890387497445336"
                }
            ]
        }
    }
}
```

{% endtab %}
{% endtabs %}

[back to top](#endpoints-available)

### /swap

Initiate a swap transaction on a specified DEX.

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

#### Request Body

<table><thead><tr><th width="233.6796875">Name</th><th width="203.71484375">Type</th><th>Description</th></tr></thead><tbody><tr><td>rpc</td><td>String</td><td>Remote procedural call URL.</td></tr><tr><td>dexId<mark style="color:red;">*</mark></td><td>String</td><td>Refer to the <a href="/pages/TTKE85z6mWOr5G3jQ5gB">DEX ID</a> page for details. </td></tr><tr><td>path<mark style="color:red;">*</mark></td><td>Array</td><td>Comma-separated values of token addresses, inside an array, to swap.</td></tr><tr><td>amountIn<mark style="color:red;">*</mark></td><td>String</td><td>Amount of token to be swapped.</td></tr><tr><td>amountOutMin</td><td>String</td><td>Minimum amount accepted as a result of swap.</td></tr><tr><td>to<mark style="color:red;">*</mark></td><td>String</td><td>Address of the recipient of the token.</td></tr><tr><td>from<mark style="color:red;">*</mark></td><td>String</td><td>Address of the sender of the token.</td></tr><tr><td>gas</td><td>String</td><td>Maximum gas limit provided by the sender, for the transaction.</td></tr><tr><td>poolFees</td><td>String</td><td>Different pool based on the fees. By default, it is selected as 3000.</td></tr><tr><td>gasPriority</td><td>String</td><td>low, medium, or high.</td></tr><tr><td>slippage</td><td>String</td><td><p>Percentage of total swap value. <br>By default, 1.</p><p>0 &#x3C;= slippage  value &#x3C;= 100</p></td></tr><tr><td>deadline<mark style="color:red;">*</mark></td><td>String</td><td>Deadline for the transaction to be executed (UNIX Timestamp).</td></tr></tbody></table>

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

```json
{
    "path": [
        "0x19aac5f612f524b754ca7e7c41cbfa2e981a4432",
        "0xe815a060b9279eba642f8c889fab7afc0d0aca63"
    ],
    "amountIn": "100000000000",
    "deadline": "1799212923",
    "to": "0xb6ab494d9b20ede5e57b42b6d7f058a9c802b0e2",
    "from": "0xb6ab494d9b20ede5e57b42b6d7f058a9c802b0e2",
    "amountOutMin": "10",
    "gas": "1000000",
    "poolFees": "100",
    "gasPriority": "high",
    "slippage": "30",
    "dexId": "3800"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "8217",
        "from": "0xb6ab494d9b20ede5e57b42b6d7f058a9c802b0e2",
        "to": "0x7F102E3340eb649550A48AC40013A56136FDefB5",
        "gas": "1000000",
        "value": "0",
        "data": "0x414bf38900000000000000000000000019aac5f612f524b754ca7e7c41cbfa2e981a4432000000000000000000000000e815a060b9279eba642f8c889fab7afc0d0aca630000000000000000000000000000000000000000000000000000000000000064000000000000000000000000b6ab494d9b20ede5e57b42b6d7f058a9c802b0e2000000000000000000000000000000000000000000000000000000006b3dcf7b000000000000000000000000000000000000000000000000000000174876e800000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000000",
        "gasPrice": "41250000000",
        "estimationCheck": true,
        "referenceId": "fefa062c922642cf860857baf0ddb270"
    }
}
```

{% endtab %}
{% endtabs %}

[back to top](#endpoints-available)


# 0x (Aggregator)

### /getprice

Returns the best swap quotation for the given token pair.

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

#### Query Parameters

| Name                                       | Type   | Description                                                                  |
| ------------------------------------------ | ------ | ---------------------------------------------------------------------------- |
| rpc                                        | String | Remote procedural call URL.                                                  |
| dexId<mark style="color:red;">\*</mark>    | String | Refer to the [DEX ID](broken://pages/8x8qwIu19Aq8uFsjOXvI) page for details. |
| path<mark style="color:red;">\*</mark>     | String | Comma separated values of token addresses whose price is to be fetched.      |
| amountIn<mark style="color:red;">\*</mark> | String | Amount of token.                                                             |

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

```url
https://api.expand.network/dex/getprice?dexId=1600&path=0xdac17f958d2ee523a2206206994597c13d831ec7%2C0x6B175474E89094C44Da98b954EedeAC495271d0F&amountIn=10000000000000
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "amountIn": "10000000000000",
        "path": [
            "0xdac17f958d2ee523a2206206994597c13d831ec7",
            "0x6B175474E89094C44Da98b954EedeAC495271d0F"
        ],
        "amountsOut": [
            "10000000000000",
            "9980737729411015490500127"
        ]
    }
}
```

{% endtab %}
{% endtabs %}

### /getliquiditysources

Get the liquidity sources for the specified dex aggregator(on the basis of chain), supported by expand.network.

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

#### Query Parameters

| Name                                    | Type   | Description                                                                  |
| --------------------------------------- | ------ | ---------------------------------------------------------------------------- |
| rpc                                     | String | Remote procedural call URL.                                                  |
| dexId<mark style="color:red;">\*</mark> | String | Refer to the [DEX ID](broken://pages/8x8qwIu19Aq8uFsjOXvI) page for details. |

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

```url
https://api.expand.network/dex/getliquiditysources?dexId=1602
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": [
        "0x_RFQ",
        "ApeSwap",
        "Balancer_V2",
        "Curve",
        "DODO_V2",
        "Dfyn",
        "Meshswap",
        "Polycat",
        "QuickSwap_V2",
        "QuickSwap_V3",
        "Retro",
        "Stepn",
        "SushiSwap",
        "SushiSwap_V3",
        "Synapse",
        "Uniswap_V2",
        "Uniswap_V3",
        "WOOFi_V2",
        "WaultSwap",
        "Wrapped_USDM"
    ]
}
```

{% endtab %}
{% endtabs %}

### /swap

Initiate a swap transaction on the DEX providing best swap quote.

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

#### Request Body

| Name                                       | Type   | Description                                                                                 |
| ------------------------------------------ | ------ | ------------------------------------------------------------------------------------------- |
| dexId<mark style="color:red;">\*</mark>    | String | Refer to the [DEX ID](broken://pages/8x8qwIu19Aq8uFsjOXvI) page for details.                |
| path<mark style="color:red;">\*</mark>     | Array  | Comma-separated values of token addresses, inside an array, to swap.                        |
| amountIn<mark style="color:red;">\*</mark> | String | Amount of token to be swapped.                                                              |
| amountOutMin                               | String | Minimum amount accepted as the result of swap.                                              |
| from<mark style="color:red;">\*</mark>     | String | Address of the sender of the token.                                                         |
| gas                                        | String | Maximum gas limit provided by the sender, for the transaction.                              |
| rpc                                        | String | Remote procedural call URL.                                                                 |
| slippage                                   | String | <p>Percentage of total swap value. <br>By default, 1.</p><p>0 <= slippage  value <= 100</p> |
| gasPriority                                | String | low, medium, or high.                                                                       |

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

```json
{
    "dexId": "1600",
    "amountIn": "1000000000000000000",
    "path": [
        "0x6B175474E89094C44Da98b954EedeAC495271d0F",
        "0xdAC17F958D2ee523a2206206994597C13D831ec7"
    ],
    "to": "0x6AFb0df2F5ab5012568991549544dbC44Dfb6483",
    "from": "0x6AFb0df2F5ab5012568991549544dbC44Dfb6483",
    "gas": "990089"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x6AFb0df2F5ab5012568991549544dbC44Dfb6483",
        "to": "0x70bf6634ee8cb27d04478f184b9b8bb13e5f4710",
        "value": "0",
        "gas": "990089",
        "data": "0x1fff991f0000000000000000000000006afb0df2f5ab5012568991549544dbc44dfb6483000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec700000000000000000000000000000000000000000000000000000000000f150000000000000000000000000000000000000000000000000000000000000000a02f9702771d7e08c60d140fc3a1a0780000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000004c000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000180000000000000000000000000000000000000000000000000000000000000036000000000000000000000000000000000000000000000000000000000000000c4339a023000000000000000000000000070bf6634ee8cb27d04478f184b9b8bb13e5f4710000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb480000000000000000000000000000000000000000000000000000000000002710000000000000000000000000f6e72db5454dd049d0788e411b06cfaf16853042000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001a4d92aadfb00000000000000000000000070bf6634ee8cb27d04478f184b9b8bb13e5f4710000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec700000000000000000000000000000000000000000000000000000000000f41c8ae0cd7b8d6179a1b999436fda67d84362e6ba4dfe7ce386e8a5967a333324d41000000000000000000000000000000000000000000000000000000006746fc36000000000000000000000000b02f39e382c90160eb816de5e0e428ac771d77b50000000000000000000000000000000000000000000000000000000000000120000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb4800000000000000000000000000000000000000000000000000000000000f424000000000000000000000000000000000000000000000000000000000000000411c0eaf75a50eec050bea87df0f50e8e9045e4ee0e983e6ebec5d37ecd154b1b61d0752a856a866e1872bc913dd8619a88c497b133138503e8b892aa85c4ef822b70000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000012438c9c147000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec7000000000000000000000000000000000000000000000000000000000000000f000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec7000000000000000000000000000000000000000000000000000000000000002400000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000044a9059cbb000000000000000000000000ad01c20d5886137e056775af56915de824c8fce500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffc1fb425e00000000000000000000000070bf6634ee8cb27d04478f184b9b8bb13e5f47100000000000000000000000006b175474e89094c44da98b954eedeac495271d0f0000000000000000000000000000000000000000000000000de0b6b3a76400000000000000000000000000000000000000006e898131631616b1779bad70bc17000000000000000000000000000000000000000000000000000000006746fd2200000000000000000000000000000000000000000000000000000000000000c0",
        "estimationCheck": true,
        "referenceId": "6331a5b9fe3a4360b1dd5a3b0e76fd88"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
**With gasPriority:**

```json
{
    "dexId": "1600",
    "amountIn": "1000000000000000000",
    "path": [
        "0x6B175474E89094C44Da98b954EedeAC495271d0F",
        "0xdAC17F958D2ee523a2206206994597C13D831ec7"
    ],
    "to": "0x6AFb0df2F5ab5012568991549544dbC44Dfb6483",
    "from": "0x6AFb0df2F5ab5012568991549544dbC44Dfb6483",
    "gas": "990089",
    "gasPriority": "low"
}
```

{% endtab %}

{% tab title="Sample Response" %}
**With gasPriority:**

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x6AFb0df2F5ab5012568991549544dbC44Dfb6483",
        "to": "0x70bf6634ee8cb27d04478f184b9b8bb13e5f4710",
        "value": "0",
        "gas": "990089",
        "data": "0x1fff991f0000000000000000000000006afb0df2f5ab5012568991549544dbc44dfb6483000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec700000000000000000000000000000000000000000000000000000000000f149d00000000000000000000000000000000000000000000000000000000000000a05cdc6e9f2b14a0d7cc1b3156a1a0780000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000004c000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000180000000000000000000000000000000000000000000000000000000000000036000000000000000000000000000000000000000000000000000000000000000c4339a023000000000000000000000000070bf6634ee8cb27d04478f184b9b8bb13e5f4710000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb480000000000000000000000000000000000000000000000000000000000002710000000000000000000000000f6e72db5454dd049d0788e411b06cfaf16853042000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001a4d92aadfb00000000000000000000000070bf6634ee8cb27d04478f184b9b8bb13e5f4710000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec700000000000000000000000000000000000000000000000000000000000f415a852e6ace002d4125cd21e106f3317701d66b58a997a8d61df24002dd60307010000000000000000000000000000000000000000000000000000000006746fc67000000000000000000000000ff8ba4d1fc3762f6154cc942ccf30049a2a0cec60000000000000000000000000000000000000000000000000000000000000120000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb4800000000000000000000000000000000000000000000000000000000000f424000000000000000000000000000000000000000000000000000000000000000419ccc5eddb539be5e34b28e24afca89a373efa80b2525595c5acf87c46170ea336d304d3ca5585e7e67ffe5df92ac91c7824d35881492c6c1aecef2518c9e48251c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000012438c9c147000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec7000000000000000000000000000000000000000000000000000000000000000f000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec7000000000000000000000000000000000000000000000000000000000000002400000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000044a9059cbb000000000000000000000000ad01c20d5886137e056775af56915de824c8fce500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffc1fb425e00000000000000000000000070bf6634ee8cb27d04478f184b9b8bb13e5f47100000000000000000000000006b175474e89094c44da98b954eedeac495271d0f0000000000000000000000000000000000000000000000000de0b6b3a76400000000000000000000000000000000000000006e898131631616b1779bad70bc16000000000000000000000000000000000000000000000000000000006746fd3a00000000000000000000000000000000000000000000000000000000000000c0",
        "gasPrice": "13752602380",
        "estimationCheck": true,
        "referenceId": "5dc5e1e4455d4f978fa9fbb8e353fab0"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
**With Slippage:**

```json
{
    "dexId": "1600",
    "amountIn": "1000000000000000",
    "path": [
        "0x6B175474E89094C44Da98b954EedeAC495271d0F",
        "0xdAC17F958D2ee523a2206206994597C13D831ec7"
    ],
    "to": "0x22cf65Ae3fa16d6379E72F4B4c2401c1B7C69731",
    "from": "0x22cf65Ae3fa16d6379E72F4B4c2401c1B7C69731",
    "amountOutMin": "10000000",
    "gas": "990089",
    "gasPriority": "medium",
    "slippage": "8"
}
```

{% endtab %}

{% tab title="Sample Response" %}
**With Slippage:**

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x22cf65Ae3fa16d6379E72F4B4c2401c1B7C69731",
        "to": "0x70bf6634ee8cb27d04478f184b9b8bb13e5f4710",
        "value": "0",
        "gas": "990089",
        "data": "0x1fff991f00000000000000000000000022cf65ae3fa16d6379e72f4b4c2401c1b7c69731000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec7000000000000000000000000000000000000000000000000000000000000039400000000000000000000000000000000000000000000000000000000000000a034705e63360d7c1d5877b9d4a1a07800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000070000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000001c00000000000000000000000000000000000000000000000000000000000000360000000000000000000000000000000000000000000000000000000000000048000000000000000000000000000000000000000000000000000000000000005a000000000000000000000000000000000000000000000000000000000000000c4339a023000000000000000000000000070bf6634ee8cb27d04478f184b9b8bb13e5f4710000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb480000000000000000000000000000000000000000000000000000000000002710000000000000000000000000f6e72db5454dd049d0788e411b06cfaf168530420000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000016438c9c147000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48000000000000000000000000000000000000000000000000000000000000271000000000000000000000000014100f81e33c33ecc7cdac70181fb45b6e78569f000000000000000000000000000000000000000000000000000000000000004400000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000843df021240000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000e48d68a15600000000000000000000000070bf6634ee8cb27d04478f184b9b8bb13e5f4710000000000000000000000000000000000000000000000000000000000000138800000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002c73a15fed60bf67631dc6cd7bc5b6e8da8190acf500000bb8dac17f958d2ee523a2206206994597c13d831ec700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000e48d68a15600000000000000000000000070bf6634ee8cb27d04478f184b9b8bb13e5f4710000000000000000000000000000000000000000000000000000000000000271000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002c73a15fed60bf67631dc6cd7bc5b6e8da8190acf5010001f4dac17f958d2ee523a2206206994597c13d831ec7000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000012438c9c147000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec7000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec7000000000000000000000000000000000000000000000000000000000000002400000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000044a9059cbb000000000000000000000000ad01c20d5886137e056775af56915de824c8fce500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffc1fb425e00000000000000000000000070bf6634ee8cb27d04478f184b9b8bb13e5f47100000000000000000000000006b175474e89094c44da98b954eedeac495271d0f00000000000000000000000000000000000000000000000000038d7ea4c680000000000000000000000000000000000000006e898131631616b1779bad70bc24000000000000000000000000000000000000000000000000000000006746fd5200000000000000000000000000000000000000000000000000000000000000c0",
        "gasPrice": "16286719698",
        "estimationCheck": true,
        "referenceId": "34ca65823d7b4668934185e9298123f9"
    }
}
```

{% endtab %}
{% endtabs %}


# 1inch (Aggregator)

### Geofencing Notice

**Important:** This API is geofenced and **cannot** be accessed within the United States. Any requests originating from the U.S. will be denied.&#x20;

### /getprice

Returns the best swap quotation for the given token pair.

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

#### Query Parameters

| Name                                       | Type   | Description                                                                          |
| ------------------------------------------ | ------ | ------------------------------------------------------------------------------------ |
| rpc                                        | String | Remote procedural call URL.                                                          |
| dexId<mark style="color:red;">\*</mark>    | String | Refer to the [DEX ID](broken://pages/8x8qwIu19Aq8uFsjOXvI) page for details.         |
| path<mark style="color:red;">\*</mark>     | String | Comma separated values of token addresses/token symbol whose price is to be fetched. |
| amountIn<mark style="color:red;">\*</mark> | String | Amount of token.                                                                     |
| slippage                                   | String | <p>Percentage of total swap value. <br>By default, 1.</p>                            |

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

```url
https://api.expand.network/dex/getprice?path=0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE%2C0x6B175474E89094C44Da98b954EedeAC495271d0F&amountIn=1000000000000000000&dexId=1700
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "amountIn": "1000000000000000000",
        "path": [
            "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE",
            "0x6B175474E89094C44Da98b954EedeAC495271d0F"
        ],
        "amountsOut": [
            "1000000000000000000",
            "1987156918504513709869"
        ]
    }
}
```

{% endtab %}
{% endtabs %}

### /getliquiditysources

Get the liquidity sources for the specified dex aggregator(on the basis of chain), supported by expand.network.

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

#### Query Parameters

| Name                                    | Type   | Description                                                                  |
| --------------------------------------- | ------ | ---------------------------------------------------------------------------- |
| rpc                                     | String | Remote procedural call URL.                                                  |
| dexId<mark style="color:red;">\*</mark> | String | Refer to the [DEX ID](broken://pages/8x8qwIu19Aq8uFsjOXvI) page for details. |

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

```url
https://api.expand.network/dex/getliquiditysources?dexId=1702
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": [
        "Aave",
        "Curve",
        "Curve V2",
        "Kyber DMM",
        "1inch Limit Order Protocol V2",
        "1inch Limit Order Protocol V3",
        "SushiSwap",
        "Baguette",
        "Canary",
        "ELK",
        "Lydia",
        "OliveSwap",
        "Pangolin",
        "TraderJoe",
        "Yetti",
        "Thorus",
        "Hakuswap",
        "Platypus",
        "WOOFi",
        "Axial",
        "ElasticSwap",
        "GMX",
        "Nerve Finance",
        "RadioShack",
        "KyberSwap Elastic",
        "SwapSicle",
        "Kyber DMM Static",
        "Aave V3",
        "TraderJoe V2",
        "DODO",
        "WOOFi V2",
        "Trident",
        "TraderJoe V2.1",
        "Nomiswap-epcs",
        "Uniswap V3",
        "Balancer V2",
        "PMM11",
        "Wombat"
    ]
}
```

{% endtab %}
{% endtabs %}

### /swap

Initiate a swap transaction on the DEX providing best swap quote.

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

#### Request Body

| Name                                       | Type   | Description                                                                                 |
| ------------------------------------------ | ------ | ------------------------------------------------------------------------------------------- |
| dexId<mark style="color:red;">\*</mark>    | String | Refer to the [DEX ID](broken://pages/8x8qwIu19Aq8uFsjOXvI) page for details.                |
| path<mark style="color:red;">\*</mark>     | Array  | Comma-separated values of token addresses/token symbol, inside an array, to swap.           |
| amountIn<mark style="color:red;">\*</mark> | String | Amount of token to be swapped.                                                              |
| from<mark style="color:red;">\*</mark>     | String | Address of the sender of the token.                                                         |
| gas                                        | String | Maximum gas limit provided by the sender, for the transaction.                              |
| rpc                                        | String | Remote procedural call URL.                                                                 |
| slippage                                   | String | <p>Percentage of total swap value. <br>By default, 1.</p><p>0 <= slippage  value <= 100</p> |
| gasPriority                                | String | low, medium, or high.                                                                       |

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

```json
{
    "dexId": "1700",
    "amountIn": "100000000000000",
    "path": [
        "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
        "0x6B175474E89094C44Da98b954EedeAC495271d0F"
    ],
    "gas": "873376",
    "from": "0x40B38765696e3d5d8d9d834D8AaD4bB6e418E489"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "from": "0x40b38765696e3d5d8d9d834d8aad4bb6e418e489",
        "to": "0x1111111254eeb25477b68fb85ed929f73a960582",
        "data": "0x12aa3caf0000000000000000000000005f515f6c524b18ca30f7783fb58dd4be2e9904ec000000000000000000000000eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee0000000000000000000000006b175474e89094c44da98b954eedeac495271d0f0000000000000000000000005f515f6c524b18ca30f7783fb58dd4be2e9904ec00000000000000000000000040b38765696e3d5d8d9d834d8aad4bb6e418e48900000000000000000000000000000000000000000000000000005af3107a4000000000000000000000000000000000000000000000000000039164fbfd8245ff000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000160000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002e88cb415be2ce6ff09e7176ae5fde019288fbde721069e3a897cbe8d2cc23f1d83997ffcdd16ec52e55ff223cf826bd494b3ad1c071b475bc4de0981357f66c4ad00000000000000000000000000000000000000000000000000028a00001a4041c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2d0e30db05120111111125421ca6dc452d289314280a0f8842a65c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2012456a75868b57787bba02b068946e2017d3a92507dbf742e481eb758b0c85fd519fb0ff56c000000000000000000000000807cf9a772d5a3f9cefbc1192e939d62f0d9bd3800000000000000000000000000000000000000000000000000000000000000000000000000000000000000006b175474e89094c44da98b954eedeac495271d0f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2000000000000000000000000000000000000000000000000039aa200f6ca6b6b00000000000000000000000000000000000000000000000000005af3107a400000000000000000000000000000000079f60066c6164b0000000000000000000000000000000000000000000000000000000000000000000000000000000001800000000000000000000000000000000000000000000000000000000000000000280000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000041fae29d60889c1159afef38d10abaef184765ce9eb84db06cd92e291bfa224adf084269d9405b5332b862d7d84cfa5942d4270c28b93b85b2c4f56ab8b4fdba5b1c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000141111111254eeb25477b68fb85ed929f73a960582000000000000000000000000000000000000000000000000000000000000000000000000caefa361",
        "value": "100000000000000",
        "gas": "873376",
        "referenceId": "7a3b7da5567e44fd98e994455e2495b7"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
**With gasPriority:**

```json
{
    "dexId": "1700",
    "amountIn": "100000000000000",
    "path": [
        "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
        "0x6B175474E89094C44Da98b954EedeAC495271d0F"
    ],
    "gas": "873376",
    "gasPriority": "medium",
    "from": "0x40B38765696e3d5d8d9d834D8AaD4bB6e418E489"
}
```

{% endtab %}

{% tab title="Sample Response" %}
**With gasPriority:**

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "from": "0x40b38765696e3d5d8d9d834d8aad4bb6e418e489",
        "to": "0x1111111254eeb25477b68fb85ed929f73a960582",
        "data": "0x12aa3caf0000000000000000000000005f515f6c524b18ca30f7783fb58dd4be2e9904ec000000000000000000000000eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee0000000000000000000000006b175474e89094c44da98b954eedeac495271d0f0000000000000000000000005f515f6c524b18ca30f7783fb58dd4be2e9904ec00000000000000000000000040b38765696e3d5d8d9d834d8aad4bb6e418e48900000000000000000000000000000000000000000000000000005af3107a4000000000000000000000000000000000000000000000000000039174a36690ff3d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000160000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002e87c4f3de1e1b531d2694b248a9a2c18defbb8e5a8d36b60862fed57aa03ef0d52d2bc09b3a9b8054238a4a7fab88ebd9b9c41e1c8c7499afb142dfba8e02d0b0700000000000000000000000000000000000000000000000000028a00001a4041c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2d0e30db05120111111125421ca6dc452d289314280a0f8842a65c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2012456a75868bdc25da3cdc5082cfce528ee2aa8ad73c072eb768b944b1bc2f444b3fc4c44c5000000000000000000000000807cf9a772d5a3f9cefbc1192e939d62f0d9bd3800000000000000000000000000000000000000000000000000000000000000000000000000000000000000006b175474e89094c44da98b954eedeac495271d0f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2000000000000000000000000000000000000000000000000039ab0857164e13100000000000000000000000000000000000000000000000000005af3107a400000000000000000000000000000000079980066c6163d000000000000000000000000000000000000000000000000000000000000000000000000000000000180000000000000000000000000000000000000000000000000000000000000000028000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000004130fab8662e997b495cc61d08b680bbc62ca39a3868953b37dd96bdb6994f24966e44c01baf018e604e86610b2a62c4bd984a6557e78e9e5f02967f8f9c2a910a1b0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000141111111254eeb25477b68fb85ed929f73a960582000000000000000000000000000000000000000000000000000000000000000000000000caefa361",
        "value": "100000000000000",
        "gas": "873376",
        "gasPrice": "3326221197",
        "referenceId": "4a22968761294d13a7ca158709cbfd2f"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
**With Slippage:**

```json
{
    "dexId": "1700",
    "amountIn": "100000000000000",
    "path": [
        "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
        "0x6B175474E89094C44Da98b954EedeAC495271d0F"
    ],
    "gas": "873376",
    "gasPriority": "medium",
    "from": "0x40B38765696e3d5d8d9d834D8AaD4bB6e418E489",
    "slippage": "10"
}
```

{% endtab %}

{% tab title="Sample Response" %}
**With Slippage:**&#x20;

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "from": "0x40b38765696e3d5d8d9d834d8aad4bb6e418e489",
        "to": "0x1111111254eeb25477b68fb85ed929f73a960582",
        "data": "0x12aa3caf0000000000000000000000005f515f6c524b18ca30f7783fb58dd4be2e9904ec000000000000000000000000eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee0000000000000000000000006b175474e89094c44da98b954eedeac495271d0f0000000000000000000000005f515f6c524b18ca30f7783fb58dd4be2e9904ec00000000000000000000000040b38765696e3d5d8d9d834d8aad4bb6e418e48900000000000000000000000000000000000000000000000000005af3107a4000000000000000000000000000000000000000000000000000033df12c28500230000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000160000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002e8e591f2e5b6078cad23a2522e756fdecc707dac0f9b985ae57a8eec5aecb2fd7b466e3df49f7200bec4fd17e3d7b98de3910660d562f6fe2a697c7dd2643a25af00000000000000000000000000000000000000000000000000028a00001a4041c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2d0e30db05120111111125421ca6dc452d289314280a0f8842a65c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2012456a75868fc1ccf3f71e7a9fc426cfe0307966f5ed9d5cb4e9babd3d7dd3c7b39efba04ca000000000000000000000000807cf9a772d5a3f9cefbc1192e939d62f0d9bd3800000000000000000000000000000000000000000000000000000000000000000000000000000000000000006b175474e89094c44da98b954eedeac495271d0f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2000000000000000000000000000000000000000000000000039a4583c1c8b16100000000000000000000000000000000000000000000000000005af3107a40000000000000000000000000000000007bae0066c61687000000000000000000000000000000000000000000000000000000000000000000000000000000000180000000000000000000000000000000000000000000000000000000000000000028000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000004101823d3b448d60ddcf478cb1d3ca76419dcf9fa35b6e925d82af4c4cc1e8c8a02b67466eec93d4020233daf56a2eca81a42d0659a2d1901dd61cd2350ce94eb11c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000141111111254eeb25477b68fb85ed929f73a960582000000000000000000000000000000000000000000000000000000000000000000000000caefa361",
        "value": "100000000000000",
        "gas": "873376",
        "gasPrice": "3626907305",
        "referenceId": "c2dca9d78e904f6bb220a0c58aaebd45"
    }
}
```

{% endtab %}
{% endtabs %}


# Kyberswap (Aggregator)

### /getprice

Returns the best swap quotation for the given token pair.

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

#### Query Parameters

| Name                                       | Type   | Description                                                                          |
| ------------------------------------------ | ------ | ------------------------------------------------------------------------------------ |
| rpc                                        | String | Remote procedural call URL.                                                          |
| dexId<mark style="color:red;">\*</mark>    | String | Refer to the [DEX ID](broken://pages/8x8qwIu19Aq8uFsjOXvI) page for details.         |
| path<mark style="color:red;">\*</mark>     | String | Comma separated values of token addresses/token symbol whose price is to be fetched. |
| amountIn<mark style="color:red;">\*</mark> | String | Amount of token.                                                                     |

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

```url
https://api.expand.network/dex/getprice?dexId=2200&path=0xdAC17F958D2ee523a2206206994597C13D831ec7%2C0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2&amountIn=100000000000
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "amountIn": "100000000000",
        "path": [
            "0xdAC17F958D2ee523a2206206994597C13D831ec7",
            "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"
        ],
        "amountsOut": [
            "100000000000",
            "43382075587262580147"
        ]
    }
}
```

{% endtab %}
{% endtabs %}

### /getliquiditysources

Get the liquidity sources for the specified dex aggregator(on the basis of chain), supported by expand.network.

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

#### Query Parameters

| Name                                    | Type   | Description                                                                  |
| --------------------------------------- | ------ | ---------------------------------------------------------------------------- |
| rpc                                     | String | Remote procedural call URL.                                                  |
| dexId<mark style="color:red;">\*</mark> | String | Refer to the [DEX ID](broken://pages/8x8qwIu19Aq8uFsjOXvI) page for details. |

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

```url
https://api.expand.network/dex/getliquiditysources?dexId=2200
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": [
        "KyberSwap Classic",
        "KyberSwap Elastic",
        "KyberSwap Limit Order",
        "KyberSwap Limit Order V2",
        "KyberSwap Professional Market Maker",
        "Balancer Weighted",
        "Balancer Composable",
        "Curve (3pool, aave, saave, hbtc, ren, sbtc, eurs, link)",
        "DefiSwap",
        "DODO (v2)",
        "Fraxswap",
        "Lido stETH",
        "Lido wstETH",
        "Maker PSM",
        "Maverick",
        "PancakeSwap V2",
        "PancakeSwap V3",
        "POL",
        "Saddle",
        "ShibaSwap",
        "SushiSwap",
        "SushiSwap V3",
        "Synapse",
        "TraderJoe V21",
        "Uniswap (v2)",
        "Uniswap (v3)",
        "Verse",
        "Wombat"
    ]
}
```

{% endtab %}
{% endtabs %}

### /swap

Initiate a swap transaction on the DEX providing best swap quote.

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

#### Request Body

<table><thead><tr><th width="171">Name</th><th width="160">Type</th><th>Description</th></tr></thead><tbody><tr><td>dexId<mark style="color:red;">*</mark></td><td>String</td><td>Refer to the <a href="/pages/8x8qwIu19Aq8uFsjOXvI">DEX ID</a> page for details. </td></tr><tr><td>path<mark style="color:red;">*</mark></td><td>Array</td><td>Comma-separated values of token addresses/token symbol, inside an array, to swap.</td></tr><tr><td>amountIn<mark style="color:red;">*</mark></td><td>String</td><td>Amount of token to be swapped.</td></tr><tr><td>from<mark style="color:red;">*</mark></td><td>String</td><td>Address of the sender of the token.</td></tr><tr><td>gas</td><td>String</td><td>Maximum gas limit provided by the sender, for the transaction.</td></tr><tr><td>rpc</td><td>String</td><td>Remote procedural call URL.</td></tr><tr><td>slippage</td><td>String</td><td><p>Percentage of total swap value. <br>By default, 1.</p><p>0 &#x3C;= slippage  value &#x3C;= 100</p></td></tr><tr><td>amountOutMin</td><td>String</td><td>Minimum amount accepted as the result of swap.</td></tr><tr><td>to<mark style="color:red;">*</mark></td><td>String</td><td>Address of the recipient of the token.</td></tr><tr><td>gasPriority</td><td>String</td><td>low, medium or high.</td></tr><tr><td>involveBaseToken</td><td>String</td><td><p>If a base token is involved in the swap; <code>0</code> for erc20 -> erc20, </p><p><code>1</code> for base -> erc20 ("from" address should be of equivalent wrapped token), <code>2</code> for erc20 -> base ("to" address should be of equivalent wrapped token).</p><p>By default, <code>0</code> .</p></td></tr></tbody></table>

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

```json
{
    "dexId": "2200",
    "amountIn": "100000",
    "amountOutMin": "0",
    "path": [
        "0xdAC17F958D2ee523a2206206994597C13D831ec7",
        "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"
    ],
    "to": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
    "from": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
    "gas": "400000",
    "deadline": "1706168424"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
        "to": "0x6131B5fae19EA4f9D964eAc0408E4408b66337b5",
        "value": "0",
        "gas": "400000",
        "data": "0xe21fd0e90000000000000000000000000000000000000000000000000000000000000020000000000000000000000000f081470f5c6fbccf48cc4e5b82dd926409dcdd67000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000056000000000000000000000000000000000000000000000000000000000000007a000000000000000000000000000000000000000000000000000000000000004a0000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec7000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2000000000000000000000000dae2f6eddda6fb4fb60cc02633de27e2b431b4020000000000000000000000000000000000000000000000000000000066c61b2a000000000000000000000000000000000000000000000000000000000000044000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000160000000000000000000000000000000000000000000000000000000000000024000000000000000000000000000000000000000000000000000000000000000408cc7a56b0000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000ba12222222228d8ba445958a75a0704d566bf2c8d6855f0a3c26a1b1b2785ba2604758c0878169bc000100000000000000000317000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec70000000000000000000000006b175474e89094c44da98b954eedeac495271d0f00000000000000000000000000000000000000000000000000000000000186a000000000000000000000000000000000000000000000000000000000000000400e00deaa000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000080000000000000000000000000b93f696e5c46b6772fc2ff65e459cf9685fac7820000000000000000000000006b175474e89094c44da98b954eedeac495271d0f0000000000000000000000002260fac5e5542a773aa44fbcfedf7c193bc2c5990000000000000000000000000000000000000000000000000179725d316425fb00000000000000000000000000000000000000000000000000000000000000400e00deaa0000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000800000000000000000000000000e3e2781ee4ed14758c04eca5b4cc4a7aee459cd0000000000000000000000002260fac5e5542a773aa44fbcfedf7c193bc2c599000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc200000000000000000000000000000000000000000000000000000000000000fb0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000039e996700000000000000000000373ac847abb2000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec7000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000001a000000000000000000000000000000000000000000000000000000000000001e00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000dae2f6eddda6fb4fb60cc02633de27e2b431b40200000000000000000000000000000000000000000000000000000000000186a0000000000000000000000000000000000000000000000000000037395e53bf28000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002200000000000000000000000000000000000000000000000000000000000000001000000000000000000000000f081470f5c6fbccf48cc4e5b82dd926409dcdd67000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000186a0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000022c7b22536f75726365223a22657870616e64222c22416d6f756e74496e555344223a22302e3130313034303637363930343033313632222c22416d6f756e744f7574555344223a22302e31353830343236373438343932393436222c22526566657272616c223a22222c22466c616773223a302c22416d6f756e744f7574223a223630373235363037373731303538222c2254696d657374616d70223a313732343235373931342c22496e74656772697479496e666f223a7b224b65794944223a2231222c225369676e6174757265223a224d5a586e314e57504c624a466b612f685544636a615655454a71766f4d396d6d774a724b525855505930776a4e47656341535137384a534c38426c655063506d2b65716c4554577773774f644a6d65306a2b516c4b344448357078494c51684850302f7276564a634a4d536e30706f33627549614149423261626f6578357468367050476f6a434f64397a6a746e71474d624146757a6e4142616739396b5958554570675630306632673547685169303050554a7171485759637a314e6b67735941444a7a68426257634c7846623345704a397a315a62747a51667964334e58464150446e4568525562785439536b71526d73445247646f594a58525171524267707549646e534b752b577a7759456565345152486d723253524654577237536871447667347674475462634d707a46634d4645636a6f62497476433633486e2b633939412f676b4a752b62374d54777939686944513d3d227d7d0000000000000000000000000000000000000000",
        "referenceId": "b9cbd7f341cd4ac8b8112cee75822a4e"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
**With gasPriority:**

```json
{
    "dexId": "2200",
    "amountIn": "100000",
    "amountOutMin": "0",
    "path": [
        "0xdAC17F958D2ee523a2206206994597C13D831ec7",
        "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"
    ],
    "to": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
    "from": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
    "gas": "400000",
    "deadline": "1706168424",
    "gasPriority": "low"
}
```

{% endtab %}

{% tab title="Sample Response" %}
**With gasPriority:**

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
        "to": "0x6131B5fae19EA4f9D964eAc0408E4408b66337b5",
        "value": "0",
        "gas": "400000",
        "data": "0xe21fd0e90000000000000000000000000000000000000000000000000000000000000020000000000000000000000000f081470f5c6fbccf48cc4e5b82dd926409dcdd67000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000056000000000000000000000000000000000000000000000000000000000000007a000000000000000000000000000000000000000000000000000000000000004a0000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec7000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2000000000000000000000000dae2f6eddda6fb4fb60cc02633de27e2b431b4020000000000000000000000000000000000000000000000000000000066c61b33000000000000000000000000000000000000000000000000000000000000044000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000160000000000000000000000000000000000000000000000000000000000000024000000000000000000000000000000000000000000000000000000000000000408cc7a56b0000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000ba12222222228d8ba445958a75a0704d566bf2c8d6855f0a3c26a1b1b2785ba2604758c0878169bc000100000000000000000317000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec70000000000000000000000006b175474e89094c44da98b954eedeac495271d0f00000000000000000000000000000000000000000000000000000000000186a000000000000000000000000000000000000000000000000000000000000000400e00deaa000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000080000000000000000000000000b93f696e5c46b6772fc2ff65e459cf9685fac7820000000000000000000000006b175474e89094c44da98b954eedeac495271d0f0000000000000000000000002260fac5e5542a773aa44fbcfedf7c193bc2c5990000000000000000000000000000000000000000000000000179725d316425fb00000000000000000000000000000000000000000000000000000000000000400e00deaa0000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000800000000000000000000000000e3e2781ee4ed14758c04eca5b4cc4a7aee459cd0000000000000000000000002260fac5e5542a773aa44fbcfedf7c193bc2c599000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc200000000000000000000000000000000000000000000000000000000000000fb0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000039e996700000000000000000000373ac847abb2000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec7000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000001a000000000000000000000000000000000000000000000000000000000000001e00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000dae2f6eddda6fb4fb60cc02633de27e2b431b40200000000000000000000000000000000000000000000000000000000000186a0000000000000000000000000000000000000000000000000000037395e53bf28000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002200000000000000000000000000000000000000000000000000000000000000001000000000000000000000000f081470f5c6fbccf48cc4e5b82dd926409dcdd67000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000186a0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000022c7b22536f75726365223a22657870616e64222c22416d6f756e74496e555344223a22302e3130313034303637363930343033313632222c22416d6f756e744f7574555344223a22302e31353830343236373438343932393436222c22526566657272616c223a22222c22466c616773223a302c22416d6f756e744f7574223a223630373235363037373731303538222c2254696d657374616d70223a313732343235373932332c22496e74656772697479496e666f223a7b224b65794944223a2231222c225369676e6174757265223a224d6e377638305a2b7043706c62463347526a7175632f457261717a6a6d7231347272447544677a61715155345a75435071424250586574487674412f56542b37616a4567556c6a2f4948425631796c76486d6c70576e7a5a6952412b3472526f346168516252784d6d2f6a7a56725537574c654d71326e354d655439734e7a7669716949366d726e696f3676693376476556634b6d304b7753737947516f7935386b50462b7465364c79647a596f5059656d67693645765230424a65417975736e6c30564c7445417353712b795647624b4a656d4f51444e33325a6a667a7a464372755446727450396f6b664f39534d656c574632382b7156797934673374734b767572703247695164586c7676674e6b73794b5a4f43366337514c417248556a7335513856684461496976496d586771516542374962624d4354314c707532327558524666675556595542556e6f7047662b6a34513d3d227d7d0000000000000000000000000000000000000000",
        "gasPrice": "3291849997",
        "referenceId": "a4cb1cdd02624eca90223fa6d6ea283a"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
**With Slippage:**

```json
{
    "dexId": "2200",
    "amountIn": "100000",
    "amountOutMin": "0",
    "path": [
        "0xdAC17F958D2ee523a2206206994597C13D831ec7",
        "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"
    ],
    "to": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
    "from": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
    "gas": "400000",
    "deadline": "1706168424",
    "slippage": "10"
}

```

{% endtab %}

{% tab title="Sample Response" %}
**With Slippage:**&#x20;

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
        "to": "0x6131B5fae19EA4f9D964eAc0408E4408b66337b5",
        "value": "0",
        "gas": "400000",
        "data": "0xe21fd0e90000000000000000000000000000000000000000000000000000000000000020000000000000000000000000f081470f5c6fbccf48cc4e5b82dd926409dcdd67000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000056000000000000000000000000000000000000000000000000000000000000007a000000000000000000000000000000000000000000000000000000000000004a0000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec7000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2000000000000000000000000dae2f6eddda6fb4fb60cc02633de27e2b431b4020000000000000000000000000000000000000000000000000000000066c61b3a000000000000000000000000000000000000000000000000000000000000044000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000160000000000000000000000000000000000000000000000000000000000000024000000000000000000000000000000000000000000000000000000000000000408cc7a56b0000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000ba12222222228d8ba445958a75a0704d566bf2c8d6855f0a3c26a1b1b2785ba2604758c0878169bc000100000000000000000317000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec70000000000000000000000006b175474e89094c44da98b954eedeac495271d0f00000000000000000000000000000000000000000000000000000000000186a000000000000000000000000000000000000000000000000000000000000000400e00deaa000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000080000000000000000000000000b93f696e5c46b6772fc2ff65e459cf9685fac7820000000000000000000000006b175474e89094c44da98b954eedeac495271d0f0000000000000000000000002260fac5e5542a773aa44fbcfedf7c193bc2c5990000000000000000000000000000000000000000000000000179725d316425fb00000000000000000000000000000000000000000000000000000000000000400e00deaa0000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000800000000000000000000000000e3e2781ee4ed14758c04eca5b4cc4a7aee459cd0000000000000000000000002260fac5e5542a773aa44fbcfedf7c193bc2c599000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc200000000000000000000000000000000000000000000000000000000000000fb0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000039e996700000000000000000000373ac847abb2000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec7000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000001a000000000000000000000000000000000000000000000000000000000000001e00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000dae2f6eddda6fb4fb60cc02633de27e2b431b40200000000000000000000000000000000000000000000000000000000000186a00000000000000000000000000000000000000000000000000000372ca4c06e56000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002200000000000000000000000000000000000000000000000000000000000000001000000000000000000000000f081470f5c6fbccf48cc4e5b82dd926409dcdd67000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000186a0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000022c7b22536f75726365223a22657870616e64222c22416d6f756e74496e555344223a22302e3130313034303637363930343033313632222c22416d6f756e744f7574555344223a22302e31353830373235353233373637303937222c22526566657272616c223a22222c22466c616773223a302c22416d6f756e744f7574223a223630373235363037373731303538222c2254696d657374616d70223a313732343235373933302c22496e74656772697479496e666f223a7b224b65794944223a2231222c225369676e6174757265223a224158376b32414f524774466f45433274596c42714c2f486d38466b4533506739446c64486d762b536d4a6f617647313049614d49746e2f4834706e2b4336634138376b71363330324e35533956314d50496148447465503173507573546c376e636a7a382f5737515737544457676f3468682f335a3430694b3041502f4d475350516b5578726b76316a67593833596b6176304433424d4a65564d31452f532f705a71384e5267474d78586c4e704536527472526147667a773861357953434f655a6f73396f505a55774d464534656932704436474d56516c2b6c5a785533714b58786a745356644633545635505479662b304a32712b546a4432656152636b38697675573072464377786e495777652f45675233685070583845656b676262547750582f4b494537646c526d4a764d4a774758377951314b794c7669544a6e2f3171566c37416f414e6178362b66503668303671673d3d227d7d0000000000000000000000000000000000000000",
        "referenceId": "5d68b15ce6d64a60bf2384ea8aa9af66"
    }
}
```

{% endtab %}
{% endtabs %}


# Kyberswap ( Limit Order Endpoints )

### Supported Chains

Available on **Ethereum, Binance, Polygon, Arbitrum, Avalanche, Optimism, Base, Fantom and Cronos**

### Available Endpoints:

*Click on the endpoint to jump to the section with full details*

* [<mark style="color:blue;">/getmakerorders</mark>](#getmakerorders) <mark style="color:blue;">`GET`</mark>- Returns all active limit orders posted by the maker.
* [<mark style="color:blue;">/getorders</mark> ](#getorders)<mark style="color:blue;">`GET`</mark> - Returns all active orders based on the maker and taker assets.
* [/<mark style="color:blue;">getactiveamount</mark>](#getactiveamount) <mark style="color:blue;">`GET`</mark> - Returns the maker's active amount for a particular maker asset.
* [<mark style="color:blue;">/createorder</mark>](#createorder) <mark style="color:green;">`POST`</mark> - Prepares an unsigned limit order message that will post a limit order once signed with the Expand SDK.
* [/<mark style="color:blue;">cancelorder</mark>](#cancelorder) <mark style="color:green;">`POST`</mark> - Prepares an unsigned message that will cancel a limit order once signed with the Expand SDK.&#x20;
* [<mark style="color:blue;">/publishorder</mark>](#publishorder) <mark style="color:green;">`POST`</mark> - Sends a request to create or cancel a limit order to Kyberswap.
* [<mark style="color:blue;">/fillorder</mark>](#fillorder) <mark style="color:green;">`POST`</mark> - Initiates a transaction to fill a particular limit order.

*Also see* [<mark style="color:blue;">Error Handling Details</mark>](#error-handling-details)

### DEX IDs

Below is a list DEX IDs related to Kyberswap (Limit Order). Please see the [<mark style="color:blue;">DEX ID page</mark>](broken://pages/8x8qwIu19Aq8uFsjOXvI) for a complete DEX ID list and more information.

| DEX Name  | Chain     | DEX ID |
| --------- | --------- | ------ |
| Kyberswap | Ethereum  | 2200   |
| Kyberswap | Binance   | 2201   |
| Kyberswap | Polygon   | 2202   |
| Kyberswap | Arbitrum  | 2203   |
| Kyberswap | Avalanche | 2204   |
| Kyberswap | Optimism  | 2205   |
| Kyberswap | Base      | 2206   |
| Kyberswap | Fantom    | 2207   |
| Kyberswap | Cronos    | 2208   |

## Endpoint Details

### /getmakerorders

This endpoint fetches all the active limit orders posted by the maker.

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

#### Query Parameters

| Name                                      | Type   | Description                                                                                                   |
| ----------------------------------------- | ------ | ------------------------------------------------------------------------------------------------------------- |
| rpc                                       | String | Remote procedural call URL.                                                                                   |
| dexId<mark style="color:red;">\*</mark>   | String | Refer to the [<mark style="color:blue;">DEX ID</mark>](broken://pages/8x8qwIu19Aq8uFsjOXvI) page for details. |
| address<mark style="color:red;">\*</mark> | String | Public address of the user.                                                                                   |
| pageToken                                 | String | <p>The page number that the user wants to fetch.</p><p>By default, 1.</p>                                     |

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

```
https://api.expand.network/dex/getmakerorders?dexId=2202&address=0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402&pageToken=1
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "totalPages": "1",
        "currentPage": "1",
        "orders": [
            {
                "id": "96091",
                "chainId": "137",
                "nonce": "0",
                "makerAsset": "0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270",
                "takerAsset": "0xc2132d05d31c914a87c6611c10748aeb04b58e8f",
                "contractAddress": "0xcab2fa2eeab7065b45cbcf6e3936dde2506b4f6c",
                "orderHash": "e65bba101d10984825a1480f124cb1cdbed65ff86d8904f310b08fd3ddac0fcd",
                "makerAssetSymbol": "wMATIC",
                "takerAssetSymbol": "USDT",
                "makerAssetLogoURL": "https://assetlogo.expand.network/ethereum/wMATIC.png",
                "takerAssetLogoURL": "https://assetlogo.expand.network/ethereum/USDT.png",
                "makerAssetDecimals": "18",
                "takerAssetDecimals": "18",
                "makingAmount": "1000000000000000000",
                "takingAmount": "3510540868",
                "filledMakingAmount": "0",
                "filledTakingAmount": "0",
                "status": "open",
                "createdAt": "1721535038",
                "expiredAt": "4875135021",
                "operatorSignatureExpiredAt": "0",
                "transactions": [],
                "rate": "0.0002848564"
            },
            {
                "id": "95180",
                "chainId": "137",
                "nonce": "0",
                "makerAsset": "0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270",
                "takerAsset": "0xc2132d05d31c914a87c6611c10748aeb04b58e8f",
                "contractAddress": "0xcab2fa2eeab7065b45cbcf6e3936dde2506b4f6c",
                "orderHash": "74bd0abac4ade77fef8da6534f31917125b72d39058084ed111c759556caac85",
                "makerAssetSymbol": "wMATIC",
                "takerAssetSymbol": "USDT",
                "makerAssetLogoURL": "https://assetlogo.expand.network/ethereum/wMATIC.png",
                "takerAssetLogoURL": "https://assetlogo.expand.network/ethereum/USDT.png",
                "makerAssetDecimals": "18",
                "takerAssetDecimals": "18",
                "makingAmount": "1000000000000000000",
                "takingAmount": "500000",
                "filledMakingAmount": "899654000000000000",
                "filledTakingAmount": "449827",
                "status": "partially_filled",
                "createdAt": "1721385861",
                "expiredAt": "1821077034",
                "operatorSignatureExpiredAt": "1721545571",
                "transactions": [
                    {
                        "id": 46644,
                        "txHash": "0x9f361fde8f151564a6c8cab5185a47437cba796bcb384a6c08e8f8e70e4670b0",
                        "txTime": 1721386500,
                        "makingAmount": "404488000000000000",
                        "takingAmount": "202244",
                        "makingAmountUSD": "0.2063639604153792",
                        "takingAmountUSD": "0.160126336739344"
                    },
                    {
                        "id": 46677,
                        "txHash": "0x0a4d37f725669f61180549b608af0867e971a34f7c035f5c7d3fa7991ecbdbef",
                        "txTime": 1721395816,
                        "makingAmount": "384054000000000000",
                        "takingAmount": "192027",
                        "makingAmountUSD": "0.1969303732671132",
                        "takingAmountUSD": "0.1527915727524475"
                    },
                    {
                        "id": 46767,
                        "txHash": "0x9cd999dbbe8b799ede0d32cf3ee34aa85944045a663696d0775d646374b0f2a8",
                        "txTime": 1721432384,
                        "makingAmount": "111112000000000000",
                        "takingAmount": "55556",
                        "makingAmountUSD": "0.05930734362162",
                        "takingAmountUSD": "0.0460451920888665"
                    }
                ],
                "rate": "2.0000000000"
            }
        ]
    }
}
```

{% endtab %}
{% endtabs %}

[<mark style="color:blue;">back to top</mark>](#endpoints-available)

### /getorders

This endpoint provides all active orders based on the maker and taker assets.

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

#### Query Parameters

| Name                                         | Type   | Description                                                                                                 |
| -------------------------------------------- | ------ | ----------------------------------------------------------------------------------------------------------- |
| rpc                                          | String | Remote procedural call URL.                                                                                 |
| dexId<mark style="color:red;">\*</mark>      | String | Refer to  [<mark style="color:blue;">DEX ID</mark>](broken://pages/8x8qwIu19Aq8uFsjOXvI)  page for details. |
| makerAsset<mark style="color:red;">\*</mark> | String | The token address of the asset which the Maker is selling.                                                  |
| takerAsset<mark style="color:red;">\*</mark> | String | The token address of the asset which the Maker expects in return.                                           |

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

```
https://api.expand.network/dex/getorders?dexId=2202&makerAsset=0x2791bca1f2de4661ed88a30c99a7a9449aa84174&takerAsset=0xc2132d05d31c914a87c6611c10748aeb04b58e8f
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "totalPages": "1",
        "currentPage": "1",
        "orders": [
            {
                "id": "3822",
                "chainId": "137",
                "signature": "5282e03196e58d74c7e633f89a67a7f65d5ff781789ff576b9820253f7139efe3a66b1b8e818280af4b03859360941f2746b6beb2985b53ed609527bc6cee5501b",
                "salt": "70625134037672101032634555633607691523",
                "makerAsset": "0x2791bca1f2de4661ed88a30c99a7a9449aa84174",
                "takerAsset": "0xc2132d05d31c914a87c6611c10748aeb04b58e8f",
                "maker": "0x503d741356f80b919458f0599666c4f00120f6c1",
                "contractAddress": "0x227b0c196ea8db17a665ea6824d972a64202e936",
                "receiver": "0x503d741356f80b919458f0599666c4f00120f6c1",
                "allowedSenders": "0x0000000000000000000000000000000000000000",
                "makingAmount": "1000000",
                "takingAmount": "4900000000000",
                "filledMakingAmount": "0",
                "filledTakingAmount": "0",
                "feeConfig": "0",
                "feeRecipient": "0x0000000000000000000000000000000000000000",
                "makerTokenFeePercent": "0",
                "makerAssetData": "",
                "takerAssetData": "",
                "getMakerAmount": "f4a215c300000000000000000000000000000000000000000000000000000000000f424000000000000000000000000000000000000000000000000000000474dec26800",
                "getTakerAmount": "296637bf00000000000000000000000000000000000000000000000000000000000f424000000000000000000000000000000000000000000000000000000474dec26800",
                "predicate": "961d5b1e000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000002000000000000000000000000227b0c196ea8db17a665ea6824d972a64202e936000000000000000000000000227b0c196ea8db17a665ea6824d972a64202e9360000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000044cf6fc6e3000000000000000000000000503d741356f80b919458f0599666c4f00120f6c1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002463592c2b000000000000000000000000000000000000000000000000000000006a8024b400000000000000000000000000000000000000000000000000000000",
                "permit": "",
                "interaction": "",
                "expiredAt": "1786782900",
                "orderHash": "8312abeb662786741364702d5858da05394a7e441dab1bd753daf1a5369d1011",
                "availableMakingAmount": "1000000",
                "makerBalanceAllowance": "3309150",
                "rate": "0.0000002041"
            }
        ]
    }
}
```

{% endtab %}
{% endtabs %}

[<mark style="color:blue;">back to top</mark>](#endpoints-available)

### /getactiveamount

This endpoint retrieves the maker's active amount for a particular maker asset.

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

#### Query Parameters

| Name                                           | Type   | Description                                                                                                 |
| ---------------------------------------------- | ------ | ----------------------------------------------------------------------------------------------------------- |
| rpc                                            | String | Remote procedural call URL.                                                                                 |
| dexId<mark style="color:red;">\*</mark>        | String | Refer to  [<mark style="color:blue;">DEX ID</mark>](broken://pages/8x8qwIu19Aq8uFsjOXvI)  page for details. |
| address<mark style="color:red;">\*</mark>      | String | Public address of the user.                                                                                 |
| tokenAddress<mark style="color:red;">\*</mark> | String | Address of the token.                                                                                       |

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

```
https://api.expand.network/dex/getactiveamount?dexId=2200&tokenAddress=0x853d955acef822db058eb8505911ed77f175b99e&address=0xB409cB0b5DB9f148d0bc491E140D9E0FDd789C11
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "address": "0xB409cB0b5DB9f148d0bc491E140D9E0FDd789C11",
        "tokenAddress": "0x853d955acef822db058eb8505911ed77f175b99e",
        "activeMakingAmount": "400000000000000"
    }
}
```

{% endtab %}
{% endtabs %}

[<mark style="color:blue;">back to top</mark>](#endpoints-available)

### /createorder

This endpoint returns a limit order unsigned message that needs to be signed with the expand SDK to post a limit order.

<mark style="color:blue;">`POST`</mark> `https://api.expand.network/dex/createorder`

#### Query Parameters

| Name                                         | Type   | Description                                                                                                 |
| -------------------------------------------- | ------ | ----------------------------------------------------------------------------------------------------------- |
| rpc                                          | String | Remote procedural call URL.                                                                                 |
| dexId<mark style="color:red;">\*</mark>      | String | Refer to  [<mark style="color:blue;">DEX ID</mark>](broken://pages/8x8qwIu19Aq8uFsjOXvI)  page for details. |
| makerAsset<mark style="color:red;">\*</mark> | String | The token address of the asset which the Maker is selling.                                                  |
| takerAsset<mark style="color:red;">\*</mark> | String | The token address of the asset which the Maker expects in return.                                           |
| from<mark style="color:red;">\*</mark>       | String | Address of the sender of the token.                                                                         |
| to<mark style="color:red;">\*</mark>         | String | Address of the recipient of the token.                                                                      |
| amountIn<mark style="color:red;">\*</mark>   | String | Amount in of token.                                                                                         |
| amountOut<mark style="color:red;">\*</mark>  | String | Amount out of token.                                                                                        |
| deadline<mark style="color:red;">\*</mark>   | String | Deadline for the transaction to be executed (UNIX Timestamp).                                               |

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

```
{
    "dexId": "2202",
    "makerAsset": "0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270",
    "takerAsset": "0xc2132D05D31c914a87C6611C10748AEb04B58e8F",
    "from": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
    "to": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
    "amountIn": "1000000000000000000",
    "amountOut": "500000",
    "deadline": "1821077034"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "unsignedCreateOrder": {
            "types": {
                "DSOrder": [
                    {
                        "name": "orderHash",
                        "type": "bytes32"
                    },
                    {
                        "name": "opExpireTime",
                        "type": "uint32"
                    }
                ],
                "EIP712Domain": [
                    {
                        "name": "name",
                        "type": "string"
                    },
                    {
                        "name": "version",
                        "type": "string"
                    },
                    {
                        "name": "chainId",
                        "type": "uint256"
                    },
                    {
                        "name": "verifyingContract",
                        "type": "address"
                    }
                ],
                "Order": [
                    {
                        "name": "salt",
                        "type": "uint256"
                    },
                    {
                        "name": "makerAsset",
                        "type": "address"
                    },
                    {
                        "name": "takerAsset",
                        "type": "address"
                    },
                    {
                        "name": "maker",
                        "type": "address"
                    },
                    {
                        "name": "receiver",
                        "type": "address"
                    },
                    {
                        "name": "allowedSender",
                        "type": "address"
                    },
                    {
                        "name": "makingAmount",
                        "type": "uint256"
                    },
                    {
                        "name": "takingAmount",
                        "type": "uint256"
                    },
                    {
                        "name": "feeConfig",
                        "type": "uint256"
                    },
                    {
                        "name": "makerAssetData",
                        "type": "bytes"
                    },
                    {
                        "name": "takerAssetData",
                        "type": "bytes"
                    },
                    {
                        "name": "getMakerAmount",
                        "type": "bytes"
                    },
                    {
                        "name": "getTakerAmount",
                        "type": "bytes"
                    },
                    {
                        "name": "predicate",
                        "type": "bytes"
                    },
                    {
                        "name": "interaction",
                        "type": "bytes"
                    }
                ]
            },
            "domain": {
                "chainId": "137",
                "name": "Kyber DSLO Protocol",
                "verifyingContract": "0xcab2FA2eeab7065B45CBcF6E3936dDE2506b4f6C",
                "version": "1"
            },
            "primaryType": "Order",
            "message": {
                "allowedSender": "0x0000000000000000000000000000000000000000",
                "feeConfig": "146604093245187877466343990972209337885448885627689",
                "getMakerAmount": "0xf4a215c30000000000000000000000000000000000000000000000000de0b6b3a7640000000000000000000000000000000000000000000000000000000000000007a120",
                "getTakerAmount": "0x296637bf0000000000000000000000000000000000000000000000000de0b6b3a7640000000000000000000000000000000000000000000000000000000000000007a120",
                "interaction": "0x",
                "maker": "0xdae2f6eddda6fb4fb60cc02633de27e2b431b402",
                "makerAsset": "0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270",
                "makerAssetData": "0x",
                "makingAmount": "1000000000000000000",
                "predicate": "0x961d5b1e000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000002000000000000000000000000cab2fa2eeab7065b45cbcf6e3936dde2506b4f6c000000000000000000000000cab2fa2eeab7065b45cbcf6e3936dde2506b4f6c0000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000044cf6fc6e3000000000000000000000000dae2f6eddda6fb4fb60cc02633de27e2b431b402000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002463592c2b000000000000000000000000000000000000000000000000000000006c8b6e2a00000000000000000000000000000000000000000000000000000000",
                "receiver": "0xdae2f6eddda6fb4fb60cc02633de27e2b431b402",
                "salt": "106607874126107032926667449974930188158",
                "takerAsset": "0xc2132d05d31c914a87c6611c10748aeb04b58e8f",
                "takerAssetData": "0x",
                "takingAmount": "500000"
            }
        },
        "referenceId": "efbbc600a72441fd9390ffc15049a787"
    }
}
```

{% endtab %}
{% endtabs %}

[<mark style="color:blue;">back to top</mark>](#endpoints-available)

### /cancelorder

This endpoint returns an unsigned message for canceling a limit order, which needs to be signed with expand SDK.

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

#### Request Body

| Name                                      | Type   | Description                                                                                                     |
| ----------------------------------------- | ------ | --------------------------------------------------------------------------------------------------------------- |
| rpc                                       | String | Remote procedural call URL.                                                                                     |
| dexId<mark style="color:red;">\*</mark>   | String | Refer to the  [<mark style="color:blue;">DEX ID</mark>](broken://pages/8x8qwIu19Aq8uFsjOXvI)  page for details. |
| orderId<mark style="color:red;">\*</mark> | Array  | OrderId of the transaction                                                                                      |
| from<mark style="color:red;">\*</mark>    | String | Public address of the user.                                                                                     |

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

```json
{
    "dexId": "2202",
    "orderId": "95167",
    "from": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "unsignedCancelOrder": {
            "types": {
                "CancelOrder": [
                    {
                        "name": "chainId",
                        "type": "string"
                    },
                    {
                        "name": "maker",
                        "type": "address"
                    },
                    {
                        "name": "orderIds",
                        "type": "uint64[]"
                    }
                ],
                "EIP712Domain": [
                    {
                        "name": "name",
                        "type": "string"
                    },
                    {
                        "name": "version",
                        "type": "string"
                    },
                    {
                        "name": "chainId",
                        "type": "uint256"
                    }
                ]
            },
            "domain": {
                "chainId": "137",
                "name": "Kyber Limit Order Protocol",
                "version": "1"
            },
            "primaryType": "CancelOrder",
            "message": {
                "chainId": "137",
                "maker": "0xdae2f6eddda6fb4fb60cc02633de27e2b431b402",
                "orderIds": [
                    95167
                ]
            }
        }
    }
}
```

{% endtab %}
{% endtabs %}

[<mark style="color:blue;">back to top</mark>](#endpoints-available)

### /publishorder

This endpoint sends the request to create or cancel a limit order to Kyberswap.

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

#### Request Body For Create Order

<table><thead><tr><th width="235">Name</th><th>Type</th><th>Description</th></tr></thead><tbody><tr><td>rpc</td><td>String</td><td>Remote procedural call URL.</td></tr><tr><td>dexId<mark style="color:red;">*</mark></td><td>String</td><td>Refer to the  <a href="/pages/8x8qwIu19Aq8uFsjOXvI"><mark style="color:blue;">DEX ID</mark></a>  page for details. </td></tr><tr><td>orderType</td><td>String</td><td>Type of the Order. <br>Either "create" or "cancel". By default, "create".</td></tr><tr><td>makerAsset<mark style="color:red;">*</mark></td><td>String</td><td>The token address of the asset which the Maker is selling.</td></tr><tr><td>takerAsset<mark style="color:red;">*</mark></td><td>String</td><td>The token address of the asset which the Maker expects in return.</td></tr><tr><td>from<mark style="color:red;">*</mark></td><td>String</td><td>Address of the sender of the token.</td></tr><tr><td>to<mark style="color:red;">*</mark></td><td>String</td><td>Address of the recipient of the token.</td></tr><tr><td>amountIn<mark style="color:red;">*</mark></td><td>String</td><td>Amount in of token.</td></tr><tr><td>amountOut<mark style="color:red;">*</mark></td><td>String</td><td>Amount out of token.</td></tr><tr><td>deadline<mark style="color:red;">*</mark></td><td>String</td><td>Deadline for the transaction to be executed (UNIX Timestamp).</td></tr><tr><td>signature<mark style="color:red;">*</mark></td><td>String</td><td>The signed(signDataTyped) EIP712 creation order.</td></tr><tr><td>salt<mark style="color:red;">*</mark></td><td>String</td><td>The randomized data fed as an additional input to the hashing function.</td></tr></tbody></table>

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

```json
{
    "dexId": "2202",
    "makerAsset": "0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174",
    "takerAsset": "0xc2132D05D31c914a87C6611C10748AEb04B58e8F",
    "from": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
    "to": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
    "amountIn": "200000",
    "amountOut": "100000",
    "deadline": "1821077034",
    "signature": "0x6afd61462c4188b277123d575c4c09c00cbdc654462d3c6937e7ff69d90391e573fe44a81f5fcc0184cc4f5afc54c9d60a46be11176688f034bba92e20597c311c",
    "salt": "140518201020656697335313758999689041588"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
  "status": 200,
  "msg": "success",
  "data": {
    "orderId": "97837",
    "orderStatus": "Succeeded",
    "referenceId": "23479c6e906f49b8be4dccd062f69676"
  }
}
```

{% endtab %}
{% endtabs %}

[<mark style="color:blue;">back to top</mark>](#endpoints-available)

### /fillorder

This endpoint initiates the transaction to fill the particular limit order.

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

#### Request Body

<table><thead><tr><th width="274">Name</th><th>Type</th><th>Description</th></tr></thead><tbody><tr><td>rpc</td><td>String</td><td>Remote procedural call URL.</td></tr><tr><td>dexId<mark style="color:red;">*</mark></td><td>String</td><td>Refer to the  <a href="/pages/8x8qwIu19Aq8uFsjOXvI"><mark style="color:blue;">DEX ID</mark></a>  page for details. </td></tr><tr><td>orderId<mark style="color:red;">*</mark></td><td>Array</td><td>The ID of the order to be filled.</td></tr><tr><td>amountIn<mark style="color:red;">*</mark></td><td>Array</td><td>The amountin of takerAsset</td></tr><tr><td>from<mark style="color:red;">*</mark></td><td>String</td><td>The Taker wallet address which will receive the makerAsset.</td></tr><tr><td>gasPriority</td><td>String</td><td>low, medium, or high.</td></tr></tbody></table>

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

```json
{
    "dexId": "2202",
    "orderId": "95180",
    "from": "0x42a0eef97019bf6f15796fc9a015f681c581f77a",
    "amountIn": "10000000000000000",
    "gasPriority": "low"
}
```

{% endtab %}

{% tab title="Sample Response" %}
With Slippage:

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "137",
        "from": "0x42a0eef97019bf6f15796fc9a015f681c581f77a",
        "to": "0xcab2FA2eeab7065B45CBcF6E3936dDE2506b4f6C",
        "value": "0",
        "data": "0xd2f1d95600000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002386f26fc100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000669cdcb000000000000000000000000042a0eef97019bf6f15796fc9a015f681c581f77a000000000000000000000000000000000000000000000000000000000000074000000000000000000000000000000000fbdccc06511746daa8d2280e6d33a21f0000000000000000000000000d500b1d8e8ef31e21c99d1db9a6444d3adf1270000000000000000000000000c2132d05d31c914a87c6611c10748aeb04b58e8f000000000000000000000000dae2f6eddda6fb4fb60cc02633de27e2b431b402000000000000000000000000dae2f6eddda6fb4fb60cc02633de27e2b431b40200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000de0b6b3a7640000000000000000000000000000000000000000000000000000000000000007a1200000000000000000000000644f82e73edb06d29ff62c91ec8f5ff06571bdeb2900000000000000000000000000000000000000000000000000000000000001e00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000022000000000000000000000000000000000000000000000000000000000000002a000000000000000000000000000000000000000000000000000000000000003200000000000000000000000000000000000000000000000000000000000000540000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044f4a215c30000000000000000000000000000000000000000000000000de0b6b3a7640000000000000000000000000000000000000000000000000000000000000007a120000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044296637bf0000000000000000000000000000000000000000000000000de0b6b3a7640000000000000000000000000000000000000000000000000000000000000007a1200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e4961d5b1e000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000002000000000000000000000000cab2fa2eeab7065b45cbcf6e3936dde2506b4f6c000000000000000000000000cab2fa2eeab7065b45cbcf6e3936dde2506b4f6c0000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000044cf6fc6e3000000000000000000000000dae2f6eddda6fb4fb60cc02633de27e2b431b402000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002463592c2b000000000000000000000000000000000000000000000000000000006c8b6e2a00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000419aa918d0001e995fc1b2f4302fcadd64b702ca9802962ac437298b4a6c159ea7260d809a76e5718bb4bc84bcf80baed6299bfada2e839a70c7d6ac18090af2ea1c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000041d7c56c4419dc47b359f8a3e006c212ad313e2b4c5a902c24225743514f0e85f44a52beaca4c0329a78047c231cced261ab834efab6cb90b84244ef7105e0d0771c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
        "gasPrice": "30000000029",
        "referenceId": "8a095c21d72b411ba742ab546042f716"
    }
}
```

{% endtab %}
{% endtabs %}

[<mark style="color:blue;">back to top</mark>](#endpoints-available)

### Error Handling Details

<table><thead><tr><th width="253">Error</th><th>Description</th></tr></thead><tbody><tr><td>400 (Bad Request)</td><td>Indicates the request is invalid or missing the required parameters. The msg field will contain details about the error.</td></tr><tr><td>401 (Unauthorised)</td><td>Indicates the request lacks valid authentication credentials (API key). Ensure that you provide a valid API key in the request headers.</td></tr><tr><td>404 (Not Found)</td><td>Indicates that the specified endpoint or resource does not exist.</td></tr><tr><td>500 (Server Error)</td><td>Indicates an internal server error.</td></tr></tbody></table>

[<mark style="color:blue;">back to top</mark>](#endpoints-available)


# Jupiter (Aggregator)

### /getprice

Returns the swap quoatation for the given token pair.

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

#### Query Parameter

| Name                                       | Type   | Description                                                                               |
| ------------------------------------------ | ------ | ----------------------------------------------------------------------------------------- |
| rpc                                        | String | Remote procedural call URL.                                                               |
| dexId<mark style="color:red;">\*</mark>    | String | Refer to the [DEX ID](https://docs.expand.network/important-ids/dex-id) page for details. |
| path<mark style="color:red;">\*</mark>     | String | Comma separated values of token addresses/token symbol whose price is to be fetched.      |
| amountIn<mark style="color:red;">\*</mark> | String | Amount of token.                                                                          |

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

```url
https://api.expand.network/dex/getprice?dexId=2600&path=EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v%2CEs9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB&amountIn=100000
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "amountIn": "100000",
        "path": [
            "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
            "Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB"
        ],
        "amountsOut": [
            "100000",
            "100404"
        ]
    }
}
```

{% endtab %}
{% endtabs %}

### /getroute

Retrieves the route details for a swap for a given token pair.

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

#### Query Parameter

| Name                                       | Type   | Description                                                                               |
| ------------------------------------------ | ------ | ----------------------------------------------------------------------------------------- |
| rpc                                        | String | Remote procedural call URL.                                                               |
| dexId<mark style="color:red;">\*</mark>    | String | Refer to the [DEX ID](https://docs.expand.network/important-ids/dex-id) page for details. |
| path<mark style="color:red;">\*</mark>     | String | Comma separated values of token addresses/token symbol whose price is to be fetched.      |
| amountIn<mark style="color:red;">\*</mark> | String | Amount of token.                                                                          |

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

```url
https://api.expand.network/dex/getroute?dexId=2600&path=DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263%2CHhJpBhRRn4g56VsyLuT8DL5Bv31HkXqsrahTTUCZeZg4&amountIn=100000000000000
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": [
        {
            "swapInfo": {
                "ammKey": "Gio5iGZF9YVvhX6vwW3fZEfnPhtafseapaseGbAoiH9D",
                "label": "OpenBook V2",
                "inputMint": "DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263",
                "outputMint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
                "inAmount": "20000000000000",
                "outAmount": "4699160000",
                "feeAmount": "0",
                "feeMint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"
            },
            "percent": 20
        },
        {
            "swapInfo": {
                "ammKey": "GBMoNx84HsFdVK63t8BZuDgyZhSBaeKWB4pHHpoeRM9z",
                "label": "Phoenix",
                "inputMint": "DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263",
                "outputMint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
                "inAmount": "80000000000000",
                "outAmount": "18805042455",
                "feeAmount": "9407225",
                "feeMint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"
            },
            "percent": 80
        },
        {
            "swapInfo": {
                "ammKey": "5WGYajM1xtLy3QrLHGSX4YPwsso3jrjEsbU1VivUErzk",
                "label": "Raydium",
                "inputMint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
                "outputMint": "HhJpBhRRn4g56VsyLuT8DL5Bv31HkXqsrahTTUCZeZg4",
                "inAmount": "4699160000",
                "outAmount": "32843399126401",
                "feeAmount": "11747900",
                "feeMint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"
            },
            "percent": 19
        },
        {
            "swapInfo": {
                "ammKey": "4ahqRcJkAepQAm2QBCwmQEYATm5nWuiSKMCBehz584yH",
                "label": "Phoenix",
                "inputMint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
                "outputMint": "HhJpBhRRn4g56VsyLuT8DL5Bv31HkXqsrahTTUCZeZg4",
                "inAmount": "18805042455",
                "outAmount": "131448123060000",
                "feeAmount": "65756940000",
                "feeMint": "HhJpBhRRn4g56VsyLuT8DL5Bv31HkXqsrahTTUCZeZg4"
            },
            "percent": 81
        }
    ]
}
```

{% endtab %}
{% endtabs %}

### /getliquiditysources

Retrieves the liquidity sources on Jupiter&#x20;

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

#### Query Parameter

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

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

```url
https://api.expand.network/dex/getliquiditysources?dexId=2600
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": [
        "Raydium",
        "Orca",
        "Meteora",
        "Phoenix",
        "Lifinity",
        "Openbook v2",
        "Sanctum",
        "Saber",
        "Perps",
        "Invariant",
        "Cropper",
        "FluxBeam",
        "BonkSwap",
        "Stepn",
        "Openbook",
        "Dexlab",
        "Clone",
        "Crema",
        "Saros",
        "Helium Network",
        "GuacSwap",
        "Aldrin",
        "Token Swap",
        "Oasis",
        "Step",
        "Penguin",
        "Sencha"
    ]
}
```

{% endtab %}
{% endtabs %}

### /swap

Initiate a swap on the Solana network leveraging Jupiter.

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

#### Request Body

| Name                                       | Type   | Description                                                                               |
| ------------------------------------------ | ------ | ----------------------------------------------------------------------------------------- |
| rpc                                        | String | Remote procedural call URL.                                                               |
| dexId<mark style="color:red;">\*</mark>    | String | Refer to the [DEX ID](https://docs.expand.network/important-ids/dex-id) page for details. |
| path<mark style="color:red;">\*</mark>     | String | Comma-separated values of token addresses/token symbol, inside an array, to swap.         |
| amountIn<mark style="color:red;">\*</mark> | String | Amount of token to be swapped.                                                            |
| from<mark style="color:red;">\*</mark>     | String | Address of the sender of the token.                                                       |
| slippage<mark style="color:red;">\*</mark> | String | <p>Percentage of total swap value. By default, 1.</p><p>0 <= slippage value <= 100</p>    |

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

```json
{
    "dexId": "2600",
    "from": "6r3DSYWNRw437o6cZfe9CnygqoeFDZbnxiqf5xhFMMD9",
    "amountIn": "10000",
    "path": [
        "Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB",
        "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"
    ],
    "slippage": "10"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "900",
        "from": "6r3DSYWNRw437o6cZfe9CnygqoeFDZbnxiqf5xhFMMD9",
        "to": "JUP6LkbZbjS1jKKwapdHNy74zcZ3tLUZoi5QNyVTaV4",
        "data": "AQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAQAFD1baZfDzmdMUpp4qfdfCQD9rOAvM7ijkr3Lnw/wVOABQO7sAR2gDS0+R1HXkqqjr0Wo3+auYeJQtq0il4DAumghPvgunKv7mWa4NEy2TlszlbpidpeeqdQ4xwmGWS9hevV6k/Ec158v1jAliA05vSjjEKbcui/99aMbFBMKAg5rQh1AqmZXlaSkwnGGrzUnj/jmig6f4dGPWGwdDK/q6PdGiHZpJZ1Uy9xq1yiOta3BcBOI7Dv+jmETs0W7Leny+ArSKwzgdk6RKYenUYVzmok5VPRuhgv9I2YxKOUUxkLXFzbIi97HfAp8UngBXA1SbQdtOJNdGP95RHDUjWw3y1j3fsLhf7Ff9NofcPgIyAbMytm5ggTyKwmR+JqgXUXARVe3lmUk+AGboT02FkLff2iWDfHa8/ybUT6mxDB6GLfUgAwZGb+UhFzL/7K26csOb57yM5bvF9xJrLEObOkAAAAAEedVb8jHAbu50xW7OaBUH/bGy3qP0jlECsc2iVrwTj09LbA5BCP0qaiR46uCsxZ2yG7Tt9RHBYs9gLR4MCQH7aQ5ACXQsnbnGpvA5kJ2tNH87VcS0vJEdjWRHWT4ICoC0P/on9df2SnTAmx8pWHneSwmrNt/J3VFLMhqns4zl6ANa7bAA2exulF4tqDAa3or75yoacIyb++TxYJVI6ix8AwoABQLAXBUACgAJA+pkAAAAAAAAC0EfDAADAQgGJiILCw4LHRsdGRwBCSAmGh0MHx8hHQQCBwsdEh0PEAkFIB4THQwfHyEdEQsjJBYMBQgUFRgXHw0NJSzBIJszQdacgQcDAAAAJmQAASZkAQIZZAIDECcAAAAAAAAsJwAAAAAAAOgDAAOm2MgPPB3Ztyzl/3Ld3wmEAGgtTOsqn8Lkw2W2P5B2FwUQCg4SDAYREwAPDWGrhgWStZrZSVSeYkpWy+Z6i8NhUjcaFEHVMHn+t6k30wW6vLm7tgNCuLdpSCRn39lHASoAgNKdrjT5j2FpwGLAwBF+71dN4fE9agSWl5hZAVg=",
        "referenceId": "010b2d8c69f849f4bae76ec87744110e"
    }
}
```

{% endtab %}
{% endtabs %}


# Derivatives

Provides functionality to fetch details across **derivative** protocol.

Following are the common functions implemented for **derivative**:-&#x20;

| Name                  | Type | Description                                                                                                         |
| --------------------- | ---- | ------------------------------------------------------------------------------------------------------------------- |
| getorders             | Read | Users can fetch details for all orders corresponding to the specified address and the specified sub-account number. |
| getorder              | Read | Users can fetch details for a specific order using the specified order id.                                          |
| getfills              | Read | Users will be able to fetch the fill details of the order.                                                          |
| getassets             | Read | Users will be able to fetch a list of their assets deposited in dYdX.                                               |
| gethistoricalpnl      | Read | Users will be able to fetch their historical profit and loss.                                                       |
| getperpetualpositions | Read | Users will be able to fetch the position of an user.                                                                |
| getsubaccounts        | Read | Users will be able to fetch the details of a subaccount of a user.                                                  |
| gettransfers          | Read | User will be able to fetch the details of the transfer transaction.                                                 |


# dYdX V4

Currently on Ethereum Testnet Goerli / dYdX V4 Testnet Only.

Additional functionalities available in expand.network SDK: onboarding user, place order, transfer, deposit, and cancel order.

### /getorders

Users can fetch details for all orders corresponding to a specified address and a specified sub-account number.

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

#### Query Parameters

| Name                                               | Type   | Description                                                          |
| -------------------------------------------------- | ------ | -------------------------------------------------------------------- |
| address<mark style="color:red;">\*</mark>          | String | User's dydx address.                                                 |
| derivativeId                                       | String | Refer to the [Derivative Id](/ids/derivatives-ids) page for details. |
| subAccountNumber<mark style="color:red;">\*</mark> | String | Number of the sub account.                                           |

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

```url
https://api.expand.network/derivative/getorders?derivativeId=1000&address=dydx13uxwm6gyyggdz92z47h0h2xdfqdfa0wrtykp2d&subAccountNumber=0
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
      "orders": [
        {
            "id": "5724e441-654f-5dc6-ac02-e8e4a7ecda2e",
            "subaccountId": "8845f855-4943-5f72-9ad2-d0a2a416c5bd",
            "clientId": "3711471933",
            "clobPairId": "1",
            "side": "SELL",
            "size": "0.01",
            "totalFilled": "0",
            "price": "2600",
            "type": "LIMIT",
            "status": "CANCELED",
            "timeInForce": "GTT",
            "reduceOnly": false,
            "orderFlags": "64",
            "goodTilBlockTime": "2024-01-10T10:42:45.000Z",
            "createdAtHeight": "4993716",
            "clientMetadata": "0",
            "updatedAt": "2024-01-10T10:42:45.385Z",
            "updatedAtHeight": "4993921",
            "postOnly": true,
            "ticker": "ETH-USD"
          },
          {
            "id": "ff494eb3-d74e-5852-8aea-1ddabc4d9a37",
            "subaccountId": "8845f855-4943-5f72-9ad2-d0a2a416c5bd",
            "clientId": "1594632561",
            "clobPairId": "1",
            "side": "BUY",
            "size": "0.01",
            "totalFilled": "0.01",
            "price": "2600",
            "type": "LIMIT",
            "status": "FILLED",
            "timeInForce": "GTT",
            "reduceOnly": false,
            "orderFlags": "64",
            "goodTilBlockTime": "2024-01-10T10:31:42.000Z",
            "createdAtHeight": "4993244",
            "clientMetadata": "0",
            "updatedAt": "2024-01-10T10:26:43.386Z",
            "updatedAtHeight": "4993245",
            "postOnly": false,
            "ticker": "ETH-USD"
          }
      ]
    }
  }
```

{% endtab %}
{% endtabs %}

### /getorder

Users can fetch details for a specific order using the specified order id.

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

#### Query Parameters

| Name                                      | Type   | Description                                                          |
| ----------------------------------------- | ------ | -------------------------------------------------------------------- |
| orderId<mark style="color:red;">\*</mark> | String | Order Id to fetch details of.                                        |
| derivativeId                              | String | Refer to the [Derivative Id](/ids/derivatives-ids) page for details. |

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

```url
https://api.expand.network/derivative/getorder?derivativeId=1000&orderId=5724e441-654f-5dc6-ac02-e8e4a7ecda2e
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
  "status": 200,
  "msg": "success",
  "data": {
    "id": "5724e441-654f-5dc6-ac02-e8e4a7ecda2e",
    "subaccountId": "8845f855-4943-5f72-9ad2-d0a2a416c5bd",
    "clientId": "3711471933",
    "clobPairId": "1",
    "side": "SELL",
    "size": "0.01",
    "totalFilled": "0",
    "price": "2600",
    "type": "LIMIT",
    "status": "CANCELED",
    "timeInForce": "GTT",
    "reduceOnly": false,
    "orderFlags": "64",
    "goodTilBlockTime": "2024-01-10T10:42:45.000Z",
    "createdAtHeight": "4993716",
    "clientMetadata": "0",
    "updatedAt": "2024-01-10T10:42:45.385Z",
    "updatedAtHeight": "4993921",
    "postOnly": true,
    "ticker": "ETH-USD"
  }
}
```

{% endtab %}
{% endtabs %}

### /getfills

Users can fetch the fill details of the order corresponding to the specified address and the specified sub-account number.

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

#### Query Parameters

| Name                                               | Type   | Description                                                          |
| -------------------------------------------------- | ------ | -------------------------------------------------------------------- |
| address<mark style="color:red;">\*</mark>          | String | User's dydx address.                                                 |
| derivativeId                                       | String | Refer to the [Derivative Id](/ids/derivatives-ids) page for details. |
| subAccountNumber<mark style="color:red;">\*</mark> | String | Number of the sub account.                                           |

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

```url
https://api.expand.network/derivative/getfills?derivativeId=1000&address=dydx13uxwm6gyyggdz92z47h0h2xdfqdfa0wrtykp2d&subAccountNumber=0
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
        "msg": "success",
            "data": {
        "fills": [
            {
                "id": "025d1daa-3b12-5a65-a59a-fb57fefb6233",
                "side": "BUY",
                "liquidity": "TAKER",
                "type": "LIMIT",
                "market": "ETH-USD",
                "marketType": "PERPETUAL",
                "price": "2413.9",
                "size": "0.01",
                "fee": "0.01207",
                "createdAt": "2024-01-10T10:41:20.668Z",
                "createdAtHeight": "4993859",
                "orderId": "25432d45-2ac7-5476-991e-5c37a5d53cf7",
                "clientMetadata": "0"
            },
            {
                "id": "1017f858-a126-520e-bf3f-a579f5cc6c40",
                "side": "BUY",
                "liquidity": "TAKER",
                "type": "LIMIT",
                "market": "ETH-USD",
                "marketType": "PERPETUAL",
                "price": "2413.9",
                "size": "0.01",
                "fee": "0.01207",
                "createdAt": "2024-01-10T10:41:10.957Z",
                "createdAtHeight": "4993853",
                "orderId": "64900bdb-a4af-597f-897e-7d1ee7b3f9c5",
                "clientMetadata": "0"
            },
            {
                "id": "daae86a4-e125-5231-97e6-b1ea46174e3b",
                "side": "BUY",
                "liquidity": "TAKER",
                "type": "LIMIT",
                "market": "ETH-USD",
                "marketType": "PERPETUAL",
                "price": "2500",
                "size": "0.01",
                "fee": "0.0125",
                "createdAt": "2024-01-10T10:40:55.682Z",
                "createdAtHeight": "4993842",
                "orderId": "e2d931c4-7236-50dd-853e-72db64c7c67a",
                "clientMetadata": "0"
            }
        ]
    }
}
```

{% endtab %}
{% endtabs %}

### /getassets

Users can fetch a list of their assets deposited in dYdX corresponding to the specified address and the specified sub-account number.

<mark style="color:blue;">`GET`</mark> `https://api.expand.network/derivative/getassets`

#### Query Parameters

| Name                                               | Type   | Description                                                          |
| -------------------------------------------------- | ------ | -------------------------------------------------------------------- |
| address<mark style="color:red;">\*</mark>          | String | User's dydx address.                                                 |
| derivativeId                                       | String | Refer to the [Derivative Id](/ids/derivatives-ids) page for details. |
| subAccountNumber<mark style="color:red;">\*</mark> | String | Number of the sub account.                                           |

{% tabs %}
{% tab title="Sample Request" %}

```url
https://api.expand.network/derivative/getassets?derivativeId=1000&address=dydx13uxwm6gyyggdz92z47h0h2xdfqdfa0wrtykp2d&subAccountNumber=0
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
  "status": 200,
  "msg": "success",
  "data": {
    "assets": [
      {
        "size": "189.229062",
        "symbol": "USDC",
        "side": "SHORT",
        "assetId": "0"
      }
    ]
  }
}
```

{% endtab %}
{% endtabs %}

### /gethistoricalpnl

Users can fetch the historical profit and loss corresponding to the specified address and the specified sub-account number.

<mark style="color:blue;">`GET`</mark> `https://api.expand.network/derivative/gethistoricalpnl`

#### Query Parameters

| Name                                               | Type   | Description                                                          |
| -------------------------------------------------- | ------ | -------------------------------------------------------------------- |
| address<mark style="color:red;">\*</mark>          | String | User's dydx address.                                                 |
| derivativeId                                       | String | Refer to the [Derivative Id](/ids/derivatives-ids) page for details. |
| subAccountNumber<mark style="color:red;">\*</mark> | String | Number of the sub account.                                           |

{% tabs %}
{% tab title="Sample Request" %}

```url
https://api.expand.network/derivative/gethistoricalpnl?derivativeId=1000&address=dydx13uxwm6gyyggdz92z47h0h2xdfqdfa0wrtykp2d&subAccountNumber=0
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
        "msg": "success",
        "data": {
        "historicalPnL": [
            {
                "id": "4c3e3f94-ea28-5d34-8c60-95acc0e975fc",
                "subaccountId": "8845f855-4943-5f72-9ad2-d0a2a416c5bd",
                "equity": "509.314640",
                "totalPnl": "19.086934",
                "netTransfers": "0.000000",
                "createdAt": "2024-01-16T09:03:28.508Z",
                "blockHeight": "5355500",
                "blockTime": "2024-01-16T09:03:21.614Z"
            },
            {
                "id": "ee9d8bc8-af28-5f91-8edd-2982c6ff42ee",
                "subaccountId": "8845f855-4943-5f72-9ad2-d0a2a416c5bd",
                "equity": "509.314640",
                "totalPnl": "19.086934",
                "netTransfers": "0.000000",
                "createdAt": "2024-01-16T09:02:58.369Z",
                "blockHeight": "5355479",
                "blockTime": "2024-01-16T09:02:52.074Z"
            },
            {
                "id": "35420152-944c-5898-9465-42f4ec55bed4",
                "subaccountId": "8845f855-4943-5f72-9ad2-d0a2a416c5bd",
                "equity": "509.314640",
                "totalPnl": "19.086934",
                "netTransfers": "0.000000",
                "createdAt": "2024-01-16T09:02:28.204Z",
                "blockHeight": "5355457",
                "blockTime": "2024-01-16T09:02:21.962Z"
            },
            {
                "id": "b7b5f39a-47d4-55f2-b46f-48795dd83be9",
                "subaccountId": "8845f855-4943-5f72-9ad2-d0a2a416c5bd",
                "equity": "509.314640",
                "totalPnl": "19.086934",
                "netTransfers": "0.000000",
                "createdAt": "2024-01-16T09:01:58.165Z",
                "blockHeight": "5355434",
                "blockTime": "2024-01-16T09:01:51.006Z"
            }
        ]
    }
}
```

{% endtab %}
{% endtabs %}

### /getperpetualpositions

Users can fetch the position corresponding to the specified address and the specified sub-account number.

<mark style="color:blue;">`GET`</mark> `https://api.expand.network/derivative/getperpetualpositions`

#### Query Parameters

| Name                                               | Type   | Description                                                          |
| -------------------------------------------------- | ------ | -------------------------------------------------------------------- |
| address<mark style="color:red;">\*</mark>          | String | User's dydx address.                                                 |
| derivativeId                                       | String | Refer to the [Derivative Id](/ids/derivatives-ids) page for details. |
| subAccountNumber<mark style="color:red;">\*</mark> | String | Number of the sub account.                                           |

{% tabs %}
{% tab title="Sample Request" %}

```url
https://api.expand.network/derivative/getperpetualpositions?derivativeId=1000&address=dydx13uxwm6gyyggdz92z47h0h2xdfqdfa0wrtykp2d&subAccountNumber=0
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
        "msg": "success",
        "data": {
        "positions": [
            {
                "market": "ETH-USD",
                "status": "OPEN",
                "side": "LONG",
                "size": "0.275",
                "maxSize": "0.275",
                "entryPrice": "2446.92727272727272727273",
                "exitPrice": null,
                "realizedPnl": "-0.30197",
                "unrealizedPnl": "24.92914112499999999999925",
                "createdAt": "2023-11-01T09:40:35.893Z",
                "createdAtHeight": "882343",
                "closedAt": null,
                "sumOpen": "0.275",
                "sumClose": "0",
                "netFunding": "-0.30197"
            },
            {
                "market": "ETH-USD",
                "status": "CLOSED",
                "side": "LONG",
                "size": "0",
                "maxSize": "0.01",
                "entryPrice": "1851.3",
                "exitPrice": "1849.8",
                "realizedPnl": "-0.015",
                "unrealizedPnl": "0",
                "createdAt": "2023-10-26T08:22:15.515Z",
                "createdAtHeight": "532122",
                "closedAt": "2023-10-26T08:22:23.632Z",
                "sumOpen": "0.01",
                "sumClose": "0.01",
                "netFunding": "0"
            },
            {
                "market": "ETH-USD",
                "status": "CLOSED",
                "side": "SHORT",
                "size": "0",
                "maxSize": "-0.005",
                "entryPrice": "1847.1",
                "exitPrice": "1851.2",
                "realizedPnl": "-0.0205",
                "unrealizedPnl": "0",
                "createdAt": "2023-10-26T07:52:16.125Z",
                "createdAtHeight": "531124",
                "closedAt": "2023-10-26T07:59:24.633Z",
                "sumOpen": "0.005",
                "sumClose": "0.005",
                "netFunding": "0"
            }
        ]
    }
}
```

{% endtab %}
{% endtabs %}

### /getsubaccounts

Users can fetch the details of a sub-account corresponding to the specified address.

<mark style="color:blue;">`GET`</mark> `https://api.expand.network/derivative/getsubaccounts`

#### Query Parameters

| Name                                      | Type   | Description                                                          |
| ----------------------------------------- | ------ | -------------------------------------------------------------------- |
| address<mark style="color:red;">\*</mark> | String | User's dydx address.                                                 |
| derivativeId                              | String | Refer to the [Derivative Id](/ids/derivatives-ids) page for details. |

{% tabs %}
{% tab title="Sample Request" %}

```url
https://api.expand.network/derivative/getsubaccounts?derivativeId=1000&address=dydx13uxwm6gyyggdz92z47h0h2xdfqdfa0wrtykp2d
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
  "status": 200,
  "msg": "success",
  "data": {
    "subaccounts": [
      {
        "address": "dydx13uxwm6gyyggdz92z47h0h2xdfqdfa0wrtykp2d",
        "subaccountNumber": 0,
        "equity": "507.190302025",
        "freeCollateral": "472.36933382375",
        "openPerpetualPositions": {
          "ETH-USD": {
            "market": "ETH-USD",
            "status": "OPEN",
            "side": "LONG",
            "size": "0.275",
            "maxSize": "0.275",
            "entryPrice": "2446.92727272727272727273",
            "exitPrice": null,
            "realizedPnl": "-0.30197",
            "unrealizedPnl": "23.51436402499999999999925",
            "createdAt": "2023-11-01T09:40:35.893Z",
            "createdAtHeight": "882343",
            "closedAt": null,
            "sumOpen": "0.275",
            "sumClose": "0",
            "netFunding": "-0.30197"
          }
        },
        "assetPositions": {
          "USDC": {
            "size": "189.229062",
            "symbol": "USDC",
            "side": "SHORT",
            "assetId": "0"
          }
        },
        "marginEnabled": true
      }
    ]
  }
}
```

{% endtab %}
{% endtabs %}

### /gettransfers

Users can fetch the details of the transfer transaction corresponding to the specified address and the specified sub-account number.

<mark style="color:blue;">`GET`</mark> `https://api.expand.network/derivative/gettransfers`

#### Query Parameters

| Name                                               | Type   | Description                                                          |
| -------------------------------------------------- | ------ | -------------------------------------------------------------------- |
| address<mark style="color:red;">\*</mark>          | String | User's dydx address.                                                 |
| derivativeId                                       | String | Refer to the [Derivative Id](/ids/derivatives-ids) page for details. |
| subAccountNumber<mark style="color:red;">\*</mark> | String | Number of the sub account.                                           |

{% tabs %}
{% tab title="Sample Request" %}

```url
https://api.expand.network/derivative/gettransfers?derivativeId=1000&address=dydx13uxwm6gyyggdz92z47h0h2xdfqdfa0wrtykp2d&subAccountNumber=0
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
        "msg": "success",
        "data": {
        "transfers": [
            {
                "id": "a5a2714e-d9c9-5484-8bc4-8617b0c99954",
                "sender": {
                    "address": "dydx13uxwm6gyyggdz92z47h0h2xdfqdfa0wrtykp2d",
                    "subaccountNumber": 0
                },
                "recipient": {
                    "address": "dydx1eym66guf6xet6zl8c7h2h4c5hn4pglc75t2fem"
                },
                "size": "0.007239",
                "createdAt": "2024-01-15T15:42:48.451Z",
                "createdAtHeight": "5309897",
                "symbol": "USDC",
                "type": "WITHDRAWAL",
                "transactionHash": "B61FCF59F5AAE8E7F4D6C72D91B82050A825E41634DF457D9C2B90CDDCA20D2C"
            },
            {
                "id": "64b0c1f2-c8d8-529c-b2ee-f6a9617159b1",
                "sender": {
                    "address": "dydx13uxwm6gyyggdz92z47h0h2xdfqdfa0wrtykp2d",
                    "subaccountNumber": 0
                },
                "recipient": {
                    "address": "dydx150c8hssycjem2p9yfs9pa2xm4jjuvkn6t6w3v6"
                },
                "size": "0.007401",
                "createdAt": "2024-01-15T15:39:57.986Z",
                "createdAtHeight": "5309772",
                "symbol": "USDC",
                "type": "WITHDRAWAL",
                "transactionHash": "2F53FEAD71475DDA345AE2566851A6CEA10126047D0BDDC29D147DE47DCCDCB7"
            },
            {
                "id": "bee619f9-04bd-5756-b095-39a35078b6da",
                "sender": {
                    "address": "dydx13uxwm6gyyggdz92z47h0h2xdfqdfa0wrtykp2d",
                    "subaccountNumber": 0
                },
                "recipient": {
                    "address": "dydx1yt75rda3x7zxun8pcf3gtpt7mp5ultg0u9z43e"
                },
                "size": "0.00724",
                "createdAt": "2024-01-09T18:38:12.582Z",
                "createdAtHeight": "4954546",
                "symbol": "USDC",
                "type": "WITHDRAWAL",
                "transactionHash": "B8FCB72797B3C8772478A3B05D1DCE63A1BA96B99B359144A8DA8ADF2739EECE"
            }
        ]
    }
}
```

{% endtab %}
{% endtabs %}


# Fungible Tokens

Provides functionalities to transfer tokens, allows others to transfer tokens on behalf of the token holder, and converts base to wrap token and vice versa.

Following are the common functions implemented for the Fungible Tokens:-&#x20;

<table><thead><tr><th width="312.4">Name</th><th width="150">Type</th><th>Description</th></tr></thead><tbody><tr><td>gettokendetails</td><td>Read</td><td>Get the name, symbol and decimals of provided token address.</td></tr><tr><td>getuserallowance</td><td>Read</td><td>Get the amount that the spender is allowed to withdraw on behalf of the owner.</td></tr><tr><td>getuserbalance</td><td>Read</td><td>Get the balance of the given token for the provided public address.</td></tr><tr><td>historical/transactions</td><td>Read</td><td>Retrieves all the transfers for the given address in the given range.</td></tr><tr><td>historical/weth</td><td>Read</td><td>Retrieves all the WETH transfers for the given address in the given range.</td></tr><tr><td>historical/logs</td><td>Read</td><td>Retrieves all the logs for the given address in the given range.</td></tr><tr><td>approve</td><td>Write</td><td>Sets amount as the allowance of spender over the user's tokens.</td></tr><tr><td>transfer</td><td>Write</td><td>Moves amount tokens from the user’s account to the recipient.</td></tr><tr><td>transferfrom</td><td>Write</td><td>Moves amount tokens from sender to recipient using the allowance mechanism.</td></tr><tr><td>convertbasetokentowraptoken</td><td>Write</td><td>Converts base token to wrap token.</td></tr><tr><td>convertwraptokentobasetoken</td><td>Write</td><td>Converts wrap token to base token.</td></tr></tbody></table>

Following is a sequence diagram for approve() process:-

<figure><img src="/files/zK6upS7MN9A6laZM0K8I" alt=""><figcaption><p>Sequence diagram for approve</p></figcaption></figure>

Following is a sequence diagram for transfer() process:-

<figure><img src="/files/OhlHZiiKLIArqQaKtYbP" alt=""><figcaption><p>Sequence diagram for transfer</p></figcaption></figure>

Following is a sequence diagram for transferFrom() process:-

<figure><img src="/files/eMJwajAR3DvAg0esAyCr" alt=""><figcaption><p>Sequence Diagram for transferFrom </p></figcaption></figure>

Following is a sequence diagram for convertBaseTokenToWrapToken() process:-

<figure><img src="/files/kDgZItpaCblLAM7aP0KA" alt=""><figcaption><p>Sequence diagram for convertBaseTokenToWrapToken</p></figcaption></figure>

Following is a sequence diagram for convertWrapTokenToBaseToken() process:-

<figure><img src="/files/WqadxBPF4YY1Fc3MgrBx" alt=""><figcaption><p>Sequence diagram for convertWrapTokenToBaseToken</p></figcaption></figure>


# ERC20

### /gettokendetails

Get the name, symbol and decimals of provided token address. Currently available on EVM chains and Near

<mark style="color:blue;">`GET`</mark> `https://api.expand.network/fungibletoken/gettokendetails`

#### Query Parameters

| Name                                           | Type   | Description                                                                |
| ---------------------------------------------- | ------ | -------------------------------------------------------------------------- |
| rpc                                            | String | Remote procedural call URL.                                                |
| tokenAddress<mark style="color:red;">\*</mark> | String | <p>Comma seperated address of token.<br>Maximum 10 tokens allowed.<br></p> |
| chainId                                        | String | Refer to the [Chain ID ](/ids/chain-ids)page for details.                  |
| chainSymbol                                    | String | Refer to the [Chain ID ](/ids/chain-ids)page for details.                  |

{% tabs %}
{% tab title="Sample Request" %}

```url
https://api.expand.network/fungibletoken/gettokendetails?tokenAddress=0xEB1112Ac78D537853150E2a07E8b765E29d3F019
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": [
        {
            "address": "0xeb1112ac78d537853150e2a07e8b765e29d3f019",
            "name": "HASH",
            "symbol": "HASH",
            "decimals": "18",
            "possibleSpam": false,
            "verifiedContract": false
        }
    ]
}
```

{% endtab %}
{% endtabs %}

### /getuserallowance

Get the amount that the spender is allowed to withdraw on behalf of the owner. Currently available on EVM chains and Tron

<mark style="color:blue;">`GET`</mark> `https://api.expand.network/fungibletoken/getuserallowance`

#### Query Parameters

| Name                                           | Type   | Description                                                    |
| ---------------------------------------------- | ------ | -------------------------------------------------------------- |
| tokenAddress<mark style="color:red;">\*</mark> | String | Address of the token.                                          |
| owner<mark style="color:red;">\*</mark>        | String | Public address of the owner.                                   |
| spender<mark style="color:red;">\*</mark>      | String | Public address of the spender.                                 |
| rpc                                            | String | Remote procedural call URL.                                    |
| chainId                                        | String | Refer to the [Chain ID](/ids/chain-ids) page for more details. |
| chainSymbol                                    | String | Refer to the [Chain ID](/ids/chain-ids) page for more details. |

{% tabs %}
{% tab title="Sample Request" %}

```url
https://api.expand.network/fungibletoken/getuserallowance?owner=0x6Fb447Ae94F5180254D436A693907a1f57696900&tokenAddress=0x6b175474e89094c44da98b954eedeac495271d0f&spender=0xBA12222222228d8Ba445958a75a0704d566BF2C8
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "allowance": "999000000000000000000"
    }
}
```

{% endtab %}
{% endtabs %}

### /getuserbalance

Get the balance of the given token. Currently available on EVM chains

<mark style="color:blue;">`GET`</mark> `https://api.expand.network/fungibletoken/getuserbalance`

#### Query Parameters

| Name                                           | Type   | Description                                               |
| ---------------------------------------------- | ------ | --------------------------------------------------------- |
| chainId<mark style="color:red;">\*</mark>      | String | Refer to the [Chain ID](/ids/chain-ids) page for details. |
| tokenAddress<mark style="color:red;">\*</mark> | String | Address of the token.                                     |
| address<mark style="color:red;">\*</mark>      | String | Public Address of the user                                |
| chainSymbol                                    | String | Refer to the [Chain ID](/ids/chain-ids) page for details. |

{% tabs %}
{% tab title="Sample Request" %}

```url
https://api.expand.network/fungibletoken/getuserbalance?tokenAddress=0x6B175474E89094C44Da98b954EedeAC495271d0F&address=0x63056E00436Da25BcF48A40dfBbDcc7089351006&chainId=1
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "balance": "90344000000000000000"
    }
}
```

{% endtab %}
{% endtabs %}

### /historicaltransactions

Retrieves all the transfers for the given address in the given range.

<mark style="color:blue;">`GET`</mark> `https://api.expand.network/fungibletoken/historicaltransactions`

#### Query Parameters

| Name                                           | Type   | Description                                                           |
| ---------------------------------------------- | ------ | --------------------------------------------------------------------- |
| chainId                                        | String | Refer to the [Chain ID](/ids/chain-ids) page for details.             |
| address                                        | String | Public Address of the user                                            |
| chainSymbol                                    | String | Refer to the [Chain ID](/ids/chain-ids) page for details.             |
| startBlock                                     | String | <p>Starting block of the range.</p><p>by default latestBlock -100</p> |
| endBlock                                       | String | <p>Last block of the range.</p><p>by default its latestBlock</p>      |
| page                                           | String | <p>page to get response on,</p><p>by default its 1</p>                |
| sort                                           | String | <p>asc/desc sorting method,</p><p>by default its desc</p>             |
| tokenAddress<mark style="color:red;">\*</mark> | String | address of the erc20 token                                            |

{% tabs %}
{% tab title="Sample Request" %}

```url
https://api.expand.network/fungibletoken/historicaltransactions?tokenAddress=0x6b175474e89094c44da98b954eedeac495271d0f
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "transactions": [
            {
                "blockNumber": "18968825",
                "timeStamp": "1704796271",
                "hash": "0x6df96285db80a5c1792a056bf9f38c63e9f250572c2f5afac945bcf996a145e5",
                "nonce": "21",
                "blockHash": "0xe8cf4dda5e648b707ff2837741708176122cb2196559c20c8618debf8c991997",
                "from": "0x3f2488a54c8b397525ff85ce5d32ac5f27dd8ce5",
                "contractAddress": "0x6b175474e89094c44da98b954eedeac495271d0f",
                "to": "0x1715a3e4a142d8b698131108995174f37aeba10d",
                "value": "193485657300000000000",
                "tokenName": "Dai Stablecoin",
                "tokenSymbol": "DAI",
                "tokenDecimal": "18",
                "transactionIndex": "114",
                "gas": "216896",
                "gasPrice": "12898560151",
                "gasUsed": "189283",
                "cumulativeGasUsed": "10458631",
                "input": "deprecated",
                "confirmations": "67",
                "methodId": "0xad58bdd1",
                "methodSignature": "relayTokens(address,address,uint256)"
            },
        ]
    }
}
```

{% endtab %}
{% endtabs %}

### /historical/weth

Retrieves all the WETH transfers for the given address in the given range.

<mark style="color:blue;">`GET`</mark> `https://api.expand.network/fungibletoken/historical/weth`

#### Query Parameters

| Name        | Type   | Description                                                           |
| ----------- | ------ | --------------------------------------------------------------------- |
| chainId     | String | Refer to the [Chain ID](/ids/chain-ids) page for details.             |
| address     | String | Public Address of the user                                            |
| chainSymbol | String | Refer to the [Chain ID](/ids/chain-ids) page for details.             |
| startBlock  | String | <p>Starting block of the range.</p><p>by default latestBlock -100</p> |
| endBlock    | String | <p>Last block of the range.</p><p>by default its latestBlock</p>      |
| page        | String | <p>page to get response on,</p><p>by default its 1</p>                |
| sort        | String | <p>asc/desc sorting method,</p><p>by default its desc</p>             |

{% tabs %}
{% tab title="Sample Request" %}

```url
https://api.expand.network/fungibletoken/historical/weth
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "transactions": [
            {
                "blockNumber": "17320271",
                "timeStamp": "1684824623",
                "hash": "0x051aac77f464921c72bb628fea7e1f57663b28e0286d20c69e830498307f15d5",
                "nonce": "367",
                "blockHash": "0x3dc921095193718262dcf3f07b52f1921351bef675a8617dd6f1badde6093f19",
                "from": "0x55d5c232d921b9eaa6b37b5845e439acd04b4dba",
                "contractAddress": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
                "to": "0xef1c6e67703c7bd7107eed8303fbe6ec2554bf6b",
                "value": "449713740022466855",
                "tokenName": "Wrapped Ether",
                "tokenSymbol": "WETH",
                "tokenDecimal": "18",
                "transactionIndex": "112",
                "gas": "212952",
                "gasPrice": "37761736473",
                "gasUsed": "149768",
                "cumulativeGasUsed": "10771742",
                "input": "deprecated",
                "confirmations": "1"
            }
        ]
    }
}
```

{% endtab %}
{% endtabs %}

### /historicallogs

Retrieves all the logs for the given address in the given range.

<mark style="color:blue;">`GET`</mark> `https://api.expand.network/fungibletoken/historicallogs`

#### Query Parameters

| Name                                           | Type   | Description                                                                 |
| ---------------------------------------------- | ------ | --------------------------------------------------------------------------- |
| chainId                                        | String | Refer to the [Chain ID](/ids/chain-ids) page for details.                   |
| chainSymbol                                    | String | Refer to the [Chain ID](/ids/chain-ids) page for details.                   |
| startBlock                                     | String | <p>Starting block of the range.</p><p>by default its (latestBlock -100)</p> |
| endBlock                                       | String | <p>Last block of the range.</p><p>by default its latestBlock</p>            |
| tokenAddress<mark style="color:red;">\*</mark> | String | address of the erc20 token                                                  |
| type<mark style="color:red;">\*</mark>         | String | Approval/Transfer logs                                                      |

{% tabs %}
{% tab title="Sample Request" %}

```url
https://api.expand.network/fungibletoken/historicallogs?tokenAddress=0x6B175474E89094C44Da98b954EedeAC495271d0F&type=Approval
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "logs": [
            {
                "address": "0x6b175474e89094c44da98b954eedeac495271d0f",
                "topics": [
                    "0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925",
                    "0x000000000000000000000000975f7b8e68e99c04807e94f72d63e98ec21f5ad5",
                    "0x0000000000000000000000001715a3e4a142d8b698131108995174f37aeba10d"
                ],
                "params": {
                    "src": "0x975f7b8e68e99c04807e94f72d63e98ec21f5ad5",
                    "guy": "0x1715a3e4a142d8b698131108995174f37aeba10d",
                    "wad": "127000000000000000000"
                },
                "data": "0x000000000000000000000000000000000000000000000006e27aa3200a9c0000",
                "blockNumber": "17320089",
                "blockHash": "0x39b65a913a44fefa4f1432dc00927839cf8ba6bcbc778afb3effaf5c91a2a5d1",
                "timeStamp": "1684822391",
                "gasPrice": "37991235385",
                "gasUsed": "46158",
                "logIndex": "302",
                "transactionHash": "0x8b9159d1fc58b9dd33a0f8ebcb6980bca0416c3836bb08771c2cac5737dbadba",
                "transactionIndex": "109"
            }
        ]
    }
}
```

{% endtab %}
{% endtabs %}

### /historicalusertransactions

Retrieves all the ERC-20 transfers for the given address. \
Currently support for all EVM chains-Except zksync-era

<mark style="color:blue;">`GET`</mark> `https://api.expand.network/fungibletoken/historicalusertransactions`

#### Query Parameters

<table><thead><tr><th width="177">Name</th><th width="140">Type</th><th>Description</th></tr></thead><tbody><tr><td>chainId</td><td>String</td><td>Refer to the <a href="/pages/5o1xMsQPqXw9GBfGTpdB">Chain ID</a> page for details.</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>address<mark style="color:red;">*</mark></td><td>String</td><td>Public Address of the user</td></tr><tr><td>tokenAddress<mark style="color:red;">*</mark></td><td>String</td><td>ERC-20 token address</td></tr><tr><td>startBlock</td><td>String</td><td><p>Starting block of the range.</p><p>by default latestBlock -100</p></td></tr><tr><td>endBlock</td><td>String</td><td><p>Last block of the range.</p><p>by default its latestBlock</p></td></tr><tr><td>pageSize</td><td>String</td><td><p>page to get response on,</p><p>by default its 1</p></td></tr><tr><td>pageToken</td><td>String</td><td>Present at the top of a lengthy response to fetch the next page.</td></tr><tr><td>sortOrder</td><td>String</td><td><p>asc/desc sorting method,</p><p>by default its desc</p></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><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></tbody></table>

{% tabs %}
{% tab title="Sample Request" %}

```url
https://api.expand.network/fungibletoken/historicalusertransactions?chainId=1&address=0x83A32a54D31Ee4f1f9dFFAd2A63A6d214e469eC3&tokenAddress=0xdAC17F958D2ee523a2206206994597C13D831ec7&sortOrder=asc&pageSize=10
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
  "status": 200,
  "msg": "success",
  "data": {
    "nextPageToken": "eyJhbGciOiJIUzI1NiJ9.eyJhc2NlbmRpbmciOnRydWUsImxpbWl0IjoxMCwicGFnZSI6MCwibGFzdEV2YWx1YXRlZEtleSI6eyJ3YWxsZXRBZGRyZXNzIjoiMHg4M2EzMmE1NGQzMWVlNGYxZjlkZmZhZDJhNjNhNmQyMTRlNDY5ZWMzIiwibG9nSWRlbnRpZmllclJvbGx1cCI6IjAwMDE3MTYwMDAxNDMwMDAwMDAwMDAwMDAwMDAwMDA4In0sInRhYmxlSW5kZXgiOjl9.cRYxg4nozOYVDq9pvYE5RLb0yoe-IKyIhV2VvvNr4tQ",
    "transactions": [
      {
        "token_name": "Tether USD",
        "token_symbol": "USDT",
        "token_decimals": "6",
        "from_address_entity": null,
        "from_address_entity_logo": null,
        "from_address": "0x83bdf89ce9b2b587785a89603d2d451f05cf719b",
        "from_address_label": null,
        "to_address_entity": null,
        "to_address_entity_logo": null,
        "to_address": "0x83a32a54d31ee4f1f9dffad2a63a6d214e469ec3",
        "to_address_label": null,
        "address": "0xdac17f958d2ee523a2206206994597c13d831ec7",
        "block_hash": "0x1faa804cbd9899e08a6f56b995524d32926c2fe08a2cfae9448987087e8f85b1",
        "block_number": "19768965",
        "block_timestamp": "2024-04-30T15:17:23.000Z",
        "transaction_hash": "0x22d5762ea04387c8e3517420c24f81becd7bd9f9836c9d5ae530878ac89d47e9",
        "transaction_index": 35,
        "log_index": 131,
        "value": "1000000"
      },
      {
        "token_name": "Tether USD",
        "token_symbol": "USDT",
        "token_decimals": "6",
        "from_address_entity": null,
        "from_address_entity_logo": null,
        "from_address": "0x83bdf89ce9b2b587785a89603d2d451f05cf719b",
        "from_address_label": null,
        "to_address_entity": null,
        "to_address_entity_logo": null,
        "to_address": "0x83a32a54d31ee4f1f9dffad2a63a6d214e469ec3",
        "to_address_label": null,
        "address": "0xdac17f958d2ee523a2206206994597c13d831ec7",
        "block_hash": "0x31ad28e590986b7f4ac84be0bf95557177f571a1e9be8062d1a7c96f8e273eb9",
        "block_number": "19781205",
        "block_timestamp": "2024-05-02T08:20:23.000Z",
        "transaction_hash": "0x877cd91398440e3cf502cc99ec2ad463fa77dd3ce2bf5ee169aae42dffb5bdbc",
        "transaction_index": 24,
        "log_index": 31,
        "value": "30000000000000"
      },
      {
        "token_name": "Tether USD",
        "token_symbol": "USDT",
        "token_decimals": "6",
        "from_address_entity": null,
        "from_address_entity_logo": null,
        "from_address": "0x83bdf89ce9b2b587785a89603d2d451f05cf719b",
        "from_address_label": null,
        "to_address_entity": null,
        "to_address_entity_logo": null,
        "to_address": "0x83a32a54d31ee4f1f9dffad2a63a6d214e469ec3",
        "to_address_label": null,
        "address": "0xdac17f958d2ee523a2206206994597c13d831ec7",
        "block_hash": "0xf742ac23e06f776e28a228ab5cd9944ea354f267ecec324af7bbdfe30e7cec3a",
        "block_number": "19781354",
        "block_timestamp": "2024-05-02T08:50:11.000Z",
        "transaction_hash": "0x77945592114d7df433fedd66515eada9070ce1838c81b2b348c2e5d416e0a47b",
        "transaction_index": 44,
        "log_index": 38,
        "value": "30000000000000"
      },
      {
        "token_name": "Tether USD",
        "token_symbol": "USDT",
        "token_decimals": "6",
        "from_address_entity": null,
        "from_address_entity_logo": null,
        "from_address": "0x83bdf89ce9b2b587785a89603d2d451f05cf719b",
        "from_address_label": null,
        "to_address_entity": null,
        "to_address_entity_logo": null,
        "to_address": "0x83a32a54d31ee4f1f9dffad2a63a6d214e469ec3",
        "to_address_label": null,
        "address": "0xdac17f958d2ee523a2206206994597c13d831ec7",
        "block_hash": "0xcfb6479ee16d2815aabd49789d2e630f891043bce1fe5ee699cd093e2fd3d954",
        "block_number": "19781375",
        "block_timestamp": "2024-05-02T08:54:23.000Z",
        "transaction_hash": "0x24a959f0989328de6a7cdc97ffab4d07f4e612d98523bab17a5dd31291f3d8ed",
        "transaction_index": 71,
        "log_index": 135,
        "value": "30000000000000"
      },
      {
        "token_name": "Tether USD",
        "token_symbol": "USDT",
        "token_decimals": "6",
        "from_address_entity": null,
        "from_address_entity_logo": null,
        "from_address": "0x83bdf89ce9b2b587785a89603d2d451f05cf719b",
        "from_address_label": null,
        "to_address_entity": null,
        "to_address_entity_logo": null,
        "to_address": "0x83a32a54d31ee4f1f9dffad2a63a6d214e469ec3",
        "to_address_label": null,
        "address": "0xdac17f958d2ee523a2206206994597c13d831ec7",
        "block_hash": "0xeada8469b9cace2e42f21588cb5523de83f68712e3091d6128c73d71f3aba3d5",
        "block_number": "19801538",
        "block_timestamp": "2024-05-05T04:34:11.000Z",
        "transaction_hash": "0x1d22a82e6973d137b3afcfb01ee608152a38102b8963ac6fd1dc5d295da4b721",
        "transaction_index": 107,
        "log_index": 248,
        "value": "1744527000000"
      },
      {
        "token_name": "Tether USD",
        "token_symbol": "USDT",
        "token_decimals": "6",
        "from_address_entity": null,
        "from_address_entity_logo": null,
        "from_address": "0x83bdf89ce9b2b587785a89603d2d451f05cf719b",
        "from_address_label": null,
        "to_address_entity": null,
        "to_address_entity_logo": null,
        "to_address": "0x83a32a54d31ee4f1f9dffad2a63a6d214e469ec3",
        "to_address_label": null,
        "address": "0xdac17f958d2ee523a2206206994597c13d831ec7",
        "block_hash": "0x1b524eb085ed2037f8d603c930cda05327c64bc0fe95d3617731d13fc691fca4",
        "block_number": "19808133",
        "block_timestamp": "2024-05-06T02:42:23.000Z",
        "transaction_hash": "0xc8929c5cba88438537969fdd10ca2ed8c3c586fdc4b6860141ab99886ee97519",
        "transaction_index": 13,
        "log_index": 33,
        "value": "2140680000000"
      },
      {
        "token_name": "Tether USD",
        "token_symbol": "USDT",
        "token_decimals": "6",
        "from_address_entity": null,
        "from_address_entity_logo": null,
        "from_address": "0x83bdf89ce9b2b587785a89603d2d451f05cf719b",
        "from_address_label": null,
        "to_address_entity": null,
        "to_address_entity_logo": null,
        "to_address": "0x83a32a54d31ee4f1f9dffad2a63a6d214e469ec3",
        "to_address_label": null,
        "address": "0xdac17f958d2ee523a2206206994597c13d831ec7",
        "block_hash": "0x92552bb7fcf9611d83ed4321648a8dbb37ebf9ba1d07da05b7cfd550471123a3",
        "block_number": "19815775",
        "block_timestamp": "2024-05-07T04:21:11.000Z",
        "transaction_hash": "0xbf6370013bb6ea39abec1b36ea4fcbc66261f11f07f6d48bb48dfc5b5b7b8d7a",
        "transaction_index": 29,
        "log_index": 84,
        "value": "171606000000"
      },
      {
        "token_name": "Tether USD",
        "token_symbol": "USDT",
        "token_decimals": "6",
        "from_address_entity": null,
        "from_address_entity_logo": null,
        "from_address": "0x83bdf89ce9b2b587785a89603d2d451f05cf719b",
        "from_address_label": null,
        "to_address_entity": null,
        "to_address_entity_logo": null,
        "to_address": "0x83a32a54d31ee4f1f9dffad2a63a6d214e469ec3",
        "to_address_label": null,
        "address": "0xdac17f958d2ee523a2206206994597c13d831ec7",
        "block_hash": "0x7c85bece4fadca37c185da98fc46efc9fdfead14589b3801dbea57322772601b",
        "block_number": "19836736",
        "block_timestamp": "2024-05-10T02:44:11.000Z",
        "transaction_hash": "0xd4ba9d623ecc631360d9e7ed0b2a0c2b1bc56380fe758a0243f377cd3c5804f6",
        "transaction_index": 30,
        "log_index": 91,
        "value": "1901967000000"
      },
      {
        "token_name": "Tether USD",
        "token_symbol": "USDT",
        "token_decimals": "6",
        "from_address_entity": null,
        "from_address_entity_logo": null,
        "from_address": "0x83bdf89ce9b2b587785a89603d2d451f05cf719b",
        "from_address_label": null,
        "to_address_entity": null,
        "to_address_entity_logo": null,
        "to_address": "0x83a32a54d31ee4f1f9dffad2a63a6d214e469ec3",
        "to_address_label": null,
        "address": "0xdac17f958d2ee523a2206206994597c13d831ec7",
        "block_hash": "0xb993dc6955b4ddc316b7a81ce9bbabf5384861a992bc03bcfddf370f9a147997",
        "block_number": "19879628",
        "block_timestamp": "2024-05-16T02:42:23.000Z",
        "transaction_hash": "0x3b491f01db569331737a6c25087c2f11ab0c277f518c8f85059fb1ef4000ea0b",
        "transaction_index": 18,
        "log_index": 42,
        "value": "348518000000"
      },
      {
        "token_name": "Tether USD",
        "token_symbol": "USDT",
        "token_decimals": "6",
        "from_address_entity": null,
        "from_address_entity_logo": null,
        "from_address": "0x83bdf89ce9b2b587785a89603d2d451f05cf719b",
        "from_address_label": null,
        "to_address_entity": null,
        "to_address_entity_logo": null,
        "to_address": "0x83a32a54d31ee4f1f9dffad2a63a6d214e469ec3",
        "to_address_label": null,
        "address": "0xdac17f958d2ee523a2206206994597c13d831ec7",
        "block_hash": "0xcc8aa648ac4a05a5038dd330143468de3cc560e86f5d157730c9c66be6a82677",
        "block_number": "19893927",
        "block_timestamp": "2024-05-18T02:42:23.000Z",
        "transaction_hash": "0x23f1f304b510a8c04dcc9659c4ce965e7648f288c1ab000a96fa95946fc8a87c",
        "transaction_index": 10,
        "log_index": 8,
        "value": "1443489000000"
      }
    ]
  }
}
```

{% endtab %}
{% endtabs %}

### /approve

Sets amount as the allowance of spender over the user’s tokens. Currently available on EVM chains, Solana and Tron

<mark style="color:green;">`POST`</mark> `https://api.expand.network/fungibletoken/approve`

#### Request Body

| Name                                           | Type   | Description                                                    |
| ---------------------------------------------- | ------ | -------------------------------------------------------------- |
| rpc                                            | String | Remote procedural call URL.                                    |
| from<mark style="color:red;">\*</mark>         | String | Address of the sender of the token.                            |
| tokenAddress<mark style="color:red;">\*</mark> | String | Address of token.                                              |
| amount<mark style="color:red;">\*</mark>       | String | Number of tokens.                                              |
| to<mark style="color:red;">\*</mark>           | String | Address to get approval of.                                    |
| gas                                            | String | Maximum gas limit provided by the sender, for the transaction. |
| chainId                                        | String | Refer to the [Chain ID ](/ids/chain-ids)page for details.      |
| chainSymbol                                    | String | Refer to the [Chain ID ](/ids/chain-ids)page for details.      |
| gasPriority                                    | String | low, medium, or high.                                          |

{% tabs %}
{% tab title="Sample Request" %}

```json
{
    "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006", 
    "tokenAddress":"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",  
    "amount": "1000000000000000000000",                  
    "to": "0x828b154032950c8ff7cf8085d841723db2696056", 
    "gas": "100000",
    "chainId": "1"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
        "to": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
        "value": "0",
        "gas": "100000",
        "data": "0x095ea7b3000000000000000000000000828b154032950c8ff7cf8085d841723db269605600000000000000000000000000000000000000000000003635c9adc5dea00000",
        "referenceId": "ab50faa439b64b66beae1a894e1f0a0a"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
**With gasPriority:**

```json
{
    "from": "0xDeBB1a42a27051FD18d6d6C2055A44d330A4D80a", 
    "tokenAddress":"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",  
    "amount": "1000000000000000000000",
    "to": "0x828b154032950c8ff7cf8085d841723db2696056", 
    "gas": "100000",
    "gasPriority":"medium",
    "chainId": "1"
}
```

{% endtab %}

{% tab title="Sample Response" %}
**With gasPriority:**

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0xDeBB1a42a27051FD18d6d6C2055A44d330A4D80a",
        "to": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
        "value": "0",
        "gas": "100000",
        "data": "0x095ea7b3000000000000000000000000828b154032950c8ff7cf8085d841723db269605600000000000000000000000000000000000000000000003635c9adc5dea00000",
        "gasPrice": "4041564215",
        "referenceId": "bdf577b2ea2141ad96822cc9be56563e"
    }
}
```

{% endtab %}
{% endtabs %}

### /transfer

Moves amount tokens from the user’s account to the recipient. Currently available on EVM chains and Solana

<mark style="color:green;">`POST`</mark> `https://api.expand.network/fungibletoken/transfer`

#### Request Body

| Name                                           | Type   | Description                                                    |
| ---------------------------------------------- | ------ | -------------------------------------------------------------- |
| rpc                                            | String | Remote procedural call URL.                                    |
| from<mark style="color:red;">\*</mark>         | String | Address of the sender of the token.                            |
| tokenAddress<mark style="color:red;">\*</mark> | String | Address of token.                                              |
| amount<mark style="color:red;">\*</mark>       | String | Number of tokens.                                              |
| to<mark style="color:red;">\*</mark>           | String | Address of the recipient of the token.                         |
| gas<mark style="color:red;">\*</mark>          | String | Maximum gas limit provided by the sender, for the transaction. |
| chainId                                        | String | Refer to the [Chain ID ](/ids/chain-ids)page for details.      |
| chainSymbol                                    | String | Refer to the [Chain ID ](/ids/chain-ids)page for details.      |
| gasPriority                                    | String | low, medium, or high.                                          |

{% tabs %}
{% tab title="Sample Request" %}

```json
{
    "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
    "tokenAddress": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
    "amount": "1", 
    "to": "0x3E1Ca9fe2FC3021408d0E869BD3AFb167F889F38",
    "gas": "2307200"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
        "to": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
        "value": "0",
        "gas": "2307200",
        "data": "0xa9059cbb0000000000000000000000003e1ca9fe2fc3021408d0e869bd3afb167f889f380000000000000000000000000000000000000000000000000000000000000001",
        "referenceId": "03b43cb740914e9d91e4be1de40d3795"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
**With gasPriority:**

```json
{
    "from": "0xDeBB1a42a27051FD18d6d6C2055A44d330A4D80a",
    "tokenAddress": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
    "amount": "1000000000000", 
    "to": "0x3E1Ca9fe2FC3021408d0E869BD3AFb167F889F38",
    "gas": "2307200",
    "gasPriority":"medium"
}
```

{% endtab %}

{% tab title="Sample Response" %}
**With gasPriority:**

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0xDeBB1a42a27051FD18d6d6C2055A44d330A4D80a",
        "to": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
        "value": "0",
        "gas": "2307200",
        "data": "0xa9059cbb0000000000000000000000003e1ca9fe2fc3021408d0e869bd3afb167f889f38000000000000000000000000000000000000000000000000000000e8d4a51000",
        "gasPrice": "4117306380",
        "referenceId": "666d67bc71184619b73157ad4571817f"
    }
}
```

{% endtab %}
{% endtabs %}

### /transferfrom

Transfers tokens from sender to recipient using the allowance mechanism. Currently available on EVM chains

<mark style="color:green;">`POST`</mark> `https://api.expand.network/fungibletoken/transferfrom`

#### Request Body

| Name                                           | Type   | Description                                                    |
| ---------------------------------------------- | ------ | -------------------------------------------------------------- |
| rpc                                            | String | Remote procedural call URL.                                    |
| from<mark style="color:red;">\*</mark>         | String | Address of the sender of the token.                            |
| tokenAddress<mark style="color:red;">\*</mark> | String | Address of token.                                              |
| amount<mark style="color:red;">\*</mark>       | String | Number of tokens.                                              |
| to<mark style="color:red;">\*</mark>           | String | Address, on whose behalf, tokens are spent.                    |
| gas<mark style="color:red;">\*</mark>          | String | Maximum gas limit provided by the sender, for the transaction. |
| chainId                                        | String | Refer to the [Chain ID ](/ids/chain-ids)page for details.      |
| chainSymbol                                    | String | Refer to the [Chain ID ](/ids/chain-ids)page for details.      |
| reciever<mark style="color:red;">\*</mark>     | String | Receiver of the tokens.                                        |
| gasPriority                                    | String | low, medium, or high.                                          |

{% tabs %}
{% tab title="Sample Request" %}

```json
{
       "from": "0x6Fb447Ae94F5180254D436A693907a1f57696900",
       "tokenAddress": "0x4B9eb6c0b6ea15176BBF62841C6B2A8a398cb656",
       "amount": "10000000000000",
       "reciever":"0x56D2208EfD27Fe9C67e3879DeBCe35833B9D4cC7",
       "to": "0xa67E9B68c41b0f26184D64C26e0b2B81466E5994",
       "gas": "390000"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x6Fb447Ae94F5180254D436A693907a1f57696900",
        "to": "0x4B9eb6c0b6ea15176BBF62841C6B2A8a398cb656",
        "value": "0",
        "gas": "390000",
        "data": "0x23b872dd000000000000000000000000a67e9b68c41b0f26184d64c26e0b2b81466e599400000000000000000000000056d2208efd27fe9c67e3879debce35833b9d4cc7000000000000000000000000000000000000000000000000000009184e72a000",
        "referenceId": "ad4b0020353440d9bebc194695e204e1"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
**With gasPriority:**

```json
{
       "from": "0x6Fb447Ae94F5180254D436A693907a1f57696900",
       "tokenAddress": "0x4B9eb6c0b6ea15176BBF62841C6B2A8a398cb656",
       "amount": "10000000000000",
       "reciever":"0x56D2208EfD27Fe9C67e3879DeBCe35833B9D4cC7",
       "to": "0xa67E9B68c41b0f26184D64C26e0b2B81466E5994",
       "gas": "390000",
       "gasPriority":"medium"
       
}
```

{% endtab %}

{% tab title="Sample Response" %}
**With gasPriority:**

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x6Fb447Ae94F5180254D436A693907a1f57696900",
        "to": "0x4B9eb6c0b6ea15176BBF62841C6B2A8a398cb656",
        "value": "0",
        "gas": "390000",
        "data": "0x23b872dd000000000000000000000000a67e9b68c41b0f26184d64c26e0b2b81466e599400000000000000000000000056d2208efd27fe9c67e3879debce35833b9d4cc7000000000000000000000000000000000000000000000000000009184e72a000",
        "gasPrice": "4119327710",
        "referenceId": "36215433fb864b738d885304f0956858"
    }
}
```

{% endtab %}
{% endtabs %}

### /convertbasetokentowraptoken

Converts base token to wrap token. Currently available on EVM chains.

<mark style="color:green;">`POST`</mark> `https://api.expand.network/fungibletoken/convertbasetokentowraptoken`

#### Request Body

| Name                                           | Type   | Description                                                    |
| ---------------------------------------------- | ------ | -------------------------------------------------------------- |
| rpc                                            | String | Remote procedural call URL.                                    |
| from<mark style="color:red;">\*</mark>         | String | Address of the sender of the token.                            |
| tokenAddress<mark style="color:red;">\*</mark> | String | Address of token.                                              |
| amount<mark style="color:red;">\*</mark>       | String | Number of tokens.                                              |
| gas                                            | String | Maximum gas limit provided by the sender, for the transaction. |
| chainId                                        | String | Refer to the [Chain ID ](/ids/chain-ids)page for details.      |
| chainSymbol                                    | String | Refer to the [Chain ID ](/ids/chain-ids)page for details.      |
| gasPriority                                    | String | low, medium, or high.                                          |

{% tabs %}
{% tab title="Sample Request" %}

```json
{
    "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
    "tokenAddress":"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2", 
    "gas": "2307200",
    "chainId": "1",
    "amount":"10"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
        "to": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
        "value": "0xa",
        "gas": "2307200",
        "data": "0xd0e30db0",
        "referenceId": "2418a38f53a047a6abb50dd26aa34621"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
**With gasPriority:**

```json
{
    "from": "0xDeBB1a42a27051FD18d6d6C2055A44d330A4D80a",
    "tokenAddress":"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2", 
    "gas": "2307200",
    "gasPriority":"medium",
    "chainId": "1",
    "amount":"10"
}
```

{% endtab %}

{% tab title="Sample Response" %}
**With gasPriority:**

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0xDeBB1a42a27051FD18d6d6C2055A44d330A4D80a",
        "to": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
        "value": "0xa",
        "gas": "2307200",
        "data": "0xd0e30db0",
        "gasPrice": "4126473966",
        "referenceId": "4792b75c3a64401596f7366a0ce5b69a"
    }
}
```

{% endtab %}
{% endtabs %}

### /convertwraptokentobasetoken

Converts wrap token to base token. Currently available on EVM chains.

<mark style="color:green;">`POST`</mark> `https://api.expand.network/fungibletoken/convertwraptokentobasetoken`

#### Request Body

| Name                                           | Type   | Description                                                    |
| ---------------------------------------------- | ------ | -------------------------------------------------------------- |
| rpc                                            | String | Remote procedural call URL.                                    |
| from<mark style="color:red;">\*</mark>         | String | Address of the sender of the token.                            |
| tokenAddress<mark style="color:red;">\*</mark> | String | Address of token.                                              |
| amount<mark style="color:red;">\*</mark>       | String | Number of tokens.                                              |
| gas                                            | String | Maximum gas limit provided by the sender, for the transaction. |
| chainId                                        | String | Refer to the [Chain ID ](/ids/chain-ids)page for details.      |
| chainSymbol                                    | String | Refer to the [Chain ID ](/ids/chain-ids)page for details.      |
| gasPriority                                    | String | low, medium, or high.                                          |

{% tabs %}
{% tab title="Sample Request" %}

```json
{
    "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
    "tokenAddress":"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
    "amount": "5", 
    "gas": "2307200",
    "chainId": "1"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
        "to": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
        "value": "0",
        "gas": "2307200",
        "data": "0x2e1a7d4d0000000000000000000000000000000000000000000000000000000000000005",
        "referenceId": "e911c9db36b54dfe889f10875af33fd4"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
**With gasPriority(medium):**

```json
{
    "from": "0xE4c0ddb2695415466be83f2A99b44b043CB55590",
    "tokenAddress":"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
    "amount": "100000000000",
    "gas": "2307200",
    "gasPriority":"medium",
    "chainId": "1"
}
```

{% endtab %}

{% tab title="Sample Response" %}
**With gasPriority:**

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0xE4c0ddb2695415466be83f2A99b44b043CB55590",
        "to": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
        "value": "0",
        "gas": "2307200",
        "data": "0x2e1a7d4d000000000000000000000000000000000000000000000000000000174876e800",
        "gasPrice": "4075756054",
        "referenceId": "396438be736f4b13834f3fc095919e70"
    }
}
```

{% endtab %}
{% endtabs %}


# WETH

### /getbalance

Get the balance or number of WETH in the requested public address. Currently available on Ethereum, Binance Smart Chain, Avalanche, Polygon, Cronos, Arbitrum, Fantom, Optimism, Base, and zkSync.

<mark style="color:blue;">`GET`</mark> `https://api.expand.network/weth/getbalance`

#### Query Parameters

| Name                                      | Type   | Description                                               |
| ----------------------------------------- | ------ | --------------------------------------------------------- |
| rpc                                       | String | Remote procedural call URL                                |
| chainId                                   | String | Refer to the [Chain ID ](/ids/chain-ids)page for details. |
| chainSymbol                               | String | Refer to the [Chain ID ](/ids/chain-ids)page for details. |
| address<mark style="color:red;">\*</mark> | String | The public address to get the balance of.                 |

{% tabs %}
{% tab title="Sample Request" %}

```url
https://api.expand.network/weth/getbalance/?address=0x6Fb447Ae94F5180254D436A693907a1f57696900
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "balance": "25690185796757697"
    }
}
```

{% endtab %}
{% endtabs %}

### /historical/logs

Retrieves all the logs for WETH events specified in query in the given block range.

<mark style="color:blue;">`GET`</mark> `https://api.expand.network/weth/historical/logs`

#### Query Parameters

| Name                                   | Type   | Description                                                           |
| -------------------------------------- | ------ | --------------------------------------------------------------------- |
| chainId                                | String | Refer to the [Chain ID](/ids/chain-ids) page for details.             |
| chainSymbol                            | String | Refer to the [Chain ID](/ids/chain-ids) page for details.             |
| startBlock                             | String | <p>Starting block of the range.</p><p>by default latestBlock -100</p> |
| endBlock                               | String | <p>Last block of the range.</p><p>by default its latestBlock</p>      |
| type<mark style="color:red;">\*</mark> | String | Deposit/Withdrawal                                                    |

{% tabs %}
{% tab title="Sample Request" %}

```url
https://api.expand.network/weth/historical/logs?type=Deposit
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "logs": [
            {
                "address": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
                "topics": [
                    "0xe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c",
                    "0x0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d"
                ],
                "params": {
                    "dst": "0x7a250d5630b4cf539739df2c5dacb4c659f2488d",
                    "wad": "100000000000000000"
                },
                "data": "0x000000000000000000000000000000000000000000000000016345785d8a0000",
                "blockNumber": "17320569",
                "blockHash": "0xcbc13d3439e115dcb6203a45d82da137b7f546286224f29248192a7e428e29d6",
                "timeStamp": "1684828271",
                "gasPrice": "101893509354",
                "gasUsed": "142805",
                "logIndex": "0",
                "transactionHash": "0xa36d80f70960af4a7f67145670e589795edd3fda2c3334eb7c6fce962f06d99e",
                "transactionIndex": "4"
            }
        ]
    }
}
```

{% endtab %}
{% endtabs %}


# Lending Protocols

Provides connectivity across the various **Lend and Borrow protocols** available on the EVM and Non-EVM chains.&#x20;

Following are the common functions implemented for all the Lend and Borrow protocols:-&#x20;

<table><thead><tr><th width="150">Name</th><th width="150">Type</th><th>Description</th></tr></thead><tbody><tr><td>getpool</td><td>Read</td><td>Get the lend and borrow APY for the given pool from the given protocol.</td></tr><tr><td>getpools</td><td>Read</td><td>Get the list of supply and borrow APYs of the mentioned assets.</td></tr><tr><td>getuseraccountdata</td><td>Read</td><td>Get the repay, borrow, withdraw amount and health factor details for the given user.</td></tr><tr><td>getuserpositions</td><td>Read</td><td>Retrieves the lending and borrowing positions of a user, including details such as token balances and collateral usage status.</td></tr><tr><td>entermarketstatus</td><td>Read</td><td>Check whether the user is approved before deposting.</td></tr><tr><td>getassetinfo</td><td>Read</td><td>Get the details of a specified asset like liquidation and borrow collateral factor, index and the price feed address. Available for Compound V3.</td></tr><tr><td>getclaimedrewards</td><td>Read</td><td>Get the rewards claimed by the specified account on the protocol. Available for Compound V3.</td></tr><tr><td>getmaxamounts</td><td>Read</td><td>Get the max withdrawable amount and the max borrowable amount of the base token for a given asset in the protocol for the specified account. Available for Compound V3.</td></tr><tr><td>getgovernordata</td><td>Read</td><td>Get the protocol and governor-related data for a market. Available for Compound V3.</td></tr><tr><td>allow</td><td>Write</td><td>Trigger a transaction on Compound V3 to allow or disallow the specified address to withdraw or transfer on behalf of the sender’s address.</td></tr><tr><td>claimrewards</td><td>Write</td><td>Trigger a transaction on Compound V3 to allow an account to claim rewards from the protocol.</td></tr><tr><td>deposit</td><td>Write</td><td>Trigger the deposit transaction from the given protocol.</td></tr><tr><td>transfer</td><td>Write</td><td>Trigger a transaction on Compound V3 to transfer an asset within the protocol to another account.</td></tr><tr><td>bundleactions</td><td>Write</td><td>Trigger a transaction on Compound V3 to pass an array of action codes and data <em>w.r.t</em> the action codes that are executed, one by one, in a single transaction.</td></tr><tr><td>borrow</td><td>Write</td><td>Trigger the borrow transaction from the given protocol. <br>Borrows the base token from specified market in case of Compound V3.</td></tr><tr><td>repay</td><td>Write</td><td>Trigger the repay transaction from the given protocol.</td></tr><tr><td>withdraw</td><td>Write</td><td>Trigger the withdrawal transaction from the given protocol.</td></tr><tr><td>migrate</td><td>Write</td><td>Trigger the migrate transaction for Aave v3.</td></tr><tr><td>setuseremode</td><td>Write</td><td>Trigger the E-Mode options for the user, on Aave v3.</td></tr><tr><td>exitisolationmode</td><td>Write</td><td>Trigger the exit of isolation mode options for the user, on Aave v3.</td></tr><tr><td>entermarket</td><td>Write</td><td>Trigger the approve transaction as Compound needs the user to approve before they can start deposit.</td></tr><tr><td>exitmarket</td><td>Write</td><td>Trigger the exit market transaction for Compound.</td></tr></tbody></table>

{% hint style="info" %}
Every protocol requires a different set of parameters to perform the common operations. Please refer to the sub-sections for details.&#x20;
{% endhint %}

Following is a sequence diagram for deposit() process in Compound:-

<figure><img src="/files/bWfMadJ6bNQ5hTOx6jOl" alt=""><figcaption><p>Sequence Diagram for deposit</p></figcaption></figure>

Following is a sequence diagram for deposit() process in Aave:-

<figure><img src="/files/tU7IUz3iqCh0Yw2bIoJL" alt=""><figcaption><p>Sequence Diagram for deposit</p></figcaption></figure>

Following is a sequence diagram for borrow() process:-

<figure><img src="/files/c262d6w72EjrvTyvrxrh" alt=""><figcaption><p>Sequence Diagram for borrow</p></figcaption></figure>

Following is a sequence diagram for repay() process:-

<figure><img src="/files/kB9PE0TBpQWIprUqk87Y" alt=""><figcaption><p>Sequence Diagram for repay</p></figcaption></figure>

Following is a sequence diagram for withdraw() process:-

<figure><img src="/files/LMMmZJvJDgFTNiECWYFT" alt=""><figcaption><p>Sequence Diagram for withdraw</p></figcaption></figure>


# Aave V2

### Supported Chains

Available on **Ethereum , Avalanche and Polygon.**

### Available Endpoints:

*Click on the endpoint to jump to the section with full details*

* [**/**](#getprice)[<mark style="color:blue;">**getpool**</mark><mark style="color:blue;">`GET`</mark>](#getpool) - Get the lend and borrow APY for the given pool from AAVE protocol.
* [<mark style="color:blue;">**/**</mark>](#getuserliquidity)[<mark style="color:blue;">**getpools**</mark>](#getpools) <mark style="color:blue;">`GET`</mark> - Get the list of supply and borrow APYs of the mentioned assets.&#x20;
* <mark style="color:blue;">**/**</mark>[<mark style="color:blue;">**getuseraccountdata**</mark>](#getuseraccountdata) <mark style="color:blue;">`GET`</mark> - Get the repay, borrow, withdraw amount and health factor details for the given user.
* [<mark style="color:blue;">**/getuserpositions**</mark>](#getuserpositions) <mark style="color:blue;">`GET`</mark> - Retrieves the lending and borrowing positions of a user, including details such as token balances and collateral usage status.
* [<mark style="color:blue;">**/borrow**</mark>](#borrow) <mark style="color:green;">`POST`</mark> - Trigger the borrow transaction from the given protocol.
* [**/**<mark style="color:blue;">**d**</mark>](#addliquidity)[<mark style="color:blue;">**eposit**</mark>](#deposit) <mark style="color:green;">`POST`</mark> - Trigger the deposit transaction from the given protocol.
* [<mark style="color:blue;">**/r**</mark>](#removeliquidity)[<mark style="color:blue;">**epay**</mark>](#repay)<mark style="color:green;">`POST`</mark> - Trigger the repay transaction from the given protocol.
* [<mark style="color:blue;">**/**</mark>](#removeliquidity)[<mark style="color:blue;">**withdraw**</mark>](#withdraw)<mark style="color:green;">`POST`</mark> - Trigger the withdraw transaction from the given protocol.

### Lending Protocol IDs

Many endpoints have a parameter where you can provide a lendborrow ID.&#x20;

Below is a list of lendborrow IDs related to Aave V2. Please see the [lendborrowID](/ids/lending-protocol-ids) for a complete Lending Protocol ID list and more information.

| Lending Protocol Name | Chain     | Lending Protocol ID |
| --------------------- | --------- | ------------------- |
| Aave V2               | Ethereum  | 1000                |
| Aave V2               | Avalanche | 1003                |
| Aave V2               | Polygon   | 1005                |

## Endpoint Details

### /getpool

#### Get the lend and borrow APY for the given pool from AAVE protocol.

<mark style="color:blue;">`GET`</mark> `https://api.expand.network/lendborrow/getpool`

#### Query Parameters

| Name                                    | Type   | Description                                                                |
| --------------------------------------- | ------ | -------------------------------------------------------------------------- |
| rpc                                     | String | Remote procedural call URL.                                                |
| lendborrowId                            | String | Refer to the [Lend and Borrow ID](#lending-protocol-ids) page for details. |
| asset<mark style="color:red;">\*</mark> | String | Token address to get the details of.                                       |

{% tabs %}
{% tab title="Sample Request" %}

```url
https://api.expand.network/lendborrow/getpool?lendborrowId=1000&asset=0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "tokenAddress": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
        "poolAddress": "0x7d2768dE32b0b80b7a3454c06BdAc94A69DDc7A9",
        "variableBorrowRate": "2.46",
        "stableBorrowRate": "4.54",
        "variableSupplyRate": "0",
        "stableSupplyRate": "0.38",
        "ltv": "82.5",
        "availableLiquidity": "113254567932739787526717",
        "reserveSize": "163635814986025319212051"
    }
}
```

{% endtab %}
{% endtabs %}

[back to top](#endpoints-available)

### /getpools

#### Get the list of supplies and borrow APYs from the AAVE V2 protocol.

<mark style="color:blue;">`GET`</mark> `https://api.expand.network/lendborrow/getpools`

#### Query Parameters

| Name         | Type   | Description                                                                                      |
| ------------ | ------ | ------------------------------------------------------------------------------------------------ |
| lendborrowId | String | Refer to the [lend borrow Id](/ids/lending-protocol-ids) page for details.                       |
| assets       | String | <p>Comma-separated token address.<br>If not provided, it will fetch all the supported assets</p> |
| address      | String | User wallet address                                                                              |

{% tabs %}
{% tab title="Sample Request" %}

```
https://api.expand.network/lendborrow/getpools?lendborrowId=1000
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "LUSD": {
            "tokenAddress": "0x5f98805a4e8be255a32880fdec7f6728c6568ba0",
            "poolAddress": "0x7d2768dE32b0b80b7a3454c06BdAc94A69DDc7A9",
            "variableBorrowRate": "32.12",
            "stableBorrowRate": "17.29",
            "variableSupplyRate": "0",
            "stableSupplyRate": "0.00",
            "ltv": "0",
            "availableLiquidity": "77006726623077655725248",
            "reserveSize": "103632381824927576871858",
            "tokenSymbol": "LUSD"
        },
        "MKR": {
            "tokenAddress": "0x9f8f72aa9304c8b593d555f12ef6589cc3a579a2",
            "poolAddress": "0x7d2768dE32b0b80b7a3454c06BdAc94A69DDc7A9",
            "variableBorrowRate": "20.00",
            "stableBorrowRate": "3.02",
            "variableSupplyRate": "0",
            "stableSupplyRate": "0.00",
            "ltv": "0",
            "availableLiquidity": "1278729306125753953202",
            "reserveSize": "1279822124508185051839",
            "tokenSymbol": "MKR"
        },
        "GUSD": {
            "tokenAddress": "0x056fd409e1d7a124bd7017459dfea2f387b6d5cd",
            "poolAddress": "0x7d2768dE32b0b80b7a3454c06BdAc94A69DDc7A9",
            "variableBorrowRate": "83.39",
            "stableBorrowRate": "40.69",
            "variableSupplyRate": "0",
            "stableSupplyRate": "0.00",
            "ltv": "0",
            "availableLiquidity": "32623758",
            "reserveSize": "61125095",
            "tokenSymbol": "GUSD"
        },
        "LINK": {
            "tokenAddress": "0x514910771af9ca656af840dff83e8264ecf986ca",
            "poolAddress": "0x7d2768dE32b0b80b7a3454c06BdAc94A69DDc7A9",
            "variableBorrowRate": "0.68",
            "stableBorrowRate": "3.97",
            "variableSupplyRate": "0",
            "stableSupplyRate": "0.00",
            "ltv": "0",
            "availableLiquidity": "1193700896741468562426997",
            "reserveSize": "1248472656103005124023274",
            "tokenSymbol": "LINK"
        },
        "FRAX": {
            "tokenAddress": "0x853d955acef822db058eb8505911ed77f175b99e",
            "poolAddress": "0x7d2768dE32b0b80b7a3454c06BdAc94A69DDc7A9",
            "variableBorrowRate": "12.61",
            "stableBorrowRate": "0.00",
            "variableSupplyRate": "0",
            "stableSupplyRate": "0.00",
            "ltv": "0",
            "availableLiquidity": "511987804049522861930697",
            "reserveSize": "587777132902145320152786",
            "tokenSymbol": "FRAX"
        },
        "1INCH": {
            "tokenAddress": "0x111111111117dc0aa78b770fa6a738034120c302",
            "poolAddress": "0x7d2768dE32b0b80b7a3454c06BdAc94A69DDc7A9",
            "variableBorrowRate": "20.00",
            "stableBorrowRate": "0.00",
            "variableSupplyRate": "0",
            "stableSupplyRate": "0.00",
            "ltv": "0",
            "availableLiquidity": "55357019076770918062629",
            "reserveSize": "56496898095330410902989",
            "tokenSymbol": "1INCH"
        },
        "BUSD": {
            "tokenAddress": "0x4fabb145d64652a948d72533023f6e7a623c7c53",
            "poolAddress": "0x7d2768dE32b0b80b7a3454c06BdAc94A69DDc7A9",
            "variableBorrowRate": "10.00",
            "stableBorrowRate": "150.02",
            "variableSupplyRate": "0",
            "stableSupplyRate": "0.00",
            "ltv": "0",
            "availableLiquidity": "575265740349124045010809",
            "reserveSize": "792752563426923457825588",
            "tokenSymbol": "BUSD"
        },
        "DAI": {
            "tokenAddress": "0x6b175474e89094c44da98b954eedeac495271d0f",
            "poolAddress": "0x7d2768dE32b0b80b7a3454c06BdAc94A69DDc7A9",
            "variableBorrowRate": "41.30",
            "stableBorrowRate": "47.80",
            "variableSupplyRate": "0",
            "stableSupplyRate": "5.55",
            "ltv": "63",
            "availableLiquidity": "3045235489027835392126555",
            "reserveSize": "29144822136454532498888813",
            "tokenSymbol": "DAI"
        },
        "USDT": {
            "tokenAddress": "0xdac17f958d2ee523a2206206994597c13d831ec7",
            "poolAddress": "0x7d2768dE32b0b80b7a3454c06BdAc94A69DDc7A9",
            "variableBorrowRate": "71.41",
            "stableBorrowRate": "77.91",
            "variableSupplyRate": "0",
            "stableSupplyRate": "9.98",
            "ltv": "0",
            "availableLiquidity": "5814305491313",
            "reserveSize": "85276118847760",
            "tokenSymbol": "USDT"
        },
        "SNX": {
            "tokenAddress": "0xc011a73ee8576fb46f5e1c5751ca3b9fe0af2a6f",
            "poolAddress": "0x7d2768dE32b0b80b7a3454c06BdAc94A69DDc7A9",
            "variableBorrowRate": "20.00",
            "stableBorrowRate": "0.00",
            "variableSupplyRate": "0",
            "stableSupplyRate": "0.00",
            "ltv": "0",
            "availableLiquidity": "401177398555774938702130",
            "reserveSize": "402156407105711365442784",
            "tokenSymbol": "SNX"
        },
        "TUSD": {
            "tokenAddress": "0x0000000000085d4780b73119b644ae5ecd22b376",
            "poolAddress": "0x7d2768dE32b0b80b7a3454c06BdAc94A69DDc7A9",
            "variableBorrowRate": "10.00",
            "stableBorrowRate": "159.69",
            "variableSupplyRate": "0",
            "stableSupplyRate": "0.00",
            "ltv": "0",
            "availableLiquidity": "366460360656447246350806",
            "reserveSize": "504142753697157517092861",
            "tokenSymbol": "TUSD"
        },
        "stETH": {
            "tokenAddress": "0xae7ab96520de3a18e5e111b5eaab095312d7fe84",
            "poolAddress": "0x7d2768dE32b0b80b7a3454c06BdAc94A69DDc7A9",
            "variableBorrowRate": "0.00",
            "stableBorrowRate": "0.00",
            "variableSupplyRate": "0",
            "stableSupplyRate": "0.00",
            "ltv": "72",
            "availableLiquidity": "53089770724921131090223",
            "reserveSize": "53089770724921131090223",
            "tokenSymbol": "stETH"
        },
        "AAVE": {
            "tokenAddress": "0x7fc66500c84a76ad7e9c93437bfc5ac33e2ddae9",
            "poolAddress": "0x7d2768dE32b0b80b7a3454c06BdAc94A69DDc7A9",
            "variableBorrowRate": "0.00",
            "stableBorrowRate": "0.00",
            "variableSupplyRate": "0",
            "stableSupplyRate": "0.00",
            "ltv": "66",
            "availableLiquidity": "36950678362513807739186",
            "reserveSize": "36950678362513807739186",
            "tokenSymbol": "AAVE"
        },
        "DPI": {
            "tokenAddress": "0x1494ca1f11d487c2bbe4543e90080aeba4ba3c2b",
            "poolAddress": "0x7d2768dE32b0b80b7a3454c06BdAc94A69DDc7A9",
            "variableBorrowRate": "37.73",
            "stableBorrowRate": "0.00",
            "variableSupplyRate": "0",
            "stableSupplyRate": "0.00",
            "ltv": "0",
            "availableLiquidity": "381243732115848862926",
            "reserveSize": "811684752053466357550",
            "tokenSymbol": "DPI"
        },
        "ENS": {
            "tokenAddress": "0xc18360217d8f7ab5e7c516566761ea12ce7f9d72",
            "poolAddress": "0x7d2768dE32b0b80b7a3454c06BdAc94A69DDc7A9",
            "variableBorrowRate": "20.00",
            "stableBorrowRate": "0.00",
            "variableSupplyRate": "0",
            "stableSupplyRate": "0.00",
            "ltv": "0",
            "availableLiquidity": "9430517331780300697697",
            "reserveSize": "9449742786126396612494",
            "tokenSymbol": "ENS"
        },
        "USDP": {
            "tokenAddress": "0x8e870d67f660d95d5be530380d0ec0bd388289e1",
            "poolAddress": "0x7d2768dE32b0b80b7a3454c06BdAc94A69DDc7A9",
            "variableBorrowRate": "134.72",
            "stableBorrowRate": "0.00",
            "variableSupplyRate": "0",
            "stableSupplyRate": "0.01",
            "ltv": "0",
            "availableLiquidity": "56679821554076798473774",
            "reserveSize": "170862462194523456791818",
            "tokenSymbol": "USDP"
        },
        "WBTC": {
            "tokenAddress": "0x2260fac5e5542a773aa44fbcfedf7c193bc2c599",
            "poolAddress": "0x7d2768dE32b0b80b7a3454c06BdAc94A69DDc7A9",
            "variableBorrowRate": "0.26",
            "stableBorrowRate": "3.65",
            "variableSupplyRate": "0",
            "stableSupplyRate": "0.00",
            "ltv": "72",
            "availableLiquidity": "408059770286",
            "reserveSize": "425924045364",
            "tokenSymbol": "WBTC"
        },
        "UNI": {
            "tokenAddress": "0x1f9840a85d5af5bf1d1762f925bdaddc4201f984",
            "poolAddress": "0x7d2768dE32b0b80b7a3454c06BdAc94A69DDc7A9",
            "variableBorrowRate": "20.00",
            "stableBorrowRate": "0.99",
            "variableSupplyRate": "0",
            "stableSupplyRate": "0.00",
            "ltv": "0",
            "availableLiquidity": "75770894175151538323669",
            "reserveSize": "78703335365737857005517",
            "tokenSymbol": "UNI"
        },
        "USDC": {
            "tokenAddress": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
            "poolAddress": "0x7d2768dE32b0b80b7a3454c06BdAc94A69DDc7A9",
            "variableBorrowRate": "32.08",
            "stableBorrowRate": "37.58",
            "variableSupplyRate": "0",
            "stableSupplyRate": "4.54",
            "ltv": "75",
            "availableLiquidity": "4891442618167",
            "reserveSize": "87825965324087",
            "tokenSymbol": "USDC"
        },
        "sUSD": {
            "tokenAddress": "0x57ab1ec28d129707052df4df418d58a2d46d5f51",
            "poolAddress": "0x7d2768dE32b0b80b7a3454c06BdAc94A69DDc7A9",
            "variableBorrowRate": "71.29",
            "stableBorrowRate": "0.00",
            "variableSupplyRate": "0",
            "stableSupplyRate": "0.00",
            "ltv": "0",
            "availableLiquidity": "207116631044337396149030",
            "reserveSize": "354289141610132196147068",
            "tokenSymbol": "sUSD"
        },
        "CRV": {
            "tokenAddress": "0xd533a949740bb3306d119cc777fa900ba034cd52",
            "poolAddress": "0x7d2768dE32b0b80b7a3454c06BdAc94A69DDc7A9",
            "variableBorrowRate": "20.00",
            "stableBorrowRate": "3.12",
            "variableSupplyRate": "0",
            "stableSupplyRate": "0.00",
            "ltv": "0",
            "availableLiquidity": "2516817169977279859419238",
            "reserveSize": "2524844760028715574320036",
            "tokenSymbol": "CRV"
        },
        "WETH": {
            "tokenAddress": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
            "poolAddress": "0x7d2768dE32b0b80b7a3454c06BdAc94A69DDc7A9",
            "variableBorrowRate": "1.91",
            "stableBorrowRate": "3.95",
            "variableSupplyRate": "0",
            "stableSupplyRate": "0.05",
            "ltv": "82.5",
            "availableLiquidity": "64464470844963744307589",
            "reserveSize": "79678322543407769925227",
            "tokenSymbol": "WETH"
        }
    }
}
```

{% endtab %}
{% endtabs %}

[back to top](#endpoints-available)

### /getuseraccountdata

#### Get the repay, borrow, withdraw amount and health factor details for the given user.

<mark style="color:blue;">`GET`</mark> `https://api.expand.network/lendborrow/getuseraccountdata`

#### Query Parameters

| Name                                               | Type   | Description                                                                          |
| -------------------------------------------------- | ------ | ------------------------------------------------------------------------------------ |
| rpc                                                | String | Remote procedural call URL.                                                          |
| lendborrowId                                       | String | Refer to the [lend borrow Id](broken://pages/XoZTiUkj66UXxqYVd64n) page for details. |
| asset<mark style="color:red;">\*</mark>            | String | Token address.                                                                       |
| address<mark style="color:red;">\*</mark>          | String | Public address of sender.                                                            |
| interestRateMode<mark style="color:red;">\*</mark> | String | Interest mode as per Aave. Is set '1' as default.                                    |

{% tabs %}
{% tab title="Sample Request" %}

```url
https://api.expand.network/lendborrow/getuseraccountdata?address=0x6Fb447Ae94F5180254D436A693907a1f57696900&asset=0x514910771af9ca656af840dff83e8264ecf986ca&lendborrowId=1000&interestRateMode=1
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "tokenAddress": "0x514910771af9ca656af840dff83e8264ecf986ca",
        "repayAmount": "0",
        "borrowAmount": "473877059646280",
        "borrowErrorMessage": "The Stable Rate is not enabled for this currency",
        "withdrawAmount": "0",
        "healthFactor": "1086711741859975271"
    }
}
```

{% endtab %}
{% endtabs %}

[back to top](#endpoints-available)

### /getuserpositions

#### Retrieves the lending and borrowing positions of a user, including details such as token balances and collateral usage status.

<mark style="color:blue;">`GET`</mark> `https://api.expand.network/lendborrow/getuserpositions`

#### Query Parameters

| Name                                      | Type   | Description                                                                                                                    |
| ----------------------------------------- | ------ | ------------------------------------------------------------------------------------------------------------------------------ |
| rpc                                       | String | Remote procedural call URL.                                                                                                    |
| address<mark style="color:red;">\*</mark> | String | Public address of sender.                                                                                                      |
| lendborrowId                              | String | Refer to the [lend borrow Id](broken://pages/XoZTiUkj66UXxqYVd64n) page for details.                                           |
| assets                                    | String | Comma-separated list of token addresses to filter specific assets. If omitted, data for all supported assets will be returned. |

{% tabs %}
{% tab title="Sample Request" %}

```url
https://api.expand.network/lendborrow/getuserpositions?address=0x6Fb447Ae94F5180254D436A693907a1f57696900&lendborrowId=1000
```

{% endtab %}

{% tab title="Sample Response " %}

```json
{
    "status": 200,
    "msg": "success",
    "data": [
        {
            "aToken": "0x3Ed3B47Dd13EC9a98b44e6204A523E766B225811",
            "underlyingAsset": "0xdAC17F958D2ee523a2206206994597C13D831ec7",
            "usageAsCollateralEnabledOnUser": false,
            "scaledVariableDebt": "4326910",
            "currentDebt": "7214119",
            "interestAPRPercentage": "5.15",
            "accruedInterest": "2887209",
            "prices": {
                "usd": [
                    {
                        "0xdac17f958d2ee523a2206206994597c13d831ec7": "0.9997896672336982"
                    }
                ]
            }
        },
        {
            "aToken": "0x030bA81f1c18d280636F32af80b9AAd02Cf0854e",
            "underlyingAsset": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
            "usageAsCollateralEnabledOnUser": true,
            "scaledATokenBalance": "3131488563803911",
            "currentBalance": "3253286676056609",
            "rewardsAPYPercentage": "0.05",
            "accruedRewards": "121798112252698",
            "prices": {
                "usd": [
                    {
                        "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2": "4290.504286934678"
                    }
                ]
            }
        },
        {
            "aToken": "0x028171bCA77440897B824Ca71D1c56caC55b68A3",
            "underlyingAsset": "0x6B175474E89094C44Da98b954EedeAC495271d0F",
            "usageAsCollateralEnabledOnUser": true,
            "scaledATokenBalance": "6489053723655984138",
            "currentBalance": "7700568680878044808",
            "rewardsAPYPercentage": "0.96",
            "accruedRewards": "1211514957222060670",
            "prices": {
                "usd": [
                    {
                        "0x6b175474e89094c44da98b954eedeac495271d0f": "0.9998016230315524"
                    }
                ]
            }
        }
    ]
}
```

{% endtab %}
{% endtabs %}

[back to top](#endpoints-available)

### /borrow

#### Trigger the borrow transaction from the given protocol.

<mark style="color:green;">`POST`</mark> `https://api.expand.network/lendborrow/borrow`

#### Request Body

| Name                                               | Type   | Description                                                                              |
| -------------------------------------------------- | ------ | ---------------------------------------------------------------------------------------- |
| lendborrowId                                       | String | Refer to the [Lend and Borrow ID](broken://pages/XoZTiUkj66UXxqYVd64n) page for details. |
| asset<mark style="color:red;">\*</mark>            | String | Token address to borrow.                                                                 |
| amount<mark style="color:red;">\*</mark>           | String | Number of tokens to be borrowed.                                                         |
| interestRateMode<mark style="color:red;">\*</mark> | String | Interest mode as per Aave. 0 for static and 1 for variable.                              |
| onBehalfOf<mark style="color:red;">\*</mark>       | String | Required in case borrow need to be done on behalf of other public address.               |
| from<mark style="color:red;">\*</mark>             | String | Sender public address.                                                                   |
| gas                                                | String | Maximum gas to be approved for transaction.                                              |
| rpc                                                | String | Remote procedural call URL.                                                              |
| gasPriority                                        | String | low, medium, or high.                                                                    |

{% tabs %}
{% tab title="Sample Request" %}

```json
{
    "lendborrowId": "1000",
    "asset": "0xC011a73ee8576Fb46F5E1c5751cA3B9Fe0af2a6F",
    "amount": "100",
    "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
    "onBehalfOf": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
    "interestRateMode": "2",
    "gas": "408298"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
        "to": "0x7d2768dE32b0b80b7a3454c06BdAc94A69DDc7A9",
        "value": "0",
        "gas": "408298",
        "data": "0xa415bcad000000000000000000000000c011a73ee8576fb46f5e1c5751ca3b9fe0af2a6f00000000000000000000000000000000000000000000000000000000000000640000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000063056e00436da25bcf48a40dfbbdcc7089351006",
        "referenceId": "73d8435c30b6432aa661e8c90215e863"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
**With gasPriority(medium):**

```json
{
    "lendborrowId": "1000",
    "asset": "0xC011a73ee8576Fb46F5E1c5751cA3B9Fe0af2a6F",
    "amount": "100",
    "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
    "onBehalfOf": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
    "interestRateMode": "2",
    "gas": "408298",
    "gasPriority": "medium"
}
```

{% endtab %}

{% tab title="Sample Response" %}
**With gasPriority:**

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
        "to": "0x7d2768dE32b0b80b7a3454c06BdAc94A69DDc7A9",
        "value": "0",
        "gas": "408298",
        "data": "0xa415bcad000000000000000000000000c011a73ee8576fb46f5e1c5751ca3b9fe0af2a6f00000000000000000000000000000000000000000000000000000000000000640000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000063056e00436da25bcf48a40dfbbdcc7089351006",
        "gasPrice": "4115928188",
        "referenceId": "a9c5748d49b44d0581111f7ea11c8a61"
    }
}
```

{% endtab %}
{% endtabs %}

[back to top](#endpoints-available)

### /deposit

#### Trigger the deposit transaction from the given protocol.

<mark style="color:green;">`POST`</mark> `https://api.expand.network/lendborrow/deposit`

#### Request Body

| Name                                         | Type   | Description                                                                              |
| -------------------------------------------- | ------ | ---------------------------------------------------------------------------------------- |
| lendborrowId                                 | String | Refer to the [Lend and Borrow ID](broken://pages/XoZTiUkj66UXxqYVd64n) page for details. |
| asset<mark style="color:red;">\*</mark>      | String | Token address to deposit.                                                                |
| amount<mark style="color:red;">\*</mark>     | String | Number of tokens to deposit.                                                             |
| onBehalfOf<mark style="color:red;">\*</mark> | String | Required in case deposit need to be done on behalf of other public address.              |
| from<mark style="color:red;">\*</mark>       | String | Sender public address.                                                                   |
| gas                                          | String | Maximum gas to be approved for the transaction.                                          |
| rpc                                          | String | Remote procedural call URL.                                                              |
| involveBaseToken                             | String | <p>0 for any ERC-20 token,<br>1 for ETH.</p>                                             |
| gasPriority                                  | String | low, medium, or high.                                                                    |

{% tabs %}
{% tab title="Sample Request" %}

```json
{
    "lendborrowId": "1000",
    "asset": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
    "amount": "10000000000000000",
    "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
    "onBehalfOf": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
    "gas": "408298"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
        "to": "0x7d2768dE32b0b80b7a3454c06BdAc94A69DDc7A9",
        "value": "0",
        "gas": "408298",
        "data": "0xe8eda9df000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2000000000000000000000000000000000000000000000000002386f26fc1000000000000000000000000000063056e00436da25bcf48a40dfbbdcc70893510060000000000000000000000000000000000000000000000000000000000000000",
        "referenceId": "e7354f7c396f451f98359be5db31bd4a"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
**With gasPriority (low):**

```json
{
    "lendborrowId": "1000",
    "asset": "0x6B175474E89094C44Da98b954EedeAC495271d0F",
    "amount": "10000000000000",
    "from": "0x356db816602c85e2075774bb77d13995c8bab023",
    "onBehalfOf": "0x356db816602c85e2075774bb77d13995c8bab023",
    "gas": "520000",
    "gasPriority": "low"
}
```

{% endtab %}

{% tab title="Sample Response" %}
**With gasPriority:**

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x356db816602c85e2075774bb77d13995c8bab023",
        "to": "0x7d2768dE32b0b80b7a3454c06BdAc94A69DDc7A9",
        "value": "0",
        "gas": "520000",
        "data": "0xe8eda9df0000000000000000000000006b175474e89094c44da98b954eedeac495271d0f000000000000000000000000000000000000000000000000000009184e72a000000000000000000000000000356db816602c85e2075774bb77d13995c8bab0230000000000000000000000000000000000000000000000000000000000000000",
        "gasPrice": "3459319856",
        "referenceId": "240aa659656d499699de5fa6ff05fefa"
    }
}
```

{% endtab %}
{% endtabs %}

[back to top](#endpoints-available)

### /repay

#### Trigger the repay transaction from the given protocol.

<mark style="color:green;">`POST`</mark> `https://api.expand.network/lendborrow/repay`

#### Request Body

| Name                                               | Type   | Description                                                                              |
| -------------------------------------------------- | ------ | ---------------------------------------------------------------------------------------- |
| lendborrowId                                       | String | Refer to the [Lend and Borrow ID](broken://pages/XoZTiUkj66UXxqYVd64n) page for details. |
| asset<mark style="color:red;">\*</mark>            | String | Token address to repay.                                                                  |
| interestRateMode<mark style="color:red;">\*</mark> | String | Interest mode as per Aave. 0 for static and 1 for variable.                              |
| onBehalfOf<mark style="color:red;">\*</mark>       | String | Required in case repay need to be done on behalf of other public address.                |
| from<mark style="color:red;">\*</mark>             | String | Sender public address.                                                                   |
| gas                                                | String | Maximum gas to be approved for the transaction.                                          |
| amount<mark style="color:red;">\*</mark>           | String | Number of tokens to repay.                                                               |
| rpc                                                | String | Remote procedural call URL.                                                              |
| gasPriority                                        | String | low, medium, or high.                                                                    |

{% tabs %}
{% tab title="Sample Request" %}

```json
{
    "lendborrowId": "1000",
    "asset": "0xdAC17F958D2ee523a2206206994597C13D831ec7",
    "amount": "100000",
    "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
    "onBehalfOf": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
    "interestRateMode": "2",
    "gas": "408298"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
        "to": "0x7d2768dE32b0b80b7a3454c06BdAc94A69DDc7A9",
        "value": "0",
        "gas": "408298",
        "data": "0x573ade81000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec700000000000000000000000000000000000000000000000000000000000186a0000000000000000000000000000000000000000000000000000000000000000200000000000000000000000063056e00436da25bcf48a40dfbbdcc7089351006",
        "referenceId": "40901b075cf4426bb13daa25adb69d72"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
**With gasPriority (medium):**

```json
{
    "lendborrowId": "1000",
    "asset": "0x6B175474E89094C44Da98b954EedeAC495271d0F",
    "amount": "10000000000",
    "from": "0xfAE7D9854995E28BEB1B1da864ee2A1E2EC17f07",
    "onBehalfOf": "0xfAE7D9854995E28BEB1B1da864ee2A1E2EC17f07",
    "interestRateMode": "2",
    "gas": "408298",
    "gasPriority":"medium"
}
```

{% endtab %}

{% tab title="Sample Response" %}
**With gasPriority:**

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0xfAE7D9854995E28BEB1B1da864ee2A1E2EC17f07",
        "to": "0x7d2768dE32b0b80b7a3454c06BdAc94A69DDc7A9",
        "value": "0",
        "gas": "408298",
        "data": "0x573ade810000000000000000000000006b175474e89094c44da98b954eedeac495271d0f00000000000000000000000000000000000000000000000000000002540be4000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000fae7d9854995e28beb1b1da864ee2a1e2ec17f07",
        "gasPrice": "3904209506",
        "referenceId": "d37a6d9d3a084066a980aaafd2ca5e61"
    }
}
```

{% endtab %}
{% endtabs %}

[back to top](#endpoints-available)

### /withdraw

#### Trigger the withdraw transaction from the given protocol.

<mark style="color:green;">`POST`</mark> `https://api.expand.network/lendborrow/withdraw`

#### Request Body

| Name                                     | Type   | Description                                                                              |
| ---------------------------------------- | ------ | ---------------------------------------------------------------------------------------- |
| lendborrowId                             | String | Refer to the [Lend and Borrow ID](broken://pages/XoZTiUkj66UXxqYVd64n) page for details. |
| asset<mark style="color:red;">\*</mark>  | String | Token address to be withdraw.                                                            |
| amount<mark style="color:red;">\*</mark> | String | Number of tokens to withdraw.                                                            |
| to<mark style="color:red;">\*</mark>     | String | Recipient public address.                                                                |
| from<mark style="color:red;">\*</mark>   | String | Sender public address.                                                                   |
| gas                                      | String | Maximum gas to be approved for the transaction.                                          |
| rpc                                      | String | Remote procedural call URL.                                                              |
| gasPriority                              | String | low, medium, or high.                                                                    |

{% tabs %}
{% tab title="Sample Request" %}

```json
{
    "lendborrowId": "1000",
    "asset": "0x6B175474E89094C44Da98b954EedeAC495271d0F",
    "amount": "1000000000000000000",
    "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
    "to": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
    "gas": "408298"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
        "to": "0x7d2768dE32b0b80b7a3454c06BdAc94A69DDc7A9",
        "value": "0",
        "gas": "408298",
        "data": "0x69328dec0000000000000000000000006b175474e89094c44da98b954eedeac495271d0f0000000000000000000000000000000000000000000000000de0b6b3a764000000000000000000000000000063056e00436da25bcf48a40dfbbdcc7089351006",
        "referenceId": "3fd62ffec3264f33962ef2978b6e0892"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
**With gasPriority (low):**

```json
{
    "lendborrowId": "1000",
    "asset": "0x6B175474E89094C44Da98b954EedeAC495271d0F",
    "amount": "100000000000",
    "from": "0xfAE7D9854995E28BEB1B1da864ee2A1E2EC17f07",
    "to": "0xfAE7D9854995E28BEB1B1da864ee2A1E2EC17f07",
    "gas": "408298",
    "gasPriority":"low"
}
```

{% endtab %}

{% tab title="Sample Response" %}
**With gasPriority:**

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0xfAE7D9854995E28BEB1B1da864ee2A1E2EC17f07",
        "to": "0x7d2768dE32b0b80b7a3454c06BdAc94A69DDc7A9",
        "value": "0",
        "gas": "408298",
        "data": "0x69328dec0000000000000000000000006b175474e89094c44da98b954eedeac495271d0f000000000000000000000000000000000000000000000000000000174876e800000000000000000000000000fae7d9854995e28beb1b1da864ee2a1e2ec17f07",
        "gasPrice": "3312899520",
        "referenceId": "d7fd42b08f9344b79511bf4fc13970f9"
    }
}
```

{% endtab %}
{% endtabs %}

[back to top](#endpoints-available)


# Aave V3

### Supported Chains

Available on **Ethereum Mainnet and Testnet, Arbitrum, Avalanche, Base, and Polygon.**

### Available Endpoints:

*Click on the endpoint to jump to the section with full details*

* [**/**](#getprice)[<mark style="color:blue;">**getpool**</mark><mark style="color:blue;">`GET`</mark>](#getpool) - Get the lend and borrow APY for the given pool from AAVE protocol.
* [<mark style="color:blue;">**/**</mark>](#getuserliquidity)[<mark style="color:blue;">**getpools**</mark>](#getpools) <mark style="color:blue;">`GET`</mark> - Get the list of supply and borrow APYs of the mentioned assets.&#x20;
* <mark style="color:blue;">**/**</mark>[<mark style="color:blue;">**getuseraccountdata**</mark>](#getuseraccountdata) <mark style="color:blue;">`GET`</mark> - Get the repay, borrow, withdraw amount and health factor details for the given user.
* [<mark style="color:blue;">**/getuserpositions**</mark>](#getuserpositions) <mark style="color:blue;">`GET`</mark> - Retrieves the lending and borrowing positions of a user, including details such as token balances and collateral usage status.
* [<mark style="color:blue;">**/borrow**</mark>](#borrow) <mark style="color:green;">`POST`</mark> - Trigger the borrow transaction from the given protocol.
* [**/**<mark style="color:blue;">**d**</mark>](#addliquidity)[<mark style="color:blue;">**eposit**</mark>](#deposit) <mark style="color:green;">`POST`</mark> - Trigger the deposit transaction from the given protocol.
* [<mark style="color:blue;">**/r**</mark>](#removeliquidity)[<mark style="color:blue;">**epay**</mark>](#repay)<mark style="color:green;">`POST`</mark> - Trigger the repay transaction from the given protocol.
* [<mark style="color:blue;">**/**</mark>](#removeliquidity)[<mark style="color:blue;">**withdraw**</mark>](#withdraw)<mark style="color:green;">`POST`</mark> - Trigger the withdraw transaction from the given protocol.
* [<mark style="color:blue;">**/**</mark>](#removeliquidity)[<mark style="color:blue;">**migrate**</mark>](#migrate)<mark style="color:green;">`POST`</mark> - Trigger the migrate transaction from the given protocol.
* [<mark style="color:blue;">**/**</mark>](#removeliquidity)[<mark style="color:blue;">**setuseremode**</mark>](#setuseremode)<mark style="color:green;">`POST`</mark> - Trigger the E-Mode options for the user.
* [<mark style="color:blue;">**/**</mark>](#removeliquidity)[<mark style="color:blue;">**exitisolationmode**</mark>](#exitisolationmode)<mark style="color:green;">`POST`</mark> - Trigger the exit of isolation mode options for the user.

### Lending Protocol IDs

Many endpoints have a parameter where you can provide a lendborrow ID.&#x20;

Below is a list of lendborrow IDs related to Aave V3. Please see the [lendborrowID](/ids/lending-protocol-ids) for a complete Lending Protocol ID list and more information.

| Lending Protocol Name | Chain                    | Lending Protocol ID |
| --------------------- | ------------------------ | ------------------- |
| Aave V3               | Ethereum                 | 1200                |
| Aave V3               | Ethereum Testnet Sepolia | 1202                |
| Aave V3               | Avalanche                | 1203                |
| Aave V3               | Arbitrum                 | 1204                |
| Aave V3               | Polygon                  | 1205                |
| Aave V3               | Base                     | 1206                |
| Aave V3               | Optimism                 | 1207                |

## Endpoint Details

### /getpool

#### Get the lend and borrow APY for the given pool from AAVE protocol.

<mark style="color:blue;">`GET`</mark> `https://api.expand.network/lendborrow/getpool`

#### Query Parameters

| Name                                           | Type    | Description                                                                                                                          |
| ---------------------------------------------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------ |
| rpc                                            | String  | Remote procedural call URL.                                                                                                          |
| lendborrowId<mark style="color:red;">\*</mark> | String  | Refer to the [Lend and Borrow ID](/ids/lending-protocol-ids) page for details.                                                       |
| asset<mark style="color:red;">\*</mark>        | String  | Token address to get the details of.                                                                                                 |
| useCustomVaults                                | Boolean | If true, the request will be processed using the partner's dedicated vaults. If false or omitted, it uses the standard public pools. |

{% tabs %}
{% tab title="Sample Request" %}

```url
https://api.expand.network/lendborrow/getpool?lendborrowId=1200&asset=0x6b175474e89094c44da98b954eedeac495271d0f
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "tokenAddress": "0x6b175474e89094c44da98b954eedeac495271d0f",
        "poolAddress": "0x87870Bca3F3fD6335C3F4ce8392D69350B4fA4E2",
        "variableBorrowRate": "17.17",
        "stableBorrowRate": "18.67",
        "variableSupplyRate": "0",
        "stableSupplyRate": "11.96",
        "ltv": "63",
        "availableLiquidity": "8950905768339714587617037",
        "reserveSize": "125705701896860739215535363"
    }
}
```

{% endtab %}
{% endtabs %}

### /getpools

#### Returns a list of supply and borrow APYs for assets supported by the Aave V3 protocol.

<mark style="color:blue;">`GET`</mark> `https://api.expand.network/lendborrow/getpools`

#### Query Parameters

<table><thead><tr><th>Name</th><th width="190">Type</th><th>Description</th></tr></thead><tbody><tr><td>lendborrowId<mark style="color:red;">*</mark></td><td>String</td><td>Identify the protocol by providing a <a href="/pages/XV9uszAmPg5EAsIr4yzR">Lending Protocol ID.</a> For example, Aave V3 on Ethereum is 1200. </td></tr><tr><td>assets</td><td>String</td><td>Provide a comma-separated list of token addresses to filter specific assets. If left blank, data for all assets supported by the protocol will be returned.</td></tr><tr><td>address</td><td>String</td><td>The public address of the sender.</td></tr><tr><td>rpc</td><td>String</td><td>Remote procedural call URL.</td></tr><tr><td>useCustomVaults</td><td>Boolean</td><td>If true, the request will be processed using the partner's dedicated vaults. If false or omitted, it uses the standard public pools.</td></tr></tbody></table>

{% tabs %}
{% tab title="Sample Request" %}

```
https://api.expand.network/lendborrow/getpools?lendborrowId=1200
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "FRAX": {
            "tokenAddress": "0x853d955acef822db058eb8505911ed77f175b99e",
            "poolAddress": "0x87870Bca3F3fD6335C3F4ce8392D69350B4fA4E2",
            "variableBorrowRate": "17.00",
            "stableBorrowRate": "0.00",
            "variableSupplyRate": "0",
            "stableSupplyRate": "12.45",
            "ltv": "0",
            "availableLiquidity": "54923305553322344701626",
            "reserveSize": "650047524499480835549952",
            "tokenSymbol": "FRAX"
        },
        "wstETH": {
            "tokenAddress": "0x7f39c581f595b53c5cb19bd0b3f8da6c935e2ca0",
            "poolAddress": "0x87870Bca3F3fD6335C3F4ce8392D69350B4fA4E2",
            "variableBorrowRate": "0.47",
            "stableBorrowRate": "0.00",
            "variableSupplyRate": "0",
            "stableSupplyRate": "0.01",
            "ltv": "78.5",
            "availableLiquidity": "992836307810782540121810",
            "reserveSize": "1015065135630218396600073",
            "tokenSymbol": "wstETH"
        },
        "cbETH": {
            "tokenAddress": "0xbe9895146f7af43049ca1c1ae358b0541ea49704",
            "poolAddress": "0x87870Bca3F3fD6335C3F4ce8392D69350B4fA4E2",
            "variableBorrowRate": "0.86",
            "stableBorrowRate": "0.00",
            "variableSupplyRate": "0",
            "stableSupplyRate": "0.04",
            "ltv": "75",
            "availableLiquidity": "6763004466247910156681",
            "reserveSize": "7160022618905139219048",
            "tokenSymbol": "cbETH"
        },
        "USDC": {
            "tokenAddress": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
            "poolAddress": "0x87870Bca3F3fD6335C3F4ce8392D69350B4fA4E2",
            "variableBorrowRate": "10.02",
            "stableBorrowRate": "0.00",
            "variableSupplyRate": "0",
            "stableSupplyRate": "8.35",
            "ltv": "75",
            "availableLiquidity": "130127857697538",
            "reserveSize": "1761203345161530",
            "tokenSymbol": "USDC"
        },
        "RPL": {
            "tokenAddress": "0xd33526068d116ce69f19a9ee46f0bd304f21a51f",
            "poolAddress": "0x87870Bca3F3fD6335C3F4ce8392D69350B4fA4E2",
            "variableBorrowRate": "4.66",
            "stableBorrowRate": "0.00",
            "variableSupplyRate": "0",
            "stableSupplyRate": "1.64",
            "ltv": "0",
            "availableLiquidity": "283805898461442804183895",
            "reserveSize": "505633140202467190948506",
            "tokenSymbol": "RPL"
        },
        "LDO": {
            "tokenAddress": "0x5a98fcbea516cf06857215779fd812ca3bef1b32",
            "poolAddress": "0x87870Bca3F3fD6335C3F4ce8392D69350B4fA4E2",
            "variableBorrowRate": "0.22",
            "stableBorrowRate": "0.00",
            "variableSupplyRate": "0",
            "stableSupplyRate": "0.00",
            "ltv": "40",
            "availableLiquidity": "5567358015093172290775082",
            "reserveSize": "5648884466090294233350743",
            "tokenSymbol": "LDO"
        },
        "1INCH": {
            "tokenAddress": "0x111111111117dc0aa78b770fa6a738034120c302",
            "poolAddress": "0x87870Bca3F3fD6335C3F4ce8392D69350B4fA4E2",
            "variableBorrowRate": "1.75",
            "stableBorrowRate": "0.00",
            "variableSupplyRate": "0",
            "stableSupplyRate": "0.12",
            "ltv": "57",
            "availableLiquidity": "2353887307144738474135434",
            "reserveSize": "2580260459835739983817175",
            "tokenSymbol": "1INCH"
        },
        "UNI": {
            "tokenAddress": "0x1f9840a85d5af5bf1d1762f925bdaddc4201f984",
            "poolAddress": "0x87870Bca3F3fD6335C3F4ce8392D69350B4fA4E2",
            "variableBorrowRate": "0.49",
            "stableBorrowRate": "0.00",
            "variableSupplyRate": "0",
            "stableSupplyRate": "0.01",
            "ltv": "65",
            "availableLiquidity": "3772668744594281243030841",
            "reserveSize": "3896485087868897582534843",
            "tokenSymbol": "UNI"
        },
        "rETH": {
            "tokenAddress": "0xae78736cd615f374d3085123a210448e74fc6393",
            "poolAddress": "0x87870Bca3F3fD6335C3F4ce8392D69350B4fA4E2",
            "variableBorrowRate": "0.49",
            "stableBorrowRate": "0.00",
            "variableSupplyRate": "0",
            "stableSupplyRate": "0.01",
            "ltv": "75",
            "availableLiquidity": "42786920207676018925820",
            "reserveSize": "44165424967969205168667",
            "tokenSymbol": "rETH"
        },
        "LUSD": {
            "tokenAddress": "0x5f98805a4e8be255a32880fdec7f6728c6568ba0",
            "poolAddress": "0x87870Bca3F3fD6335C3F4ce8392D69350B4fA4E2",
            "variableBorrowRate": "8.35",
            "stableBorrowRate": "0.00",
            "variableSupplyRate": "0",
            "stableSupplyRate": "5.39",
            "ltv": "0",
            "availableLiquidity": "732008157782705236289462",
            "reserveSize": "3785608593131778512959540",
            "tokenSymbol": "LUSD"
        },
        "DAI": {
            "tokenAddress": "0x6b175474e89094c44da98b954eedeac495271d0f",
            "poolAddress": "0x87870Bca3F3fD6335C3F4ce8392D69350B4fA4E2",
            "variableBorrowRate": "5.23",
            "stableBorrowRate": "0.00",
            "variableSupplyRate": "0",
            "stableSupplyRate": "3.43",
            "ltv": "63",
            "availableLiquidity": "20116190904329074108544817",
            "reserveSize": "161227720827627549197855027",
            "tokenSymbol": "DAI"
        },
        "BAL": {
            "tokenAddress": "0xba100000625a3754423978a60c9317c58a424e3d",
            "poolAddress": "0x87870Bca3F3fD6335C3F4ce8392D69350B4fA4E2",
            "variableBorrowRate": "6.13",
            "stableBorrowRate": "0.00",
            "variableSupplyRate": "0",
            "stableSupplyRate": "0.20",
            "ltv": "57",
            "availableLiquidity": "5461808366567556320757020",
            "reserveSize": "5695504786919720097775530",
            "tokenSymbol": "BAL"
        },
        "ENS": {
            "tokenAddress": "0xc18360217d8f7ab5e7c516566761ea12ce7f9d72",
            "poolAddress": "0x87870Bca3F3fD6335C3F4ce8392D69350B4fA4E2",
            "variableBorrowRate": "0.55",
            "stableBorrowRate": "0.00",
            "variableSupplyRate": "0",
            "stableSupplyRate": "0.01",
            "ltv": "39",
            "availableLiquidity": "257622018102494483285103",
            "reserveSize": "264915342974442126735250",
            "tokenSymbol": "ENS"
        },
        "MKR": {
            "tokenAddress": "0x9f8f72aa9304c8b593d555f12ef6589cc3a579a2",
            "poolAddress": "0x87870Bca3F3fD6335C3F4ce8392D69350B4fA4E2",
            "variableBorrowRate": "0.13",
            "stableBorrowRate": "0.00",
            "variableSupplyRate": "0",
            "stableSupplyRate": "0.00",
            "ltv": "65",
            "availableLiquidity": "22317721451329464915781",
            "reserveSize": "22498947821677587448345",
            "tokenSymbol": "MKR"
        },
        "LINK": {
            "tokenAddress": "0x514910771af9ca656af840dff83e8264ecf986ca",
            "poolAddress": "0x87870Bca3F3fD6335C3F4ce8392D69350B4fA4E2",
            "variableBorrowRate": "0.16",
            "stableBorrowRate": "0.00",
            "variableSupplyRate": "0",
            "stableSupplyRate": "0.00",
            "ltv": "66",
            "availableLiquidity": "12841888770900167942661273",
            "reserveSize": "12972794519516805036037702",
            "tokenSymbol": "LINK"
        },
        "SNX": {
            "tokenAddress": "0xc011a73ee8576fb46f5e1c5751ca3b9fe0af2a6f",
            "poolAddress": "0x87870Bca3F3fD6335C3F4ce8392D69350B4fA4E2",
            "variableBorrowRate": "3.83",
            "stableBorrowRate": "0.00",
            "variableSupplyRate": "0",
            "stableSupplyRate": "0.11",
            "ltv": "49",
            "availableLiquidity": "876958995457643001455419",
            "reserveSize": "917448341348890598571604",
            "tokenSymbol": "SNX"
        },
        "USDT": {
            "tokenAddress": "0xdac17f958d2ee523a2206206994597c13d831ec7",
            "poolAddress": "0x87870Bca3F3fD6335C3F4ce8392D69350B4fA4E2",
            "variableBorrowRate": "5.19",
            "stableBorrowRate": "0.00",
            "variableSupplyRate": "0",
            "stableSupplyRate": "4.06",
            "ltv": "75",
            "availableLiquidity": "265199532954034",
            "reserveSize": "2013985901200635",
            "tokenSymbol": "USDT"
        },
        "WETH": {
            "tokenAddress": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
            "poolAddress": "0x87870Bca3F3fD6335C3F4ce8392D69350B4fA4E2",
            "variableBorrowRate": "2.65",
            "stableBorrowRate": "0.00",
            "variableSupplyRate": "0",
            "stableSupplyRate": "1.99",
            "ltv": "80.5",
            "availableLiquidity": "169301799517216699851714",
            "reserveSize": "1438734804109467684281299",
            "tokenSymbol": "WETH"
        },
        "WBTC": {
            "tokenAddress": "0x2260fac5e5542a773aa44fbcfedf7c193bc2c599",
            "poolAddress": "0x87870Bca3F3fD6335C3F4ce8392D69350B4fA4E2",
            "variableBorrowRate": "0.64",
            "stableBorrowRate": "0.00",
            "variableSupplyRate": "0",
            "stableSupplyRate": "0.04",
            "ltv": "73",
            "availableLiquidity": "3641724175444",
            "reserveSize": "3922957400637",
            "tokenSymbol": "WBTC"
        },
        "sDAI": {
            "tokenAddress": "0x83f20f44975d03b1b09e64809b757c47f942beea",
            "poolAddress": "0x87870Bca3F3fD6335C3F4ce8392D69350B4fA4E2",
            "variableBorrowRate": "0.00",
            "stableBorrowRate": "0.00",
            "variableSupplyRate": "0",
            "stableSupplyRate": "0.00",
            "ltv": "75",
            "availableLiquidity": "19660800347008258200820319",
            "reserveSize": "19660800347008258200820319",
            "tokenSymbol": "sDAI"
        },
        "AAVE": {
            "tokenAddress": "0x7fc66500c84a76ad7e9c93437bfc5ac33e2ddae9",
            "poolAddress": "0x87870Bca3F3fD6335C3F4ce8392D69350B4fA4E2",
            "variableBorrowRate": "0.00",
            "stableBorrowRate": "0.00",
            "variableSupplyRate": "0",
            "stableSupplyRate": "0.00",
            "ltv": "66",
            "availableLiquidity": "1199043096578210200140138",
            "reserveSize": "1199043096578210200140138",
            "tokenSymbol": "AAVE"
        },
        "CRV": {
            "tokenAddress": "0xd533a949740bb3306d119cc777fa900ba034cd52",
            "poolAddress": "0x87870Bca3F3fD6335C3F4ce8392D69350B4fA4E2",
            "variableBorrowRate": "10.42",
            "stableBorrowRate": "0.00",
            "variableSupplyRate": "0",
            "stableSupplyRate": "2.51",
            "ltv": "35",
            "availableLiquidity": "5870235544561016402074394",
            "reserveSize": "9333074134649437853135767",
            "tokenSymbol": "CRV"
        }
    }
}
```

{% endtab %}
{% endtabs %}

### /getuseraccountdata

#### Get the repay, borrow, withdraw amount and health factor details for a given user.

<mark style="color:blue;">`GET`</mark> `https://api.expand.network/lendborrow/getuseraccountdata`

#### Query Parameters

| Name                                               | Type    | Description                                                                                                                          |
| -------------------------------------------------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------ |
| rpc                                                | String  | Remote procedural call URL.                                                                                                          |
| lendborrowId<mark style="color:red;">\*</mark>     | String  | Refer to the [lend borrow Id](broken://pages/XoZTiUkj66UXxqYVd64n) page for details.                                                 |
| asset<mark style="color:red;">\*</mark>            | String  | Token address.                                                                                                                       |
| address<mark style="color:red;">\*</mark>          | String  | Public address of sender.                                                                                                            |
| interestRateMode<mark style="color:red;">\*</mark> | String  | Interest mode as per Aave. Is set '1' as default.                                                                                    |
| useCustomVaults                                    | Boolean | If true, the request will be processed using the partner's dedicated vaults. If false or omitted, it uses the standard public pools. |

{% tabs %}
{% tab title="Sample Request" %}

```url
https://api.expand.network/lendborrow/getuseraccountdata?interestRateMode=1&address=0x6fCe63859a859a0f30eD09B12F5010d790618ca4&asset=0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48&lendborrowId=1200
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "tokenAddress": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
        "repayAmount": "0",
        "borrowAmount": "15336571492",
        "borrowErrorMessage": "The Stable Rate is not enabled for this currency",
        "withdrawAmount": "0",
        "healthFactor": "1965438342704054090"
    }
}
```

{% endtab %}
{% endtabs %}

### /getuserpositions

#### Retrieves the lending and borrowing positions of a user, including details such as token balances and collateral usage status.

<mark style="color:blue;">`GET`</mark> `https://api.expand.network/lendborrow/getuserpositions`

#### Query Parameters

| Name                                           | Type    | Descriptions                                                                                                                         |
| ---------------------------------------------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------ |
| rpc                                            | String  | Remote procedural call URL.                                                                                                          |
| address<mark style="color:red;">\*</mark>      | String  | Public address of sender.                                                                                                            |
| lendBorrowId<mark style="color:red;">\*</mark> | String  | Refer to the [lend borrow Id](/ids/lending-protocol-ids) page for details.                                                           |
| useCustomVaults                                | Boolean | If true, the request will be processed using the partner's dedicated vaults. If false or omitted, it uses the standard public pools. |
| assets                                         | String  | Comma-separated list of token addresses to filter specific assets. If omitted, data for all supported assets will be returned.       |

{% tabs %}
{% tab title="Sample Request" %}

```url
https://api.expand.network/lendborrow/getuserpositions?address=0x6fCe63859a859a0f30eD09B12F5010d790618ca4&lendborrowId=1200
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": [
        {
            "underlyingAsset": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
            "scaledATokenBalance": "223979452864104791",
            "usageAsCollateralEnabledOnUser": true,
            "aToken": "0x4d5F47FA6A74757f35C14fD3a6Ef8E3C9BC514E8",
            "currentBalance": "235492464491675513",
            "rewardsAPYPercentage": "1.98",
            "accruedRewards": "11513011627570722",
            "prices": {
                "usd": [
                    {
                        "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2": "4308.039027805227"
                    }
                ]
            }
        },
        {
            "underlyingAsset": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
            "scaledVariableDebt": "84207861",
            "usageAsCollateralEnabledOnUser": false,
            "aToken": "0x98C23E9d8f34FEFb1B7BD6a91B7FF122F4e16F5c",
            "currentDebt": "100026949",
            "interestAPRPercentage": "6.11",
            "accruedInterest": "15819088",
            "prices": {
                "usd": [
                    {
                        "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48": "0.9998045672762118"
                    }
                ]
            }
        }
    ]
}
```

{% endtab %}
{% endtabs %}

### /borrow

#### Trigger the borrow transaction from the given protocol.

<mark style="color:green;">`POST`</mark> `https://api.expand.network/lendborrow/borrow`

#### Request Body

| Name                                           | Type   | Description                                                                    |
| ---------------------------------------------- | ------ | ------------------------------------------------------------------------------ |
| lendborrowId<mark style="color:red;">\*</mark> | String | Refer to the [Lend and Borrow ID](/ids/lending-protocol-ids) page for details. |
| asset<mark style="color:red;">\*</mark>        | String | Token address to borrow.                                                       |
| amount<mark style="color:red;">\*</mark>       | String | Number of tokens to be borrowed.                                               |
| interestRateMode                               | String | Interest mode as per Aave. 0 for static and 1 for variable.                    |
| onBehalfOf<mark style="color:red;">\*</mark>   | String | Required in case borrow need to be done on behalf of other public address.     |
| from<mark style="color:red;">\*</mark>         | String | Sender public address.                                                         |
| gas                                            | String | Maximum gas to be approved for transaction.                                    |
| rpc                                            | String | Remote procedural call URL.                                                    |
| gasPriority                                    | String | low, medium, or high.                                                          |

{% tabs %}
{% tab title="Sample Request" %}

```json
{
    "lendborrowId": "1200",
    "asset": "0x65afadd39029741b3b8f0756952c74678c9cec93",
    "amount": "100",
    "from": "0x829bFB482331b9Dc2BEcb5483ecA79c0578c3A45",
    "onBehalfOf": "0x829bFB482331b9Dc2BEcb5483ecA79c0578c3A45",
    "interestRateMode": "2",
    "gas": "408298"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId":"1",
        "from": "0x829bFB482331b9Dc2BEcb5483ecA79c0578c3A45",
        "to": "0x87870Bca3F3fD6335C3F4ce8392D69350B4fA4E2",
        "value": "0",
        "gas": "408298",
        "data": "0xa415bcad00000000000000000000000065afadd39029741b3b8f0756952c74678c9cec93000000000000000000000000000000000000000000000000000000000000006400000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000829bfb482331b9dc2becb5483eca79c0578c3a45"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
**With gasPriority (low):**

```json
{
    "lendborrowId": "1200",
    "asset": "0x6B175474E89094C44Da98b954EedeAC495271d0F",
    "amount": "1000000000",
    "from": "0x4C99D660A51D41bE5D47D66a3d89d5B83D92f27E",
    "onBehalfOf": "0x4C99D660A51D41bE5D47D66a3d89d5B83D92f27E",
    "interestRateMode": "2",
    "gas": "408298",
    "gasPriority":"low"
}
```

{% endtab %}

{% tab title="Sample Response" %}
**With gasPriority:**

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x4C99D660A51D41bE5D47D66a3d89d5B83D92f27E",
        "to": "0x87870Bca3F3fD6335C3F4ce8392D69350B4fA4E2",
        "value": "0",
        "gas": "408298",
        "data": "0xa415bcad0000000000000000000000006b175474e89094c44da98b954eedeac495271d0f000000000000000000000000000000000000000000000000000000003b9aca00000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000004c99d660a51d41be5d47d66a3d89d5b83d92f27e",
        "gasPrice": "14089187713"
    }
}
```

{% endtab %}
{% endtabs %}

### /deposit

#### Trigger the deposit transaction from the given protocol.

<mark style="color:green;">`POST`</mark> `https://api.expand.network/lendborrow/deposit`

#### Request Body

| Name                                           | Type    | Description                                                                                                                          |
| ---------------------------------------------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------ |
| lendborrowId<mark style="color:red;">\*</mark> | String  | Refer to the [Lend and Borrow ID](/ids/lending-protocol-ids) page for details.                                                       |
| asset<mark style="color:red;">\*</mark>        | String  | Token address to deposit.                                                                                                            |
| amount<mark style="color:red;">\*</mark>       | String  | Number of tokens to deposit.                                                                                                         |
| onBehalfOf<mark style="color:red;">\*</mark>   | String  | Required in case deposit need to be done on behalf of other public address.                                                          |
| from<mark style="color:red;">\*</mark>         | String  | Sender public address.                                                                                                               |
| gas                                            | String  | Maximum gas to be approved for the transaction.                                                                                      |
| rpc                                            | String  | Remote procedural call URL.                                                                                                          |
| involveBaseToken                               | String  | <p>0 for any ERC-20 token,<br>1 for ETH.</p>                                                                                         |
| gasPriority                                    | String  | low, medium, or high.                                                                                                                |
| useCustomVaults                                | Boolean | If true, the request will be processed using the partner's dedicated vaults. If false or omitted, it uses the standard public pools. |

{% tabs %}
{% tab title="Sample Request" %}

```json
{
    "lendborrowId": "1200",
    "asset": "0x65afadd39029741b3b8f0756952c74678c9cec93",
    "amount": "10000000000000000",
    "from": "0x829bFB482331b9Dc2BEcb5483ecA79c0578c3A45",
    "onBehalfOf": "0x829bFB482331b9Dc2BEcb5483ecA79c0578c3A45",
    "gas": "408298"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x829bFB482331b9Dc2BEcb5483ecA79c0578c3A45",
        "to": "0x87870Bca3F3fD6335C3F4ce8392D69350B4fA4E2",
        "value": "0",
        "gas": "408298",
        "data": "0xe8eda9df00000000000000000000000065afadd39029741b3b8f0756952c74678c9cec93000000000000000000000000000000000000000000000000002386f26fc10000000000000000000000000000829bfb482331b9dc2becb5483eca79c0578c3a450000000000000000000000000000000000000000000000000000000000000000",
        "referenceId": "7fb853868e4749879ef57d96aae5b9a2"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
**With gasPriority (medium):**

```json
{
    "lendborrowId": "1200",
    "asset": "0x6B175474E89094C44Da98b954EedeAC495271d0F",
    "amount": "10000000000",
    "from": "0xfAE7D9854995E28BEB1B1da864ee2A1E2EC17f07",
    "onBehalfOf": "0xfAE7D9854995E28BEB1B1da864ee2A1E2EC17f07",
    "gas": "408298",
    "gasPriority":"low"
}
```

{% endtab %}

{% tab title="Sample Response" %}
**With gasPriority:**

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0xfAE7D9854995E28BEB1B1da864ee2A1E2EC17f07",
        "to": "0x87870Bca3F3fD6335C3F4ce8392D69350B4fA4E2",
        "value": "0",
        "gas": "408298",
        "data": "0xe8eda9df0000000000000000000000006b175474e89094c44da98b954eedeac495271d0f00000000000000000000000000000000000000000000000000000002540be400000000000000000000000000fae7d9854995e28beb1b1da864ee2a1e2ec17f070000000000000000000000000000000000000000000000000000000000000000",
        "gasPrice": "2800283955",
        "referenceId": "6bc93df7b66e4c1c9d069f6c88459a77"
    }
}
```

{% endtab %}
{% endtabs %}

### /repay

#### Trigger the repay transaction from the given protocol.

<mark style="color:green;">`POST`</mark> `https://api.expand.network/lendborrow/repay`

#### Request Body

| Name                                           | Type   | Description                                                                    |
| ---------------------------------------------- | ------ | ------------------------------------------------------------------------------ |
| lendborrowId<mark style="color:red;">\*</mark> | String | Refer to the [Lend and Borrow ID](/ids/lending-protocol-ids) page for details. |
| asset<mark style="color:red;">\*</mark>        | String | Token address to repay.                                                        |
| interestRateMode                               | String | Interest mode as per Aave. 0 for static and 1 for variable.                    |
| onBehalfOf<mark style="color:red;">\*</mark>   | String | Required in case repay need to be done on behalf of other public address.      |
| from<mark style="color:red;">\*</mark>         | String | Sender public address.                                                         |
| gas                                            | String | Maximum gas to be approved for the transaction.                                |
| rpc                                            | String | Remote procedural call URL.                                                    |
| amount<mark style="color:red;">\*</mark>       | String | Amount to repay.                                                               |
| gasPriority                                    | String | low, medium, or high.                                                          |

{% tabs %}
{% tab title="Sample Request" %}

```json
{
    "lendborrowId": "1200",
    "asset": "0xdAC17F958D2ee523a2206206994597C13D831ec7",
    "amount": "100000",
    "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
    "onBehalfOf": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
    "interestRateMode": "1",
    "gas": "408298"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
        "to": "0x87870Bca3F3fD6335C3F4ce8392D69350B4fA4E2",
        "value": "0",
        "gas": "408298",
        "data": "0x573ade81000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec700000000000000000000000000000000000000000000000000000000000186a0000000000000000000000000000000000000000000000000000000000000000100000000000000000000000063056e00436da25bcf48a40dfbbdcc7089351006",
        "referenceId": "206365ea298a46c790b0ae51add101c3"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
**With gasPriority (low):**

```json
{
    "lendborrowId": "1200",
    "asset": "0x6B175474E89094C44Da98b954EedeAC495271d0F",
    "amount": "1000000000",
    "from": "0x4C99D660A51D41bE5D47D66a3d89d5B83D92f27E",
    "onBehalfOf": "0x4C99D660A51D41bE5D47D66a3d89d5B83D92f27E",
    "interestRateMode": "2",
    "gas": "408298",
    "gasPriority":"low"
}
```

{% endtab %}

{% tab title="Sample Response" %}
**With gasPriority:**

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x4C99D660A51D41bE5D47D66a3d89d5B83D92f27E",
        "to": "0x87870Bca3F3fD6335C3F4ce8392D69350B4fA4E2",
        "value": "0",
        "gas": "408298",
        "data": "0x573ade810000000000000000000000006b175474e89094c44da98b954eedeac495271d0f000000000000000000000000000000000000000000000000000000003b9aca0000000000000000000000000000000000000000000000000000000000000000020000000000000000000000004c99d660a51d41be5d47d66a3d89d5b83d92f27e",
        "gasPrice": "2658967750",
        "referenceId": "f6c53d54c20241e3a49458a90a4e7c6d"
    }
}
```

{% endtab %}
{% endtabs %}

### /withdraw

#### Trigger the withdraw transaction from the given protocol.

<mark style="color:green;">`POST`</mark> `https://api.expand.network/lendborrow/withdraw`

#### Request Body

| Name                                           | Type    | Description                                                                                                                          |
| ---------------------------------------------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------ |
| lendborrowId<mark style="color:red;">\*</mark> | String  | Refer to the [Lend and Borrow ID](/ids/lending-protocol-ids) page for details.                                                       |
| asset<mark style="color:red;">\*</mark>        | String  | Token address to be withdraw.                                                                                                        |
| amount<mark style="color:red;">\*</mark>       | String  | Number of tokens to withdraw.                                                                                                        |
| to<mark style="color:red;">\*</mark>           | String  | Recipient public address.                                                                                                            |
| from<mark style="color:red;">\*</mark>         | String  | Sender public address.                                                                                                               |
| gas                                            | String  | Maximum gas to be approved for the transaction.                                                                                      |
| rpc                                            | String  | Remote procedural call URL.                                                                                                          |
| gasPriority                                    | String  | low, medium, or high.                                                                                                                |
| useCustomVaults                                | Boolean | If true, the request will be processed using the partner's dedicated vaults. If false or omitted, it uses the standard public pools. |

{% tabs %}
{% tab title="Sample Request" %}

```json
{
    "lendborrowId": "1200",
    "asset": "0x65afadd39029741b3b8f0756952c74678c9cec93",
    "amount": "10000000000000000",
    "from": "0x829bFB482331b9Dc2BEcb5483ecA79c0578c3A45",
    "to": "0x829bFB482331b9Dc2BEcb5483ecA79c0578c3A45",
    "gas": "408298"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x829bFB482331b9Dc2BEcb5483ecA79c0578c3A45",
        "to": "0x87870Bca3F3fD6335C3F4ce8392D69350B4fA4E2",
        "value": "0",
        "gas": "408298",
        "data": "0x69328dec00000000000000000000000065afadd39029741b3b8f0756952c74678c9cec93000000000000000000000000000000000000000000000000002386f26fc10000000000000000000000000000829bfb482331b9dc2becb5483eca79c0578c3a45",
        "referenceId": "934bca3df66d411ab6ed56ab879badd9"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
**With gasPriority:**

```json
{
    "lendborrowId": "1200",
    "asset": "0x65afadd39029741b3b8f0756952c74678c9cec93",
    "amount": "10000000000000000",
    "from": "0x829bFB482331b9Dc2BEcb5483ecA79c0578c3A45",
    "to": "0x829bFB482331b9Dc2BEcb5483ecA79c0578c3A45",
    "gas": "408298",
    "gasPriority": "high"
}
```

{% endtab %}

{% tab title="Sample Response" %}
**With gasPriority:**

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x829bFB482331b9Dc2BEcb5483ecA79c0578c3A45",
        "to": "0x87870Bca3F3fD6335C3F4ce8392D69350B4fA4E2",
        "value": "0",
        "gas": "408298",
        "data": "0x69328dec00000000000000000000000065afadd39029741b3b8f0756952c74678c9cec93000000000000000000000000000000000000000000000000002386f26fc10000000000000000000000000000829bfb482331b9dc2becb5483eca79c0578c3a45",
        "gasPrice": "3851175507",
        "referenceId": "1875f3d54ba14016b0231d763b5a949e"
    }
}
```

{% endtab %}
{% endtabs %}

### /migrate

#### Trigger the migrate transaction from the given protocol.

<mark style="color:green;">`POST`</mark> `https://api.expand.network/lendborrow/migrate`

#### Request Body

| Name                                           | Type   | Description                                                                    |
| ---------------------------------------------- | ------ | ------------------------------------------------------------------------------ |
| lendborrowId<mark style="color:red;">\*</mark> | String | Refer to the [Lend and Borrow ID](/ids/lending-protocol-ids) page for details. |
| assets                                         | String | Token addresses to migrate.                                                    |
| from<mark style="color:red;">\*</mark>         | String | Sender public address.                                                         |
| gas                                            | String | Maximum gas to be approved for the transaction.                                |
| rpc                                            | String | Remote procedural call URL.                                                    |

{% tabs %}
{% tab title="Sample Request" %}

```json
{
    "lendborrowId": "1200",
    "assets": [
        "0x6b175474e89094c44da98b954eedeac495271d0f"
    ],
    "from": "0x356dB816602c85e2075774bB77D13995c8Bab023",
    "gas": "329000"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x356dB816602c85e2075774bB77D13995c8Bab023",
        "to": "0xb748952c7bc638f31775245964707bcc5ddfabfc",
        "value": "0",
        "gas": "329000",
        "data": "0x3698d492000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000010000000000000000000000006b175474e89094c44da98b954eedeac495271d0f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
        "referenceId": "76137704aa884a90b6a47082bc65e735"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
**With gasPriority:**&#x20;

```json
{
    "lendborrowId": "1200",
    "assets": [
        "0x6b175474e89094c44da98b954eedeac495271d0f"
    ],
    "from": "0x356dB816602c85e2075774bB77D13995c8Bab023",
    "gas": "329000",
    "gasPriority": "medium"
}
```

{% endtab %}

{% tab title="Sample Response" %}
**With gasPriority:**

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x356dB816602c85e2075774bB77D13995c8Bab023",
        "to": "0xb748952c7bc638f31775245964707bcc5ddfabfc",
        "value": "0",
        "gas": "329000",
        "data": "0x3698d492000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000010000000000000000000000006b175474e89094c44da98b954eedeac495271d0f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
        "gasPrice": {
            "gasPrice": "3297136333"
        },
        "referenceId": "fce1e543076e4bc9b23c74afaa114d3f"
    }
}
```

{% endtab %}
{% endtabs %}

### /setuseremode

#### Trigger the E-Mode options for the user.

<mark style="color:green;">`POST`</mark> `https://api.expand.network/lendborrow/setuseremode`

#### Request Body

| Name                                           | Type   | Description                                                                    |
| ---------------------------------------------- | ------ | ------------------------------------------------------------------------------ |
| lendborrowId<mark style="color:red;">\*</mark> | String | Refer to the [Lend and Borrow ID](/ids/lending-protocol-ids) page for details. |
| categoryId<mark style="color:red;">\*</mark>   | String | 0 for default. 1 for stablecoins.                                              |
| from<mark style="color:red;">\*</mark>         | String | Sender public address.                                                         |
| gas                                            | String | Maximum gas to be approved for the transaction.                                |
| rpc                                            | String | Remote procedural call URL.                                                    |
| gasPriority                                    | String | low, medium, or high.                                                          |

{% tabs %}
{% tab title="Sample Request" %}

```json
{
    "lendborrowId": "1200",
    "from": "0x829bFB482331b9Dc2BEcb5483ecA79c0578c3A45",
    "categoryId": "1",
    "gas": "408298"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x829bFB482331b9Dc2BEcb5483ecA79c0578c3A45",
        "to": "0x87870Bca3F3fD6335C3F4ce8392D69350B4fA4E2",
        "value": "0",
        "gas": "408298",
        "data": "0x28530a470000000000000000000000000000000000000000000000000000000000000001",
        "referenceId": "85e2f3fd6c904f2bb55305c1d9075ee3"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
**With gasPriority (low):**

```json
{
    "lendborrowId": "1200",
    "from": "0xfAE7D9854995E28BEB1B1da864ee2A1E2EC17f07",
    "categoryId": "1",
    "gas": "408298",
    "gasPriority":"low"
}
```

{% endtab %}

{% tab title="Sample Response" %}
**With gasPriority:**

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0xfAE7D9854995E28BEB1B1da864ee2A1E2EC17f07",
        "to": "0x87870Bca3F3fD6335C3F4ce8392D69350B4fA4E2",
        "value": "0",
        "gas": "408298",
        "data": "0x28530a470000000000000000000000000000000000000000000000000000000000000001",
        "gasPrice": "2914558556",
        "referenceId": "cf07b3d78fc348e49da9e8511f9f5794"
    }
}
```

{% endtab %}
{% endtabs %}

### /exitisolationmode

#### Trigger the exit of isolation mode options for the user.

<mark style="color:green;">`POST`</mark> `https://api.expand.network/lendborrow/exitisolationmode`

#### Request Body

| Name                                           | Type   | Description                                                                    |
| ---------------------------------------------- | ------ | ------------------------------------------------------------------------------ |
| lendborrowId<mark style="color:red;">\*</mark> | String | Refer to the [Lend and Borrow ID](/ids/lending-protocol-ids) page for details. |
| asset<mark style="color:red;">\*</mark>        | String | Token address to exit isolation mode.                                          |
| from<mark style="color:red;">\*</mark>         | String | Sender public address.                                                         |
| gas                                            | String | Maximum gas to be approved for the transaction.                                |
| rpc                                            | String | Remote procedural call URL.                                                    |

{% tabs %}
{% tab title="Sample Request" %}

```json
{
    "lendborrowId": "1200",
    "asset": "0x9f8f72aa9304c8b593d555f12ef6589cc3a579a2",
    "from": "0xf7426829DBAAc7F26b48C49A04a93fc4f75cfa41",
    "gas": "429000"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
  "status": 200,
  "msg": "success",
  "data": {
    "chainId": "1",
    "from": "0xf7426829DBAAc7F26b48C49A04a93fc4f75cfa41",
    "to": "0x87870Bca3F3fD6335C3F4ce8392D69350B4fA4E2",
    "value": "0",
    "gas": "429000",
    "data": "0x5a3b74b90000000000000000000000009f8f72aa9304c8b593d555f12ef6589cc3a579a20000000000000000000000000000000000000000000000000000000000000000",
    "referenceId": "8581446eb9aa421dabf15ce8b55cb25d"
  }
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
**With gasPriority:**

```json
{
    "lendborrowId": "1200",
    "asset": "0x9f8f72aa9304c8b593d555f12ef6589cc3a579a2",
    "from": "0xf7426829DBAAc7F26b48C49A04a93fc4f75cfa41",
    "gas": "429000",
    "gasPriority": "high"
}
```

{% endtab %}

{% tab title="Sample Response" %}
**With gasPriority:**

```json
{
  "status": 200,
  "msg": "success",
  "data": {
    "chainId": "1",
    "from": "0xf7426829DBAAc7F26b48C49A04a93fc4f75cfa41",
    "to": "0x87870Bca3F3fD6335C3F4ce8392D69350B4fA4E2",
    "value": "0",
    "gas": "429000",
    "data": "0x5a3b74b90000000000000000000000009f8f72aa9304c8b593d555f12ef6589cc3a579a20000000000000000000000000000000000000000000000000000000000000000",
    "referenceId": "8581446eb9aa421dabf15ce8b55cb25d"
  }
```

{% endtab %}
{% endtabs %}


# Compound V2

### /getpool

Get the lend and borrow APY for the given pool from the given protocol.

<mark style="color:blue;">`GET`</mark> `https://api.expand.network/lendborrow/getpool`

#### Query Parameters

| Name                                           | Type   | Description                                                                              |
| ---------------------------------------------- | ------ | ---------------------------------------------------------------------------------------- |
| rpc                                            | String | Remote procedural call URL.                                                              |
| lendBorrowId<mark style="color:red;">\*</mark> | String | Refer to the [Lend and Borrow ID](broken://pages/XoZTiUkj66UXxqYVd64n) page for details. |
| asset<mark style="color:red;">\*</mark>        | String | Token's symbol to get the details of.                                                    |

{% tabs %}
{% tab title="Sample Request" %}

```url
https://api.expand.network/lendborrow/getpool?lendborrowId=1100&asset=usdc
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "tokenAddress": "0x39aa39c021dfbae8fac545936693ac917d5e7563",
        "poolAddress": "0x3d9819210a31b4961b30ef54be2aed79b9c9cd3b",
        "variableBorrowRate": "0",
        "stableBorrowRate": "15.317159470377728",
        "variableSupplyRate": "0",
        "stableSupplyRate": "5.076408388218856",
        "ltv": "85.5",
        "availableLiquidity": "27577473960885",
        "reserveSize": "18717058035630"
    }
}
```

{% endtab %}
{% endtabs %}

### /getpools

Get the list of supply and borrow APYs of the mentioned assets.

<mark style="color:blue;">`GET`</mark> `https://api.expand.network/lendborrow/getpools`

#### Query Parameters

| Name                                           | Type   | Description                                                                          |
| ---------------------------------------------- | ------ | ------------------------------------------------------------------------------------ |
| lendBorrowId<mark style="color:red;">\*</mark> | String | Refer to the [lend borrow Id](broken://pages/XoZTiUkj66UXxqYVd64n) page for details. |
| assets<mark style="color:red;">\*</mark>       | String | Comma-separated values of token address.                                             |

{% tabs %}
{% tab title="Sample Request" %}

```url
https://api.expand.network/lendborrow/getpools?lendborrowId=1100&assets=USDT,usDC,rep
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
  "status": 200,
  "msg": "success",
  "data": {
    "USDC": {
      "tokenAddress": "0x39aa39c021dfbae8fac545936693ac917d5e7563",
      "poolAddress": "0x3d9819210a31b4961b30ef54be2aed79b9c9cd3b",
      "variableBorrowRate": "0",
      "stableBorrowRate": "15.317159470377728",
      "variableSupplyRate": "0",
      "stableSupplyRate": "5.076408388218856",
      "ltv": "85.5",
      "availableLiquidity": "27577473960885",
      "reserveSize": "18717058035630"
    },
    "REP": {
      "tokenAddress": "0x158079ee67fce2f58472a96584a73c7ab9ac95c1",
      "poolAddress": "0x3d9819210a31b4961b30ef54be2aed79b9c9cd3b",
      "variableBorrowRate": "0",
      "stableBorrowRate": "4.560470927786797",
      "variableSupplyRate": "0",
      "stableSupplyRate": "0",
      "ltv": "0",
      "availableLiquidity": "1014353018766752581455",
      "reserveSize": "3549421684597720326"
    },
    "USDT": {
      "tokenAddress": "0xf650c3d88d12db855b8bf7d11be6c55a4e07dcc9",
      "poolAddress": "0x3d9819210a31b4961b30ef54be2aed79b9c9cd3b",
      "variableBorrowRate": "0",
      "stableBorrowRate": "13.938973764802665",
      "variableSupplyRate": "0",
      "stableSupplyRate": "10.934276001927245",
      "ltv": "0",
      "availableLiquidity": "31414050451046",
      "reserveSize": "4507835539299"
    }
  }
}
```

{% endtab %}
{% endtabs %}

### /getuseraccountdata

Get the repay, borrow, withdraw amount and health factor  details for the given user.

<mark style="color:blue;">`GET`</mark> `https://api.expand.network/lendborrow/getuseraccountdata`

#### Query Parameters

| Name                                           | Type   | Description                                                                          |
| ---------------------------------------------- | ------ | ------------------------------------------------------------------------------------ |
| rpc                                            | String | Remote procedural call URL.                                                          |
| lendBorrowId<mark style="color:red;">\*</mark> | String | Refer to the [lend borrow Id](broken://pages/XoZTiUkj66UXxqYVd64n) page for details. |
| asset<mark style="color:red;">\*</mark>        | String | Token's symbol to get detail of.                                                     |
| address<mark style="color:red;">\*</mark>      | String | Public address of sender.                                                            |

{% tabs %}
{% tab title="Sample Request" %}

```
https://api.expand.network/lendborrow/getuseraccountdata?address=0x6Fb447Ae94F5180254D436A693907a1f57696900&lendborrowId=1100&asset=DAI
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "tokenAddress": "0x5d3a536e4d6dbd6114cc1ead35777bab948e3643",
        "repayAmount": "0",
        "borrowAmount": "3977431061236148758",
        "withdrawAmount": "1052289347511965358",
        "healthFactor": "0"
    }
}
```

{% endtab %}
{% endtabs %}

### /getuserpositions

Retrieves the lending and borrowing positions of a user, including details such as token balances and collateral usage status.

<mark style="color:blue;">`GET`</mark> `https://api.expand.network/lendborrow/getuserpositions`

#### Query Parameters

| Name                                           | Type   | Description                                                                          |
| ---------------------------------------------- | ------ | ------------------------------------------------------------------------------------ |
| rpc                                            | String | Remote procedural call URL.                                                          |
| address<mark style="color:red;">\*</mark>      | String | Public address of sender.                                                            |
| lendBorrowId<mark style="color:red;">\*</mark> | String | Refer to the [lend borrow Id](broken://pages/XoZTiUkj66UXxqYVd64n) page for details. |

{% tabs %}
{% tab title="Sample Request" %}

```url
https://api.expand.network/lendborrow/getuserpositions?address=0x6Fb447Ae94F5180254D436A693907a1f57696900&lendborrowId=1100
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": [
        {
            "cToken": "0x5d3a536E4D6DbD6114cc1Ead35777bAB948E3643",
            "underlyingAsset": "0x6B175474E89094C44Da98b954EedeAC495271d0F",
            "scaledCTokenBalance": "4504491746",
            "usageAsCollateralEnabledOnUser": true
        },
        {
            "cToken": "0x4Ddc2D193948926D02f9B1fE9e1daa0718270ED5",
            "underlyingAsset": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
            "scaledCTokenBalance": "4980469",
            "usageAsCollateralEnabledOnUser": true
        },
        {
            "cToken": "0xf650C3d88D12dB855b8bf7D11Be6C55A4e07dCC9",
            "underlyingAsset": "0xdAC17F958D2ee523a2206206994597C13D831ec7",
            "scaledCTokenBalance": "0",
            "usageAsCollateralEnabledOnUser": true
        },
        {
            "cToken": "0xFAce851a4921ce59e912d19329929CE6da6EB0c7",
            "underlyingAsset": "0x514910771AF9Ca656af840dff83E8264EcF986CA",
            "scaledCTokenBalance": "59526195",
            "usageAsCollateralEnabledOnUser": true
        }
    ]
}
```

{% endtab %}
{% endtabs %}

### /entermarketstatus

Checks whether the user approved before depositing.

<mark style="color:blue;">`GET`</mark> `https://api.expand.network/lendborrow/entermarketstatus`

#### Query Parameters

| Name                                           | Type   | Description                                                                              |
| ---------------------------------------------- | ------ | ---------------------------------------------------------------------------------------- |
| lendBorrowId<mark style="color:red;">\*</mark> | String | Refer to the [Lend and Borrow ID](broken://pages/XoZTiUkj66UXxqYVd64n) page for details. |
| rpc                                            | String | Remote procedural call URL.                                                              |
| account<mark style="color:red;">\*</mark>      | String | Public address of the user.                                                              |

{% tabs %}
{% tab title="Sample Request" %}

```url
https://api.expand.network/lendborrow/entermarketstatus?account=0x6Fb447Ae94F5180254D436A693907a1f57696900&lendborrowId=1100
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "enterMarketStatus": [
            "0x20572e4c090f15667cF7378e16FaD2eA0e2f3EfF",
            "0x822397d9a55d0fefd20F5c4bCaB33C5F65bd28Eb",
            "0xCEC4a43eBB02f9B80916F1c718338169d6d5C1F0"
        ]
    }
}
```

{% endtab %}
{% endtabs %}

### /entermarket

Compound needs the user to approve before they can start deposit.

<mark style="color:green;">`POST`</mark> `https://api.expand.network/lendborrow/entermarket`

#### Query Parameters

| Name                                           | Type   | Description                                                                              |
| ---------------------------------------------- | ------ | ---------------------------------------------------------------------------------------- |
| rpc                                            | String | Remote procedural call URL.                                                              |
| lendBorrowId<mark style="color:red;">\*</mark> | String | Refer to the [Lend and Borrow ID](broken://pages/XoZTiUkj66UXxqYVd64n) page for details. |
| asset<mark style="color:red;">\*</mark>        | String | Token's symbol to get the details of.                                                    |
| from<mark style="color:red;">\*</mark>         | String | Sender public address.                                                                   |
| gas                                            | String | Maximum gas to be approved for the transaction.                                          |

{% tabs %}
{% tab title="Sample Request" %}

```json
{
    "lendborrowId": "1100",
    "asset": "DAI",
    "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
    "gas": "298800"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
        "to": "0x3d9819210a31b4961b30ef54be2aed79b9c9cd3b",
        "value": "0",
        "gas": "298800",
        "data": "0xc2998238000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000010000000000000000000000005d3a536e4d6dbd6114cc1ead35777bab948e3643",
        "referenceId": "b2975c19e2594dcabbf193d25b4b6100"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
**With gasPriority:**

```json
{
    "lendborrowId": "1100",
    "asset": "DAI",
    "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
    "gas": "298800",
    "gasPriority": "medium"
}
```

{% endtab %}

{% tab title="Sample Response" %}
**With gasPriority:**

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
        "to": "0x3d9819210a31b4961b30ef54be2aed79b9c9cd3b",
        "value": "0",
        "gas": "298800",
        "data": "0xc2998238000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000010000000000000000000000005d3a536e4d6dbd6114cc1ead35777bab948e3643",
        "gasPrice": "4124373646",
        "referenceId": "d3596cbd688b452fba6aa0185a948869"
    }
}
```

{% endtab %}
{% endtabs %}

### /borrow

Trigger the withdraw transaction from the given protocol.

<mark style="color:green;">`POST`</mark> `https://api.expand.network/lendborrow/borrow`

#### Request Body

| Name                                           | Type   | Description                                                                              |
| ---------------------------------------------- | ------ | ---------------------------------------------------------------------------------------- |
| lendBorrowId<mark style="color:red;">\*</mark> | String | Refer to the [Lend and Borrow ID](broken://pages/XoZTiUkj66UXxqYVd64n) page for details. |
| asset<mark style="color:red;">\*</mark>        | String | Token's symbol to borrow.                                                                |
| amount<mark style="color:red;">\*</mark>       | String | Number of tokens to be borrowed.                                                         |
| from<mark style="color:red;">\*</mark>         | String | Sender public address.                                                                   |
| gas                                            | String | Maximum gas to be approved for the transaction.                                          |
| rpc                                            | String | Remote procedural call URL.                                                              |
| gasPriority                                    | String | low, medium, or high.                                                                    |

{% tabs %}
{% tab title="Sample Request" %}

```json
{
    "lendborrowId": "1100",
    "asset": "DAI",
    "amount": "100000",
    "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
    "gas": "442020"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
        "to": "0x5d3a536e4d6dbd6114cc1ead35777bab948e3643",
        "value": "0",
        "gas": "442020",
        "data": "0xc5ebeaec00000000000000000000000000000000000000000000000000000000000186a0",
        "referenceId": "bf5abab50f85428b86d08cc1e06bf193"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
**With gasPriority (medium):**

```json
{
    "lendborrowId": "1100",
    "asset": "DAI",
    "amount": "100000000000000",
    "from": "0xfAE7D9854995E28BEB1B1da864ee2A1E2EC17f07",
    "gas": "192020",
    "gasPriority":"medium"
}
```

{% endtab %}

{% tab title="Sample Response" %}
**With gasPriority:**

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0xfAE7D9854995E28BEB1B1da864ee2A1E2EC17f07",
        "to": "0x5d3a536e4d6dbd6114cc1ead35777bab948e3643",
        "value": "0",
        "gas": "192020",
        "data": "0xc5ebeaec00000000000000000000000000000000000000000000000000005af3107a4000",
        "gasPrice": "4050857834",
        "referenceId": "6123347ffa3648a2b81110ab098d0ced"
    }
}
```

{% endtab %}
{% endtabs %}

### /deposit

Trigger the deposit transaction from the given protocol.

<mark style="color:green;">`POST`</mark> `https://api.expand.network/lendborrow/deposit`

#### Request Body

| Name                                           | Type   | Description                                                                              |
| ---------------------------------------------- | ------ | ---------------------------------------------------------------------------------------- |
| lendBorrowId<mark style="color:red;">\*</mark> | String | Refer to the [Lend and Borrow ID](broken://pages/XoZTiUkj66UXxqYVd64n) page for details. |
| asset<mark style="color:red;">\*</mark>        | String | Token's symbol to deposit.                                                               |
| amount<mark style="color:red;">\*</mark>       | String | Number of tokens to be deposited.                                                        |
| from<mark style="color:red;">\*</mark>         | String | Sender public address.                                                                   |
| gas                                            | String | Maximum gas to be approved for the transaction.                                          |
| rpc                                            | String | Remote procedural call URL.                                                              |
| gasPriority                                    | String | low, medium, or high.                                                                    |

{% tabs %}
{% tab title="Sample Request" %}

```json
{
    "lendborrowId": "1100",
    "asset": "DAI",
    "amount": "1000000000000000000",
    "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
    "gas": "192020"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
        "to": "0x5d3a536e4d6dbd6114cc1ead35777bab948e3643",
        "value": "0",
        "gas": "192020",
        "data": "0xa0712d680000000000000000000000000000000000000000000000000de0b6b3a7640000",
        "referenceId": "337e28b9a35e45138e41d38b49d4f957"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
**With gasPriority (medium):**

```json
{
    "lendborrowId": "1100",
    "asset": "DAI",
    "amount": "100000000000000",
    "from": "0xfAE7D9854995E28BEB1B1da864ee2A1E2EC17f07",
    "gas": "192020",
    "gasPriority":"medium"
}
```

{% endtab %}

{% tab title="Sample Response" %}
**With gasPriority:**

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0xfAE7D9854995E28BEB1B1da864ee2A1E2EC17f07",
        "to": "0x5d3a536e4d6dbd6114cc1ead35777bab948e3643",
        "value": "0",
        "gas": "192020",
        "data": "0xa0712d6800000000000000000000000000000000000000000000000000005af3107a4000",
        "gasPrice": "4152465976",
        "referenceId": "e97309d3381e4ac79dd9addc9b58ae50"
    }
}
```

{% endtab %}
{% endtabs %}

### /repay

Trigger the repay transaction from the given protocol.

<mark style="color:green;">`POST`</mark> `https://api.expand.network/lendborrow/repay`

#### Request Body

| Name                                           | Type   | Description                                                                              |
| ---------------------------------------------- | ------ | ---------------------------------------------------------------------------------------- |
| lendBorrowId<mark style="color:red;">\*</mark> | String | Refer to the [Lend and Borrow ID](broken://pages/XoZTiUkj66UXxqYVd64n) page for details. |
| asset<mark style="color:red;">\*</mark>        | String | Token's symbol to be repaid.                                                             |
| amount<mark style="color:red;">\*</mark>       | String | Number of tokens to be repaid.                                                           |
| from<mark style="color:red;">\*</mark>         | String | Sender public address.                                                                   |
| gas                                            | String | Maximum gas to be approved for the transaction.                                          |
| rpc                                            | String | Remote procedural call URL.                                                              |
| gasPriority                                    | String | low, medium, or high.                                                                    |

{% tabs %}
{% tab title="Sample Request" %}

```json
{
    "lendborrowId": "1100",
    "asset": "DAI",
    "amount": "100000",
    "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
    "gas": "152020"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
        "to": "0x5d3a536e4d6dbd6114cc1ead35777bab948e3643",
        "value": "0",
        "gas": "152020",
        "data": "0x0e75270200000000000000000000000000000000000000000000000000000000000186a0",
        "referenceId": "853ac7eba20b4002a739568ac0a362e0"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
**With gasPriority (medium):**

```json
{
    "lendborrowId": "1100",
    "asset": "USDC",
    "amount": "100000000000000",
    "from": "0xfAE7D9854995E28BEB1B1da864ee2A1E2EC17f07",
    "gas": "192020",
    "gasPriority":"medium"
}
```

{% endtab %}

{% tab title="Sample Response" %}
**With gasPriority:**

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0xfAE7D9854995E28BEB1B1da864ee2A1E2EC17f07",
        "to": "0x39aa39c021dfbae8fac545936693ac917d5e7563",
        "value": "0",
        "gas": "192020",
        "data": "0x0e75270200000000000000000000000000000000000000000000000000005af3107a4000",
        "gasPrice": "3952066622",
        "referenceId": "57030a6f5aa84526a1081543fe566e0c"
    }
}
```

{% endtab %}
{% endtabs %}

### /withdraw

Trigger the withdraw transaction from the given protocol.

<mark style="color:green;">`POST`</mark> `https://api.expand.network/lendborrow/withdraw`

#### Request Body

| Name                                           | Type   | Description                                                                              |
| ---------------------------------------------- | ------ | ---------------------------------------------------------------------------------------- |
| lendBorrowId<mark style="color:red;">\*</mark> | String | Refer to the [Lend and Borrow ID](broken://pages/XoZTiUkj66UXxqYVd64n) page for details. |
| asset<mark style="color:red;">\*</mark>        | String | Token's symbol to withdraw.                                                              |
| amount<mark style="color:red;">\*</mark>       | String | Number of tokens to withdraw.                                                            |
| from<mark style="color:red;">\*</mark>         | String | Sender public address.                                                                   |
| gas                                            | String | Maximum gas to be approved for the transaction.                                          |
| rpc                                            | String | Remote procedural call URL.                                                              |
| gasPriority                                    | String | low, medium, or high.                                                                    |

{% tabs %}
{% tab title="Sample Request" %}

```json
{
    "lendborrowId": "1100",
    "asset": "DAI",
    "amount": "1000000000000000000",
    "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
    "gas": "312020"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
        "to": "0x5d3a536e4d6dbd6114cc1ead35777bab948e3643",
        "value": "0",
        "gas": "312020",
        "data": "0x852a12e30000000000000000000000000000000000000000000000000de0b6b3a7640000",
        "referenceId": "b6e17376297348ebbe4e82fd5429b267"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
**With gasPriority (medium):**

```json
{
    "lendborrowId": "1100",
    "asset": "DAI",
    "amount": "100000000000",
    "from": "0xfAE7D9854995E28BEB1B1da864ee2A1E2EC17f07",
    "gas": "192020",
    "gasPriority":"medium"
}
```

{% endtab %}

{% tab title="Sample Response" %}
**With gasPriority:**

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0xfAE7D9854995E28BEB1B1da864ee2A1E2EC17f07",
        "to": "0x5d3a536e4d6dbd6114cc1ead35777bab948e3643",
        "value": "0",
        "gas": "192020",
        "data": "0x852a12e3000000000000000000000000000000000000000000000000000000174876e800",
        "gasPrice": "4091632147",
        "referenceId": "512d96edebab41b692a408d508c96ffc"
    }
}
```

{% endtab %}
{% endtabs %}

### /exitmarket

Trigger the exit market transaction for the given protocol

<mark style="color:green;">`POST`</mark> `https://api.expand.network/lendborrow/exitmarket`

#### Request Body

| Name                                           | Type   | Description                                                                              |
| ---------------------------------------------- | ------ | ---------------------------------------------------------------------------------------- |
| rpc                                            | String | Remote procedural call URL.                                                              |
| lendBorrowId<mark style="color:red;">\*</mark> | String | Refer to the [Lend and Borrow ID](broken://pages/XoZTiUkj66UXxqYVd64n) page for details. |
| asset<mark style="color:red;">\*</mark>        | String | Token's symbol.                                                                          |
| gas                                            | String | Maximum gas to be approved for the transaction.                                          |
| from<mark style="color:red;">\*</mark>         | String | Sender's public address.                                                                 |
| gasPriority                                    | String | low, medium, or high.                                                                    |

{% tabs %}
{% tab title="Sample Request" %}

```json
{
    "lendborrowId": "1100",
    "asset": "dai",
    "from": "0x6Fb447Ae94F5180254D436A693907a1f57696900",
    "gas": "40000"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x6Fb447Ae94F5180254D436A693907a1f57696900",
        "to": "0x3d9819210a31b4961b30ef54be2aed79b9c9cd3b",
        "value": "0",
        "gas": "40000",
        "data": "0xede4edd00000000000000000000000005d3a536e4d6dbd6114cc1ead35777bab948e3643",
        "referenceId": "2a7d6bd372b14b20b4d854daa01487b3"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
**With gasPriority (medium):**

```json
{
    "lendborrowId": "1100",
    "asset": "DAI",
    "from": "0xfAE7D9854995E28BEB1B1da864ee2A1E2EC17f07",
    "gas": "40000",
    "gasPriority":"medium"
}
```

{% endtab %}

{% tab title="Sample Response" %}
**With gasPriority:**

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0xfAE7D9854995E28BEB1B1da864ee2A1E2EC17f07",
        "to": "0x3d9819210a31b4961b30ef54be2aed79b9c9cd3b",
        "value": "0",
        "gas": "40000",
        "data": "0xede4edd00000000000000000000000005d3a536e4d6dbd6114cc1ead35777bab948e3643",
        "gasPrice": "4248417967",
        "referenceId": "8d28cea2f5c84704831bfbcbeba4cedb"
    }
}
```

{% endtab %}
{% endtabs %}

### Following is the list of supported tokens :&#x20;

<details>

<summary>Token List - Mainnet</summary>

* AAVE
* BAT
* COMP
* DAI
* ETH
* FEI
* LINK
* MKR
* REP
* SAI
* SUSHI
* TUSD
* UNI
* USDC
* USDP
* USDT
* WBTC
* WBTC2
* YFI
* ZRX

</details>

<details>

<summary>Token List - Testnet</summary>

* DAI
* USDC

</details>


# Compound V3

### /getassetinfo

Get the details of a specified asset like liquidation and borrow collateral factor, index and the price feed address.

<mark style="color:blue;">`GET`</mark> `https://api.expand.network/lendborrow/getassetinfo`

#### Query Parameters

<table><thead><tr><th width="227">Name</th><th width="137">Type</th><th>Description</th></tr></thead><tbody><tr><td>rpc</td><td>String</td><td>Remote procedural call URL.</td></tr><tr><td>lendBorrowId<mark style="color:red;">*</mark></td><td>String</td><td>Refer to the <a href="/pages/XoZTiUkj66UXxqYVd64n">Lend and Borrow ID</a> page for details. <a href="/pages/wqsymN72bfy1IfytHTwJ"> </a></td></tr><tr><td>asset<mark style="color:red;">*</mark></td><td>String</td><td>Token's address to get the details of.</td></tr><tr><td>market</td><td>String</td><td><p>USDC, WETH standard choice.</p><p>by default it is USDC.</p></td></tr></tbody></table>

{% tabs %}
{% tab title="Sample Request" %}

```url
https://api.expand.network/lendborrow/getassetinfo?lendborrowId=1300&asset=0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "index": "3",
        "priceFeedAddress": "0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984",
        "borrowCollateralFactor": "75",
        "liquidateCollateralFactor": "81",
        "liquidationFactor": "15"
    }
}
```

{% endtab %}
{% endtabs %}

### /getpool

Get the lend and borrow APY for the given pool from the given protocol.

<mark style="color:blue;">`GET`</mark> `https://api.expand.network/lendborrow/getpool`

#### Query Parameters

<table><thead><tr><th width="226">Name</th><th width="150">Type</th><th>Description</th></tr></thead><tbody><tr><td>rpc</td><td>String</td><td>Remote procedural call URL.</td></tr><tr><td>lendBorrowId<mark style="color:red;">*</mark></td><td>String</td><td>Refer to the <a href="/pages/XoZTiUkj66UXxqYVd64n">Lend and Borrow ID</a> page for details. </td></tr><tr><td>market</td><td>String</td><td><p>USDC, WETH standard choice.</p><p>by default it is USDC.</p></td></tr><tr><td>asset</td><td>String</td><td>The asset value equals the market value, with USDC as default if market value is not provided; users can pass 'asset' as both key and value.</td></tr></tbody></table>

{% tabs %}
{% tab title="Sample Request" %}

```url
https://api.expand.network/lendborrow/getpool?address=0x6Fb447Ae94F5180254D436A693907a1f57696900&lendborrowId=1300&asset=asset
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "tokenAddress": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
        "poolAddress": "0xc3d688B66703497DAA19211EEdff47f25384cdc3",
        "stableBorrowRate": "0",
        "variableBorrowRate": "8.549999999999999",
        "stableSupplyRate": "0",
        "variableSupplyRate": "7.24",
        "ltv": [
            {
                "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2": "82.5"
            },
            {
                "0xc00e94Cb662C3520282E6f5717214004A7f26888": "65"
            },
            {
                "0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599": "80"
            },
            {
                "0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984": "73"
            },
            {
                "0x514910771AF9Ca656af840dff83E8264EcF986CA": "79"
            }
        ],
        "availableLiquidity": "61190692434383",
        "reserveSize": "7980795578011"
    }
}
```

{% endtab %}
{% endtabs %}

### /getuseraccountdata

Get the repay, borrow, withdraw amount and health factor details for the given user.

<mark style="color:blue;">`GET`</mark> `https://api.expand.network/lendborrow/getuseraccountdata`

#### Query Parameters

<table><thead><tr><th width="221">Name</th><th width="163">Type</th><th>Description</th></tr></thead><tbody><tr><td>rpc</td><td>String</td><td>Remote procedural call URL.</td></tr><tr><td>lendborrowId<mark style="color:red;">*</mark></td><td>String</td><td>Refer to the <a href="/pages/XoZTiUkj66UXxqYVd64n">Lend and Borrow ID</a> page for details.</td></tr><tr><td>address<mark style="color:red;">*</mark></td><td>String</td><td>Public address of sender.</td></tr><tr><td>market</td><td>String</td><td><p>USDC, WETH standard choice.</p><p>by default it is USDC.</p></td></tr><tr><td>asset</td><td>String</td><td>The asset value equals the market value, with USDC as default if market value is not provided; users can pass 'asset' as both key and value.</td></tr></tbody></table>

{% tabs %}
{% tab title="Sample Request" %}

```
https://api.expand.network/lendborrow/getuseraccountdata?address=0x6Fb447Ae94F5180254D436A693907a1f57696900&market=WETH&lendborrowId=1300&asset=WETH
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "tokenAddress": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
        "repayAmount": "0",
        "borrowAmount": "0",
        "healthFactor": "0"
    }
}
```

{% endtab %}
{% endtabs %}

### /getuserpositions

Retrieves the lending and borrowing positions of a user, including details such as token balances and collateral usage status.

<mark style="color:blue;">`GET`</mark> `https://api.expand.network/lendborrow/getuserpositions`

#### Query Parameters

| Name                                           | Type   | Description                                                                              |
| ---------------------------------------------- | ------ | ---------------------------------------------------------------------------------------- |
| rpc                                            | String | Remote procedural call URL.                                                              |
| address<mark style="color:red;">\*</mark>      | String | Public address of sender.                                                                |
| lendborrowId<mark style="color:red;">\*</mark> | String | Refer to the [Lend and Borrow ID](broken://pages/XoZTiUkj66UXxqYVd64n) page for details. |

{% tabs %}
{% tab title="Sample Request" %}

```url
https://api.expand.network/lendborrow/getuserpositions?address=0x5Fb0A30278C1b6Ee4681A48F2A23bd84c2762835&lendborrowId=1300
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": [
        {
            "tokenAddress": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
            "baseTokenBalance": "1526195483",
            "underlyingAsset": [
                "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
                "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
                "0xc00e94Cb662C3520282E6f5717214004A7f26888",
                "0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599",
                "0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984",
                "0x514910771AF9Ca656af840dff83E8264EcF986CA"
            ],
            "usageAsCollateralEnabledOnUser": true
        }
    ]
}
```

{% endtab %}
{% endtabs %}

### /getclaimedrewards

Get the rewards claimed by the specified account on the protocol.

<mark style="color:blue;">`GET`</mark> `https://api.expand.network/lendborrow/getclaimedrewards`

#### Query Parameters

<table><thead><tr><th width="207">Name</th><th width="194">Type</th><th>Description</th></tr></thead><tbody><tr><td>rpc</td><td>String</td><td>Remote procedural call URL.</td></tr><tr><td>lendBorrowId<mark style="color:red;">*</mark></td><td>String</td><td>Refer to the <a href="/pages/XoZTiUkj66UXxqYVd64n">Lend and Borrow ID</a> page for details. </td></tr><tr><td>address<mark style="color:red;">*</mark></td><td>String</td><td>Public address of sender.</td></tr><tr><td>market</td><td>String</td><td><p>USDC, WETH standard choice.</p><p>by default it is USDC.</p></td></tr></tbody></table>

{% tabs %}
{% tab title="Sample Request" %}

```url
https://api.expand.network/lendborrow/getclaimedrewards?lendborrowId=1300&address=0xEa70DBf1F353C53254Cf7d76B0791c03E258f629
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "rewardAccured": "249597000000000000"
    }
}
```

{% endtab %}
{% endtabs %}

### /getmaxamounts

Get the max withdrawable amount and the max borrowable amount of the base token for a given asset in the protocol for the specified account.

<mark style="color:blue;">`GET`</mark> `https://api.expand.network/lendborrow/getmaxamounts`

#### Query Parameters

<table><thead><tr><th width="207">Name</th><th width="194">Type</th><th>Description</th></tr></thead><tbody><tr><td>rpc</td><td>String</td><td>Remote procedural call URL.</td></tr><tr><td>lendBorrowId<mark style="color:red;">*</mark></td><td>String</td><td>Refer to the <a href="/pages/XoZTiUkj66UXxqYVd64n">Lend and Borrow ID</a> page for details. </td></tr><tr><td>address<mark style="color:red;">*</mark></td><td>String</td><td>Public address of sender.</td></tr><tr><td>asset<mark style="color:red;">*</mark></td><td>String</td><td>Token's address to get the details of.</td></tr><tr><td>market</td><td>String</td><td><p>USDC, WETH standard choice.</p><p>by default it is USDC.</p></td></tr></tbody></table>

{% tabs %}
{% tab title="Sample Request" %}

```url
https://api.expand.network/lendborrow/getmaxamounts?address=0xEa70DBf1F353C53254Cf7d76B0791c03E258f629&lendborrowId=1300&asset=0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599&market=USDC
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "maxWithdrawalAmount": "0.0183",
        "maxBorrowableAmount": "52.9195"
    }
}
```

{% endtab %}
{% endtabs %}

### /getgovernordata

Get the protocol and governor-related data for a market.

<mark style="color:blue;">`GET`</mark> `https://api.expand.network/lendborrow/getgovernordata`

#### Query Parameters

<table><thead><tr><th width="207">Name</th><th width="194">Type</th><th>Description</th></tr></thead><tbody><tr><td>rpc</td><td>String</td><td>Remote procedural call URL.</td></tr><tr><td>lendBorrowId<mark style="color:red;">*</mark></td><td>String</td><td>Refer to the <a href="/pages/XoZTiUkj66UXxqYVd64n">Lend and Borrow ID</a> page for details. </td></tr><tr><td>market</td><td>String</td><td><p>USDC, WETH standard choice.</p><p>by default it is USDC.</p></td></tr></tbody></table>

{% tabs %}
{% tab title="Sample Request" %}

```url
https://api.expand.network/lendborrow/getgovernordata?lendborrowId=1300&market=WETH
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "isSupplyPaused": false,
        "isTransferPaused": false,
        "isWithdrawPaused": false,
        "isAbsorbPaused": false,
        "isBuyPaused": false,
        "cometConfiguration": {
            "governor": "0x6d903f6003cca6255D85CcA4D3B5E5146dC33925",
            "pauseGuardian": "0xbbf3f1421D886E9b2c5D716B5192aC998af2012c",
            "baseToken": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
            "baseTokenPriceFeed": "0xD72ac1bCE9177CFe7aEb5d0516a38c88a64cE0AB",
            "extensionDelegate": "0xe2C1F54aFF6b38fD9DF7a69F22cB5fd3ba09F030",
            "supplyKink": "900000000000000000",
            "supplyPerYearInterestRateSlopeLow": "23000000000000000",
            "supplyPerYearInterestRateSlopeHigh": "1000000000000000000",
            "supplyPerYearInterestRateBase": "0",
            "borrowKink": "900000000000000000",
            "borrowPerYearInterestRateSlopeLow": "30000000000000000",
            "borrowPerYearInterestRateSlopeHigh": "1000000000000000000",
            "borrowPerYearInterestRateBase": "5000000000000000",
            "storeFrontPriceFactor": "1000000000000000000",
            "trackingIndexScale": "1000000000000000",
            "baseTrackingSupplySpeed": "810185185185",
            "baseTrackingBorrowSpeed": "0",
            "baseMinForRewards": "1000000000000000000000",
            "baseBorrowMin": "100000000000000000",
            "targetReserves": "5000000000000000000000",
            "assetConfigs": [
                [
                    "0xBe9895146f7AF43049ca1c1AE358B0541Ea49704",
                    "0x23a982b74a3236A5F2297856d4391B2edBBB5549",
                    "18",
                    "900000000000000000",
                    "930000000000000000",
                    "975000000000000000",
                    "40000000000000000000000"
                ],
                [
                    "0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0",
                    "0x4F67e4d9BD67eFa28236013288737D39AeF48e79",
                    "18",
                    "900000000000000000",
                    "930000000000000000",
                    "975000000000000000",
                    "64500000000000000000000"
                ],
                [
                    "0xae78736Cd615f374D3085123A210448E74Fc6393",
                    "0xA3A7fB5963D1d69B95EEC4957f77678EF073Ba08",
                    "18",
                    "900000000000000000",
                    "930000000000000000",
                    "975000000000000000",
                    "30000000000000000000000"
                ]
            ]
        }
    }
}
```

{% endtab %}
{% endtabs %}

### /allow

Trigger a transaction to allow or disallow the specified address to withdraw or transfer on behalf of the sender’s address.

<mark style="color:green;">`POST`</mark> `https://api.expand.network/lendborrow/allow`

#### Body Parameters

<table><thead><tr><th width="207">Name</th><th width="194">Type</th><th>Description</th></tr></thead><tbody><tr><td>rpc</td><td>String</td><td>Remote procedural call URL.</td></tr><tr><td>lendBorrowId<mark style="color:red;">*</mark></td><td>String</td><td>Refer to the <a href="/pages/XoZTiUkj66UXxqYVd64n">Lend and Borrow ID</a> page for details. </td></tr><tr><td>manager<mark style="color:red;">*</mark></td><td>String</td><td>The address of the account that can have manager permissions over another.</td></tr><tr><td>isAllowed<mark style="color:red;">*</mark></td><td>Boolean</td><td>"true" to add the manager and "false" to remove the manager. By default, true</td></tr><tr><td>from<mark style="color:red;">*</mark></td><td>String</td><td>Public address of sender</td></tr><tr><td>gas</td><td>String</td><td>Maximum gas to be approved for the transaction.</td></tr><tr><td>gasPriority</td><td>String</td><td>low, medium or high.</td></tr><tr><td>market</td><td>String</td><td><p>USDC, WETH standard choice.</p><p>by default it is USDC.</p></td></tr></tbody></table>

{% tabs %}
{% tab title="Sample Request" %}

```json
{
    "lendborrowId": "1300",
    "isAllowed": "true",
    "manager": "0xc3d688B66703497DAA19211EEdff47f25384cdc3",
    "from": "0x6Fb447Ae94F5180254D436A693907a1f57696900",
    "gas": "50000"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x6Fb447Ae94F5180254D436A693907a1f57696900",
        "to": "0xc3d688B66703497DAA19211EEdff47f25384cdc3",
        "value": "0",
        "gas": "50000",
        "data": "0x110496e5000000000000000000000000c3d688b66703497daa19211eedff47f25384cdc30000000000000000000000000000000000000000000000000000000000000001",
        "referenceId": "3b91be949bb74695979ab5dcaf494f98"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
**With gasPriority:**

```json
{
    "lendborrowId": "1300",
    "isAllowed": "true",
    "manager": "0xc3d688B66703497DAA19211EEdff47f25384cdc3",
    "from": "0x6Fb447Ae94F5180254D436A693907a1f57696900",
    "gas": "50000",
    "gasPriority": "high"
}
```

{% endtab %}

{% tab title="Sampe Response" %}
**With gasPriority:**

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x6Fb447Ae94F5180254D436A693907a1f57696900",
        "to": "0xc3d688B66703497DAA19211EEdff47f25384cdc3",
        "value": "0",
        "gas": "50000",
        "data": "0x110496e5000000000000000000000000c3d688b66703497daa19211eedff47f25384cdc30000000000000000000000000000000000000000000000000000000000000001",
        "gasPrice": "6031100976",
        "referenceId": "3c6681a1a224494481c9b2189782a997"
    }
}
```

{% endtab %}
{% endtabs %}

### /borrow

Trigger a transaction to borrow the base token from the specified market.

<mark style="color:green;">`POST`</mark> `https://api.expand.network/lendborrow/borrow`

#### Body Parameters

<table><thead><tr><th width="207">Name</th><th width="194">Type</th><th>Description</th></tr></thead><tbody><tr><td>rpc</td><td>String</td><td>Remote procedural call URL.</td></tr><tr><td>lendBorrowId<mark style="color:red;">*</mark></td><td>String</td><td>Refer to the <a href="/pages/XoZTiUkj66UXxqYVd64n">Lend and Borrow ID</a> page for details. </td></tr><tr><td>amount<mark style="color:red;">*</mark></td><td>String</td><td>Number of tokens to be borrowed.</td></tr><tr><td>from<mark style="color:red;">*</mark></td><td>String</td><td>Public address of sender.</td></tr><tr><td>gas</td><td>String</td><td>Maximum gas to be approved for the transaction.</td></tr><tr><td>gasPriority</td><td>String</td><td>low, medium or high.</td></tr><tr><td>market</td><td>String</td><td><p>USDC, WETH standard choice.</p><p>by default it is USDC.</p></td></tr></tbody></table>

{% tabs %}
{% tab title="Sample Request" %}

```json
{
    "lendborrowId": "1300",
    "amount": "1000000",
    "from": "0x6Fb447Ae94F5180254D436A693907a1f57696900",
    "gas": "50000"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x6Fb447Ae94F5180254D436A693907a1f57696900",
        "to": "0xc3d688B66703497DAA19211EEdff47f25384cdc3",
        "value": "0",
        "gas": "50000",
        "data": "0xf3fef3a3000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb4800000000000000000000000000000000000000000000000000000000000f4240",
        "referenceId": "0b8ce656657c4021813c5a828619d779"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
**With gasPriority:**

```json
{
    "lendborrowId": "1300",
    "amount": "1000000",
    "from": "0x6Fb447Ae94F5180254D436A693907a1f57696900",
    "gas": "50000",
    "gasPriority": "high"
}
```

{% endtab %}

{% tab title="Sample Response" %}
**With gasPriority:**

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x6Fb447Ae94F5180254D436A693907a1f57696900",
        "to": "0xc3d688B66703497DAA19211EEdff47f25384cdc3",
        "value": "0",
        "gas": "50000",
        "data": "0xf3fef3a3000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb4800000000000000000000000000000000000000000000000000000000000f4240",
        "gasPrice": "6745897410",
        "referenceId": "70e80092e1d2435e9430f87d93a37293"
    }
}
```

{% endtab %}
{% endtabs %}

### /claimrewards

Trigger a transaction to allow an account to claim rewards from the protocol.

<mark style="color:green;">`POST`</mark> `https://api.expand.network/lendborrow/claimrewards`

#### Body Parameters

<table><thead><tr><th width="207">Name</th><th width="194">Type</th><th>Description</th></tr></thead><tbody><tr><td>rpc</td><td>String</td><td>Remote procedural call URL.</td></tr><tr><td>lendBorrowId<mark style="color:red;">*</mark></td><td>String</td><td>Refer to the <a href="/pages/XoZTiUkj66UXxqYVd64n">Lend and Borrow ID</a> page for details. </td></tr><tr><td>from<mark style="color:red;">*</mark></td><td>String</td><td>Public address of sender</td></tr><tr><td>gas</td><td>String</td><td>Maximum gas to be approved for the transaction.</td></tr><tr><td>gasPriority</td><td>String</td><td>low, medium or high.</td></tr><tr><td>market</td><td>String</td><td><p>USDC, WETH standard choice.</p><p>by default it is USDC.</p></td></tr></tbody></table>

{% tabs %}
{% tab title="Sample Request" %}

```json
{
    "lendborrowId": "1300",
    "from": "0x6Fb447Ae94F5180254D436A693907a1f57696900",
    "gas": "5300000"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x6Fb447Ae94F5180254D436A693907a1f57696900",
        "to": "0x1B0e765F6224C21223AeA2af16c1C46E38885a40",
        "value": "0",
        "gas": "5300000",
        "data": "0xb7034f7e000000000000000000000000c3d688b66703497daa19211eedff47f25384cdc30000000000000000000000006fb447ae94f5180254d436a693907a1f576969000000000000000000000000000000000000000000000000000000000000000001",
        "referenceId": "782d9a6145af46d8b80a844263817758"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
**With gasPriority:**

```json
{
    "lendborrowId": "1300",
    "from": "0x6Fb447Ae94F5180254D436A693907a1f57696900",
    "gas": "5300000",
    "gasPriority": "low"
}
```

{% endtab %}

{% tab title="Sample Response" %}
**With gasPriority:**

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x6Fb447Ae94F5180254D436A693907a1f57696900",
        "to": "0x1B0e765F6224C21223AeA2af16c1C46E38885a40",
        "value": "0",
        "gas": "5300000",
        "data": "0xb7034f7e000000000000000000000000c3d688b66703497daa19211eedff47f25384cdc30000000000000000000000006fb447ae94f5180254d436a693907a1f576969000000000000000000000000000000000000000000000000000000000000000001",
        "gasPrice": "4491448445",
        "referenceId": "8280c4c76b3245449312bc56d97a0b34"
    }
}
```

{% endtab %}
{% endtabs %}

### /deposit

Trigger a transaction to deposit an asset to the protocol and update it to the account’s balance.

<mark style="color:green;">`POST`</mark> `https://api.expand.network/lendborrow/deposit`

#### Body Parameters

<table><thead><tr><th width="207">Name</th><th width="194">Type</th><th>Description</th></tr></thead><tbody><tr><td>rpc</td><td>String</td><td>Remote procedural call URL.</td></tr><tr><td>lendBorrowId<mark style="color:red;">*</mark></td><td>String</td><td>Refer to the <a href="/pages/XoZTiUkj66UXxqYVd64n">Lend and Borrow ID</a> page for details. </td></tr><tr><td>from<mark style="color:red;">*</mark></td><td>String</td><td>Public address of sender.</td></tr><tr><td>asset<mark style="color:red;">*</mark></td><td>String</td><td>Token's address to get the details of.</td></tr><tr><td>amount<mark style="color:red;">*</mark></td><td>String</td><td>Number of tokens to be borrowed.</td></tr><tr><td>to</td><td>String</td><td>Public address of receiver.</td></tr><tr><td>gas</td><td>String</td><td>Maximum gas to be approved for the transaction.</td></tr><tr><td>gasPriority</td><td>String</td><td>low, medium or high.</td></tr><tr><td>market</td><td>String</td><td><p>USDC, WETH standard choice.</p><p>by default it is USDC.</p></td></tr></tbody></table>

{% tabs %}
{% tab title="Sample Request" %}

```json
{
    "lendborrowId": "1300",
    "amount": "1000000",
    "from": "0x6Fb447Ae94F5180254D436A693907a1f57696900",
    "gas": "50000",
    "asset": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x6Fb447Ae94F5180254D436A693907a1f57696900",
        "to": "0xa397a8C2086C554B531c02E29f3291c9704B00c7",
        "value": "1000000",
        "gas": "50000",
        "data": "0x555029a6000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000001414354494f4e5f535550504c595f4e41544956455f544f4b454e000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000060000000000000000000000000c3d688b66703497daa19211eedff47f25384cdc30000000000000000000000006fb447ae94f5180254d436a693907a1f5769690000000000000000000000000000000000000000000000000000000000000f4240",
        "referenceId": "5104c6aa8a3b4cd5bb60282effd96b65"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
**With gasPriority:**

```json
{
    "lendborrowId": "1300",
    "amount": "1000000",
    "from": "0x6Fb447Ae94F5180254D436A693907a1f57696900",
    "gas": "50000",
    "gasPriority": "high",
    "asset": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"
}
```

{% endtab %}

{% tab title="Sample Response" %}
**With gasPriority:**

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x6Fb447Ae94F5180254D436A693907a1f57696900",
        "to": "0xa397a8C2086C554B531c02E29f3291c9704B00c7",
        "value": "1000000",
        "gas": "50000",
        "data": "0x555029a6000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000001414354494f4e5f535550504c595f4e41544956455f544f4b454e000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000060000000000000000000000000c3d688b66703497daa19211eedff47f25384cdc30000000000000000000000006fb447ae94f5180254d436a693907a1f5769690000000000000000000000000000000000000000000000000000000000000f4240",
        "gasPrice": "6690028286",
        "referenceId": "c437034e580f4a35bd5ac3a4acf50afc"
    }
}
```

{% endtab %}
{% endtabs %}

### /repay

Trigger a transaction to repay the borrowed amount of the base asset to the protocol.

<mark style="color:green;">`POST`</mark> `https://api.expand.network/lendborrow/repay`

#### Body Parameters

<table><thead><tr><th width="207">Name</th><th width="194">Type</th><th>Description</th></tr></thead><tbody><tr><td>rpc</td><td>String</td><td>Remote procedural call URL.</td></tr><tr><td>lendBorrowId<mark style="color:red;">*</mark></td><td>String</td><td>Refer to the <a href="/pages/XoZTiUkj66UXxqYVd64n">Lend and Borrow ID</a> page for details. </td></tr><tr><td>from<mark style="color:red;">*</mark></td><td>String</td><td>Public address of sender.</td></tr><tr><td>amount<mark style="color:red;">*</mark></td><td>String</td><td>Number of tokens to be repayed.</td></tr><tr><td>gas</td><td>String</td><td>Maximum gas to be approved for the transaction.</td></tr><tr><td>gasPriority</td><td>String</td><td>low, medium or high.</td></tr><tr><td>market</td><td>String</td><td><p>USDC, WETH standard choice.</p><p>by default it is USDC.</p></td></tr></tbody></table>

{% tabs %}
{% tab title="Sample Request" %}

```json
{
    "lendborrowId": "1300",
    "amount": "1000000",
    "from": "0x6Fb447Ae94F5180254D436A693907a1f57696900",
    "gas": "50000",
    "market": "USDC"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x6Fb447Ae94F5180254D436A693907a1f57696900",
        "to": "0xc3d688B66703497DAA19211EEdff47f25384cdc3",
        "value": "0",
        "gas": "50000",
        "data": "0xf2b9fdb8000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb4800000000000000000000000000000000000000000000000000000000000f4240",
        "referenceId": "fb90cb588722430db43be6b9dd0ef9d6"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
**With gasPriority:**

```json
{
    "lendborrowId": "1300",
    "amount": "1000000",
    "from": "0x6Fb447Ae94F5180254D436A693907a1f57696900",
    "gas": "50000",
    "gasPriority": "high",
    "market": "USDC"
}
```

{% endtab %}

{% tab title="Sample Response" %}
**With gasPriority:**

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x6Fb447Ae94F5180254D436A693907a1f57696900",
        "to": "0xc3d688B66703497DAA19211EEdff47f25384cdc3",
        "value": "0",
        "gas": "50000",
        "data": "0xf2b9fdb8000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb4800000000000000000000000000000000000000000000000000000000000f4240",
        "gasPrice": "7307789555",
        "referenceId": "0f35c1586ed64a30b960eb764683a2f6"
    }
}
```

{% endtab %}
{% endtabs %}

### /transfer

Trigger a transaction to transfer an asset, within the protocol, to another account.

<mark style="color:green;">`POST`</mark> `https://api.expand.network/lendborrow/transfer`

#### Body Parameters

<table><thead><tr><th width="207">Name</th><th width="194">Type</th><th>Description</th></tr></thead><tbody><tr><td>rpc</td><td>String</td><td>Remote procedural call URL.</td></tr><tr><td>lendBorrowId<mark style="color:red;">*</mark></td><td>String</td><td>Refer to the <a href="/pages/XoZTiUkj66UXxqYVd64n">Lend and Borrow ID</a> page for details. </td></tr><tr><td>from<mark style="color:red;">*</mark></td><td>String</td><td>Public address of sender.</td></tr><tr><td>asset<mark style="color:red;">*</mark></td><td>String</td><td>Address of token to be transferred.</td></tr><tr><td>to<mark style="color:red;">*</mark></td><td>String</td><td>Public address of receiver.</td></tr><tr><td>amount<mark style="color:red;">*</mark></td><td>String</td><td>Number of tokens to be repayed.</td></tr><tr><td>gas</td><td>String</td><td>Maximum gas to be approved for the transaction.</td></tr><tr><td>gasPriority</td><td>String</td><td>low, medium or high.</td></tr><tr><td>market</td><td>String</td><td><p>USDC, WETH standard choice.</p><p>by default it is USDC.</p></td></tr></tbody></table>

{% tabs %}
{% tab title="Sample Request" %}

```json
{
    "lendborrowId": "1300",
    "amount": "1000000",
    "from": "0x6Fb447Ae94F5180254D436A693907a1f57696900",
    "gas": "50000",
    "to": "0x6Fb447Ae94F5180254D436A693907a1f57696900"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x6Fb447Ae94F5180254D436A693907a1f57696900",
        "to": "0xc3d688B66703497DAA19211EEdff47f25384cdc3",
        "value": "0",
        "gas": "50000",
        "data": "0xa9059cbb0000000000000000000000006fb447ae94f5180254d436a693907a1f5769690000000000000000000000000000000000000000000000000000000000000f4240",
        "referenceId": "327ae3106cf149dd98cd060db515a4ef"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
**With gasPriority:**

```json
{
    "lendborrowId": "1300",
    "amount": "1000000",
    "from": "0x6Fb447Ae94F5180254D436A693907a1f57696900",
    "gas": "50000",
    "gasPriority": "high",
    "to": "0x6Fb447Ae94F5180254D436A693907a1f57696900"
}
```

{% endtab %}

{% tab title="Sample Response" %}
**With gasPriority:**

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x6Fb447Ae94F5180254D436A693907a1f57696900",
        "to": "0xc3d688B66703497DAA19211EEdff47f25384cdc3",
        "value": "0",
        "gas": "50000",
        "data": "0xa9059cbb0000000000000000000000006fb447ae94f5180254d436a693907a1f5769690000000000000000000000000000000000000000000000000000000000000f4240",
        "gasPrice": "7490076791",
        "referenceId": "c2e002083b7f4089ab8011d056a3e411"
    }
}
```

{% endtab %}
{% endtabs %}

### /withdraw

Trigger the withdrawal transaction from the given protocol.

<mark style="color:green;">`POST`</mark> `https://api.expand.network/lendborrow/withdraw`

#### Body Parameters

<table><thead><tr><th width="207">Name</th><th width="194">Type</th><th>Description</th></tr></thead><tbody><tr><td>rpc</td><td>String</td><td>Remote procedural call URL.</td></tr><tr><td>lendBorrowId<mark style="color:red;">*</mark></td><td>String</td><td>Refer to the <a href="/pages/XoZTiUkj66UXxqYVd64n">Lend and Borrow ID</a> page for details. </td></tr><tr><td>from<mark style="color:red;">*</mark></td><td>String</td><td>Public address of sender.</td></tr><tr><td>asset<mark style="color:red;">*</mark></td><td>String</td><td>Address of token to be transferred.</td></tr><tr><td>to</td><td>String</td><td>Public address of receiver.</td></tr><tr><td>amount<mark style="color:red;">*</mark></td><td>String</td><td>Number of tokens to withdraw.</td></tr><tr><td>gas</td><td>String</td><td>Maximum gas to be approved for the transaction.</td></tr><tr><td>gasPriority</td><td>String</td><td>low, medium or high.</td></tr><tr><td>market</td><td>String</td><td><p>USDC, WETH standard choice.</p><p>by default it is USDC.</p></td></tr></tbody></table>

{% tabs %}
{% tab title="Sample Request" %}

```json
{
    "lendborrowId": "1300",
    "amount": "1000000",
    "from": "0x6Fb447Ae94F5180254D436A693907a1f57696900",
    "gas": "50000",
    "asset": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x6Fb447Ae94F5180254D436A693907a1f57696900",
        "to": "0xa397a8C2086C554B531c02E29f3291c9704B00c7",
        "value": "0",
        "gas": "50000",
        "data": "0x555029a6000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000001414354494f4e5f57495448445241575f4e41544956455f544f4b454e00000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000060000000000000000000000000c3d688b66703497daa19211eedff47f25384cdc30000000000000000000000006fb447ae94f5180254d436a693907a1f5769690000000000000000000000000000000000000000000000000000000000000f4240",
        "referenceId": "4a044a15bfe24ce1b47de1a9704a3539"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
**With gasPriority:**

```json
{
    "lendborrowId": "1300",
    "amount": "1000000",
    "from": "0x6Fb447Ae94F5180254D436A693907a1f57696900",
    "gas": "50000",
    "gasPriority": "high",
    "asset": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"
}
```

{% endtab %}

{% tab title="Sample Response" %}
**With gasPriority:**

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x6Fb447Ae94F5180254D436A693907a1f57696900",
        "to": "0xa397a8C2086C554B531c02E29f3291c9704B00c7",
        "value": "0",
        "gas": "50000",
        "data": "0x555029a6000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000001414354494f4e5f57495448445241575f4e41544956455f544f4b454e00000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000060000000000000000000000000c3d688b66703497daa19211eedff47f25384cdc30000000000000000000000006fb447ae94f5180254d436a693907a1f5769690000000000000000000000000000000000000000000000000000000000000f4240",
        "gasPrice": "7996150754",
        "referenceId": "ce1d399841c44214a9aaf86496ba085c"
    }
}
```

{% endtab %}
{% endtabs %}

### /bundleactions

Trigger a transaction, to pass an array of action codes and calldatas that are executed, one by one, in a single transaction.

<mark style="color:green;">`POST`</mark> `https://api.expand.network/lendborrow/bundleactions`

#### Body Parameters

<table><thead><tr><th width="207">Name</th><th width="194">Type</th><th>Description</th></tr></thead><tbody><tr><td>rpc</td><td>String</td><td>Remote procedural call URL.</td></tr><tr><td>lendBorrowId<mark style="color:red;">*</mark></td><td>String</td><td>Refer to the <a href="/pages/XoZTiUkj66UXxqYVd64n">Lend and Borrow ID</a> page for details. </td></tr><tr><td>actions<mark style="color:red;">*</mark></td><td>Array</td><td>An array of strings that correspond to the actions. Refer <a href="#details-for-actions-and-related-data">here</a> for details.</td></tr><tr><td>data<mark style="color:red;">*</mark></td><td>Array</td><td>An array of calldatas for each action to be called in the invoke transaction. Refer <a href="#action-and-data-details">here</a> for details.</td></tr><tr><td>from<mark style="color:red;">*</mark></td><td>String</td><td>Public address of sender.</td></tr><tr><td>gas</td><td>String</td><td>Maximum gas to be approved for the transaction.</td></tr><tr><td>gasPriority</td><td>String</td><td>low, medium or high.</td></tr><tr><td>market</td><td>String</td><td><p>USDC, WETH standard choice.</p><p>by default it is USDC.</p></td></tr></tbody></table>

<details>

<summary>Details for Actions and related data.</summary>

### Actions

{% code lineNumbers="true" %}

```javascript
"ACTION_SUPPLY_ASSET"; // The action for supplying an asset to Comet
"ACTION_SUPPLY_NATIVE_TOKEN"; // The action for supplying a native asset (e.g. ETH on Ethereum mainnet) to Comet
"ACTION_TRANSFER_ASSET"; // The action for transferring an asset within Comet
"ACTION_WITHDRAW_ASSET"; // The action for withdrawing an asset from Comet
"ACTION_WITHDRAW_NATIVE_TOKEN"; // The action for withdrawing a native asset from Comet
"ACTION_CLAIM_REWARD"; // The action for claiming rewards from the Comet rewards contract
"ACTION_SUPPLY_STETH"; // The action for supplying STETH to Comet
"ACTION_WITHDRAW_STETH"; // The action for withdrawing STETH from Comet
```

{% endcode %}

### Data

* **Supply Asset, Withdraw Asset, Transfer Asset**
  * `comet`: The address of the Comet instance to interact with.
  * `to`: The destination address, within or external to the protocol.
  * `asset`: The address of the ERC-20 asset contract.
  * `amount`: The amount of the asset as an unsigned integer scaled up by 10 to the “decimals” integer in the asset’s contract.<br>
* **Supply Native, Withdraw Native** (native chain token like ETH on Ethereum Mainnet), **Supply STETH, Withdraw STETH**
  * `comet`: The address of the Comet instance to interact with.
  * `to`: The destination address, within or external to the protocol.
  * `amount`: The amount of the native token as an unsigned integer scaled up by 10 to the number of decimals of precision of the native EVM token.<br>
* **Claim Reward**
  * `comet`: The address of the Comet instance to interact with.
  * `src`: The account in which to claim rewards.
  * `to`: The account in which to transfer the claimed rewards.
  * `shouldAccure`: If true, the protocol will account for the rewards owed to the account as of the current block before transferring. Otherwise, false.

</details>

{% tabs %}
{% tab title="Sample Request" %}

```json
{
    "lendborrowId": "1300",
    "market": "USDC",
    "actions": [
        "ACTION_SUPPLY_NATIVE_TOKEN",
        "ACTION_SUPPLY_NATIVE_TOKEN"
    ],
    "data": [
        [
            "0xc3d688B66703497DAA19211EEdff47f25384cdc3",
            "0x6Fb447Ae94F5180254D436A693907a1f57696900",
            "00000100000000"
        ],
        [
            "0xc3d688B66703497DAA19211EEdff47f25384cdc3",
            "0x6Fb447Ae94F5180254D436A693907a1f57696900",
            "23000000"
        ]
    ],
    "gas": "500000",
    "from": "0x6Fb447Ae94F5180254D436A693907a1f57696900"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x6Fb447Ae94F5180254D436A693907a1f57696900",
        "to": "0xa397a8C2086C554B531c02E29f3291c9704B00c7",
        "value": "123000000",
        "gas": "500000",
        "data": "0x555029a6000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000002414354494f4e5f535550504c595f4e41544956455f544f4b454e000000000000414354494f4e5f535550504c595f4e41544956455f544f4b454e0000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000060000000000000000000000000c3d688b66703497daa19211eedff47f25384cdc30000000000000000000000006fb447ae94f5180254d436a693907a1f576969000000000000000000000000000000000000000000000000000000000005f5e1000000000000000000000000000000000000000000000000000000000000000060000000000000000000000000c3d688b66703497daa19211eedff47f25384cdc30000000000000000000000006fb447ae94f5180254d436a693907a1f5769690000000000000000000000000000000000000000000000000000000000015ef3c0",
        "referenceId": "4fab595487904774a12c2555d9ba02a1"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
**With gasPriority:**

```json
{
    "lendborrowId": "1300",
    "market": "USDC",
    "actions": [
        "ACTION_SUPPLY_NATIVE_TOKEN",
        "ACTION_SUPPLY_NATIVE_TOKEN"
    ],
    "data": [
        [
            "0xc3d688B66703497DAA19211EEdff47f25384cdc3",
            "0x6Fb447Ae94F5180254D436A693907a1f57696900",
            "00000100000000"
        ],
        [
            "0xc3d688B66703497DAA19211EEdff47f25384cdc3",
            "0x6Fb447Ae94F5180254D436A693907a1f57696900",
            "23000000"
        ]
    ],
    "gas": "500000",
    "gasPriority": "medium",
    "from": "0x6Fb447Ae94F5180254D436A693907a1f57696900"
}
```

{% endtab %}

{% tab title="Sample Response" %}
**With gasPriority:**

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x6Fb447Ae94F5180254D436A693907a1f57696900",
        "to": "0xa397a8C2086C554B531c02E29f3291c9704B00c7",
        "value": "123000000",
        "gas": "500000",
        "data": "0x555029a6000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000002414354494f4e5f535550504c595f4e41544956455f544f4b454e000000000000414354494f4e5f535550504c595f4e41544956455f544f4b454e0000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000060000000000000000000000000c3d688b66703497daa19211eedff47f25384cdc30000000000000000000000006fb447ae94f5180254d436a693907a1f576969000000000000000000000000000000000000000000000000000000000005f5e1000000000000000000000000000000000000000000000000000000000000000060000000000000000000000000c3d688b66703497daa19211eedff47f25384cdc30000000000000000000000006fb447ae94f5180254d436a693907a1f5769690000000000000000000000000000000000000000000000000000000000015ef3c0",
        "gasPrice": "6578394242",
        "referenceId": "1aa0ff5c351841ae9b7db2529ab94a06"
    }
}
```

{% endtab %}
{% endtabs %}


# Morpho

### /getpool

Get the lend and borrow APY for the given pool from the given protocol.

<mark style="color:blue;">`GET`</mark> `https://api.expand.network/lendborrow/getpool`

#### Query Parameters

| Name                                           | Type   | Description                                                                                                                  |
| ---------------------------------------------- | ------ | ---------------------------------------------------------------------------------------------------------------------------- |
| rpc                                            | String | Remote procedural call URL.                                                                                                  |
| lendBorrowId<mark style="color:red;">\*</mark> | String | Refer to the [Lend and Borrow ID](broken://pages/XoZTiUkj66UXxqYVd64n) page for details.                                     |
| type<mark style="color:red;">\*</mark>         | String | <p>Type of the pool in Morpho. Type can be <code>market</code> or <code>vault</code>.<br>By Default, <code>market</code></p> |
| marketId                                       | String | The market Id of any market in Morpho                                                                                        |
| vaultAddress                                   | String | The vaultAddress of any vault in Morpho.                                                                                     |

{% tabs %}
{% tab title="Sample Request" %}

```url
https://api.expand.network/lendborrow/getpool?type=vault&lendborrowId=1400&vaultAddress=0x73e65DBD630f90604062f6E02fAb9138e713edD9
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "vaultAddress": "0x73e65DBD630f90604062f6E02fAb9138e713edD9",
        "tokenAddress": "0x6B175474E89094C44Da98b954EedeAC495271d0F",
        "vaultName": "Spark DAI Vault",
        "vaultSymbol": "spDAI",
        "supplyRate": "6.06",
        "availableLiquidity": "325518806949113057381630581",
        "reserveSize": "289872316816044079545447980"
    }
}
```

{% endtab %}
{% endtabs %}

### /getpools

Get the list of supply and borrow APYs of the mentioned assets. If only the lendBorrowId is provided, the API will return information for all markets and vaults.

<mark style="color:blue;">`GET`</mark> `https://api.expand.network/lendborrow/getpools`

#### Query Parameters

| Name                                           | Type   | Description                                                                          |
| ---------------------------------------------- | ------ | ------------------------------------------------------------------------------------ |
| lendBorrowId<mark style="color:red;">\*</mark> | String | Refer to the [lend borrow Id](broken://pages/XoZTiUkj66UXxqYVd64n) page for details. |
| markets                                        | String | Comma-separated values of market Ids.                                                |
| vaults                                         | String | Comma-separated values of vault addresses.                                           |

{% tabs %}
{% tab title="Sample Request" %}

```url
https://api.expand.network/lendborrow/getpools?markets=0x64d65c9a2d91c36d56fbc42d69e979335320169b3df63bf92789e2c8883fcc64&lendborrowId=1400&vaults=0x73e65DBD630f90604062f6E02fAb9138e713edD9
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "markets": [
            {
                "marketId": "0x64d65c9a2d91c36d56fbc42d69e979335320169b3df63bf92789e2c8883fcc64",
                "collateralToken": "0xcbB7C0000aB88B473b1f5aFd9ef808440eed33Bf",
                "irm": "0x870aC11D48B15DB9a138Cf899d20F13F79Ba00BC",
                "lltv": "86.00",
                "loanToken": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
                "oracle": "0xA6D6950c9F177F1De7f7757FB33539e3Ec60182a",
                "totalSupplyAssets": "91178314521285",
                "totalSupplyShares": "88057968168916986611",
                "totalBorrowAssets": "71620534801282",
                "totalBorrowShares": "68827873391191546341",
                "supplyRate": "2.90",
                "borrowRate": "3.69"
            }
        ],
        "vaults": [
            {
                "vaultAddress": "0x73e65DBD630f90604062f6E02fAb9138e713edD9",
                "tokenAddress": "0x6B175474E89094C44Da98b954EedeAC495271d0F",
                "vaultName": "Spark DAI Vault",
                "vaultSymbol": "spDAI",
                "supplyRate": "6.06",
                "availableLiquidity": "325519009252834784304726208",
                "reserveSize": "289872316816044079545447980"
            }
        ]
    }
}
```

{% endtab %}
{% endtabs %}

### /getuseraccountdata

Get the repay, borrow, withdraw amount and health factor  details for the given user.

<mark style="color:blue;">`GET`</mark> `https://api.expand.network/lendborrow/getuseraccountdata`

#### Query Parameters

| Name                                           | Type   | Description                                                                          |
| ---------------------------------------------- | ------ | ------------------------------------------------------------------------------------ |
| rpc                                            | String | Remote procedural call URL.                                                          |
| lendBorrowId<mark style="color:red;">\*</mark> | String | Refer to the [lend borrow Id](broken://pages/XoZTiUkj66UXxqYVd64n) page for details. |
| address<mark style="color:red;">\*</mark>      | String | User account address                                                                 |
| marketId<mark style="color:red;">\*</mark>     | String | The market Id of any market in Morpho                                                |

{% tabs %}
{% tab title="Sample Request" %}

```
https://api.expand.network/lendborrow/getuseraccountdata?lendborrowId=1402&address=0x6D41C8D83a68a41A9acE313d171C685874D7898C&marketId=0x3b3769cfca57be2eaed03fcc5299c25691b77781a1e124e7a8d520eb9a7eabb5
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "loanToken": "0x4200000000000000000000000000000000000006",
        "collateralToken": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
        "withdrawAmount": "68248",
        "borrowAmount": "37028344541760",
        "repayAmount": "17226029830095",
        "isHealthy": true,
        "healthFactor": "3149557613096377183"
    }
}
```

{% endtab %}
{% endtabs %}

### /getuserpositions

Retrieves the lending and borrowing positions of a user, including details such as token balances and collateral usage status.

<mark style="color:blue;">`GET`</mark> `https://api.expand.network/lendborrow/getuserpositions`

#### Query Parameters

| Name                                           | Type   | Description                                                                                                                  |
| ---------------------------------------------- | ------ | ---------------------------------------------------------------------------------------------------------------------------- |
| rpc                                            | String | Remote procedural call URL.                                                                                                  |
| address<mark style="color:red;">\*</mark>      | String | Public address of sender.                                                                                                    |
| lendBorrowId<mark style="color:red;">\*</mark> | String | Refer to the [lend borrow Id](broken://pages/XoZTiUkj66UXxqYVd64n) page for details.                                         |
| type<mark style="color:red;">\*</mark>         | String | <p>Type of the pool in Morpho. Type can be <code>market</code> or <code>vault</code>.<br>By Default, <code>market</code></p> |
| marketId                                       | String | The market Id of any market in Morpho                                                                                        |
| vaultAddress                                   | String | The vaultAddress of any vault in Morpho.                                                                                     |

{% tabs %}
{% tab title="Sample Request" %}

```url
https://api.expand.network/lendborrow/getuserpositions?lendborrowId=1402&address=0x8Ec0f66424152134DB6673060449eF4139CaC8Ae&vaultAddress=0x7BfA7C4f149E7415b73bdeDfe609237e29CBF34A&type=vault
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "underlyingAsset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
        "supplyAmount": "294299667",
        "supplyShares": "290465033665393431108"
    }
}
```

{% endtab %}
{% endtabs %}

### /borrow

Trigger the borrow transaction from the given protocol.

<mark style="color:green;">`POST`</mark> `https://api.expand.network/lendborrow/borrow`

#### Request Body

| Name                                           | Type   | Description                                                                              |
| ---------------------------------------------- | ------ | ---------------------------------------------------------------------------------------- |
| lendBorrowId<mark style="color:red;">\*</mark> | String | Refer to the [Lend and Borrow ID](broken://pages/XoZTiUkj66UXxqYVd64n) page for details. |
| amount<mark style="color:red;">\*</mark>       | String | Number of tokens to be borrowed.                                                         |
| from<mark style="color:red;">\*</mark>         | String | Sender public address.                                                                   |
| gas                                            | String | Maximum gas to be approved for the transaction.                                          |
| rpc                                            | String | Remote procedural call URL.                                                              |
| gasPriority                                    | String | low, medium, or high.                                                                    |
| to<mark style="color:red;">\*</mark>           | String | Receiver public address.                                                                 |
| marketId                                       | String | The market Id of any market in Morpho                                                    |

{% tabs %}
{% tab title="Sample Request" %}

```json
{
    "lendborrowId": "1402",
    "from": "0x6D41C8D83a68a41A9acE313d171C685874D7898C",
    "to": "0x6D41C8D83a68a41A9acE313d171C685874D7898C",
    "amount": "100000",
    "marketId": "0x3b3769cfca57be2eaed03fcc5299c25691b77781a1e124e7a8d520eb9a7eabb5",
    "gas": "89898"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "8453",
        "from": "0x6D41C8D83a68a41A9acE313d171C685874D7898C",
        "to": "0xBBBBBbbBBb9cC5e90e3b3Af64bdAF62C37EEFFCb",
        "value": "0",
        "data": "0x50d8cd4b0000000000000000000000004200000000000000000000000000000000000006000000000000000000000000833589fcd6edb6e08f4c7c32d4f71b54bda02913000000000000000000000000d09048c8b568dbf5f189302bea26c9edabfc485800000000000000000000000046415998764c29ab2a25cbea6254146d50d226870000000000000000000000000000000000000000000000000bef55718ad6000000000000000000000000000000000000000000000000000000000000000186a000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006d41c8d83a68a41a9ace313d171c685874d7898c0000000000000000000000006d41c8d83a68a41a9ace313d171c685874d7898c",
        "gas": "130190",
        "estimationCheck": true,
        "referenceId": "69ef6fe0f90c48a99a8fa3d09810de5b"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
**With gasPriority (medium):**

```json
{
    "lendborrowId": "1402",
    "from": "0x6D41C8D83a68a41A9acE313d171C685874D7898C",
    "to": "0x6D41C8D83a68a41A9acE313d171C685874D7898C",
    "amount": "100000",
    "marketId": "0x3b3769cfca57be2eaed03fcc5299c25691b77781a1e124e7a8d520eb9a7eabb5",
    "gas": "89898",
    "gasPriority":"medium"
}
```

{% endtab %}

{% tab title="Sample Response" %}
**With gasPriority:**

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "8453",
        "from": "0x6D41C8D83a68a41A9acE313d171C685874D7898C",
        "to": "0xBBBBBbbBBb9cC5e90e3b3Af64bdAF62C37EEFFCb",
        "value": "0",
        "data": "0x50d8cd4b0000000000000000000000004200000000000000000000000000000000000006000000000000000000000000833589fcd6edb6e08f4c7c32d4f71b54bda02913000000000000000000000000d09048c8b568dbf5f189302bea26c9edabfc485800000000000000000000000046415998764c29ab2a25cbea6254146d50d226870000000000000000000000000000000000000000000000000bef55718ad6000000000000000000000000000000000000000000000000000000000000000186a000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006d41c8d83a68a41a9ace313d171c685874d7898c0000000000000000000000006d41c8d83a68a41a9ace313d171c685874d7898c",
        "gas": "130190",
        "gasPrice": "2862245",
        "estimationCheck": true,
        "referenceId": "e10a5491c0914c4fb1bac32247291533"
    }
}
```

{% endtab %}
{% endtabs %}

### /deposit

Trigger the deposit transaction from the given protocol.

<mark style="color:green;">`POST`</mark> `https://api.expand.network/lendborrow/deposit`

#### Request Body

| Name                                           | Type    | Description                                                                                                                                                                                                     |
| ---------------------------------------------- | ------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| lendBorrowId<mark style="color:red;">\*</mark> | String  | Refer to the [Lend and Borrow ID](broken://pages/XoZTiUkj66UXxqYVd64n) page for details.                                                                                                                        |
| type<mark style="color:red;">\*</mark>         | String  | <p>Type of the pool in Morpho. Type can be <code>market</code> or <code>vault</code>.<br>By Default, <code>market</code></p>                                                                                    |
| amount<mark style="color:red;">\*</mark>       | String  | Number of tokens to be deposited.                                                                                                                                                                               |
| from<mark style="color:red;">\*</mark>         | String  | Sender public address.                                                                                                                                                                                          |
| gas                                            | String  | Maximum gas to be approved for the transaction.                                                                                                                                                                 |
| rpc                                            | String  | Remote procedural call URL.                                                                                                                                                                                     |
| gasPriority                                    | String  | low, medium, or high.                                                                                                                                                                                           |
| marketId                                       | String  | <p>The market Id of any market in Morpho.<br>Note - When <code>Type</code> param is market, <code>marketId</code> is required</p>                                                                               |
| vaultAddress                                   | String  | <p>The vaultAddress of any vault in Morpho.<br>Note - When <code>Type</code> param is vault, <code>vaultAddress</code> is required</p>                                                                          |
| onBehalfOf                                     | String  | <p>Public address of the user on whose behalf the deposit action will be executed.<br>Note - When <code>Type</code> param is market, <code>onBehalfOf</code> is applicable</p>                                  |
| collateral                                     | Boolean | <p>if <kbd><code>true,</code></kbd>token will be as collateral to borrow loan asset.<br>By Default, <kbd>true</kbd><br>Note - When <code>Type</code> param is market, <code>collateral</code> is applicable</p> |

{% tabs %}
{% tab title="Sample Request" %}

```json
{
    "lendborrowId": "1402",
    "from": "0x6D41C8D83a68a41A9acE313d171C685874D7898C",
    "amount": "100000000",
    "marketId": "0x3b3769cfca57be2eaed03fcc5299c25691b77781a1e124e7a8d520eb9a7eabb5",
    "onBehalfOf": "0x6D41C8D83a68a41A9acE313d171C685874D7898C",
    "gas": "89898"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "8453",
        "from": "0x6D41C8D83a68a41A9acE313d171C685874D7898C",
        "to": "0xBBBBBbbBBb9cC5e90e3b3Af64bdAF62C37EEFFCb",
        "value": "0",
        "data": "0x238d65790000000000000000000000004200000000000000000000000000000000000006000000000000000000000000833589fcd6edb6e08f4c7c32d4f71b54bda02913000000000000000000000000d09048c8b568dbf5f189302bea26c9edabfc485800000000000000000000000046415998764c29ab2a25cbea6254146d50d226870000000000000000000000000000000000000000000000000bef55718ad600000000000000000000000000000000000000000000000000000000000005f5e1000000000000000000000000006d41c8d83a68a41a9ace313d171c685874d7898c00000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000",
        "gas": "89898",
        "estimationCheck": true,
        "referenceId": "a42f2073ed7b41e78dd33283cd6eac55"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
**With marketId :**

```json
{
    "lendborrowId": "1402",
    "from": "0x6D41C8D83a68a41A9acE313d171C685874D7898C",
    "amount": "100000000",
    "marketId": "0x3b3769cfca57be2eaed03fcc5299c25691b77781a1e124e7a8d520eb9a7eabb5",
    "onBehalfOf": "0x6D41C8D83a68a41A9acE313d171C685874D7898C",
    "gas": "89898"
}
```

{% endtab %}

{% tab title="Sample Response" %}
**With gasPriority:**

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "8453",
        "from": "0x6D41C8D83a68a41A9acE313d171C685874D7898C",
        "to": "0xBBBBBbbBBb9cC5e90e3b3Af64bdAF62C37EEFFCb",
        "value": "0",
        "data": "0x238d65790000000000000000000000004200000000000000000000000000000000000006000000000000000000000000833589fcd6edb6e08f4c7c32d4f71b54bda02913000000000000000000000000d09048c8b568dbf5f189302bea26c9edabfc485800000000000000000000000046415998764c29ab2a25cbea6254146d50d226870000000000000000000000000000000000000000000000000bef55718ad600000000000000000000000000000000000000000000000000000000000005f5e1000000000000000000000000006d41c8d83a68a41a9ace313d171c685874d7898c00000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000",
        "gas": "89898",
        "estimationCheck": true,
        "referenceId": "cb0652e00fb64fbb8207ce318aec8f9a"
    }
}
```

{% endtab %}
{% endtabs %}

### /repay

Trigger the repay transaction from the given protocol.

<mark style="color:green;">`POST`</mark> `https://api.expand.network/lendborrow/repay`

#### Request Body

| Name                                           | Type   | Description                                                                              |
| ---------------------------------------------- | ------ | ---------------------------------------------------------------------------------------- |
| lendBorrowId<mark style="color:red;">\*</mark> | String | Refer to the [Lend and Borrow ID](broken://pages/XoZTiUkj66UXxqYVd64n) page for details. |
| marketId<mark style="color:red;">\*</mark>     | String | The market Id of any market in Morpho.                                                   |
| amount<mark style="color:red;">\*</mark>       | String | Number of tokens to be repaid.                                                           |
| from<mark style="color:red;">\*</mark>         | String | Sender public address.                                                                   |
| gas                                            | String | Maximum gas to be approved for the transaction.                                          |
| rpc                                            | String | Remote procedural call URL.                                                              |
| gasPriority                                    | String | low, medium, or high.                                                                    |
| onBehalfOf                                     | String | Public address of the user on whose behalf the repay action will be executed.            |

{% tabs %}
{% tab title="Sample Request" %}

```json
{
    "lendborrowId": "1402",
    "from": "0x6D41C8D83a68a41A9acE313d171C685874D7898C",
    "amount": "1000000000",
    "marketId": "0x3b3769cfca57be2eaed03fcc5299c25691b77781a1e124e7a8d520eb9a7eabb5",
    "gas": "89898"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "8453",
        "from": "0x6D41C8D83a68a41A9acE313d171C685874D7898C",
        "to": "0xBBBBBbbBBb9cC5e90e3b3Af64bdAF62C37EEFFCb",
        "value": "0",
        "data": "0x20b76e810000000000000000000000004200000000000000000000000000000000000006000000000000000000000000833589fcd6edb6e08f4c7c32d4f71b54bda02913000000000000000000000000d09048c8b568dbf5f189302bea26c9edabfc485800000000000000000000000046415998764c29ab2a25cbea6254146d50d226870000000000000000000000000000000000000000000000000bef55718ad60000000000000000000000000000000000000000000000000000000000003b9aca0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006d41c8d83a68a41a9ace313d171c685874d7898c00000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000000",
        "gas": "90925",
        "estimationCheck": true,
        "referenceId": "95d1630ee5aa4df0b40dc37b126dbb04"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
**With gasPriority (medium):**

```json
{
    "lendborrowId": "1402",
    "from": "0x6D41C8D83a68a41A9acE313d171C685874D7898C",
    "amount": "1000000000",
    "marketId": "0x3b3769cfca57be2eaed03fcc5299c25691b77781a1e124e7a8d520eb9a7eabb5",
    "gas": "89898",
    "gasPriority":"medium"
}
```

{% endtab %}

{% tab title="Sample Response" %}
**With gasPriority:**

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "8453",
        "from": "0x6D41C8D83a68a41A9acE313d171C685874D7898C",
        "to": "0xBBBBBbbBBb9cC5e90e3b3Af64bdAF62C37EEFFCb",
        "value": "0",
        "data": "0x20b76e810000000000000000000000004200000000000000000000000000000000000006000000000000000000000000833589fcd6edb6e08f4c7c32d4f71b54bda02913000000000000000000000000d09048c8b568dbf5f189302bea26c9edabfc485800000000000000000000000046415998764c29ab2a25cbea6254146d50d226870000000000000000000000000000000000000000000000000bef55718ad60000000000000000000000000000000000000000000000000000000000003b9aca0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006d41c8d83a68a41a9ace313d171c685874d7898c00000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000000",
        "gas": "90925",
        "gasPrice": "2851744",
        "estimationCheck": true,
        "referenceId": "f4ca9f37ecfa465ebaf927558e0dcbb5"
    }
}
```

{% endtab %}
{% endtabs %}

### /withdraw

Trigger the withdraw transaction from the given protocol.

<mark style="color:green;">`POST`</mark> `https://api.expand.network/lendborrow/withdraw`

#### Request Body

| Name                                           | Type    | Description                                                                                                                                                                                                     |
| ---------------------------------------------- | ------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| lendBorrowId<mark style="color:red;">\*</mark> | String  | Refer to the [Lend and Borrow ID](broken://pages/XoZTiUkj66UXxqYVd64n) page for details.                                                                                                                        |
| type<mark style="color:red;">\*</mark>         | String  | <p>Type of the pool in Morpho. Type can be <code>market</code> or <code>vault</code>.<br>By Default, <code>market</code></p>                                                                                    |
| amount<mark style="color:red;">\*</mark>       | String  | Number of tokens to withdraw.                                                                                                                                                                                   |
| from<mark style="color:red;">\*</mark>         | String  | Sender public address.                                                                                                                                                                                          |
| gas                                            | String  | Maximum gas to be approved for the transaction.                                                                                                                                                                 |
| rpc                                            | String  | Remote procedural call URL.                                                                                                                                                                                     |
| gasPriority                                    | String  | low, medium, or high.                                                                                                                                                                                           |
| to<mark style="color:red;">\*</mark>           | String  | Receiver public address.                                                                                                                                                                                        |
| onBehalfOf                                     | String  | <p>Public address of the user on whose behalf the deposit action will be executed.<br>Note - When <code>Type</code> param is market, <code>onBehalfOf</code> is applicable</p>                                  |
| collateral                                     | Boolean | <p>if <kbd><code>true,</code></kbd>token will be as collateral to borrow loan asset.<br>By Default, <kbd>true</kbd><br>Note - When <code>Type</code> param is market, <code>collateral</code> is applicable</p> |
| vaultAddress                                   | String  | <p>The vaultAddress of any vault in Morpho.<br>Note - When <code>Type</code> param is vault, <code>vaultAddress</code> is required</p>                                                                          |

{% tabs %}
{% tab title="Sample Request" %}

```json
{
    "lendborrowId": "1402",
    "from": "0x6D41C8D83a68a41A9acE313d171C685874D7898C",
    "to": "0x6D41C8D83a68a41A9acE313d171C685874D7898C",
    "amount": "10000",
    "marketId": "0x3b3769cfca57be2eaed03fcc5299c25691b77781a1e124e7a8d520eb9a7eabb5",
    "gas": "89898"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "8453",
        "from": "0x6D41C8D83a68a41A9acE313d171C685874D7898C",
        "to": "0xBBBBBbbBBb9cC5e90e3b3Af64bdAF62C37EEFFCb",
        "value": "0",
        "data": "0x8720316d0000000000000000000000004200000000000000000000000000000000000006000000000000000000000000833589fcd6edb6e08f4c7c32d4f71b54bda02913000000000000000000000000d09048c8b568dbf5f189302bea26c9edabfc485800000000000000000000000046415998764c29ab2a25cbea6254146d50d226870000000000000000000000000000000000000000000000000bef55718ad6000000000000000000000000000000000000000000000000000000000000000027100000000000000000000000006d41c8d83a68a41a9ace313d171c685874d7898c0000000000000000000000006d41c8d83a68a41a9ace313d171c685874d7898c",
        "gas": "138441",
        "estimationCheck": true,
        "referenceId": "8eec8150896e4fdaa26d4d1a1338d676"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
**With vaultAddress :**

```json
{
    "lendborrowId": "1402",
    "from": "0x6D41C8D83a68a41A9acE313d171C685874D7898C",
    "to": "0x6D41C8D83a68a41A9acE313d171C685874D7898C",
    "amount": "10000",
    "vaultAddress": "0x7BfA7C4f149E7415b73bdeDfe609237e29CBF34A",
    "gas": "89898",
    "type":"vault"
}
```

{% endtab %}

{% tab title="Sample Response" %}
**With gasPriority:**

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "8453",
        "from": "0x6D41C8D83a68a41A9acE313d171C685874D7898C",
        "to": "0x7BfA7C4f149E7415b73bdeDfe609237e29CBF34A",
        "value": "0",
        "data": "0xb460af9400000000000000000000000000000000000000000000000000000000000027100000000000000000000000006d41c8d83a68a41a9ace313d171c685874d7898c0000000000000000000000006d41c8d83a68a41a9ace313d171c685874d7898c",
        "gas": "89898",
        "estimationCheck": true,
        "referenceId": "8f3cd53512dd49548cd5d5528e087b24"
    }
}
```

{% endtab %}
{% endtabs %}


# Yield Aggregators

Provides connectivity across the various **Yield Aggregator protocols.**

Following are the common functions implemented for all the Yield Aggregator protocols:-&#x20;

<table><thead><tr><th width="150">Name</th><th width="150">Type</th><th>Description</th></tr></thead><tbody><tr><td>getbalance</td><td>Read</td><td>Get balance of the user in a given Vault or Pool (harvest finance).</td></tr><tr><td>getvaults</td><td>Read</td><td>Get the number of the vaults along with the respective vault APY.</td></tr><tr><td>depositvault</td><td>Write</td><td>Trigger the deposit transaction for the given vault.</td></tr><tr><td>depositpool</td><td>Write</td><td>Trigger the deposit transaction for the given pool.</td></tr><tr><td>withdrawvault</td><td>Write</td><td>Trigger the withdraw transaction for the given vault.</td></tr><tr><td>withdrawpool</td><td>Write</td><td>Trigger the withdraw transaction for the given pool.</td></tr></tbody></table>


# Yearn Finance V2

### Supported Chains

Available on **Ethereum, Arbitrum, Base** and **Optimism**

### Available Endpoints:

*Click on the endpoint to jump to the section with full details*

* [<mark style="color:blue;">**/getbalance**</mark>](#getbalance)<mark style="color:blue;">`GET`</mark> -Get balance of the user in a given Vault.
* [<mark style="color:blue;">**/getvaults**</mark>](#getvaults)<mark style="color:blue;">`GET`</mark> - Get the number of the vaults along with the respective vault APY.
* [<mark style="color:blue;">**/depositvault**</mark>](#depositvault) <mark style="color:blue;">`GET`</mark> - Trigger the deposit transaction for the given vault.
* [<mark style="color:blue;">**/withdrawvault**</mark>](#withdrawvault) <mark style="color:green;">`POST`</mark> - Trigger the withdraw transaction for the given vault.

### Yield Aggregator IDs

Many endpoints have a parameter where you can provide a lendborrow ID.&#x20;

Below is a list of lendborrow IDs related to Yearn Finance V2. Please see the \[[Yield Aggregator ID](/ids/yield-aggregator-id)]\(/pages/wjJzkCX6itmvHDTZj30m) for a complete Yield Aggregator ID list and more information.

| Yield Aggregator Name | Chain    | Yield Aggregator ID |
| --------------------- | -------- | ------------------- |
| Yearn Finance V2      | Ethereum | 5000                |
| Yearn Finance V2      | Arbitrum | 5001                |
| Yearn Finance V2      | Base     | 5002                |
| Yearn Finance V2      | Optimism | 5003                |

## Endpoint Details

### /getbalance

{% hint style="warning" %}
For **/getbalance**, the user can either pass the vaultAddress or the tokenAddress and the vaultNumber along with the required parameters.
{% endhint %}

#### Get balance of the user in a given Vault.

<mark style="color:blue;">`GET`</mark> `https://api.expand.network/yieldaggregator/getbalance`

#### Query Parameters

| Name                                                | Type   | Description                                                                    |
| --------------------------------------------------- | ------ | ------------------------------------------------------------------------------ |
| rpc                                                 | String | Remote procedural call URL.                                                    |
| address<mark style="color:red;">\*</mark>           | String | Public Address of the owner.                                                   |
| tokenAddress                                        | String | The address of token.                                                          |
| vaultNumber                                         | String | The number of the vault, incase there are multiple vaults.                     |
| yieldAggregatorId<mark style="color:red;">\*</mark> | String | Refer to the [Yield Aggregator ID](/ids/yield-aggregator-id) page for details. |
| vaultAddress                                        | String | The address of the vault.                                                      |

{% tabs %}
{% tab title="Sample Request" %}

#### With tokenAddress:&#x20;

```url
https://api.expand.network/yieldaggregator/getbalance?address=0xC7565379C190014449eE83CF9FD7475206E59f9e&tokenAddress=0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2&yieldAggregatorId=5000
```

#### With VaultAddress:

```url
https://api.expand.network/yieldaggregator/getbalance?address=0x6Fb447Ae94F5180254D436A693907a1f57696900&yieldAggregatorId=5000&vaultAddress=0xa9fE4601811213c340e850ea305481afF02f5b28
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "vaultBalance": "0"
    }
}
```

{% endtab %}
{% endtabs %}

### /getvaults

#### Get the number of the vaults along with the respective vault APY.

<mark style="color:blue;">`GET`</mark> `https://api.expand.network/yieldaggregator/getvaults`

#### Query Parameters

| Name                                                | Type   | Description                                                                    |
| --------------------------------------------------- | ------ | ------------------------------------------------------------------------------ |
| rpc                                                 | String | Remote procedural call URL                                                     |
| yieldAggregatorId<mark style="color:red;">\*</mark> | String | Refer to the [Yield Aggregator ID](/ids/yield-aggregator-id) page for details. |
| tokenAddress                                        | String | The address of token.                                                          |

{% tabs %}
{% tab title="Sample Request" %}

```url
https://api.expand.network/yieldaggregator/getvaults?tokenAddress=0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2&yieldAggregatorId=5000
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "tokenVaults": [
            {
                "vaultName": "WETH yVault",
                "vaultSymbol": "yvWETH",
                "vaultAddress": "0xa9fE4601811213c340e850ea305481afF02f5b28",
                "tokenAddress": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
                "apr": {
                    "netAPR": "0.00",
                    "weeklyAPR": "0.00",
                    "monthlyAPR": "0.00",
                    "inceptionAPR": "0.00",
                    "estAPR": "0.00",
                    "boost": null
                },
                "fee": {
                    "managementfee": "0.00",
                    "performancefee": "0.00"
                },
                "vaultNumber": 0
            },
            {
                "vaultName": "WETH yVault",
                "vaultSymbol": "yvWETH",
                "vaultAddress": "0xa258C4606Ca8206D8aA700cE2143D7db854D168c",
                "tokenAddress": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
                "apr": {
                    "netAPR": "5.06",
                    "weeklyAPR": "6.48",
                    "monthlyAPR": "5.06",
                    "inceptionAPR": "7.54",
                    "estAPR": "5.06",
                    "boost": null
                },
                "fee": {
                    "managementfee": "0.00",
                    "performancefee": "20.00"
                },
                "vaultNumber": 1
            }
        ]
    }
}
```

{% endtab %}
{% endtabs %}

### /depositvault

{% hint style="warning" %}
For **/depositvault**, the user can either pass the tokenAddress or the vaultAddress along with the required parameters.
{% endhint %}

#### Trigger the deposit transaction for the given vault.

<mark style="color:green;">`POST`</mark> `https://api.expand.network/yieldaggregator/depositvault`

#### Request Body

| Name                                                | Type   | Description                                                                    |
| --------------------------------------------------- | ------ | ------------------------------------------------------------------------------ |
| amount<mark style="color:red;">\*</mark>            | String | The amount of token to deposit.                                                |
| tokenAddress                                        | String | The address of the token.                                                      |
| from<mark style="color:red;">\*</mark>              | String | Address of the sender of the token.                                            |
| gas                                                 | String | Maximum gas limit provided by the sender, for the transaction.                 |
| vaultNumber                                         | String | The number of the vault, in case there are multiple vaults.                    |
| vaultAddress                                        | String | The address of the vault.                                                      |
| yieldAggregatorId<mark style="color:red;">\*</mark> | String | Refer to the [Yield Aggregator ID](/ids/yield-aggregator-id) page for details. |
| gasPriority                                         | String | low, medium, or high.                                                          |

{% tabs %}
{% tab title="Sample Request" %}

#### With tokenAddress:

```json
{
    "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
    "tokenAddress": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
    "amount": "500000",
    "vaultNumber": "1",
    "yieldAggregatorId": "5000",
    "gas": "2307200" 
}
```

#### With VaultAddress:

```json
{
    "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
    "vaultAddress":"0xa258C4606Ca8206D8aA700cE2143D7db854D168c",
    "amount": "500000",
    "yieldAggregatorId": "5000",
    "gas": "2307200"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
        "to": "0xa258C4606Ca8206D8aA700cE2143D7db854D168c",
        "value": "0",
        "gas": "2307200",
        "data": "0xb6b55f25000000000000000000000000000000000000000000000000000000000007a120",
        "referenceId": "f99a93a359114de8ba8ae20c2def4dd9"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}

#### With gasPriority (medium)-

#### 1. With tokenAddress:

```json
{
    "from": "0xfAE7D9854995E28BEB1B1da864ee2A1E2EC17f07",
    "tokenAddress": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
    "amount": "10000000000",
    "vaultNumber": "1",
    "yieldAggregatorId": "5000",
    "gas": "2307200",
    "gasPriority":"medium"
}
```

#### 2. With VaultAddress:

```json
{
    "from": "0xfAE7D9854995E28BEB1B1da864ee2A1E2EC17f07",
    "vaultAddress":"0xa258C4606Ca8206D8aA700cE2143D7db854D168c",
    "amount": "500000",
    "yieldAggregatorId": "5000",
    "gas": "2307200",
    "gasPriority":"medium"
}
```

{% endtab %}

{% tab title="Sample Response" %}

#### With gasPriority-

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0xfAE7D9854995E28BEB1B1da864ee2A1E2EC17f07",
        "to": "0xa258C4606Ca8206D8aA700cE2143D7db854D168c",
        "value": "0",
        "gas": "2307200",
        "data": "0xb6b55f2500000000000000000000000000000000000000000000000000000002540be400",
        "gasPrice": "6492084170",
        "referenceId": "ba58ae00a7ba4899a1f1234e2e8f6b05"
    }
}
```

{% endtab %}
{% endtabs %}

### /withdrawvault

{% hint style="danger" %}
For **/withdrawvault**, the user can either pass the tokenAddress or the vaultAddress along with the required parameters.
{% endhint %}

#### Trigger the withdraw transaction for the given vault.

<mark style="color:green;">`POST`</mark> `https://api.expand.network/yieldaggregator/withdrawvault`

#### Request Body

| Name                                                | Type   | Description                                                                    |
| --------------------------------------------------- | ------ | ------------------------------------------------------------------------------ |
| amount<mark style="color:red;">\*</mark>            | String | Amount to be withdrawn.                                                        |
| from<mark style="color:red;">\*</mark>              | String | Address of the withdrawer of the token.                                        |
| gas                                                 | String | Maximum gas limit provided by the sender, for the transaction.                 |
| tokenAddress                                        | String | Address of the token.                                                          |
| vaultNumber                                         | String | The number of the vault, in case there are multiple vaults.                    |
| vaultAddress                                        | String | Address of the vault.                                                          |
| yieldAggregatorId<mark style="color:red;">\*</mark> | String | Refer to the [Yield Aggregator ID](/ids/yield-aggregator-id) page for details. |
| gasPriority                                         | String | low, medium, or high.                                                          |

{% tabs %}
{% tab title="Sample Request" %}

#### With tokenAddress:

```json
{
    "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
    "tokenAddress": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
    "amount": "4881310",
    "gas": "2307200",
    "vaultNumber": "1",
    "yieldAggregatorId": "5000"
}
```

#### With vaultAddress:

```json
{
    "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
    "vaultAddress": "0xa258C4606Ca8206D8aA700cE2143D7db854D168c",
    "amount": "4881310",
    "gas": "2307200",
    "yieldAggregatorId": "5000" 
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
        "to": "0xa258C4606Ca8206D8aA700cE2143D7db854D168c",
        "value": "0",
        "gas": "2307200",
        "data": "0x2e1a7d4d00000000000000000000000000000000000000000000000000000000004a7b9e",
        "referenceId": "4ea029bdeb874f9ba7866684a752875c"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}

#### With gasPriority (high)-

#### 1. With tokenAddress:

```json
{
    "from": "0xfAE7D9854995E28BEB1B1da864ee2A1E2EC17f07",
    "tokenAddress": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
    "amount": "10000000",
    "gas": "2307200",
    "gasPriority":"high",
    "vaultNumber": "1",
    "yieldAggregatorId": "5000"
}
```

#### 2. With VaultAddress:

```json
{
    "from": "0xfAE7D9854995E28BEB1B1da864ee2A1E2EC17f07",
    "vaultAddress": "0xa258C4606Ca8206D8aA700cE2143D7db854D168c",
    "amount": "4881310",
    "gas": "2307200",
    "gasPriority":"high",
    "yieldAggregatorId": "5000"
}
```

{% endtab %}

{% tab title="Sample Response" %}

#### With gasPriority-

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0xfAE7D9854995E28BEB1B1da864ee2A1E2EC17f07",
        "to": "0xa258C4606Ca8206D8aA700cE2143D7db854D168c",
        "value": "0",
        "gas": "2307200",
        "data": "0x2e1a7d4d0000000000000000000000000000000000000000000000000000000000989680",
        "gasPrice": "7967445713",
        "referenceId": "6f60ed42ff354915a4785f4aea4c8b3a"
    }
}
```

{% endtab %}
{% endtabs %}


# Harvest Finance

### /getbalance

{% hint style="warning" %}
For **/getbalance**, the user can either pass the tokenAddress or the vaultAddress and poolAddress along with the required parameters.
{% endhint %}

Get balance of the user in a given Vault or Pool&#x20;

<mark style="color:blue;">`GET`</mark> `https://api.expand.network/yieldaggregator/getbalance`

#### Query Parameters

| Name                                                | Type   | Description                                                                    |
| --------------------------------------------------- | ------ | ------------------------------------------------------------------------------ |
| rpc                                                 | String | Remote procedural call URL                                                     |
| address<mark style="color:red;">\*</mark>           | String | Public Address of the owner.                                                   |
| tokenAddress                                        | String | The address of the token.                                                      |
| poolAddress                                         | String | The address of the pool.                                                       |
| yieldAggregatorId<mark style="color:red;">\*</mark> | String | Refer to the [Yield Aggregator ID](/ids/yield-aggregator-id) page for details. |
| vaultAddress                                        | String | The address of the vault.                                                      |

{% tabs %}
{% tab title="Sample Request" %}

#### With tokenAddress:

```
https://api.expand.network/yieldaggregator/getbalance?address=0xC7565379C190014449eE83CF9FD7475206E59f9e&tokenAddress=0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2&yieldAggregatorId=5100
```

#### With vaultAddress and poolAddress:

```url
https://api.expand.network/yieldaggregator/getbalance?address=0xC7565379C190014449eE83CF9FD7475206E59f9e&vaultAddress=0xFE09e53A81Fe2808bc493ea64319109B5bAa573e&yieldAggregatorId=5100&poolAddress=0x3DA9D911301f8144bdF5c3c67886e5373DCdff8e
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "vaultBalance": "0",
        "poolBalance": "0"
    }
}
```

{% endtab %}
{% endtabs %}

### /getvaults

Get the number of the vaults along with the respective vault APY.

<mark style="color:blue;">`GET`</mark> `https://api.expand.network/yieldaggregator/getvaults`

#### Query Parameters

| Name                                                | Type   | Description                                                                    |
| --------------------------------------------------- | ------ | ------------------------------------------------------------------------------ |
| rpc                                                 | String | Remote procedural call URL                                                     |
| tokenAddress<mark style="color:red;">\*</mark>      | String | The address of the token.                                                      |
| yieldAggregatorId<mark style="color:red;">\*</mark> | String | Refer to the [Yield Aggregator ID](/ids/yield-aggregator-id) page for details. |

{% tabs %}
{% tab title="Sample Request" %}

```url
https://api.expand.network/yieldaggregator/getvaults?tokenAddress=0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2&yieldAggregatorId=5100
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "tokenVaults": [
            {
                "vaultAddress": "0xFE09e53A81Fe2808bc493ea64319109B5bAa573e",
                "apy": "4.08",
                "poolAddress": "0x3DA9D911301f8144bdF5c3c67886e5373DCdff8e"
            }
        ]
    }
}
```

{% endtab %}
{% endtabs %}

### /depositvault

{% hint style="warning" %}
For **/depositvault**, the user can either pass the tokenAddress or the vaultAddress along with the required parameters.
{% endhint %}

Trigger the deposit transaction for the given vault.

<mark style="color:green;">`POST`</mark> `https://api.expand.network/yieldaggregator/depositvault`

#### Request Body

| Name                                                | Type   | Description                                                                    |
| --------------------------------------------------- | ------ | ------------------------------------------------------------------------------ |
| amount<mark style="color:red;">\*</mark>            | String | The amount of token to deposit.                                                |
| tokenAddress                                        | String | The address of the token.                                                      |
| from<mark style="color:red;">\*</mark>              | String | Address of the sender of the token.                                            |
| gas                                                 | String | Maximum gas limit provided by the sender, for the transaction.                 |
| vaultAddress                                        | String | The address of the vault.                                                      |
| yieldAggregatorId<mark style="color:red;">\*</mark> | String | Refer to the [Yield Aggregator ID](/ids/yield-aggregator-id) page for details. |
| gasPriority                                         | String | low, medium, or high.                                                          |

{% tabs %}
{% tab title="Sample Request" %}

#### With tokenAddress:&#x20;

```json
{ 
    "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
    "tokenAddress": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
    "amount": "500000",
    "gas": "2307200",
    "yieldAggregatorId": "5100"
}
```

#### With vaultAddress:

```json
{
    "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
    "vaultAddress": "0xFE09e53A81Fe2808bc493ea64319109B5bAa573e",
    "amount": "500000",
    "gas": "2307200",
    "yieldAggregatorId": "5100"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
        "to": "0xFE09e53A81Fe2808bc493ea64319109B5bAa573e",
        "value": "0",
        "gas": "2307200",
        "data": "0xb6b55f25000000000000000000000000000000000000000000000000000000000007a120",
        "referenceId": "d33bc36f30ff49e385388ba332f67594"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}

#### With gasPriority (medium)-

#### 1. With tokenAddress:

```json
{
    "from": "0xfAE7D9854995E28BEB1B1da864ee2A1E2EC17f07",
    "tokenAddress": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
    "amount": "10000000",
    "gas": "2307200",
    "gasPriority":"medium",
    "yieldAggregatorId": "5100"
}
```

#### 2. With vaultAddress:

```json
{
    "from": "0xfAE7D9854995E28BEB1B1da864ee2A1E2EC17f07",
    "vaultAddress": "0xFE09e53A81Fe2808bc493ea64319109B5bAa573e",
    "amount": "500000",
    "gas": "2307200",
    "gasPriority":"medium",
    "yieldAggregatorId": "5100"
}
```

{% endtab %}

{% tab title="Sample Response" %}

#### With gasPriority-

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0xfAE7D9854995E28BEB1B1da864ee2A1E2EC17f07",
        "to": "0xFE09e53A81Fe2808bc493ea64319109B5bAa573e",
        "value": "0",
        "gas": "2307200",
        "data": "0xb6b55f250000000000000000000000000000000000000000000000000000000000989680",
        "gasPrice": "6690562274",
        "referenceId": "92a80144e7e649bab4815e0edb773cbb"
    }
}
```

{% endtab %}
{% endtabs %}

### /withdrawvault

{% hint style="warning" %}
For **/withdrawvault**, the user can either pass the tokenAddress or the vaultAddress along with the required parameters.
{% endhint %}

Trigger the withdraw transaction for the given vault.

<mark style="color:green;">`POST`</mark> `https://api.expand.network/yieldaggregator/withdrawvault`

#### Request Body

| Name                                                | Type   | Description                                                                    |
| --------------------------------------------------- | ------ | ------------------------------------------------------------------------------ |
| yieldAggregatorId<mark style="color:red;">\*</mark> | String | Refer to the [Yield Aggregator ID](/ids/yield-aggregator-id) page for details. |
| amount<mark style="color:red;">\*</mark>            | String | Amount to be withdrawn.                                                        |
| from<mark style="color:red;">\*</mark>              | String | Address of the withdrawer of the token.                                        |
| gas                                                 | String | Maximum gas limit provided by the sender, for the transaction.                 |
| tokenAddress                                        | String | The address of the the token.                                                  |
| vaultAddress                                        | String | The address of the vault.                                                      |
| gasPriority                                         | String | low, medium, or high.                                                          |

{% tabs %}
{% tab title="Sample Request" %}

#### With tokenAddress:

```json
{
    "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
    "tokenAddress": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
    "amount": "500000",
    "gas": "2307200",
    "yieldAggregatorId": "5100"
}
```

#### With vaultAddress:&#x20;

```json
{
    "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
    "amount": "4934226",
    "gas": "2307200",
    "vaultAddress": "0xFE09e53A81Fe2808bc493ea64319109B5bAa573e",
    "yieldAggregatorId": "5100"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
        "to": "0xFE09e53A81Fe2808bc493ea64319109B5bAa573e",
        "value": "0",
        "gas": "2307200",
        "data": "0x2e1a7d4d000000000000000000000000000000000000000000000000000000000007a120",
        "referenceId": "7250fb68fbfa4411901e2a77b1e06974"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}

#### With gasPriority (medium)-

#### 1. With tokenAddress:

```json
{
    "from": "0xfAE7D9854995E28BEB1B1da864ee2A1E2EC17f07",
    "tokenAddress": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
    "amount": "500000",
    "gas": "2307200",
    "gasPriority":"medium",
    "yieldAggregatorId": "5100"
}
```

#### 2. With vaultAddress:

```json
{
    "from": "0xfAE7D9854995E28BEB1B1da864ee2A1E2EC17f07",
    "vaultAddress": "0xFE09e53A81Fe2808bc493ea64319109B5bAa573e",
    "amount": "500000",
    "gas": "2307200",
    "gasPriority":"medium",
    "yieldAggregatorId": "5100"
}
```

{% endtab %}

{% tab title="Sample Response" %}

#### With gasPriority

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0xfAE7D9854995E28BEB1B1da864ee2A1E2EC17f07",
        "to": "0xFE09e53A81Fe2808bc493ea64319109B5bAa573e",
        "value": "0",
        "gas": "2307200",
        "data": "0x2e1a7d4d000000000000000000000000000000000000000000000000000000000007a120",
        "gasPrice": "6627449509",
        "referenceId": "c3f3f1465e344a36b88e4cf432bb07e8"
    }
}
```

{% endtab %}
{% endtabs %}

### /depositpool

{% hint style="warning" %}
For **/depositpool**, the user can either pass the tokenAddress or the poolAddress along with the required parameters.
{% endhint %}

Trigger the deposit transaction for the given pool.

<mark style="color:green;">`POST`</mark> `https://api.expand.network/yieldaggregator/depositpool`

#### Request Body

| Name                                                | Type   | Description                                                                    |
| --------------------------------------------------- | ------ | ------------------------------------------------------------------------------ |
| yieldAggregatorId<mark style="color:red;">\*</mark> | String | Refer to the [Yield Aggregator ID](/ids/yield-aggregator-id) page for details. |
| amount<mark style="color:red;">\*</mark>            | String | The amount of token to deposit.                                                |
| from<mark style="color:red;">\*</mark>              | String | Address of the sender of the token.                                            |
| gas                                                 | String | Maximum gas limit provided by the sender, for the transaction.                 |
| tokenAddress                                        | String | The address of the token.                                                      |
| poolAddress                                         | String | The address of the pool.                                                       |
| gasPriority                                         | String | low, medium, or high.                                                          |

{% tabs %}
{% tab title="Sample Request" %}

#### With tokenAddress:

```json
{
    "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
    "tokenAddress": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
    "amount": "4934226",
    "gas": "2307200",
    "yieldAggregatorId": "5100"
}
```

#### With poolAddress:&#x20;

```json
{
    "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
    "poolAddress": "0x3DA9D911301f8144bdF5c3c67886e5373DCdff8e",
    "amount": "4934226",
    "gas": "2307200",
    "yieldAggregatorId": "5100"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
        "to": "0x3DA9D911301f8144bdF5c3c67886e5373DCdff8e",
        "value": "0",
        "gas": "2307200",
        "data": "0xa694fc3a00000000000000000000000000000000000000000000000000000000004b4a52",
        "referenceId": "9fdce4b6184e442cbe52d0c3249c7657"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
**With gasPriority (low)**

#### 1. With tokenAddress:

```json
{
    "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
    "tokenAddress": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
    "amount": "4934226",
    "gas": "230720",
    "gasPriority": "low",
    "yieldAggregatorId": "5100"
}
```

#### 2. With poolAddress:

```json
{
    "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
    "poolAddress": "0x3DA9D911301f8144bdF5c3c67886e5373DCdff8e",
    "amount": "4934226",
    "gas": "230720",
    "gasPriority": "low",
    "yieldAggregatorId": "5100"
}
```

{% endtab %}

{% tab title="Sample Response" %}
**With gasPriority (low):**&#x20;

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
        "to": "0x3DA9D911301f8144bdF5c3c67886e5373DCdff8e",
        "value": "0",
        "gas": "230720",
        "data": "0xa694fc3a00000000000000000000000000000000000000000000000000000000004b4a52",
        "gasPrice": "2212407039",
        "referenceId": "16319479f0fd4a8aa334abaa2752d983"
    }
}
```

{% endtab %}
{% endtabs %}

### /withdrawpool

{% hint style="warning" %}
For **/withdrawpool**, the user can either pass the tokenAddress or the poolAddress along with the required parameters.
{% endhint %}

Trigger the withdraw transaction for the given pool.

<mark style="color:green;">`POST`</mark> `https://api.expand.network/yieldaggregator/withdrawpool`

#### Request Body

| Name                                                | Type   | Description                                                                    |
| --------------------------------------------------- | ------ | ------------------------------------------------------------------------------ |
| yieldAggregatorId<mark style="color:red;">\*</mark> | String | Refer to the [Yield Aggregator ID](/ids/yield-aggregator-id) page for details. |
| amount<mark style="color:red;">\*</mark>            | String | Amount to be withdrawn.                                                        |
| from<mark style="color:red;">\*</mark>              | String | Address of the withdrawer of the token.                                        |
| gas                                                 | String | Maximum gas limit provided by the sender, for the transaction.                 |
| tokenAddress                                        | String | The address of the token.                                                      |
| poolAddress                                         | String | The address of the pool.                                                       |
| gasPriority                                         | String | low, medium, or high.                                                          |

{% tabs %}
{% tab title="Sample Request" %}

#### With tokenAddress:&#x20;

```json
{
    "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
    "amount": "4934226",
    "gas": "2307200",
    "tokenAddress": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
    "yieldAggregatorId": "5100"
}
```

#### With poolAddress:&#x20;

```json
{
    "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
    "poolAddress": "0x3DA9D911301f8144bdF5c3c67886e5373DCdff8e",
    "amount": "4934226",
    "gas": "2307200",
    "yieldAggregatorId": "5100"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
        "to": "0x3DA9D911301f8144bdF5c3c67886e5373DCdff8e",
        "value": "0",
        "gas": "2307200",
        "data": "0x2e1a7d4d00000000000000000000000000000000000000000000000000000000004b4a52",
        "referenceId": "cb96c9dc2c9e4ba7804b037f1c799059"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
**With gasPriority (medium)**

#### 1. With tokenAddress:

```json
{
    "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
    "amount": "4934226",
    "gas": "230720",
    "gasPriority": "medium",
    "tokenAddress": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
    "yieldAggregatorId": "5100"
}
```

#### 2. With poolAddress:

```json
{
    "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
    "amount": "4934226",
    "gas": "230720",
    "gasPriority": "medium",
    "poolAddress": "0x3DA9D911301f8144bdF5c3c67886e5373DCdff8e",
    "yieldAggregatorId": "5100"
}
```

{% endtab %}

{% tab title="Sample Response" %}
**With gasPriority (medium)**

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
        "to": "0x3DA9D911301f8144bdF5c3c67886e5373DCdff8e",
        "value": "0",
        "gas": "230720",
        "data": "0x2e1a7d4d00000000000000000000000000000000000000000000000000000000004b4a52",
        "gasPrice": "2914164274",
        "referenceId": "9dadcac44a4241419ed09356c1a25060"
    }
}
```

{% endtab %}
{% endtabs %}


# Pendle

### Supported Chains&#x20;

Available on **Arbitrum, Base, Binance Smart Chain, Ethereum** and **Optimism**

### Available Endpoints:

*Click on the endpoint to jump to the section with full details*

* [<mark style="color:blue;">**/get**</mark>](#getvaults)[<mark style="color:blue;">**markets**</mark>](#getmarkets)<mark style="color:blue;">`GET`</mark> - Returns the list of the pendle market .
* <mark style="color:blue;">**/**</mark>[<mark style="color:blue;">**getmarkettokens**</mark>](#getmarkettokens)<mark style="color:blue;">`GET`</mark> -Returns all the tokens in the specified market address.
* [<mark style="color:blue;">**/**</mark>](#depositvault)[<mark style="color:blue;">**getmarketdata**</mark>](#getmarketdata)<mark style="color:blue;">`GET`</mark> - Returns the data for the specified market .
* [<mark style="color:blue;">**/getbalance**</mark>](#getbalance)<mark style="color:blue;">`GET`</mark> -Returns the balance of particular address of the specified market .
* [<mark style="color:blue;">**/**</mark>](#getvaults)[<mark style="color:blue;">**transferliquidity**</mark>](#transferliquidity)<mark style="color:green;">`POST`</mark> - Initiate the transfer liquidity from source market address to destination market address .
* [<mark style="color:blue;">**/**</mark>](#depositvault)[<mark style="color:blue;">**redeem**</mark>](#redeem)<mark style="color:green;">`POST`</mark> - Initiates a redeem transaction within a yield aggregator protocol, converting yield-bearing tokens back into their underlying asset.
* [<mark style="color:blue;">**/mint**</mark> ](#mint)<mark style="color:green;">`POST`</mark> -Initiates a mint transaction within a yield aggregator protocol, converting deposited assets into yield-bearing tokens (or share tokens).
* [<mark style="color:blue;">**/swap**</mark> ](#swap)<mark style="color:green;">`POST`</mark> - Initiates a swap transaction within a yield aggregator protocol, enabling users to exchange deposited tokens for another asset via the yield aggregation mechanism.
* [<mark style="color:blue;">**/addliquidity**</mark> ](#addliquidity)<mark style="color:green;">`POST`</mark> - Initiate the transaction to add liquidity from a specified market .
* [<mark style="color:blue;">**/**</mark>](#withdrawvault)[<mark style="color:blue;">**removeliquidity**</mark>](#removeliquidity)<mark style="color:green;">`POST`</mark> - Initiate the transaction to remove liquidity from a specified market.

### Yield Aggregator IDs

Below is a list of Yield Aggregator IDs related to Pendle. Please see the \[[Yield Aggregator ID](/ids/yield-aggregator-id)]\(/pages/wjJzkCX6itmvHDTZj30m) for a complete Yield Aggregator ID list and more information.

| Yield Aggregator Name | Chain               | Yield Aggregator ID |
| --------------------- | ------------------- | ------------------- |
| Pendle                | Ethereum            | 5200                |
| Pendle                | Arbitrum            | 5201                |
| Pendle                | Base                | 5202                |
| Pendle                | Optimism            | 5203                |
| Pendle                | Binance Smart Chain | 5204                |

## Endpoint Details

### /getmarkets

#### Returns the list of the pendle market .

<mark style="color:blue;">`GET`</mark> `https://api.expand.network/yieldaggregator/getmarkets`

#### Query Parameters

| Name                                                | Type    | Description                                                                                        |
| --------------------------------------------------- | ------- | -------------------------------------------------------------------------------------------------- |
| rpc                                                 | String  | Remote procedural call URL.                                                                        |
| yieldAggregatorId<mark style="color:red;">\*</mark> | String  | Refer to the [Yield Aggregator ID](/ids/yield-aggregator-id) page for details.                     |
| includeInactive                                     | Boolean | <p>If <code>true,</code> return the Market with expiry also.<br>By default, <code>false</code></p> |

{% tabs %}
{% tab title="Sample Request" %}

```url
https://api.expand.network/yieldaggregator/getmarkets?yieldAggregatorId=5200&includeInactive=true
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": [
        {
            "name": "stETH",
            "expiry": "2025-12-25T00:00:00.000Z",
            "underlyingAsset": "0x7f39c581f595b53c5cb19bd0b3f8da6c935e2ca0",
            "marketAddress": "0xc374f7ec85f8c7de3207a10bb1978ba104bda3b2",
            "ptAddress": "0xf99985822fb361117fcf3768d34a6353e6022f5f",
            "ytAddress": "0xf3abc972a0f537c1119c990d422463b93227cd83",
            "syAddress": "0xcbc72d92b2dc8187414f6734718563898740c0bc",
            "isActive": true
        },
        {
            "name": "sUSDe",
            "expiry": "2025-03-27T00:00:00.000Z",
            "underlyingAsset": "0x9d39a5de30e57443bff2a8307a4256c8797a3497",
            "marketAddress": "0xcdd26eb5eb2ce0f203a84553853667ae69ca29ce",
            "ptAddress": "0xe00bd3df25fb187d6abbb620b3dfd19839947b81",
            "ytAddress": "0x96512230bf0fa4e20cf02c3e8a7d983132cd2b9f",
            "syAddress": "0x3ee118efc826d30a29645eaf3b2eaac9e8320185",
            "isActive": true
        },
        {
            "name": "USDe",
            "expiry": "2025-03-27T00:00:00.000Z",
            "underlyingAsset": "0x4c9edd5852cd905f086c759e8383e09bff1e68b3",
            "marketAddress": "0xb451a36c8b6b2eac77ad0737ba732818143a0e25",
            "ptAddress": "0x8a47b431a7d947c6a3ed6e42d501803615a97eaa",
            "ytAddress": "0x4a8036efa1307f1ca82d932c0895faa18db0c9ee",
            "syAddress": "0x4db99b79361f98865230f5702de024c69f629fec",
            "isActive": true
        },
        {
            "name": "rsENA",
            "expiry": "2025-03-27T00:00:00.000Z",
            "underlyingAsset": "0xc65433845ecd16688eda196497fa9130d6c47bd8",
            "marketAddress": "0x7e0209ab6fa3c7730603b68799bbe9327dab7e88",
            "ptAddress": "0xb930dd4ea22cd4404c30d68b72e18453adcf93a2",
            "ytAddress": "0x7d128742816aa09af2e9f0ca8c96450ceec17d7a",
            "syAddress": "0x64046776c9c856fdc5c39c6eba101adc8e18291f",
            "isActive": true
        },
        {
            "name": "rsETH",
            "expiry": "2025-06-26T00:00:00.000Z",
            "underlyingAsset": "0xa1290d69c65a6fe4df752f95823fae25cb99e5a7",
            "marketAddress": "0xfd482179ddee989c45eab19991852f80ff31457a",
            "ptAddress": "0xe08c45f3cfe70f4e03668dc6e84af842bee95a68",
            "ytAddress": "0x9335a7a9208cda49f287ea9af7b3d1faadfcfe80",
            "syAddress": "0x730a5e2acebccaa5e9095723b3cb862739da793c",
            "isActive": true
        },
        {
            "name": "eETH",
            "expiry": "2025-06-26T00:00:00.000Z",
            "underlyingAsset": "0xcd5fe23c85820f7b72d0926fc9b05b43e359b7ee",
            "marketAddress": "0xf4cf59259d007a96c641b41621ab52c93b9691b1",
            "ptAddress": "0xef6122835a2bbf575d0117d394fda24ab7d09d4e",
            "ytAddress": "0x08aefe9dfe7818caaedd94e38e910d2155b7d2b0",
            "syAddress": "0xac0047886a985071476a1186be89222659970d65",
            "isActive": true
        },
        {
            "name": "eBTC (Zerolend)",
            "expiry": "2025-03-27T00:00:00.000Z",
            "underlyingAsset": "0x52bb650211e8a6986287306a4c09b73a9affd5e9",
            "marketAddress": "0x98ffefd1a51d322c8def6d0ba183e71547216f7f",
            "ptAddress": "0x8b89d5ea6c9ea52dab5834e9789aa10085c14858",
            "ytAddress": "0x1477a353f248ac94b52f863e234755943a18b94c",
            "syAddress": "0x96af5d9e4d01fb892fd2d76bfc0e3c07aecf8b6b",
            "isActive": true
        },
        {
            "name": "agETH",
            "expiry": "2025-06-26T00:00:00.000Z",
            "underlyingAsset": "0xe1b4d34e8754600962cd944b535180bd758e6c2e",
            "marketAddress": "0xbe8549a20257917a0a9ef8911daf18190a8842a4",
            "ptAddress": "0x6e43f6abce001c14c7115d20908d0c272338eaf1",
            "ytAddress": "0x0310a860cf7efe8f54ab9b4de49cd071c37fcbcb",
            "syAddress": "0xb1b9150f2085f6a553b547099977181ca802752a",
            "isActive": true
        },
        {
            "name": "uniETH",
            "expiry": "2025-06-26T00:00:00.000Z",
            "underlyingAsset": "0xf1376bcef0f78459c0ed0ba5ddce976f1ddf51f4",
            "marketAddress": "0xbba9baaa6b3107182147a12177e0f1ec46b8b072",
            "ptAddress": "0x302091967c09323815594ad8db2d8de35c3a1985",
            "ytAddress": "0x999a3847707511e06e6df03029d7edb04f9099c8",
            "syAddress": "0xc430db19339a3051192233b4c49f9ab3dc6d16b7",
            "isActive": true
        },
        {
            "name": "pufETH",
            "expiry": "2025-06-26T00:00:00.000Z",
            "underlyingAsset": "0xd9a442856c234a39a81a089c06451ebaa4306a72",
            "marketAddress": "0x58612beb0e8a126735b19bb222cbc7fc2c162d2a",
            "ptAddress": "0x9cfc9917c171a384c7168d3529fc7e851a2e0d6d",
            "ytAddress": "0x784a0bb8208c70290cac6bcbc3650ceb9227813e",
            "syAddress": "0x253008ba4ae2f3e6488dc998a5321d4eb1a0c905",
            "isActive": true
        },
        {
            "name": "weETHs",
            "expiry": "2025-06-26T00:00:00.000Z",
            "underlyingAsset": "0x917cee801a67f933f2e6b33fc0cd1ed2d5909d88",
            "marketAddress": "0xcba3b226ca62e666042cb4a1e6e4681053885f75",
            "ptAddress": "0xa3170a9ee20d9832d933d4355676d09f66909d12",
            "ytAddress": "0xaac7db6c2bc926ade954d69a2d705f059043ea02",
            "syAddress": "0x012badcc6e824c2ea32bd5367ebda3be3402c9c5",
            "isActive": true
        },
        {
            "name": "liquidBeraETH",
            "expiry": "2025-04-10T00:00:00.000Z",
            "underlyingAsset": "0x83599937c2c9bea0e0e8ac096c6f32e86486b410",
            "marketAddress": "0x46e6b4a950eb1abba159517dea956afd01ea9497",
            "ptAddress": "0x50bf5c6445b79b79e368856095a70c564d0c6966",
            "ytAddress": "0x6bd07c8691651a31c2d56532e4e5c0f46e1d80e8",
            "syAddress": "0x14c1878bd3f989d0d2199c537ea1a6d3b5225d05",
            "isActive": true
        },
        }
    ]
}
```

{% endtab %}
{% endtabs %}

### /getmarkettokens

#### Returns all the tokens in the specified market address.

<mark style="color:blue;">`GET`</mark> `https://api.expand.network/yieldaggregator/getmarkettokens`

#### Query Parameters

| Name                                                | Type   | Description                                                                    |
| --------------------------------------------------- | ------ | ------------------------------------------------------------------------------ |
| rpc                                                 | String | Remote procedural call URL.                                                    |
| marketAddress<mark style="color:red;">\*</mark>     | String | Address of the specific market.                                                |
| yieldAggregatorId<mark style="color:red;">\*</mark> | String | Refer to the [Yield Aggregator ID](/ids/yield-aggregator-id) page for details. |

{% tabs %}
{% tab title="Sample Request" %}

```url
https://api.expand.network/yieldaggregator/getmarkettokens?yieldAggregatorId=5200&marketAddress=0xcdd26eb5eb2ce0f203a84553853667ae69ca29ce
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "mintTokens": [
            "0x4c9edd5852cd905f086c759e8383e09bff1e68b3",
            "0x9d39a5de30e57443bff2a8307a4256c8797a3497"
        ],
        "redeemTokens": [
            "0x9d39a5de30e57443bff2a8307a4256c8797a3497"
        ],
        "Swap": {
            "tokensIn": [
                "0x9d39a5de30e57443bff2a8307a4256c8797a3497",
                "0x3ee118efc826d30a29645eaf3b2eaac9e8320185",
                "0x4c9edd5852cd905f086c759e8383e09bff1e68b3",
                "0x111111111117dc0aa78b770fa6a738034120c302",
                "0x7fc66500c84a76ad7e9c93437bfc5ac33e2ddae9",
                "0xe1b4d34e8754600962cd944b535180bd758e6c2e",
                "0xd1b5651e55d4ceed36251c61c50c889b36f6abb5",
                "0x8be3460a480c80728a8c4d7a5d5303c85ba7b3b9",
                "0xa663b02cf0a4b149d2ad41910cb81e23e1c41c32",
                "0x77e06c9eccf2e797fd462a92b6d7642ef85b0a44",
                "0x6985884c4392d348587b19cb9eaaf157f13271cd"
            ],
            "tokensOut": [
                "0x9d39a5de30e57443bff2a8307a4256c8797a3497",
                "0x2260fac5e5542a773aa44fbcfedf7c193bc2c599",
                "0xcd5fe23c85820f7b72d0926fc9b05b43e359b7ee",
                "0x7223442cad8e9ca474fc40109ab981608f8c4273",
                "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
                "0x163f8c2467924be0ae7b5347228cabf260318753",
                "0x4691937a7508860f876c9c0a2a617e7d9e945d4b",
                "0x7f39c581f595b53c5cb19bd0b3f8da6c935e2ca0",
                "0x77e06c9eccf2e797fd462a92b6d7642ef85b0a44",
                "0x6985884c4392d348587b19cb9eaaf157f13271cd"
            ]
        }
    }
}
```

{% endtab %}
{% endtabs %}

### /getmarketdata

#### Returns the data for the specified market .

<mark style="color:blue;">`GET`</mark> `https://api.expand.network/yieldaggregator/getmarketdata`

#### Query Parameters

| Name                                                | Type    | Description                                                                    |
| --------------------------------------------------- | ------- | ------------------------------------------------------------------------------ |
| rpc                                                 | String  | Remote procedural call URL.                                                    |
| marketAddress<mark style="color:red;">\*</mark>     | Boolean | Address of the specific market.                                                |
| yieldAggregatorId<mark style="color:red;">\*</mark> | String  | Refer to the [Yield Aggregator ID](/ids/yield-aggregator-id) page for details. |

{% tabs %}
{% tab title="Sample Request" %}

```url
https://api.expand.network/yieldaggregator/getmarketdata?yieldAggregatorId=5200&marketAddress=0xcdd26eb5eb2ce0f203a84553853667ae69ca29ce
```

{% endtab %}

{% tab title="Sample Response" %}

<pre class="language-json"><code class="lang-json"><strong>{
</strong>    "status": 200,
    "msg": "success",
    "data": {
        "liquidityInUsd": "134907506.52283007",
        "tradingVolumeInUsd": "36339381.69865377",
        "totalSupply": "26392820.87417019",
        "totalPtTokens": "89416948.23342799",
        "totalLpTokens": "61534199.832070634",
        "totalSyTokens": "40588366.38292736"
    }
}
</code></pre>

{% endtab %}
{% endtabs %}

### /getbalance

#### Returns the balance of particular address of the specified market .

<mark style="color:blue;">`GET`</mark> `https://api.expand.network/yieldaggregator/getbalance`

#### Query Parameters

| Name                                                | Type   | Description                                                                    |
| --------------------------------------------------- | ------ | ------------------------------------------------------------------------------ |
| rpc                                                 | String | Remote procedural call URL.                                                    |
| marketAddress<mark style="color:red;">\*</mark>     | String | Address of the specific market.                                                |
| yieldAggregatorId<mark style="color:red;">\*</mark> | String | Refer to the [Yield Aggregator ID](/ids/yield-aggregator-id) page for details. |
| address<mark style="color:red;">\*</mark>           | String | Public address of the user.                                                    |

{% tabs %}
{% tab title="Sample Request" %}

```url
https://api.expand.network/yieldaggregator/getbalance?marketAddress=0x8098b48a1c4e4080b30a43a7ebc0c87b52f17222&address=0x8dC3F8e1449E56929Aa7a721C9082ce4A9771F47&yieldAggregatorId=5200
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "balance": "2517682103"
    }
}
```

{% endtab %}
{% endtabs %}

### /transferliquidity

#### Initiate the transfer liquidity from source market address to destination market address .

<mark style="color:green;">`POST`</mark> `https://api.expand.network/yieldaggregator/transferliquidity`

#### Query Parameters

| Name                                                | Type    | Description                                                                           |
| --------------------------------------------------- | ------- | ------------------------------------------------------------------------------------- |
| rpc                                                 | String  | Remote procedural call URL.                                                           |
| marketAddress<mark style="color:red;">\*</mark>     | String  | Source market address.                                                                |
| yieldAggregatorId<mark style="color:red;">\*</mark> | String  | Refer to the [Yield Aggregator ID](/ids/yield-aggregator-id) page for details.        |
| from<mark style="color:red;">\*</mark>              | String  | Public Address of the user.                                                           |
| dstMarketAddress<mark style="color:red;">\*</mark>  | String  | destination market address.                                                           |
| lpAmount<mark style="color:red;">\*</mark>          | String  | <p>LP token amount. <br>The minimum valuation is 0.01 USD</p>                         |
| ptAmount<mark style="color:red;">\*</mark>          | String  | <p>Principal token amount.<br>The minimum valuation is 0.01 USD</p>                   |
| ytAmount<mark style="color:red;">\*</mark>          | String  | <p>Yield token amount.<br>The minimum valuation is 0.01 USD</p>                       |
| slippage                                            | String  | <p>Percentage of total swap value. By default, 1.</p><p>0 <= slippage value < 100</p> |
| gas                                                 | String  | Maximum gas limit provided by the sender, for the transaction.                        |
| redeemRewards                                       | Boolean | Redeem accrued rewards.                                                               |
| zeroPriceImpact                                     | Boolean | Zero price impact mode.                                                               |
| gasPriority                                         | String  | Low, medium, or high.                                                                 |

{% tabs %}
{% tab title="Sample Request" %}

```json
{
   "yieldAggregatorId":"5200",
   "marketAddress":"usde",
   "from":"0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
   "dstMarketAddress":"0xcdd26eb5eb2ce0f203a84553853667ae69ca29ce",
   "slippage" : "0.05",
   "gas":"1000000",
   "lpAmount":"1000000000000000000",
   "ptAmount":"1000000000000000000",
   "ytAmount":"1000000000000000000"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
   "status": 200,
   "msg": "success",
   "data": {
       "chainId": "1",
       "from": "0xdae2f6eddda6fb4fb60cc02633de27e2b431b402",
       "to": "0x888888888889758F76e7103c6CbF23ABbF58F946",
       "value": "0",
       "gas": "1000000",
       "data": "0x9fa02c860000000000000000000000005039da22e5126e7c4e9284376116716a91782faf000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000003e0000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000003247036e0520000000000000000000000005039da22e5126e7c4e9284376116716a91782faf000000000000000000000000b451a36c8b6b2eac77ad0737ba732818143a0e250000000000000000000000000000000000000000000000000de0b6b3a76400000000000000000000000000000000000000000000000000000de0b6b3a76400000000000000000000000000000000000000000000000000000de0b6b3a764000000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000002200000000000000000000000004c9edd5852cd905f086c759e8383e09bff1e68b30000000000000000000000000000000000000000000000",
       "estimationCheck": true,
       "referenceId": "5b86393c4dc74d9bb0fee01660829e5a"
   }
}
```

{% endtab %}
{% endtabs %}

### /redeem

Initiates a redeem transaction within a yield aggregator protocol, converting yield-bearing tokens back into their underlying asset.

<mark style="color:blue;">**Note:**</mark> Redeem PT & YT to tokens. If called before YT's expiry, both PT & YT of equal amounts are needed and will be burned.Else, only PT is needed and will be burned.\
User can redeem standard yield token by providing syAddress, similarly user can redeem yield token address by providing ytAddress.

<mark style="color:green;">`POST`</mark> `https://api.expand.network/yieldaggregator/redeem`

#### Query Parameters

| Name                                                | Type   | Description                                                                           |
| --------------------------------------------------- | ------ | ------------------------------------------------------------------------------------- |
| rpc                                                 | String | Remote procedural call URL.                                                           |
| tokenOut<mark style="color:red;">\*</mark>          | String | Address of token to be redeemed.                                                      |
| yieldAggregatorId<mark style="color:red;">\*</mark> | String | Refer to the [Yield Aggregator ID](/ids/yield-aggregator-id) page for details.        |
| from<mark style="color:red;">\*</mark>              | String | Public Address of the user.                                                           |
| amountIn<mark style="color:red;">\*</mark>          | String | Amount to be redeemed.                                                                |
| syAddress<mark style="color:red;">\*</mark>         | String | Standard yield address.                                                               |
| ytAddress<mark style="color:red;">\*</mark>         | String | Yield token address.                                                                  |
| slippage                                            | String | <p>Percentage of total swap value. By default, 1.</p><p>0 <= slippage value < 100</p> |
| gas                                                 | String | Maximum gas limit provided by the sender, for the transaction.                        |
| gasPriority                                         | String | Low, medium, or high.                                                                 |

{% tabs %}
{% tab title="Sample Request" %}

```json
{
   "yieldAggregatorId":"5200",
   "from":"0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
   "amountIn":"10000000000000000000",
   "tokenOut":"0x4db99b79361f98865230f5702de024c69f629fec",
   "slippage" : "5",
   "gas":"1000000",
   "ytAddress":"0x4a8036efa1307f1ca82d932c0895faa18db0c9ee"
}

```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
   "status": 200,
   "msg": "success",
   "data": {
       "chainId": "1",
       "from": "0xdae2f6eddda6fb4fb60cc02633de27e2b431b402",
       "to": "0x888888888889758F76e7103c6CbF23ABbF58F946",
       "value": "0",
       "gas": "1000000",
       "data": "0x339748cb000000000000000000000000dae2f6eddda6fb4fb60cc02633de27e2b431b4020000000000000000000000004a8036efa1307f1ca82d932c0895faa18db0c9ee0000000000000000000000000000000000000000000000008ac7230489e8000000000000000000000000000000000000000000000000000083d6c7aab6360000",
       "estimationCheck": true,
       "referenceId": "d0de8589aa8f4306b3a5b3c2044e28f1"
   }
}
```

{% endtab %}
{% endtabs %}

### /mint

Initiates a mint transaction within a yield aggregator protocol, converting deposited assets into yield-bearing tokens (or share tokens).

<mark style="color:blue;">**Note:**</mark> \
User can mint standard yield token by providing syAddress, similarly user can mint yield token address by providing ytAddress.

<mark style="color:green;">`POST`</mark> `https://api.expand.network/yieldaggregator/mint`

#### Query Parameters

| Name                                                | Type   | Description                                                                           |
| --------------------------------------------------- | ------ | ------------------------------------------------------------------------------------- |
| rpc                                                 | String | Remote procedural call URL.                                                           |
| tokenIn<mark style="color:red;">\*</mark>           | String | Address of token to be mint.                                                          |
| yieldAggregatorId<mark style="color:red;">\*</mark> | String | Refer to the [Yield Aggregator ID](/ids/yield-aggregator-id) page for details.        |
| from<mark style="color:red;">\*</mark>              | String | Public Address of the user.                                                           |
| syAddress<mark style="color:red;">\*</mark>         | String | Standard yield address.                                                               |
| ytAddress<mark style="color:red;">\*</mark>         | String | Yield token address.                                                                  |
| amountIn<mark style="color:red;">\*</mark>          | String | Amount to be mint.                                                                    |
| slippage                                            | String | <p>Percentage of total swap value. By default, 1.</p><p>0 <= slippage value < 100</p> |
| gas                                                 | String | Maximum gas limit provided by the sender, for the transaction.                        |
| gasPriority                                         | String | Low, medium, or high.                                                                 |

{% tabs %}
{% tab title="Sample Request" %}

```json
{
   "yieldAggregatorId":"5200",
   "from":"0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
   "amountIn":"10000000000000000000",
   "tokenIn":"0x4db99b79361f98865230f5702de024c69f629fec",
   "slippage" : "0.05",
   "gas":"1000000",
   "ytAddress":"0x4a8036efa1307f1ca82d932c0895faa18db0c9ee"
}

```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
   "status": 200,
   "msg": "success",
   "data": {
       "chainId": "1",
       "from": "0xdae2f6eddda6fb4fb60cc02633de27e2b431b402",
       "to": "0x888888888889758F76e7103c6CbF23ABbF58F946",
       "value": "0",
       "gas": "1000000",
       "data": "0x1a8631b2000000000000000000000000dae2f6eddda6fb4fb60cc02633de27e2b431b4020000000000000000000000004a8036efa1307f1ca82d932c0895faa18db0c9ee0000000000000000000000000000000000000000000000008ac7230489e8000000000000000000000000000000000000000000000000000083d6c7aab6360000",
       "estimationCheck": true,
       "referenceId": "3173e53c1af44cda8f70d4990858d2c6"
   }
}

```

{% endtab %}
{% endtabs %}

### /swap

Initiates a swap transaction within a yield aggregator protocol, enabling users to exchange deposited tokens for another asset via the yield aggregation mechanism.

<mark style="color:green;">`POST`</mark> `https://api.expand.network/yieldaggregator/swap`

#### Query Parameters

| Name                                                | Type    | Description                                                                                                            |
| --------------------------------------------------- | ------- | ---------------------------------------------------------------------------------------------------------------------- |
| rpc                                                 | String  | Remote procedural call URL.                                                                                            |
| enableAggregator                                    | Boolean | If true, enable swap aggregator to swap between tokens that cannot be natively converted from/to the underlying asset. |
| yieldAggregatorId<mark style="color:red;">\*</mark> | String  | Refer to the [Yield Aggregator ID](/ids/yield-aggregator-id) page for details.                                         |
| from<mark style="color:red;">\*</mark>              | String  | Public Address of the user.                                                                                            |
| path<mark style="color:red;">\*</mark>              | String  | Comma-separated values of token pair.                                                                                  |
| amountIn<mark style="color:red;">\*</mark>          | String  | Amount to be swapped.                                                                                                  |
| marketAddress<mark style="color:red;">\*</mark>     | String  | Address of the market.                                                                                                 |
| slippage                                            | String  | <p>Percentage of total swap value. By default, 1.</p><p>0 <= slippage value < 100</p>                                  |
| gas                                                 | String  | Maximum gas limit provided by the sender, for the transaction.                                                         |
| gasPriority                                         | String  | Low, medium, or high.                                                                                                  |

{% tabs %}
{% tab title="Sample Request" %}

```json
{
  "yieldAggregatorId":"5200",
  "marketAddress":"usde",
  "from":"0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
  "amountIn":"10000000000000000000",
  "path":["0x8a47b431a7d947c6a3ed6e42d501803615a97eaa",
           "0x4db99b79361f98865230f5702de024c69f629fec"],
  "slippage" : "5",
  "gas":"1000000",
  "enableAggregator":true
}

```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
   "status": 200,
   "msg": "success",
   "data": {
       "chainId": "1",
       "from": "0xdae2f6eddda6fb4fb60cc02633de27e2b431b402",
       "to": "0x888888888889758F76e7103c6CbF23ABbF58F946",
       "value": "0",
       "gas": "1000000",
       "data": "0x2a50917c000000000000000000000000dae2f6eddda6fb4fb60cc02633de27e2b431b402000000000000000000000000b451a36c8b6b2eac77ad0737ba732818143a0e250000000000000000000000000000000000000000000000008ac7230489e8000000000000000000000000000000000000000000000000000089f69f2983fe3071000000000000000000000000000000000000000000000000489cbf8f1d0c8549000000000000000000000000000000000000000000000000b587dee5c89f4d3600000000000000000000000000000000000000000000000091397f1e3a190a92000000000000000000000000000000000000000000000000000000000000001e00000000000000000000000000000000000000000000000000005af3107a400000000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
       "estimationCheck": true,
       "referenceId": "8d5b7f177bf541d385f723d4891a792e"
   }
}

```

{% endtab %}
{% endtabs %}

### /addliquidity

#### Initiate the transaction to add liquidity from a specified market .

<mark style="color:green;">`POST`</mark> `https://api.expand.network/yieldaggregator/addliquidity`

#### Query Parameters

| Name                                                | Type    | Description                                                                           |
| --------------------------------------------------- | ------- | ------------------------------------------------------------------------------------- |
| rpc                                                 | String  | Remote procedural call URL.                                                           |
| tokenIn<mark style="color:red;">\*</mark>           | String  | Address of the token to be added.                                                     |
| yieldAggregatorId<mark style="color:red;">\*</mark> | String  | Refer to the [Yield Aggregator ID](/ids/yield-aggregator-id) page for details.        |
| from<mark style="color:red;">\*</mark>              | String  | Public Address of the owner.                                                          |
| marketAddress<mark style="color:red;">\*</mark>     | String  | Address of the market.                                                                |
| amount<mark style="color:red;">\*</mark>            | String  | If user is initiating single side liquidity provisioning .                            |
| amountPtIn<mark style="color:red;">\*</mark>        | String  | If user is initiating dual liquidity provisioning .                                   |
| zeroPriceImpact                                     | Boolean | Zero price impact mode.                                                               |
| slippage                                            | String  | <p>Percentage of total swap value. By default, 1.</p><p>0 <= slippage value < 100</p> |
| gas                                                 | String  | Maximum gas limit provided by the sender, for the transaction.                        |
| gasPriority                                         | String  | Low, medium, or high.                                                                 |

{% tabs %}
{% tab title="Sample Request" %}

```json
{
   "yieldAggregatorId":"5200",
   "marketAddress":"usde",
   "from":"0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
   "amount":"10000000000000000000",
   "tokenIn":"0x4db99b79361f98865230f5702de024c69f629fec",
   "slippage" : "1",
   "amountPtIn":"100000",
   "gas":"1000000"
}

```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
   "status": 200,
   "msg": "success",
   "data": {
       "chainId": "1",
       "from": "0xdae2f6eddda6fb4fb60cc02633de27e2b431b402",
       "to": "0x888888888889758F76e7103c6CbF23ABbF58F946",
       "value": "0",
       "gas": "1000000",
       "data": "0x97ee279e000000000000000000000000dae2f6eddda6fb4fb60cc02633de27e2b431b402000000000000000000000000b451a36c8b6b2eac77ad0737ba732818143a0e250000000000000000000000000000000000000000000000008ac7230489e8000000000000000000000000000000000000000000000000000000000000000186a0000000000000000000000000000000000000000000000000000000000000c741",
       "estimationCheck": true,
       "referenceId": "410bcb32a855442caa186a8a7a599d1e"
   }
}
```

{% endtab %}
{% endtabs %}

### /removeliquidity

#### Initiate the transaction to remove liquidity from a specified market .

<mark style="color:green;">`POST`</mark> `https://api.expand.network/yieldaggregator/removeliquidity`

#### Query Parameters

| Name                                                | Type    | Description                                                                                                           |
| --------------------------------------------------- | ------- | --------------------------------------------------------------------------------------------------------------------- |
| rpc                                                 | String  | Remote procedural call URL.                                                                                           |
| tokenOut<mark style="color:red;">\*</mark>          | String  | Address of token to be removed.                                                                                       |
| yieldAggregatorId<mark style="color:red;">\*</mark> | String  | Refer to the [Yield Aggregator ID](/ids/yield-aggregator-id) page for details.                                        |
| from<mark style="color:red;">\*</mark>              | String  | Public Address of the owner.                                                                                          |
| marketAddress<mark style="color:red;">\*</mark>     | String  | Address of the market.                                                                                                |
| amountIn<mark style="color:red;">\*</mark>          | String  | Amount to be removed                                                                                                  |
| enableAggregator                                    | String  | If true, enable swap aggregator to swap between tokens that cannot be natively converted from/to the underlying asset |
| isDual                                              | Boolean | If true, then dual-token removal mode will be initiated and user will get back both tokens and PT                     |
| slippage                                            | String  | <p>Percentage of total swap value. By default, 1.</p><p>0 <= slippage value < 100</p>                                 |
| gas                                                 | String  | Maximum gas limit provided by the sender, for the transaction.                                                        |
| gasPriority                                         | String  | Low, medium, or high.                                                                                                 |

{% tabs %}
{% tab title="Sample Request" %}

```json
{
   "yieldAggregatorId":"5200",
   "marketAddress":"usde",
   "from":"0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
   "amountIn":"10000000000000000000",
   "tokenOut":"0x4db99b79361f98865230f5702de024c69f629fec",
   "slippage" : "1",
   "isDual":true,
   "gas":"1000000",
   "enableAggregator":true
}

```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
   "status": 200,
   "msg": "success",
   "data": {
       "chainId": "1",
       "from": "0xdae2f6eddda6fb4fb60cc02633de27e2b431b402",
       "to": "0x888888888889758F76e7103c6CbF23ABbF58F946",
       "value": "0",
       "gas": "1000000",
       "data": "0xb7d75b8b000000000000000000000000dae2f6eddda6fb4fb60cc02633de27e2b431b402000000000000000000000000b451a36c8b6b2eac77ad0737ba732818143a0e250000000000000000000000000000000000000000000000008ac7230489e800000000000000000000000000000000000000000000000000001a3314a2f53c7a6f0000000000000000000000000000000000000000000000010bfcf818602b1a92",
       "estimationCheck": true,
       "referenceId": "a2b80241f98544579531de6190c45729"
   }
}
```

{% endtab %}
{% endtabs %}


# Liquid Staking

expand.network provides access to staking providers and liquid staking protocols.

Below are endpoints available:

<table><thead><tr><th width="219">Name</th><th width="95">Type</th><th>Description</th></tr></thead><tbody><tr><td>getapr</td><td>Read</td><td>Get the Lido staking APR on Ethereum.</td></tr><tr><td>getrewards</td><td>Read</td><td>Get the stETH interactions by a specified user address along with the daily stETH rewards.</td></tr><tr><td>getstake</td><td>Read</td><td>Get the amount of stETH and wstETH staked on Lido by a specified address.</td></tr><tr><td>getwithdrawalrequests</td><td>Read</td><td>Get all the withdrawal requests(NFT ids) made by a specified address.</td></tr><tr><td>getwithdrawalstatus</td><td>Read</td><td>Get the status of a withdrawal request made by a specified address.</td></tr><tr><td>getprotocolapr</td><td>Read</td><td>Get the Lido staking APR on Ethereum, for the past 7 days.</td></tr><tr><td>getallowance</td><td>Read</td><td>Get the approved allowance amount set by the owner for the spender.</td></tr><tr><td>stake</td><td>Write</td><td>Initiate a transaction to stake on Lido.</td></tr><tr><td>wrap</td><td>Write</td><td>Initiate a transaction to wrap stETH to wstETH.</td></tr><tr><td>unwrap</td><td>Write</td><td>Initiate a transaction to unwrap wstETH to stETH.</td></tr><tr><td>mint</td><td>Write</td><td>Initiate a transaction to mint osETH.</td></tr><tr><td>burn</td><td>Write</td><td>Initiate a transaction to burn osETH.</td></tr><tr><td>increaseallowance</td><td>Write</td><td>Initiate a transaction to increase the allowance of stETH or wstETH on the spender’s account.</td></tr><tr><td>decreaseallowance</td><td>Write</td><td>Initiate a transaction to decrease the allowance of stETH or wstETH on the spender’s account.</td></tr><tr><td>approvewithdrawal</td><td>Write</td><td>Initiate a transaction to approve the withdrawal request from a specified address.</td></tr><tr><td>requestwithdrawal</td><td>Write</td><td>Initiate a transaction to request a withdrawal on Lido.</td></tr><tr><td>claim</td><td>Write</td><td>Initiate a transaction to burn the NFT, which is minted upon request, and to claim the rewards.</td></tr></tbody></table>


# Chorus One

expand.network users can now stake with Chorus One's industry-recognized liquid staking program through the expand.network API.

### Supported Chains

Currently only available on **Ethereum Mainnet.**

### Available Endpoints:

*Click on the endpoint to jump to the section with full details*

* [**/getapr**](#getapr) <mark style="color:blue;">`GET`</mark> - Retrieves the Chorus One staking APR on Ethereum.&#x20;
* [**/getrewards** ](#getrewards)<mark style="color:blue;">`GET`</mark> - Retrieves the daily rewards generated for a specified user.&#x20;
* [**/getstake**](#getstake) <mark style="color:blue;">`GET`</mark> -Retrieves the staked amount on Chorus One by a specified address.
* [**/getwithdrawalrewards** ](#getwithdrawalrewards)<mark style="color:blue;">`GET`</mark> - Retrieves all withdrawal requests made by a specified address.
* [**/stake**](#stake) <mark style="color:green;">`POST`</mark> - Initiate a transaction to stake on Chorus One protocol.
* [**/requestwithdrawal** ](#requestwithdrawal)<mark style="color:green;">`POST`</mark> - Initiate a withdrawal request on Chorus One.
* [**/claim**](#claim) <mark style="color:green;">`POST`</mark> - Initiate a transaction to claim staked ETH after a withdrawal request.
* [**/mint**](#mint) <mark style="color:green;">`POST`</mark> - Initiate a transaction to mint osETH.
* [**/burn**](#burn) <mark style="color:green;">`POST`</mark> - Initiate a transaction to burn osETH.

*Also see* [Error Handling Details](#error-handling-details)

## Endpoint Details

### /getapr

Retrieves the Chorus One staking APR on Ethereum.

<mark style="color:blue;">`GET`</mark> `https://api.expand.network/liquidstaking/getapr`

#### Query Parameters

*<mark style="color:red;">\*</mark> indicates that a parameter is required*

<table><thead><tr><th width="165">Name</th><th width="89">Type</th><th>Description</th></tr></thead><tbody><tr><td>rpc</td><td>String</td><td>Remote procedural call URL.</td></tr><tr><td>liquidStakingId<mark style="color:red;">*</mark></td><td>String</td><td>Refer to the <a href="https://docs.expand.network/ids/liquid-staking-ids">Liquid Staking IDs</a> page for details.</td></tr></tbody></table>

{% tabs %}
{% tab title="Sample Request" %}

```url
https://api.expand.network/liquidstaking/getapr?liquidStakingId=200
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "timeUnix": "1719500639",
        "apr": "3.15",
        "blockNumber": "20183800"
    }
}
```

{% endtab %}
{% endtabs %}

[back to top](#endpoints-available)

### /getrewards

Retrieves the daily rewards generated for a specified user.

<mark style="color:blue;">`GET`</mark> `https://api.expand.network/liquidstaking/getrewards`

#### Query Parameters

*<mark style="color:red;">\*</mark> indicates that a parameter is required*

<table><thead><tr><th width="167">Name</th><th width="88">Type</th><th>Description</th></tr></thead><tbody><tr><td>rpc</td><td>String</td><td>Remote procedural call URL.</td></tr><tr><td>liquidStakingId<mark style="color:red;">*</mark></td><td>String</td><td>Refer to the <a href="https://docs.expand.network/ids/liquid-staking-ids">Liquid Staking IDs</a> page for details.</td></tr><tr><td>address<mark style="color:red;">*</mark></td><td>String</td><td>Public address of the user.</td></tr><tr><td>startBlock</td><td>String</td><td>Starting block of the range.</td></tr><tr><td>endBlock</td><td>String</td><td>Last block of the range.</td></tr></tbody></table>

[back to top](#endpoints-available)

{% tabs %}
{% tab title="Sample Request" %}

```url
https://api.expand.network/liquidstaking/getrewards?liquidStakingId=200&startBlock=20153440&endBlock=20183440&address=0xe55A8cFF86aBf88bfD89C81C287f14848bcf8542
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "rewards": [
            {
                "date": "2024-06-23",
                "dailyRewards": "78270423519",
                "dailyRewardsUsd": "0.00",
                "totalRewards": "3118933237148"
            },
            {
                "date": "2024-06-24",
                "dailyRewards": "72961094648",
                "dailyRewardsUsd": "0.00",
                "totalRewards": "3191894331796"
            },
            {
                "date": "2024-06-25",
                "dailyRewards": "78893491914",
                "dailyRewardsUsd": "0.00",
                "totalRewards": "3270787823710"
            },
            {
                "date": "2024-06-26",
                "dailyRewards": "121456664801",
                "dailyRewardsUsd": "0.00",
                "totalRewards": "3392244488511"
            },
            {
                "date": "2024-06-27",
                "dailyRewards": "62772405193",
                "dailyRewardsUsd": "0.00",
                "totalRewards": "3455016893704"
            }
        ]
    }
}
```

{% endtab %}
{% endtabs %}

[back to top](#endpoints-available)

### /getstake

Retrieves the staked amount on Chorus One by a specified address.

<mark style="color:blue;">`GET`</mark> `https://api.expand.network/liquidstaking/getstake`

#### Query Parameters

*<mark style="color:red;">\*</mark> indicates that a parameter is required*

<table><thead><tr><th width="172">Name</th><th width="104">Type</th><th>Description</th></tr></thead><tbody><tr><td>rpc</td><td>String</td><td>Remote procedural call URL.</td></tr><tr><td>liquidStakingId<mark style="color:red;">*</mark></td><td>String</td><td>Refer to the <a href="https://docs.expand.network/ids/liquid-staking-ids">Liquid Staking IDs</a> page for details.</td></tr><tr><td>address<mark style="color:red;">*</mark></td><td>String</td><td>Public address of the user.</td></tr></tbody></table>

{% tabs %}
{% tab title="Sample Request" %}

```url
https://api.expand.network/liquidstaking/getstake?liquidStakingId=200&address=0x02Fd5aBb1f77841827Bfb7cB19608Ec6488BEd08
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "shares": "3942275859061618"
    }
}
```

{% endtab %}
{% endtabs %}

[back to top](#available-endpoints)

### /getwithdrawalrequests

Retrieves all withdrawal requests made by a specified address.

<mark style="color:blue;">`GET`</mark> `https://api.expand.network/liquidstaking/getwithdrawalrequests`

#### Query Parameters

*<mark style="color:red;">\*</mark> indicates that a parameter is required*

<table><thead><tr><th width="170">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>liquidStakingId<mark style="color:red;">*</mark></td><td>String</td><td>Refer to the <a href="https://docs.expand.network/ids/liquid-staking-ids">Liquid Staking IDs</a> page for details.</td></tr><tr><td>address<mark style="color:red;">*</mark></td><td>String</td><td>Public address of the user.</td></tr></tbody></table>

[back to top](#endpoints-available)

{% tabs %}
{% tab title="Sample Request" %}

```url
https://api.expand.network/liquidstaking/getwithdrawalrequests?liquidStakingId=200&address=0xe55A8cFF86aBf88bfD89C81C287f14848bcf8542
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "requests": [
            {
                "requestId": "98632406130503281444",
                "exitQueueIndex": "27",
                "timestamp": "1715854439",
                "totalShares": "983105391000569"
            }
        ]
    }
}
```

{% endtab %}
{% endtabs %}

[back to top](#endpoints-available)

### /stake

Initiate a transaction to stake on Chorus One protocol.

<mark style="color:green;">`POST`</mark> `https://api.expand.network/liquidstaking/stake`

#### Request Body&#x20;

*<mark style="color:red;">\*</mark> indicates that a parameter is required*

<table><thead><tr><th width="169">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>liquidStakingId<mark style="color:red;">*</mark></td><td>String</td><td>Refer to the <a href="https://docs.expand.network/ids/liquid-staking-ids">Liquid Staking IDs</a> page for details.</td></tr><tr><td>from<mark style="color:red;">*</mark></td><td>String</td><td>Public address of the owner of this request.</td></tr><tr><td>amount<mark style="color:red;">*</mark></td><td>String</td><td>Amount of token to stake.</td></tr><tr><td>gas</td><td>String</td><td>Maximum gas limit provided by the sender, for the transaction.</td></tr><tr><td>gas priority</td><td>String</td><td>Low, medium, or high.</td></tr></tbody></table>

{% tabs %}
{% tab title="Sample Request" %}

```json
{
    "from": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
    "amount": "1000000",
    "liquidStakingId": "200",
    "gas": "8000000"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
        "to": "0xe6d8d8aC54461b1C5eD15740EEe322043F696C08",
        "value": "1000000",
        "gas": "8000000",
        "data": "0xf9609f08000000000000000000000000dae2f6eddda6fb4fb60cc02633de27e2b431b402000000000000000000000000558d7be6092ca91da26521ac25b982d883218e2d",
        "referenceId": "e8277c39cec2444990fe0e92d2a25250"
    }
}
```

{% endtab %}
{% endtabs %}

#### With Gas Priority

{% tabs %}
{% tab title="Sample Request" %}

```json
{
    "from": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
    "amount": "1000000",
    "liquidStakingId": "200",
    "gas": "8000000",
    "gasPriority": "high"
}
```

{% endtab %}

{% tab title="Sample Response " %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
        "to": "0xe6d8d8aC54461b1C5eD15740EEe322043F696C08",
        "value": "1000000",
        "gas": "8000000",
        "data": "0xf9609f08000000000000000000000000dae2f6eddda6fb4fb60cc02633de27e2b431b402000000000000000000000000558d7be6092ca91da26521ac25b982d883218e2d",
        "gasPrice": "9162032058",
        "referenceId": "0a5e4f4e820c41f9b0b0e7ea4a35913d"
    }
}
```

{% endtab %}
{% endtabs %}

[back to top](#endpoints-available)

### /requestwithdrawal

Initiate a withdrawal request on Chorus One.

<mark style="color:green;">`POST`</mark> `https://api.expand.network/liquidstaking/requestwithdrawal`

#### Request Body

*<mark style="color:red;">\*</mark> indicates that a parameter is required*

<table><thead><tr><th width="169">Name</th><th width="103">Type</th><th>Description</th></tr></thead><tbody><tr><td>rpc</td><td>String</td><td>Remote procedural call URL.</td></tr><tr><td>liquidStakingId<mark style="color:red;">*</mark></td><td>String</td><td>Refer to the <a href="https://docs.expand.network/ids/liquid-staking-ids">Liquid Staking IDs</a> page for details.</td></tr><tr><td>from<mark style="color:red;">*</mark></td><td>String</td><td>Public address of the owner of this request.</td></tr><tr><td>amount<mark style="color:red;">*</mark></td><td>String</td><td>Amount of token to stake.</td></tr><tr><td>gas</td><td>String</td><td>Maximum gas limit provided by the sender, for the transaction.</td></tr><tr><td>gas priority</td><td>String</td><td>Low, medium, or high.</td></tr></tbody></table>

{% tabs %}
{% tab title="Sample Request" %}

```json
{
    "liquidStakingId": "200",
    "from": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
    "amount": "96291483622040504",
    "gas": "800000"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
        "to": "0xe6d8d8aC54461b1C5eD15740EEe322043F696C08",
        "value": "0",
        "gas": "800000",
        "data": "0x8ceab9aa000000000000000000000000000000000000000000000000015618981c2fe3b8000000000000000000000000dae2f6eddda6fb4fb60cc02633de27e2b431b402",
        "referenceId": "24f0b15e11ed4a448e2e37b31c1f87e0"
    }
}
```

{% endtab %}
{% endtabs %}

#### With Gas Priority

{% tabs %}
{% tab title="Sample Request" %}

```json
{
    "liquidStakingId": "200",
    "from": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
    "amount": "96291483622040504",
    "gas": "800000",
    "gasPriority":"high"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
        "to": "0xe6d8d8aC54461b1C5eD15740EEe322043F696C08",
        "value": "0",
        "gas": "800000",
        "data": "0x8ceab9aa000000000000000000000000000000000000000000000000015618981c2fe3b8000000000000000000000000dae2f6eddda6fb4fb60cc02633de27e2b431b402",
        "gasPrice": "9162032058",
        "referenceId": "0685c1e49dd548f589fa9245c34e19c1"
    }
}
```

{% endtab %}
{% endtabs %}

[back to top](#endpoints-available)

### /claim

Initiate a transaction to claim staked ETH after a withdrawal request.

<mark style="color:green;">`POST`</mark> `https://api.expand.network/liquidstaking/claim`

#### Request Body

*<mark style="color:red;">\*</mark> indicates that a parameter is required*

<table><thead><tr><th width="176">Name</th><th width="90">Type</th><th>Description</th></tr></thead><tbody><tr><td>rpc</td><td>String</td><td>Remote procedural call URL.</td></tr><tr><td>liquidStakingId<mark style="color:red;">*</mark></td><td>String</td><td>Refer to the <a href="https://docs.expand.network/ids/liquid-staking-ids">Liquid Staking IDs</a> page for details.</td></tr><tr><td>requestId<mark style="color:red;">*</mark></td><td>String</td><td>Request Id which needs to be claimed.</td></tr><tr><td>amount<mark style="color:red;">*</mark></td><td>String</td><td>Amount of token to stake.</td></tr><tr><td>gas</td><td>String</td><td>Maximum gas limit provided by the sender, for the transaction.</td></tr><tr><td>gas priority</td><td>String</td><td>Low, medium, or high.</td></tr></tbody></table>

{% tabs %}
{% tab title="Sample Request" %}

```json
{
    "liquidStakingId": "200",
    "from": "0xe55A8cFF86aBf88bfD89C81C287f14848bcf8542",
    "requestId": "98632406130503281444",
    "gas": "800000"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0xe55A8cFF86aBf88bfD89C81C287f14848bcf8542",
        "to": "0xe6d8d8aC54461b1C5eD15740EEe322043F696C08",
        "value": "0",
        "data": "0x8697d2c200000000000000000000000000000000000000000000000558ccb2cc7eb56b24000000000000000000000000000000000000000000000000000000006645dc67000000000000000000000000000000000000000000000000000000000000001b",
        "gas": "800000",
        "referenceId": "0e9a5ad94cb94402b162962b2bc125e2"
    }
}
```

{% endtab %}
{% endtabs %}

#### With Gas Priority

{% tabs %}
{% tab title="Sample Request" %}

```json
{
    "liquidStakingId": "200",
    "from": "0xe55A8cFF86aBf88bfD89C81C287f14848bcf8542",
    "requestId": "98632406130503281444",
    "gas": "800000",
    "gasPriority":"high"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0xe55A8cFF86aBf88bfD89C81C287f14848bcf8542",
        "to": "0xe6d8d8aC54461b1C5eD15740EEe322043F696C08",
        "value": "0",
        "data": "0x8697d2c200000000000000000000000000000000000000000000000558ccb2cc7eb56b24000000000000000000000000000000000000000000000000000000006645dc67000000000000000000000000000000000000000000000000000000000000001b",
        "gas": "800000",
        "gasPrice": "9368904020",
        "referenceId": "c09f8c096cbf491e981327800d261db3"
    }
}
```

{% endtab %}
{% endtabs %}

[back to top](#endpoints-available)

### /mint

Initiate a transaction to mint osETH.

<mark style="color:green;">`POST`</mark> `https://api.expand.network/liquidstaking/mint`

#### Request Body

*<mark style="color:red;">\*</mark> indicates that a parameter is required*

<table><thead><tr><th width="166">Name</th><th width="86">Type</th><th>Description</th></tr></thead><tbody><tr><td>rpc</td><td>String</td><td>Remote procedural call URL.</td></tr><tr><td>liquidStakingId<mark style="color:red;">*</mark></td><td>String</td><td>Refer to the <a href="https://docs.expand.network/ids/liquid-staking-ids">Liquid Staking IDs</a> page for details.</td></tr><tr><td>from<mark style="color:red;">*</mark></td><td>String</td><td>Public address of the owner of this request.</td></tr><tr><td>amount<mark style="color:red;">*</mark></td><td>String</td><td>Amount of token to stake.</td></tr><tr><td>gas</td><td>String</td><td>Maximum gas limit provided by the sender, for the transaction.</td></tr><tr><td>gas priority</td><td>String</td><td>Low, medium, or high.</td></tr></tbody></table>

{% tabs %}
{% tab title="Sample Request" %}

```json
{
    "liquidStakingId": "200",
    "from": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
    "amount": "1000000000",
    "gas": "800000"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
        "to": "0xe6d8d8aC54461b1C5eD15740EEe322043F696C08",
        "value": "0",
        "gas": "800000",
        "data": "0x201b9eb5000000000000000000000000dae2f6eddda6fb4fb60cc02633de27e2b431b402000000000000000000000000000000000000000000000000000000003b9aca00000000000000000000000000558d7be6092ca91da26521ac25b982d883218e2d",
        "referenceId": "330fa401b85248dfb8c92a82e5d1aca6"
    }
}
```

{% endtab %}
{% endtabs %}

#### With Gas Priority

{% tabs %}
{% tab title="Sample Request" %}

```json
{
    "liquidStakingId": "200",
    "from": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
    "amount": "1000000000",
    "gas": "800000",
    "gasPriority": "high"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
        "to": "0xe6d8d8aC54461b1C5eD15740EEe322043F696C08",
        "value": "0",
        "gas": "800000",
        "data": "0x201b9eb5000000000000000000000000dae2f6eddda6fb4fb60cc02633de27e2b431b402000000000000000000000000000000000000000000000000000000003b9aca00000000000000000000000000558d7be6092ca91da26521ac25b982d883218e2d",
        "gasPrice": "9255297146",
        "referenceId": "35d300ebd77b4b5a9c5863287ed0e59a"
    }
}
```

{% endtab %}
{% endtabs %}

[back to top](#endpoints-available)

### /burn

Initiate a transaction to burn osETH.

<mark style="color:green;">`POST`</mark> `https://api.expand.network/liquidstaking/burn`

#### Request Body

*<mark style="color:red;">\*</mark> indicates that a parameter is required*

<table><thead><tr><th width="169"></th><th width="115.66796875">Type</th><th>Description</th></tr></thead><tbody><tr><td>rpc</td><td>String</td><td>Remote procedural call URL.</td></tr><tr><td>liquidStakingId<mark style="color:red;">*</mark></td><td>String</td><td>Refer to the <a href="https://docs.expand.network/ids/liquid-staking-ids">Liquid Staking IDs</a> page for details.</td></tr><tr><td>from<mark style="color:red;">*</mark></td><td>String</td><td>Public address of the owner of this request.</td></tr><tr><td>amount<mark style="color:red;">*</mark></td><td>String</td><td>Amount of token to stake.</td></tr><tr><td>gas</td><td>String</td><td>Maximum gas limit provided by the sender, for the transaction.</td></tr><tr><td>gas priority</td><td>String</td><td>Low, medium, or high.</td></tr></tbody></table>

{% tabs %}
{% tab title="Sample Request" %}

```json

{
    "liquidStakingId": "200",
    "from": "0x02Fd5aBb1f77841827Bfb7cB19608Ec6488BEd08",
    "amount": "322",
    "gas": "12212"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x02Fd5aBb1f77841827Bfb7cB19608Ec6488BEd08",
        "to": "0xe6d8d8aC54461b1C5eD15740EEe322043F696C08",
        "value": "0",
        "gas": "12212",
        "data": "0x066055e00000000000000000000000000000000000000000000000000000000000000142",
        "referenceId": "a3ff2853fb204693bcba1d1a478e9164"
    }
}
```

{% endtab %}
{% endtabs %}

#### With Gas Priority

{% tabs %}
{% tab title="Sample Request" %}

```json
{
    "liquidStakingId": "200",
    "from": "0x02Fd5aBb1f77841827Bfb7cB19608Ec6488BEd08",
    "amount": "322",
    "gas": "12212",
    "gasPriority": "high"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x02Fd5aBb1f77841827Bfb7cB19608Ec6488BEd08",
        "to": "0xe6d8d8aC54461b1C5eD15740EEe322043F696C08",
        "value": "0",
        "gas": "12212",
        "data": "0x066055e00000000000000000000000000000000000000000000000000000000000000142",
        "gasPrice": "9209305466",
        "referenceId": "cebe1fb60da0467d8fab89bf2f1bd71d"
    }
}
```

{% endtab %}
{% endtabs %}

[back to top](#endpoints-available)

### Error Handling Details

<table><thead><tr><th width="253">Error</th><th>Description</th></tr></thead><tbody><tr><td>400 (Bad Request)</td><td>Indicates the request is invalid or missing the required parameters. The msg field will contain details about the error.</td></tr><tr><td>401 (Unauthorised)</td><td>Indicates the request lacks valid authentication credentials (API key). Ensure that you provide a valid API key in the request headers.</td></tr><tr><td>404 (Not Found)</td><td>Indicates that the specified endpoint or resource does not exist.</td></tr><tr><td>500 (Server Error)</td><td>Indicates an internal server error.</td></tr></tbody></table>

[back to top](#available-endpoints)


# Lido V2

### /getapr

Get the Lido staking APR on Ethereum.

<mark style="color:blue;">`GET`</mark> `https://api.expand.network/liquidstaking/getapr`

#### Query Parameters

| Name            | Type   | Description                                                                             |
| --------------- | ------ | --------------------------------------------------------------------------------------- |
| rpc             | String | Remote procedural call URL.                                                             |
| liquidStakingId | String | Refer to the [Liquid Staking Id](broken://pages/OavKmZGl56Z189e4PXVx) page for details. |

{% tabs %}
{% tab title="Sample Request" %}

```url
https://api.expand.network/liquidstaking/getapr?liquidStakingId=1
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "timeUnix": "1716812675",
        "apr": "3.103",
        "blockNumber": "19961193"
    }
}
```

{% endtab %}
{% endtabs %}

### /getrewards

Get the stETH interactions by a specified user address along with the daily stETH rewards.

<mark style="color:blue;">`GET`</mark> `https://api.expand.network/liquidstaking/getrewards`

#### Query Parameters

<table><thead><tr><th width="182">Name</th><th width="159">Type</th><th>Description</th></tr></thead><tbody><tr><td>rpc</td><td>String</td><td>Remote procedural call URL.</td></tr><tr><td>liquidStakingId</td><td>String</td><td>Refer to the <a href="/pages/OavKmZGl56Z189e4PXVx">Liquid Staking Id</a> page for details.</td></tr><tr><td>address<mark style="color:red;">*</mark></td><td>String</td><td>Public address of the user.</td></tr><tr><td>page</td><td>String</td><td><p>The page number that the user wants to fetch.</p><p>By default, 1.</p></td></tr></tbody></table>

{% tabs %}
{% tab title="Sample Request" %}

```url
https://api.expand.network/liquidstaking/getrewards?address=0xf51F9dbB95B03f0DC60C79BC7dFEB958cb1C8962&page=1
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "events": [
            {
                "apr": "3.937496701524082809229480683079713",
                "block": "18634427",
                "blockTime": "1700742443",
                "id": "0x03f3622b45a9edbfe95325ff82295f5607bad59b0ad2c685b9466a9095ac61da",
                "logIndex": "10",
                "totalPooledEtherAfter": "9157899107759077846808314",
                "totalPooledEtherBefore": "9166748915742419188288274",
                "totalSharesAfter": "7979812024150962005298647",
                "totalSharesBefore": "7988385045435518208987747",
                "type": "reward",
                "reportShares": "18867868971733625201",
                "balance": "21653397335501660877",
                "rewards": "2335643397182351",
                "change": "2335643397182351",
                "currencyChange": "4.826179060422565701819216607798",
                "epochDays": "19684.519016203703703704",
                "epochFullDays": "19684"
            },
            {
                "apr": "4.055508196694252655350449732776334",
                "block": "18627274",
                "blockTime": "1700656079",
                "id": "0xd675c60b908931ab56b5fdabe6ef9e2c087c98d35d90fc1469bfa66767488628",
                "logIndex": "10",
                "totalPooledEtherAfter": "9102161623476534577713402",
                "totalPooledEtherBefore": "9107756642154064122216622",
                "totalSharesAfter": "7932100296676238065535304",
                "totalSharesBefore": "7937857964883158472876527",
                "type": "reward",
                "reportShares": "18867868971733625201",
                "balance": "21651061692104478526",
                "rewards": "2405378167906481",
                "change": "2405378167906481",
                "currencyChange": "4.6676294187476755809931606548492",
                "epochDays": "19683.51943287037037037",
                "epochFullDays": "19683"
            }
        ],
        "totals": {
            "ethRewards": "653197335501660878",
            "currencyRewards": "1173.1516994959593645694978037777253"
        },
        "averageApr": "4.30030827194990587",
        "ethToStEthRatio": 1.000684768587144,
        "stETHCurrencyPrice": {
            "eth": 0.9993157,
            "usd": 3084.04
        },
        "totalItems": 260
}
```

{% endtab %}
{% endtabs %}

### /getstake

Get the amount of stETH and wstETH staked on Lido by a specified address.

<mark style="color:blue;">`GET`</mark> `https://api.expand.network/liquidstaking/getstake`

#### Query Parameters

<table><thead><tr><th width="190">Name</th><th width="167">Type</th><th>Description</th></tr></thead><tbody><tr><td>rpc</td><td>String</td><td>Remote procedural call URL.</td></tr><tr><td>liquidStakingId</td><td>String</td><td>Refer to the <a href="/pages/OavKmZGl56Z189e4PXVx">Liquid Staking Id</a> page for details.</td></tr><tr><td>address<mark style="color:red;">*</mark></td><td>String</td><td>Public address of the user.</td></tr></tbody></table>

{% tabs %}
{% tab title="Sample Request" %}

```url
https://api.expand.network/liquidstaking/getstake?address=0x1d33ab0aF40ee6e5f59C7D1362cb56D35b7A0909
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "stETH": "1",
        "wstETH": "0"
    }
}
```

{% endtab %}
{% endtabs %}

### /getwithdrawalrequests

Get all the withdrawal requests(NFT ids) made by a specified address.

<mark style="color:blue;">`GET`</mark> `https://api.expand.network/liquidstaking/getwithdrawalrequests`

#### Query Parameters

<table><thead><tr><th width="193">Name</th><th width="167">Type</th><th>Description</th></tr></thead><tbody><tr><td>rpc</td><td>String</td><td>Remote procedural call URL.</td></tr><tr><td>liquidStakingId</td><td>String</td><td>Refer to the <a href="/pages/OavKmZGl56Z189e4PXVx">Liquid Staking Id</a> page for details.</td></tr><tr><td>address<mark style="color:red;">*</mark></td><td>String</td><td>Public address of the user.</td></tr></tbody></table>

{% tabs %}
{% tab title="Sample Request" %}

```url
https://api.expand.network/liquidstaking/getwithdrawalrequests?address=0x0AAEf336811136c176100092E24cEe3794389B19
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": [
        "7"
    ]
}
```

{% endtab %}
{% endtabs %}

### /getwithdrawalstatus

Get the status of a withdrawal request made by a specified address.

<mark style="color:blue;">`GET`</mark> `https://api.expand.network/liquidstaking/getwithdrawalstatus`

#### Query Parameters

<table><thead><tr><th width="178">Name</th><th width="183">Type</th><th>Description</th></tr></thead><tbody><tr><td>rpc</td><td>String</td><td>Remote procedural call URL.</td></tr><tr><td>liquidStakingId</td><td>String</td><td>Refer to the <a href="/pages/OavKmZGl56Z189e4PXVx">Liquid Staking Id</a> page for details.</td></tr><tr><td>requestId<mark style="color:red;">*</mark></td><td>String</td><td>The token id of NFT , which is minted upon request, to claim the rewards.</td></tr></tbody></table>

{% tabs %}
{% tab title="Sample Request" %}

```url
https://api.expand.network/liquidstaking/getwithdrawalstatus?requestId=7
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "amountOfStETH": "10000000000000",
        "amountOfShares": "8895462062243",
        "owner": "0x0AAEf336811136c176100092E24cEe3794389B19",
        "timestamp": "1684163999",
        "isFinalized": true,
        "isClaimed": false
    }
}
```

{% endtab %}
{% endtabs %}

### /getprotocolapr

Get the Lido staking APR on Ethereum, for the past 7 days.

<mark style="color:blue;">`GET`</mark> `https://api.expand.network/liquidstaking/getprotocolapr`

#### Query Parameters

<table><thead><tr><th width="191">Name</th><th width="176">Type</th><th>Description</th></tr></thead><tbody><tr><td>rpc</td><td>String</td><td>Remote procedural call URL.</td></tr><tr><td>liquidStakingId</td><td>String</td><td>Refer to the <a href="/pages/OavKmZGl56Z189e4PXVx">Liquid Staking Id</a> page for details.</td></tr></tbody></table>

{% tabs %}
{% tab title="Sample Request" %}

```url
https://api.expand.network/liquidstaking/getprotocolapr?liquidStakingId=1
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "aprs": [
            {
                "timeUnix": 1712492591,
                "apr": 3.041,
                "blockNumber": 19603793
            },
            {
                "timeUnix": 1712579075,
                "apr": 3.148,
                "blockNumber": 19610931
            },
            {
                "timeUnix": 1712665379,
                "apr": 3.22,
                "blockNumber": 19618058
            },
            {
                "timeUnix": 1712751839,
                "apr": 3.36,
                "blockNumber": 19625206
            },
            {
                "timeUnix": 1712838191,
                "apr": 3.45,
                "blockNumber": 19632355
            },
            {
                "timeUnix": 1712924531,
                "apr": 3.146,
                "blockNumber": 19639495
            },
            {
                "timeUnix": 1713011063,
                "apr": 4.31,
                "blockNumber": 19646630
            },
            {
                "timeUnix": 1713097271,
                "apr": 4.436,
                "blockNumber": 19653737
            }
        ],
        "smaApr": 3.513875
    }
}
```

{% endtab %}
{% endtabs %}

### /getallowance

Get the approved allowance amount set by the owner for the spender.

<mark style="color:blue;">`GET`</mark> `https://api.expand.network/liquidstaking/getallowance`

#### Query Parameters

<table><thead><tr><th width="212">Name</th><th width="157">Type</th><th>Description</th></tr></thead><tbody><tr><td>rpc</td><td>String</td><td>Remote procedural call URL.</td></tr><tr><td>liquidStakingId</td><td>String</td><td>Refer to the <a href="/pages/OavKmZGl56Z189e4PXVx">Liquid Staking Id</a> page for details.</td></tr><tr><td>owner<mark style="color:red;">*</mark></td><td>String</td><td>Public address of the owner of token.</td></tr><tr><td>tokenAddress<mark style="color:red;">*</mark></td><td>String</td><td>Token contract address.</td></tr><tr><td>spender<mark style="color:red;">*</mark></td><td>String</td><td>Public address of the spender of token.</td></tr></tbody></table>

{% tabs %}
{% tab title="Sample Request" %}

```url
https://api.expand.network/liquidstaking/getallowance?owner=0x6427B4b028c4A1db5fb5dAf80C22e81115457230&liquidStakingId=1&tokenAddress=0xae7ab96520DE3A18E5e111B5EaAb095312D7fE84&spender=0x6427B4b028c4A1db5fb5dAf80C22e81115457230
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "allowance": "999000000000000000000"
    }
}
```

{% endtab %}
{% endtabs %}

### /stake

Initiate a transaction to stake on Lido.

<mark style="color:green;">`POST`</mark> `https://api.expand.network/liquidstaking/stake`

#### Request Body

<table><thead><tr><th width="214">Name</th><th width="141">Type</th><th>Description</th></tr></thead><tbody><tr><td>rpc</td><td>String</td><td>Remote procedural call URL.</td></tr><tr><td>liquidStakingId</td><td>String</td><td>Refer to the <a href="/pages/OavKmZGl56Z189e4PXVx">Liquid Staking Id</a> page for details.</td></tr><tr><td>from<mark style="color:red;">*</mark></td><td>String</td><td>Public address of the owner of this request.</td></tr><tr><td>amount<mark style="color:red;">*</mark></td><td>String</td><td>Amount of token to stake.</td></tr><tr><td>gas</td><td>String</td><td>Maximum gas limit provided by the sender, for the transaction.</td></tr><tr><td>gasPriority</td><td>String</td><td>low, medium, or high.</td></tr></tbody></table>

{% tabs %}
{% tab title="Sample Request" %}

```json
{
    "amount": "1000000",
    "from": "0x747b11E5AaCeF79cd78C78a8436946b00dE30b97",
    "gas": "40000000"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x747b11E5AaCeF79cd78C78a8436946b00dE30b97",
        "to": "0xae7ab96520DE3A18E5e111B5EaAb095312D7fE84",
        "data": "0xa1903eab000000000000000000000000558d7be6092ca91da26521ac25b982d883218e2d",
        "value": "1000000",
        "gas": "40000000",
        "referenceId": "49df15a47cde46d38e492fa74d16339c"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
**With gasPriority:**

```json
{
    "amount": "1000000",
    "from": "0x747b11E5AaCeF79cd78C78a8436946b00dE30b97",
    "gas": "40000000",
    "gasPriority": "medium"
}
```

{% endtab %}

{% tab title="Sample Response" %}
**With gasPriority:**

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x747b11E5AaCeF79cd78C78a8436946b00dE30b97",
        "to": "0xae7ab96520DE3A18E5e111B5EaAb095312D7fE84",
        "data": "0xa1903eab000000000000000000000000558d7be6092ca91da26521ac25b982d883218e2d",
        "value": "1000000",
        "gas": "40000000",
        "gasPrice": "7144947666",
        "referenceId": "8c857e977f454437852cd07f776bd8f1"
    }
}
```

{% endtab %}
{% endtabs %}

### /wrap

Initiate a transaction to wrap stETH to wstETH.

<mark style="color:green;">`POST`</mark> `https://api.expand.network/liquidstaking/wrap`

#### Request Body

<table><thead><tr><th width="204">Name</th><th width="138">Type</th><th>Description</th></tr></thead><tbody><tr><td>rpc</td><td>String</td><td>Remote procedural call URL.</td></tr><tr><td>liquidStakingId</td><td>String</td><td>Refer to the <a href="/pages/OavKmZGl56Z189e4PXVx">Liquid Staking Id</a> page for details.</td></tr><tr><td>from<mark style="color:red;">*</mark></td><td>String</td><td>Public address of the owner of token.</td></tr><tr><td>amount<mark style="color:red;">*</mark></td><td>String</td><td>Number of tokens to wrap.</td></tr><tr><td>gas</td><td>String</td><td>Maximum gas limit provided by the sender, for the transaction.</td></tr><tr><td>gasPriority</td><td>String</td><td>low, medium, or high.</td></tr></tbody></table>

{% tabs %}
{% tab title="Sample Request" %}

```json
{
    "liquidStakingId": "1",
    "from": "0x747b11E5AaCeF79cd78C78a8436946b00dE30b97",
    "gas": "40000000",
    "amount": "100000"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x747b11E5AaCeF79cd78C78a8436946b00dE30b97",
        "to": "0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0",
        "data": "0xea598cb000000000000000000000000000000000000000000000000000000000000186a0",
        "value": "0",
        "gas": "40000000",
        "referenceId": "03d97934beaa4f7faafbf31f85f2cea4"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
**With gasPriority:**&#x20;

```json
{
    "liquidStakingId": "1",
    "from": "0x747b11E5AaCeF79cd78C78a8436946b00dE30b97",
    "gas": "40000000",
    "amount": "100000",
    "gasPriority": "medium"
}
```

{% endtab %}

{% tab title="Sample Response" %}
**With gasPriority:**

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x747b11E5AaCeF79cd78C78a8436946b00dE30b97",
        "to": "0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0",
        "data": "0xea598cb000000000000000000000000000000000000000000000000000000000000186a0",
        "value": "0",
        "gas": "40000000",
        "gasPrice": "7195206119",
        "referenceId": "32adf74c3dcf43a480c591ff8f58453a"
    }
}
```

{% endtab %}
{% endtabs %}

### /unwrap

Initiate a transaction to unwrap wstETH to stETH.

<mark style="color:green;">`POST`</mark> `https://api.expand.network/liquidstaking/unwrap`

#### Request Body

<table><thead><tr><th width="201">Name</th><th width="140">Type</th><th>Description</th></tr></thead><tbody><tr><td>rpc</td><td>String</td><td>Remote procedural call URL.</td></tr><tr><td>liquidStakingId</td><td>String</td><td>Refer to the <a href="/pages/OavKmZGl56Z189e4PXVx">Liquid Staking Id</a> page for details.</td></tr><tr><td>from<mark style="color:red;">*</mark></td><td>String</td><td>Public address of the owner of token.</td></tr><tr><td>amount<mark style="color:red;">*</mark></td><td>String</td><td>Number of tokens to unwrap.</td></tr><tr><td>gas</td><td>String</td><td>Maximum gas limit provided by the sender, for the transaction.</td></tr><tr><td>gasPriority</td><td>String</td><td>low, medium, or high.</td></tr></tbody></table>

{% tabs %}
{% tab title="Sample Request" %}

```json
{
    "liquidStakingId": "1",
    "from": "0x747b11E5AaCeF79cd78C78a8436946b00dE30b97",
    "gas": "40000000",
    "amount": "100000"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x747b11E5AaCeF79cd78C78a8436946b00dE30b97",
        "to": "0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0",
        "data": "0xde0e9a3e00000000000000000000000000000000000000000000000000000000000186a0",
        "value": "0",
        "gas": "40000000",
        "referenceId": "a868769848d44f3fb862c1b476ae45a8"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
**With gasPriority:**

```json
{
    "liquidStakingId": "1",
    "from": "0x747b11E5AaCeF79cd78C78a8436946b00dE30b97",
    "gas": "40000000",
    "amount": "100000",
    "gasPriority": "high"
}
```

{% endtab %}

{% tab title="Sample Response" %}
**With gasPriority:**

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x747b11E5AaCeF79cd78C78a8436946b00dE30b97",
        "to": "0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0",
        "data": "0xde0e9a3e00000000000000000000000000000000000000000000000000000000000186a0",
        "value": "0",
        "gas": "40000000",
        "gasPrice": "8350896741",
        "referenceId": "70dfa4fababe465da77b16121aeb99b0"
    }
}
```

{% endtab %}
{% endtabs %}

### /increaseallowance

Initiate a transaction to increase the allowance of stETH or wstETH on the spender’s account.

<mark style="color:green;">`POST`</mark> `https://api.expand.network/liquidstaking/increaseallowance`

#### Request Body

<table><thead><tr><th width="193">Name</th><th width="139">Type</th><th>Description</th></tr></thead><tbody><tr><td>rpc</td><td>String</td><td>Remote procedural call URL.</td></tr><tr><td>liquidStakingId</td><td>String</td><td>Refer to the <a href="/pages/OavKmZGl56Z189e4PXVx">Liquid Staking Id</a> page for details.</td></tr><tr><td>from<mark style="color:red;">*</mark></td><td>String</td><td>Public address of the owner of this request.</td></tr><tr><td>tokenAddress<mark style="color:red;">*</mark></td><td>String</td><td>Token contract address.</td></tr><tr><td>spender<mark style="color:red;">*</mark></td><td>String</td><td>Address of spender.</td></tr><tr><td>addedAmount<mark style="color:red;">*</mark></td><td>String</td><td>Amount of tokens to increase allowance.</td></tr><tr><td>gas</td><td>String</td><td>Maximum gas limit provided by the sender, for the transaction.</td></tr><tr><td>gasPriority</td><td>String</td><td>low, medium, or high.</td></tr></tbody></table>

{% tabs %}
{% tab title="Sample Request" %}

```json
{
    "liquidStakingId": "1",
    "from": "0x747b11E5AaCeF79cd78C78a8436946b00dE30b97",
    "gas": "40000000",
    "addedAmount": "100000",
    "spender": "0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0",
    "tokenAddress": "0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x747b11E5AaCeF79cd78C78a8436946b00dE30b97",
        "to": "0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0",
        "data": "0x395093510000000000000000000000007f39c581f595b53c5cb19bd0b3f8da6c935e2ca000000000000000000000000000000000000000000000000000000000000186a0",
        "value": "0",
        "gas": "40000000",
        "referenceId": "fefeae75bdf247039d0cc0b6028247d5"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
**With gasPriority:**

```json
{
    "liquidStakingId": "1",
    "from": "0x747b11E5AaCeF79cd78C78a8436946b00dE30b97",
    "gas": "40000000",
    "addedAmount": "100000",
    "spender": "0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0",
    "tokenAddress": "0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0",
    "gasPriority": "high"
}
```

{% endtab %}

{% tab title="Sample Response" %}
**With gasPriority:**

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x747b11E5AaCeF79cd78C78a8436946b00dE30b97",
        "to": "0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0",
        "data": "0x395093510000000000000000000000007f39c581f595b53c5cb19bd0b3f8da6c935e2ca000000000000000000000000000000000000000000000000000000000000186a0",
        "value": "0",
        "gas": "40000000",
        "gasPrice": "8327301426",
        "referenceId": "413943076da94d65afa716cec441b14e"
    }
}
```

{% endtab %}
{% endtabs %}

### /decreaseallowance

Initiate a transaction to decrease the allowance of stETH or wstETH on the spender’s account.

<mark style="color:green;">`POST`</mark> `https://api.expand.network/liquidstaking/decreaseallowance`

#### Request Body

<table><thead><tr><th width="204">Name</th><th width="150">Type</th><th>Description</th></tr></thead><tbody><tr><td>rpc</td><td>String</td><td>Remote procedural call URL.</td></tr><tr><td>liquidStakingId</td><td>String</td><td>Refer to the <a href="/pages/OavKmZGl56Z189e4PXVx">Liquid Staking Id</a> page for details.</td></tr><tr><td>from<mark style="color:red;">*</mark></td><td>String</td><td>Public address of the owner of this request.</td></tr><tr><td>tokenAddress<mark style="color:red;">*</mark></td><td>String</td><td>Token contract address.</td></tr><tr><td>spender<mark style="color:red;">*</mark></td><td>String</td><td>Address of spender.</td></tr><tr><td>subtractedAmount<mark style="color:red;">*</mark></td><td>String</td><td>Amount of tokens to decrease allowance.</td></tr><tr><td>gas</td><td>String</td><td>Maximum gas limit provided by the sender, for the transaction.</td></tr><tr><td>gasPriority</td><td>String</td><td>low, medium, or high.</td></tr></tbody></table>

{% tabs %}
{% tab title="Sample Request" %}

```json
{
    "liquidStakingId": "1",
    "from": "0x747b11E5AaCeF79cd78C78a8436946b00dE30b97",
    "gas": "40000000",
    "subtractedAmount": "100000",
    "spender": "0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0",
    "tokenAddress": "0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x747b11E5AaCeF79cd78C78a8436946b00dE30b97",
        "to": "0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0",
        "data": "0xa457c2d70000000000000000000000007f39c581f595b53c5cb19bd0b3f8da6c935e2ca000000000000000000000000000000000000000000000000000000000000186a0",
        "value": "0",
        "gas": "40000000",
        "referenceId": "223c98558be7459480b886611ab27841"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
**With gasPriority:**&#x20;

```json
{
    "liquidStakingId": "1",
    "from": "0x747b11E5AaCeF79cd78C78a8436946b00dE30b97",
    "gas": "40000000",
    "subtractedAmount": "100000",
    "spender": "0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0",
    "tokenAddress": "0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0",
    "gasPriority": "low"
}
```

{% endtab %}

{% tab title="Sample Response" %}
**With gasPriority:**&#x20;

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x747b11E5AaCeF79cd78C78a8436946b00dE30b97",
        "to": "0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0",
        "data": "0xa457c2d70000000000000000000000007f39c581f595b53c5cb19bd0b3f8da6c935e2ca000000000000000000000000000000000000000000000000000000000000186a0",
        "value": "0",
        "gas": "40000000",
        "gasPrice": "5468261957",
        "referenceId": "68e91de79a0f4493b7eb8c0cb0de1c99"
    }
}
```

{% endtab %}
{% endtabs %}

### /approvewithdrawal

Initiate a transaction to approve the withdrawal request from a specified address.

<mark style="color:green;">`POST`</mark> `https://api.expand.network/liquidstaking/approvewithdrawal`

#### Request Body

<table><thead><tr><th width="192">Name</th><th width="136">Type</th><th>Description</th></tr></thead><tbody><tr><td>rpc</td><td>String</td><td>Remote procedural call URL.</td></tr><tr><td>liquidStakingId</td><td>String</td><td>Refer to the <a href="/pages/OavKmZGl56Z189e4PXVx">Liquid Staking Id</a> page for details.</td></tr><tr><td>from<mark style="color:red;">*</mark></td><td>String</td><td>Public address of the owner of this request.</td></tr><tr><td>amount<mark style="color:red;">*</mark></td><td>String</td><td>Amount of tokens to approve withdrawal.</td></tr><tr><td>gas</td><td>String</td><td>Maximum gas limit provided by the sender, for the transaction.</td></tr><tr><td>gasPriority</td><td>String</td><td>low, medium, or high.</td></tr></tbody></table>

{% tabs %}
{% tab title="Sample Request" %}

```json
{
    "liquidStakingId": "1",
    "amount": "1000000",
    "from": "0x747b11E5AaCeF79cd78C78a8436946b00dE30b97",
    "gas": "40000000"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x747b11E5AaCeF79cd78C78a8436946b00dE30b97",
        "to": "0xae7ab96520DE3A18E5e111B5EaAb095312D7fE84",
        "data": "0x095ea7b3000000000000000000000000889edc2edab5f40e902b864ad4d7ade8e412f9b100000000000000000000000000000000000000000000000000000000000f4240",
        "gas": "40000000",
        "value": "0",
        "referenceId": "150082533644414dba28249a26f30082"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
**With gasPriority:**&#x20;

```json
{
    "liquidStakingId": "1",
    "amount": "1000000",
    "from": "0x747b11E5AaCeF79cd78C78a8436946b00dE30b97",
    "gas": "40000000",
    "gasPriority": "high"
}
```

{% endtab %}

{% tab title="Sample Response" %}
**With gasPriority:**&#x20;

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x747b11E5AaCeF79cd78C78a8436946b00dE30b97",
        "to": "0xae7ab96520DE3A18E5e111B5EaAb095312D7fE84",
        "data": "0x095ea7b3000000000000000000000000889edc2edab5f40e902b864ad4d7ade8e412f9b100000000000000000000000000000000000000000000000000000000000f4240",
        "gas": "40000000",
        "value": "0",
        "gasPrice": "8180907297",
        "referenceId": "59bcdc674df540778575a933cacb2175"
    }
}
```

{% endtab %}
{% endtabs %}

### /requestwithdrawal

Initiate a transaction to request a withdrawal on Lido.

<mark style="color:green;">`POST`</mark> `https://api.expand.network/liquidstaking/requestwithdrawal`

#### Request Body

<table><thead><tr><th width="182">Name</th><th width="143">Type</th><th>Description</th></tr></thead><tbody><tr><td>rpc</td><td>String</td><td>Remote procedural call URL.</td></tr><tr><td>liquidStakingId</td><td>String</td><td>Refer to the <a href="/pages/OavKmZGl56Z189e4PXVx">Liquid Staking Id</a> page for details.</td></tr><tr><td>from<mark style="color:red;">*</mark></td><td>String</td><td>Public address of the owner of this request.</td></tr><tr><td>amount<mark style="color:red;">*</mark></td><td>String</td><td>Amount of tokens to request withdrawal.</td></tr><tr><td>ownerAddress<mark style="color:red;">*</mark></td><td>String</td><td>Public address of the owner.</td></tr><tr><td>gas</td><td>String</td><td>Maximum gas limit provided by the sender, for the transaction.</td></tr><tr><td>gasPriority</td><td>String</td><td>low, medium, or high.</td></tr></tbody></table>

{% tabs %}
{% tab title="Sample Request" %}

```json
{
    "liquidStakingId": "1",
    "amount": "1000000",
    "from": "0x747b11E5AaCeF79cd78C78a8436946b00dE30b97",
    "ownerAddress": "0x747b11E5AaCeF79cd78C78a8436946b00dE30b97",
    "gas": "40000000"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x747b11E5AaCeF79cd78C78a8436946b00dE30b97",
        "to": "0x889edC2eDab5f40e902b864aD4d7AdE8E412F9B1",
        "data": "0xd66810420000000000000000000000000000000000000000000000000000000000000040000000000000000000000000747b11e5aacef79cd78c78a8436946b00de30b97000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000f4240",
        "gas": "40000000",
        "value": "0",
        "referenceId": "d3a79bcfd6ce4cdea13dfed88975ced7"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
**With gasPriority:**&#x20;

```json
{
    "liquidStakingId": "1",
    "amount": "1000000",
    "from": "0x747b11E5AaCeF79cd78C78a8436946b00dE30b97",
    "ownerAddress": "0x747b11E5AaCeF79cd78C78a8436946b00dE30b97",
    "gas": "40000000",
    "gasPriority": "low"
}
```

{% endtab %}

{% tab title="Sample Response" %}
**With gasPriority:**

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x747b11E5AaCeF79cd78C78a8436946b00dE30b97",
        "to": "0x889edC2eDab5f40e902b864aD4d7AdE8E412F9B1",
        "data": "0xd66810420000000000000000000000000000000000000000000000000000000000000040000000000000000000000000747b11e5aacef79cd78c78a8436946b00de30b97000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000f4240",
        "gas": "40000000",
        "value": "0",
        "gasPrice": "5362720113",
        "referenceId": "8aa2c8ed9d204f0d888fb0c5dab3a75c"
    }
}
```

{% endtab %}
{% endtabs %}

### /claim

Initiate a transaction to burn the NFT, which is minted upon request, and to claim the rewards.

<mark style="color:green;">`POST`</mark> `https://api.expand.network/liquidstaking/claim`

#### Request Body

<table><thead><tr><th width="184">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>liquidStakingId</td><td>String</td><td>Refer to the <a href="/pages/OavKmZGl56Z189e4PXVx">Liquid Staking Id</a> page for details.</td></tr><tr><td>from<mark style="color:red;">*</mark></td><td>String</td><td>Public address of the owner of this request.</td></tr><tr><td>requestId<mark style="color:red;">*</mark></td><td>String</td><td>The token id of NFT , which is minted upon request, to claim the rewards.</td></tr><tr><td>gas</td><td>String</td><td>Maximum gas limit provided by the sender, for the transaction.</td></tr><tr><td>gasPriority</td><td>String</td><td>low, medium, or high.</td></tr></tbody></table>

{% tabs %}
{% tab title="Sample Request" %}

```json
{
    "liquidStakingId": "1",
    "from": "0x747b11E5AaCeF79cd78C78a8436946b00dE30b97",
    "gas": "40000000",
    "requestId": "7"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x747b11E5AaCeF79cd78C78a8436946b00dE30b97",
        "to": "0x889edC2eDab5f40e902b864aD4d7AdE8E412F9B1",
        "data": "0xf84444360000000000000000000000000000000000000000000000000000000000000007",
        "gas": "40000000",
        "value": "0",
        "referenceId": "e7f0f8da54594cc98e5c8229e2543903"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
**With gasPriority:**

```json
{
    "liquidStakingId": "1",
    "from": "0x747b11E5AaCeF79cd78C78a8436946b00dE30b97",
    "gas": "40000000",
    "requestId": "7",
    "gasPriority": "high"
}
```

{% endtab %}

{% tab title="Sample Response" %}
**With gasPriority:**

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x747b11E5AaCeF79cd78C78a8436946b00dE30b97",
        "to": "0x889edC2eDab5f40e902b864aD4d7AdE8E412F9B1",
        "data": "0xf84444360000000000000000000000000000000000000000000000000000000000000007",
        "gas": "40000000",
        "value": "0",
        "gasPrice": "7829348729",
        "referenceId": "219dd43d95de4831a50668d0fab8f125"
    }
}
```

{% endtab %}
{% endtabs %}


# Stader

### Supported Chains

Available on **Ethereum, Binance and Polygon**

### Available Endpoints:

*Click on the endpoint to jump to the section with full details*

* [<mark style="color:blue;">/</mark>](#getmakerorders)[**getapr**](#getapr) <mark style="color:blue;">`GET`</mark> - Get the Stader staking APR.
* [**/getrewards** ](#getrewards)<mark style="color:blue;">`GET`</mark> - Get the initial staked amount and current staked value by a specified user address.
* [**/getstake**](#getstake) <mark style="color:blue;">`GET`</mark> -Get the stake amount for a particular address.
* [**/**](#getwithdrawalrewards)[<mark style="color:blue;">**getwithdrawalrequests**</mark>](#getwithdrawalrequests)[ ](#getwithdrawalrewards)<mark style="color:blue;">`GET`</mark> - Retrieves all withdrawal requests made by a specified address.
* [**/**](#getwithdrawalrewards)[<mark style="color:blue;">**getwithdrawalstatus**</mark>](#getwithdrawalstatus)<mark style="color:blue;">`GET`</mark> - Get the status of a withdrawal request made by a specified address.
* [**/**](#getwithdrawalrewards)[<mark style="color:blue;">**getallowance**</mark>](#getallowance)<mark style="color:blue;">`GET`</mark> - Get the approved allowance amount set by the owner for the spender.
* [**/Stake**](#stake) <mark style="color:green;">`POST`</mark> - Initiate a transaction to stake on Stader protocol.
* [**/requestwithdrawal** ](#requestwithdrawal)<mark style="color:green;">`POST`</mark> - Initiate a withdrawal request on Stader.
* [**/**](#requestwithdrawal)[<mark style="color:blue;">**approvewithdrawal**</mark>](#approvewithdrawal)[ ](#requestwithdrawal)<mark style="color:green;">`POST`</mark> - Initiate a transaction to approve the withdrawal request from a specified address.
* [**/claim**](#claim) <mark style="color:green;">`POST`</mark> - Initiate a transaction to claim staked ETH after a withdrawal request.
* [**/**](#mint)[<mark style="color:blue;">**decreaseallowance**</mark>](#decreaseallowance) <mark style="color:green;">`POST`</mark> - Initiate a transaction to decrease the allowance of staked token on the spender’s account.
* [**/**](#burn)[<mark style="color:blue;">**increaseallowance**</mark>](#increaseallowance) <mark style="color:green;">`POST`</mark> - Initiate a transaction to increase the allowance of staked token on the spender’s account.

*Also see* [<mark style="color:blue;">Error Handling Details</mark>](#error-handling-details)

## Liquid Staking IDs

Many endpoints have a parameter where you can provide a Liquid Staking ID.&#x20;

Below is a list of Liquid Staking IDs related to Stader. Please see the [Liquid Staking ID page](broken://pages/OavKmZGl56Z189e4PXVx) for a complete Liquid Staking ID list and more information.

<table><thead><tr><th width="275">Liquid Staking Name</th><th>Chain</th><th>Liquid Staking ID</th></tr></thead><tbody><tr><td>Stader</td><td>Ethereum</td><td>2</td></tr><tr><td>Stader</td><td>Binance</td><td>56</td></tr><tr><td>Stader</td><td>Polygon</td><td>137</td></tr><tr><td>Stader</td><td>Binance Testnet</td><td>97</td></tr></tbody></table>

## Endpoint Details

### /getapr

Get the Stader staking APR.

<mark style="color:blue;">`GET`</mark> `https://api.expand.network/liquidstaking/getapr`

#### Query Parameters

| Name            | Type   | Description                                                                             |
| --------------- | ------ | --------------------------------------------------------------------------------------- |
| rpc             | String | Remote procedural call URL.                                                             |
| liquidStakingId | String | Refer to the [Liquid Staking Id](broken://pages/OavKmZGl56Z189e4PXVx) page for details. |

{% tabs %}
{% tab title="Sample Request" %}

```url
https://api.expand.network/liquidstaking/getapr?liquidStakingId=2
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "timeUnix": "1722397871",
        "apr": "3.04",
        "blockNumber": "20423959"
    }
}
```

{% endtab %}
{% endtabs %}

[<mark style="color:blue;">back to top</mark>](#endpoints-available)

### /getrewards

Get the initial staked amount and current staked value by a specified user address.

<mark style="color:blue;">`GET`</mark> `https://api.expand.network/liquidstaking/getrewards`

#### Query Parameters

<table><thead><tr><th width="182">Name</th><th width="159">Type</th><th>Description</th></tr></thead><tbody><tr><td>rpc</td><td>String</td><td>Remote procedural call URL.</td></tr><tr><td>liquidStakingId</td><td>String</td><td>Refer to the <a href="/pages/OavKmZGl56Z189e4PXVx">Liquid Staking Id</a> page for details.</td></tr><tr><td>address<mark style="color:red;">*</mark></td><td>String</td><td>Public address of the user.</td></tr></tbody></table>

{% tabs %}
{% tab title="Sample Request" %}

```url
https://api.expand.network/liquidstaking/getrewards?address=0x40B38765696e3d5d8d9d834D8AaD4bB6e418E489&liquidStakingId=2
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "stakedAmount": "0",
        "stakeValue": "0"
    }
}
```

{% endtab %}
{% endtabs %}

[<mark style="color:blue;">back to top</mark>](#endpoints-available)

### /getstake

Get the stake amount for a particular address.

<mark style="color:blue;">`GET`</mark> `https://api.expand.network/liquidstaking/getstake`

#### Query Parameters

<table><thead><tr><th width="190">Name</th><th width="167">Type</th><th>Description</th></tr></thead><tbody><tr><td>rpc</td><td>String</td><td>Remote procedural call URL.</td></tr><tr><td>liquidStakingId</td><td>String</td><td>Refer to the <a href="/pages/OavKmZGl56Z189e4PXVx">Liquid Staking Id</a> page for details.</td></tr><tr><td>address<mark style="color:red;">*</mark></td><td>String</td><td>Public address of the user.</td></tr></tbody></table>

{% tabs %}
{% tab title="Sample Request" %}

```url
https://api.expand.network/liquidstaking/getstake?address=0xAB06ef1d486721a83C94B30B58ab9E28c5a1049D&liquidStakingId=2
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "ETHx": "2878342440"
    }
}
```

{% endtab %}
{% endtabs %}

[<mark style="color:blue;">back to top</mark>](#endpoints-available)

### /getwithdrawalrequests

Get all the withdrawal requests(NFT ids) made by a specified address.

<mark style="color:blue;">`GET`</mark> `https://api.expand.network/liquidstaking/getwithdrawalrequests`

#### Query Parameters

<table><thead><tr><th width="193">Name</th><th width="167">Type</th><th>Description</th></tr></thead><tbody><tr><td>rpc</td><td>String</td><td>Remote procedural call URL.</td></tr><tr><td>liquidStakingId</td><td>String</td><td>Refer to the <a href="/pages/OavKmZGl56Z189e4PXVx">Liquid Staking Id</a> page for details.</td></tr><tr><td>address<mark style="color:red;">*</mark></td><td>String</td><td>Public address of the user.</td></tr></tbody></table>

{% tabs %}
{% tab title="Sample Request" %}

```url
https://api.expand.network/liquidstaking/getwithdrawalrequests?liquidStakingId=2&address=0x2Dce7632866E1C795e5644d30173d18b1DfAa71a
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": [
        "2130"
    ]
}
```

{% endtab %}
{% endtabs %}

[<mark style="color:blue;">back to top</mark>](#endpoints-available)

### /getwithdrawalstatus

Get the status of a withdrawal request made by a specified address.

<mark style="color:blue;">`GET`</mark> `https://api.expand.network/liquidstaking/getwithdrawalstatus`

#### Query Parameters

<table><thead><tr><th width="178">Name</th><th width="183">Type</th><th>Description</th></tr></thead><tbody><tr><td>rpc</td><td>String</td><td>Remote procedural call URL.</td></tr><tr><td>liquidStakingId</td><td>String</td><td>Refer to the <a href="/pages/OavKmZGl56Z189e4PXVx">Liquid Staking Id</a> page for details.</td></tr><tr><td>address<mark style="color:red;">*</mark></td><td>String</td><td>The address of user</td></tr><tr><td>requestId<mark style="color:red;">*</mark></td><td>String</td><td>The token id of NFT , which is minted upon request, to claim the rewards.</td></tr></tbody></table>

{% tabs %}
{% tab title="Sample Request" %}

```url
https://api.expand.network/liquidstaking/getwithdrawalstatus?liquidStakingId=2&requestId=1973&address=0xAB06ef1d486721a83C94B30B58ab9E28c5a1049D
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "amountOfETH": "91233891673519371",
        "isFinalized": "91233891673519371"
    }
}
```

{% endtab %}
{% endtabs %}

[<mark style="color:blue;">back to top</mark>](#endpoints-available)

### /getallowance

Get the approved allowance amount set by the owner for the spender.

<mark style="color:blue;">`GET`</mark> `https://api.expand.network/liquidstaking/getallowance`

#### Query Parameters

<table><thead><tr><th width="212">Name</th><th width="157">Type</th><th>Description</th></tr></thead><tbody><tr><td>rpc</td><td>String</td><td>Remote procedural call URL.</td></tr><tr><td>liquidStakingId</td><td>String</td><td>Refer to the <a href="/pages/OavKmZGl56Z189e4PXVx">Liquid Staking Id</a> page for details.</td></tr><tr><td>owner<mark style="color:red;">*</mark></td><td>String</td><td>Public address of the owner of token.</td></tr><tr><td>tokenAddress<mark style="color:red;">*</mark></td><td>String</td><td>Token contract address.</td></tr><tr><td>spender<mark style="color:red;">*</mark></td><td>String</td><td>Public address of the spender of token.</td></tr></tbody></table>

{% tabs %}
{% tab title="Sample Request" %}

```url
https://api.expand.network/liquidstaking/getallowance?owner=0x49eb67E250513FAb9506190ed023F12A214D1a74&liquidStakingId=2&tokenAddress=0xA35b1B31Ce002FBF2058D22F30f95D405200A15b&spender=0x9f0491b32dbce587c50c4c43ab303b06478193a7
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "allowance": "53880000000000000"
    }
}
```

{% endtab %}
{% endtabs %}

[<mark style="color:blue;">back to top</mark>](#endpoints-available)

### /stake

Initiate a transaction to stake on Stader.

<mark style="color:green;">`POST`</mark> `https://api.expand.network/liquidstaking/stake`

#### Request Body

<table><thead><tr><th width="214">Name</th><th width="141">Type</th><th>Description</th></tr></thead><tbody><tr><td>rpc</td><td>String</td><td>Remote procedural call URL.</td></tr><tr><td>liquidStakingId</td><td>String</td><td>Refer to the <a href="/pages/OavKmZGl56Z189e4PXVx">Liquid Staking Id</a> page for details.</td></tr><tr><td>from<mark style="color:red;">*</mark></td><td>String</td><td>Public address of the owner of this request.</td></tr><tr><td>amount<mark style="color:red;">*</mark></td><td>String</td><td>Amount of token to stake.</td></tr><tr><td>gas<mark style="color:red;">*</mark></td><td>String</td><td>Maximum gas limit provided by the sender, for the transaction.</td></tr><tr><td>gasPriority</td><td>String</td><td>low, medium, or high.</td></tr></tbody></table>

{% tabs %}
{% tab title="Sample Request" %}

```json
{
    "amount": "1000000000000000000",
    "liquidStakingId": "2",
    "from": "0x9f0ff6eCef671200447604c19D72228a170BC21c",
    "gas": "40000"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x9f0ff6eCef671200447604c19D72228a170BC21c",
        "to": "0xcf5EA1b38380f6aF39068375516Daf40Ed70D299",
        "data": "0xf340fa010000000000000000000000009f0ff6ecef671200447604c19d72228a170bc21c",
        "value": "1000000000000000000",
        "gas": "40000",
        "referenceId": "b588227ce2694337a48dad29a463bb8e"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
**With gasPriority:**

```json
{
    "amount": "1000000000000000000",
    "liquidStakingId": "2",
    "from": "0x9f0ff6eCef671200447604c19D72228a170BC21c",
    "gas": "40000",
    "gasPriority": "low"
}
```

{% endtab %}

{% tab title="Sample Response" %}
**With gasPriority:**

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x9f0ff6eCef671200447604c19D72228a170BC21c",
        "to": "0xcf5EA1b38380f6aF39068375516Daf40Ed70D299",
        "data": "0xf340fa010000000000000000000000009f0ff6ecef671200447604c19d72228a170bc21c",
        "value": "1000000000000000000",
        "gas": "40000",
        "gasPrice": "1879217982",
        "referenceId": "b588227ce2694337a48dad29a463bb8e"
    }
}
```

{% endtab %}
{% endtabs %}

[<mark style="color:blue;">back to top</mark>](#endpoints-available)

### /increaseallowance

Initiate a transaction to increase the allowance of staked token on the spender’s account.

<mark style="color:green;">`POST`</mark> `https://api.expand.network/liquidstaking/increaseallowance`

#### Request Body

<table><thead><tr><th width="193">Name</th><th width="139">Type</th><th>Description</th></tr></thead><tbody><tr><td>rpc</td><td>String</td><td>Remote procedural call URL.</td></tr><tr><td>liquidStakingId</td><td>String</td><td>Refer to the <a href="/pages/OavKmZGl56Z189e4PXVx">Liquid Staking Id</a> page for details.</td></tr><tr><td>from<mark style="color:red;">*</mark></td><td>String</td><td>Public address of the owner of this request.</td></tr><tr><td>tokenAddress<mark style="color:red;">*</mark></td><td>String</td><td>Token contract address.</td></tr><tr><td>spender<mark style="color:red;">*</mark></td><td>String</td><td>Address of spender.</td></tr><tr><td>addedAmount<mark style="color:red;">*</mark></td><td>String</td><td>Amount of tokens to increase allowance.</td></tr><tr><td>gas<mark style="color:red;">*</mark></td><td>String</td><td>Maximum gas limit provided by the sender, for the transaction.</td></tr><tr><td>gasPriority</td><td>String</td><td>low, medium, or high.</td></tr></tbody></table>

{% tabs %}
{% tab title="Sample Request" %}

```json
{
    "liquidStakingId": "2",
    "from": "0x9f0ff6eCef671200447604c19D72228a170BC21c",
    "gas": "400000",
    "addedAmount": "100000",
    "spender": "0xcf5EA1b38380f6aF39068375516Daf40Ed70D299",
    "tokenAddress": "0xA35b1B31Ce002FBF2058D22F30f95D405200A15b",
    "gasPriority":"low"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x9f0ff6eCef671200447604c19D72228a170BC21c",
        "to": "0xA35b1B31Ce002FBF2058D22F30f95D405200A15b",
        "data": "0x39509351000000000000000000000000cf5ea1b38380f6af39068375516daf40ed70d29900000000000000000000000000000000000000000000000000000000000186a0",
        "value": "0",
        "gas": "400000",
        "referenceId": "81fe2de697a84044b5c12a50981a2a80"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
**With gasPriority:**

```json
{
    "liquidStakingId": "2",
    "from": "0x9f0ff6eCef671200447604c19D72228a170BC21c",
    "gas": "400000",
    "addedAmount": "100000",
    "spender": "0xcf5EA1b38380f6aF39068375516Daf40Ed70D299",
    "tokenAddress": "0xA35b1B31Ce002FBF2058D22F30f95D405200A15b",
    "gasPriority":"low"
}
```

{% endtab %}

{% tab title="Sample Response" %}
**With gasPriority:**

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x9f0ff6eCef671200447604c19D72228a170BC21c",
        "to": "0xA35b1B31Ce002FBF2058D22F30f95D405200A15b",
        "data": "0x39509351000000000000000000000000cf5ea1b38380f6af39068375516daf40ed70d29900000000000000000000000000000000000000000000000000000000000186a0",
        "value": "0",
        "gas": "400000",
        "gasPrice": "1799425943",
        "referenceId": "81fe2de697a84044b5c12a50981a2a80"
    }
}
```

{% endtab %}
{% endtabs %}

[<mark style="color:blue;">back to top</mark>](#endpoints-available)

### /decreaseallowance

Initiate a transaction to decrease the allowance of staked token on the spender’s account.

<mark style="color:green;">`POST`</mark> `https://api.expand.network/liquidstaking/decreaseallowance`

#### Request Body

<table><thead><tr><th width="204">Name</th><th width="150">Type</th><th>Description</th></tr></thead><tbody><tr><td>rpc</td><td>String</td><td>Remote procedural call URL.</td></tr><tr><td>liquidStakingId</td><td>String</td><td>Refer to the <a href="/pages/OavKmZGl56Z189e4PXVx">Liquid Staking Id</a> page for details.</td></tr><tr><td>from<mark style="color:red;">*</mark></td><td>String</td><td>Public address of the owner of this request.</td></tr><tr><td>tokenAddress<mark style="color:red;">*</mark></td><td>String</td><td>Token contract address.</td></tr><tr><td>spender<mark style="color:red;">*</mark></td><td>String</td><td>Address of spender.</td></tr><tr><td>subtractedAmount<mark style="color:red;">*</mark></td><td>String</td><td>Amount of tokens to decrease allowance.</td></tr><tr><td>gas</td><td>String</td><td>Maximum gas limit provided by the sender, for the transaction.</td></tr><tr><td>gasPriority</td><td>String</td><td>low, medium, or high.</td></tr></tbody></table>

{% tabs %}
{% tab title="Sample Request" %}

```json
{
    "liquidStakingId": "2",
    "from": "0x9f0ff6eCef671200447604c19D72228a170BC21c",
    "gas": "400000",
    "subtractedAmount": "100000",
    "spender": "0xcf5EA1b38380f6aF39068375516Daf40Ed70D299",
    "tokenAddress": "0xA35b1B31Ce002FBF2058D22F30f95D405200A15b"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x9f0ff6eCef671200447604c19D72228a170BC21c",
        "to": "0xA35b1B31Ce002FBF2058D22F30f95D405200A15b",
        "data": "0xa457c2d7000000000000000000000000cf5ea1b38380f6af39068375516daf40ed70d29900000000000000000000000000000000000000000000000000000000000186a0",
        "value": "0",
        "gas": "400000",
        "referenceId": "c86772e57a054784b95f30660b804e51"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
**With gasPriority:**&#x20;

```json
{
    "liquidStakingId": "2",
    "from": "0x9f0ff6eCef671200447604c19D72228a170BC21c",
    "gas": "400000",
    "subtractedAmount": "100000",
    "spender": "0xcf5EA1b38380f6aF39068375516Daf40Ed70D299",
    "tokenAddress": "0xA35b1B31Ce002FBF2058D22F30f95D405200A15b",
    "gasPriority":"low"
}
```

{% endtab %}

{% tab title="Sample Response" %}
**With gasPriority:**&#x20;

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x9f0ff6eCef671200447604c19D72228a170BC21c",
        "to": "0xA35b1B31Ce002FBF2058D22F30f95D405200A15b",
        "data": "0xa457c2d7000000000000000000000000cf5ea1b38380f6af39068375516daf40ed70d29900000000000000000000000000000000000000000000000000000000000186a0",
        "value": "0",
        "gas": "400000",
        "gasPrice": "1874993877",
        "referenceId": "ab5b367e23984257a823b1b9d77fef59"
    }
}
```

{% endtab %}
{% endtabs %}

[<mark style="color:blue;">back to top</mark>](#endpoints-available)

### /approvewithdrawal

Initiate a transaction to approve the withdrawal request from a specified address.

<mark style="color:green;">`POST`</mark> `https://api.expand.network/liquidstaking/approvewithdrawal`

#### Request Body

<table><thead><tr><th width="192">Name</th><th width="136">Type</th><th>Description</th></tr></thead><tbody><tr><td>rpc</td><td>String</td><td>Remote procedural call URL.</td></tr><tr><td>liquidStakingId</td><td>String</td><td>Refer to the <a href="/pages/OavKmZGl56Z189e4PXVx">Liquid Staking Id</a> page for details.</td></tr><tr><td>from<mark style="color:red;">*</mark></td><td>String</td><td>Public address of the owner of this request.</td></tr><tr><td>amount<mark style="color:red;">*</mark></td><td>String</td><td>Amount of tokens to approve withdrawal.</td></tr><tr><td>gas</td><td>String</td><td>Maximum gas limit provided by the sender, for the transaction.</td></tr><tr><td>gasPriority</td><td>String</td><td>low, medium, or high.</td></tr></tbody></table>

{% tabs %}
{% tab title="Sample Request" %}

```json
{
    "liquidStakingId": "2",
    "amount": "10000",
    "from": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
    "gas": "400000"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
        "to": "0xA35b1B31Ce002FBF2058D22F30f95D405200A15b",
        "data": "0x095ea7b30000000000000000000000009f0491b32dbce587c50c4c43ab303b06478193a70000000000000000000000000000000000000000000000000000000000002710",
        "gas": "400000",
        "value": "0",
        "referenceId": "4584e740c5c54f0ca0e670057f097751"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
**With gasPriority:**&#x20;

```json
{
    "liquidStakingId": "2",
    "amount": "10000",
    "from": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
    "gas": "400000",
    "gasPriority": "low"
}
```

{% endtab %}

{% tab title="Sample Response" %}
**With gasPriority:**&#x20;

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
        "to": "0xA35b1B31Ce002FBF2058D22F30f95D405200A15b",
        "data": "0x095ea7b30000000000000000000000009f0491b32dbce587c50c4c43ab303b06478193a70000000000000000000000000000000000000000000000000000000000002710",
        "gas": "400000",
        "value": "0",
        "gasPrice": "1720241828",
        "referenceId": "c12126c7d7a14ea580938d2400825f10"
    }
}
```

{% endtab %}
{% endtabs %}

[<mark style="color:blue;">back to top</mark>](#endpoints-available)

### /requestwithdrawal

Initiate a transaction to request a withdrawal on Stader.

<mark style="color:green;">`POST`</mark> `https://api.expand.network/liquidstaking/requestwithdrawal`

#### Request Body

<table><thead><tr><th width="182">Name</th><th width="143">Type</th><th>Description</th></tr></thead><tbody><tr><td>rpc</td><td>String</td><td>Remote procedural call URL.</td></tr><tr><td>liquidStakingId</td><td>String</td><td>Refer to the <a href="/pages/OavKmZGl56Z189e4PXVx">Liquid Staking Id</a> page for details.</td></tr><tr><td>from<mark style="color:red;">*</mark></td><td>String</td><td>Public address of the owner of this request.</td></tr><tr><td>amount<mark style="color:red;">*</mark></td><td>String</td><td>Amount of tokens to request withdrawal.</td></tr><tr><td>ownerAddress<mark style="color:red;">*</mark></td><td>String</td><td>Public address of the owner.</td></tr><tr><td>gas</td><td>String</td><td>Maximum gas limit provided by the sender, for the transaction.</td></tr><tr><td>gasPriority</td><td>String</td><td>low, medium, or high.</td></tr></tbody></table>

{% tabs %}
{% tab title="Sample Request" %}

```json
{
    "liquidStakingId": "2",
    "amount": "1000000000000000000",
    "from": "0x9f0ff6eCef671200447604c19D72228a170BC21c",
    "gas": "400000"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x9f0ff6eCef671200447604c19D72228a170BC21c",
        "to": "0x9F0491B32DBce587c50c4C43AB303b06478193A7",
        "data": "0xccc143b80000000000000000000000000000000000000000000000000de0b6b3a76400000000000000000000000000009f0ff6ecef671200447604c19d72228a170bc21c",
        "gas": "400000",
        "value": "0",
        "referenceId": "8ff73d871d134fec8fb8bcdd1ae5394e"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
**With gasPriority:**&#x20;

```json
{
    "liquidStakingId": "2",
    "amount": "1000000000000000000",
    "from": "0x9f0ff6eCef671200447604c19D72228a170BC21c",
    "gas": "400000",
    "gasPriority": "low"
}
```

{% endtab %}

{% tab title="Sample Response" %}
**With gasPriority:**

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x9f0ff6eCef671200447604c19D72228a170BC21c",
        "to": "0x9F0491B32DBce587c50c4C43AB303b06478193A7",
        "data": "0xccc143b80000000000000000000000000000000000000000000000000de0b6b3a76400000000000000000000000000009f0ff6ecef671200447604c19d72228a170bc21c",
        "gas": "400000",
        "value": "0",
        "gasPrice": "2122766567",
        "referenceId": "8ff73d871d134fec8fb8bcdd1ae5394e"
    }
}
```

{% endtab %}
{% endtabs %}

[<mark style="color:blue;">back to top</mark>](#endpoints-available)

### /claim

Initiate a transaction to burn the NFT, which is minted upon request, and to claim the rewards.

<mark style="color:green;">`POST`</mark> `https://api.expand.network/liquidstaking/claim`

#### Request Body

<table><thead><tr><th width="184">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>liquidStakingId</td><td>String</td><td>Refer to the <a href="/pages/OavKmZGl56Z189e4PXVx">Liquid Staking Id</a> page for details.</td></tr><tr><td>from<mark style="color:red;">*</mark></td><td>String</td><td>Public address of the owner of this request.</td></tr><tr><td>requestId<mark style="color:red;">*</mark></td><td>String</td><td>The token id of NFT , which is minted upon request, to claim the rewards.</td></tr><tr><td>gas</td><td>String</td><td>Maximum gas limit provided by the sender, for the transaction.</td></tr><tr><td>gasPriority</td><td>String</td><td>low, medium, or high.</td></tr></tbody></table>

{% tabs %}
{% tab title="Sample Request" %}

```json
{
    "liquidStakingId": "2",
    "requestId": "2130",
    "from": "0x2Dce7632866E1C795e5644d30173d18b1DfAa71a",
    "gas": "400000"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x2Dce7632866E1C795e5644d30173d18b1DfAa71a",
        "to": "0x9F0491B32DBce587c50c4C43AB303b06478193A7",
        "data": "0x379607f50000000000000000000000000000000000000000000000000000000000000852",
        "gas": "400000",
        "value": "0",
        "referenceId": "c4d68ead57b444fba7c855f6643e8a73"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
**With gasPriority:**

```json
{
    "liquidStakingId": "2",
    "requestId": "2130",
    "from": "0x2Dce7632866E1C795e5644d30173d18b1DfAa71a",
    "gasPriority": "low",
    "gas": "400000"
}
```

{% endtab %}

{% tab title="Sample Response" %}
**With gasPriority:**

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x2Dce7632866E1C795e5644d30173d18b1DfAa71a",
        "to": "0x9F0491B32DBce587c50c4C43AB303b06478193A7",
        "data": "0x379607f50000000000000000000000000000000000000000000000000000000000000852",
        "gas": "400000",
        "value": "0",
        "gasPrice": "2072451432",
        "referenceId": "c4d68ead57b444fba7c855f6643e8a73"
    }
}
```

{% endtab %}
{% endtabs %}

[<mark style="color:blue;">back to top</mark>](#endpoints-available)

### Error Handling Details

<table><thead><tr><th width="253">Error</th><th>Description</th></tr></thead><tbody><tr><td>400 (Bad Request)</td><td>Indicates the request is invalid or missing the required parameters. The msg field will contain details about the error.</td></tr><tr><td>401 (Unauthorised)</td><td>Indicates the request lacks valid authentication credentials (API key). Ensure that you provide a valid API key in the request headers.</td></tr><tr><td>404 (Not Found)</td><td>Indicates that the specified endpoint or resource does not exist.</td></tr><tr><td>500 (Server Error)</td><td>Indicates an internal server error.</td></tr></tbody></table>

[<mark style="color:blue;">back to top</mark>](#endpoints-available)


# Benqi

### Supported Chains

Available on **Avalanche**

### Available Endpoints:

*Click on the endpoint to jump to the section with full details*

* [<mark style="color:blue;">**getapr**</mark>](#getapr) <mark style="color:blue;">`GET`</mark> - Get the Stader staking APR.
* [<mark style="color:blue;">**getrewards**</mark> ](#getrewards)<mark style="color:blue;">`GET`</mark> - Get the initial staked amount and current staked value by a specified user address.
* [<mark style="color:blue;">**getstake**</mark>](#getstake) <mark style="color:blue;">`GET`</mark> -Get the stake amount for a particular address.
* [<mark style="color:blue;">**getwithdrawalrequests**</mark>](#getwithdrawalrequests)[ ](#getwithdrawalrewards)<mark style="color:blue;">`GET`</mark> - Retrieves all withdrawal requests made by a specified address.
* [<mark style="color:blue;">**getwithdrawalstatus**</mark>](#getwithdrawalstatus)<mark style="color:blue;">`GET`</mark> - Get the status of a withdrawal request made by a specified address.
* [<mark style="color:blue;">**getallowance**</mark>](#getallowance)<mark style="color:blue;">`GET`</mark> - Get the approved allowance amount set by the owner for the spender.
* [<mark style="color:blue;">**Stake**</mark>](#stake) <mark style="color:green;">`POST`</mark> - Initiate a transaction to stake on Stader protocol.
* [<mark style="color:blue;">**requestwithdrawal**</mark> ](#requestwithdrawal)<mark style="color:green;">`POST`</mark> - Initiate a withdrawal request on Stader.
* [<mark style="color:blue;">**claim**</mark>](#claim) <mark style="color:green;">`POST`</mark> - Initiate a transaction to claim staked ETH after a withdrawal request.

*Also see* [<mark style="color:blue;">Error Handling Details</mark>](#error-handling-details)

## Liquid Staking IDs

Many endpoints have a parameter where you can provide a Liquid Staking ID.&#x20;

Below is a list of Liquid Staking IDs related to Stader. Please see the [Liquid Staking ID page](/ids/liquid-staking-ids) for a complete Liquid Staking ID list and more information.

<table><thead><tr><th width="275">Liquid Staking Name</th><th>Chain</th><th>Liquid Staking ID</th></tr></thead><tbody><tr><td>Benqi</td><td>Avalanche</td><td>43114</td></tr></tbody></table>

## Endpoint Details

### /getapr

#### Get the Stader staking APR.

<mark style="color:blue;">`GET`</mark> `https://api.expand.network/liquidstaking/getapr`

#### Query Parameters

| Name            | Type   | Description                                                                 |
| --------------- | ------ | --------------------------------------------------------------------------- |
| rpc             | String | Remote procedural call URL.                                                 |
| liquidStakingId | String | Refer to the [Liquid Staking Id](/ids/liquid-staking-ids) page for details. |

{% tabs %}
{% tab title="Sample Request" %}

```url
https://api.expand.network/liquidstaking/getapr?liquidStakingId=43114
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "timeUnix": "1726234694",
        "apr": "5.46",
        "blockNumber": "50483509"
    }
}
```

{% endtab %}
{% endtabs %}

[<mark style="color:blue;">back to top</mark>](#endpoints-available)

### /getrewards

#### Get the initial staked amount and current staked value by a specified user address.

<mark style="color:blue;">`GET`</mark> `https://api.expand.network/liquidstaking/getrewards`

#### Query Parameters

<table><thead><tr><th width="182">Name</th><th width="159">Type</th><th>Description</th></tr></thead><tbody><tr><td>rpc</td><td>String</td><td>Remote procedural call URL.</td></tr><tr><td>liquidStakingId</td><td>String</td><td>Refer to the <a href="/pages/u3rku1i5idIPw6PiPmmH">Liquid Staking Id</a> page for details.</td></tr><tr><td>address<mark style="color:red;">*</mark></td><td>String</td><td>Public address of the user.</td></tr></tbody></table>

{% tabs %}
{% tab title="Sample Request" %}

```url
https://api.expand.network/liquidstaking/getrewards?liquidStakingId=43114&address=0x10137E2EC5907ceA3151FB00C3Ecd9B48E22B82B
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "stakedAmount": "17208357980018603",
        "stakeValue": "20073834784345071"
    }
}
```

{% endtab %}
{% endtabs %}

[<mark style="color:blue;">back to top</mark>](#endpoints-available)

### /getstake

#### Get the stake amount for a particular address.

<mark style="color:blue;">`GET`</mark> `https://api.expand.network/liquidstaking/getstake`

#### Query Parameters

<table><thead><tr><th width="190">Name</th><th width="167">Type</th><th>Description</th></tr></thead><tbody><tr><td>rpc</td><td>String</td><td>Remote procedural call URL.</td></tr><tr><td>liquidStakingId</td><td>String</td><td>Refer to the <a href="/pages/u3rku1i5idIPw6PiPmmH">Liquid Staking Id</a> page for details.</td></tr><tr><td>address<mark style="color:red;">*</mark></td><td>String</td><td>Public address of the user.</td></tr></tbody></table>

{% tabs %}
{% tab title="Sample Request" %}

```url
https://api.expand.network/liquidstaking/getstake?address=0x10137E2EC5907ceA3151FB00C3Ecd9B48E22B82B&liquidStakingId=43114
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "sAVAX": "17208357980018603"
    }
}
```

{% endtab %}
{% endtabs %}

[<mark style="color:blue;">back to top</mark>](#endpoints-available)

### /getwithdrawalrequests

#### Get all the withdrawal requests(NFT ids) made by a specified address.

<mark style="color:blue;">`GET`</mark> `https://api.expand.network/liquidstaking/getwithdrawalrequests`

#### Query Parameters

<table><thead><tr><th width="193">Name</th><th width="167">Type</th><th>Description</th></tr></thead><tbody><tr><td>rpc</td><td>String</td><td>Remote procedural call URL.</td></tr><tr><td>liquidStakingId</td><td>String</td><td>Refer to the <a href="/pages/u3rku1i5idIPw6PiPmmH">Liquid Staking Id</a> page for details.</td></tr><tr><td>address<mark style="color:red;">*</mark></td><td>String</td><td>Public address of the user.</td></tr></tbody></table>

{% tabs %}
{% tab title="Sample Request" %}

```url
https://api.expand.network/liquidstaking/getwithdrawalrequests?liquidStakingId=43114&address=0xc1d423aE49fba66AA713610811d13e0BECf213c6
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": [
        "0"
    ]
}
```

{% endtab %}
{% endtabs %}

[<mark style="color:blue;">back to top</mark>](#endpoints-available)

### /getwithdrawalstatus

#### Get the status of a withdrawal request made by a specified address.

<mark style="color:blue;">`GET`</mark> `https://api.expand.network/liquidstaking/getwithdrawalstatus`

#### Query Parameters

<table><thead><tr><th width="178">Name</th><th width="183">Type</th><th>Description</th></tr></thead><tbody><tr><td>rpc</td><td>String</td><td>Remote procedural call URL.</td></tr><tr><td>liquidStakingId</td><td>String</td><td>Refer to the <a href="/pages/u3rku1i5idIPw6PiPmmH">Liquid Staking Id</a> page for details.</td></tr><tr><td>address<mark style="color:red;">*</mark></td><td>String</td><td>The address of user</td></tr><tr><td>requestId<mark style="color:red;">*</mark></td><td>String</td><td>The token id of NFT , which is minted upon request, to claim the rewards.</td></tr></tbody></table>

{% tabs %}
{% tab title="Sample Request" %}

```url
https://api.expand.network/liquidstaking/getwithdrawalstatus?liquidStakingId=43114&requestId=0&address=0xc1d423aE49fba66AA713610811d13e0BECf213c6
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "amountOfsAVAX": "378877936578560186",
        "withdrawalTime": "1726024008"
    }
}
```

{% endtab %}
{% endtabs %}

[<mark style="color:blue;">back to top</mark>](#endpoints-available)

### /getallowance

#### Get the approved allowance amount set by the owner for the spender.

<mark style="color:blue;">`GET`</mark> `https://api.expand.network/liquidstaking/getallowance`

#### Query Parameters

<table><thead><tr><th width="212">Name</th><th width="157">Type</th><th>Description</th></tr></thead><tbody><tr><td>rpc</td><td>String</td><td>Remote procedural call URL.</td></tr><tr><td>liquidStakingId</td><td>String</td><td>Refer to the <a href="/pages/u3rku1i5idIPw6PiPmmH">Liquid Staking Id</a> page for details.</td></tr><tr><td>owner<mark style="color:red;">*</mark></td><td>String</td><td>Public address of the owner of token.</td></tr><tr><td>tokenAddress<mark style="color:red;">*</mark></td><td>String</td><td>Token contract address.</td></tr><tr><td>spender<mark style="color:red;">*</mark></td><td>String</td><td>Public address of the spender of token.</td></tr></tbody></table>

{% tabs %}
{% tab title="Sample Request" %}

```url
https://api.expand.network/liquidstaking/getallowance?liquidStakingId=43114&owner=0x6427B4b028c4A1db5fb5dAf80C22e81115457230&tokenAddress=0x2b2C81e08f1Af8835a78Bb2A90AE924ACE0eA4bE&spender=0x6427B4b028c4A1db5fb5dAf80C22e81115457230
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "allowance": "53880000000000000"
    }
}
```

{% endtab %}
{% endtabs %}

[<mark style="color:blue;">back to top</mark>](#endpoints-available)

### /stake

#### Initiate a transaction to stake on Stader.

<mark style="color:green;">`POST`</mark> `https://api.expand.network/liquidstaking/stake`

#### Request Body

<table><thead><tr><th width="214">Name</th><th width="141">Type</th><th>Description</th></tr></thead><tbody><tr><td>rpc</td><td>String</td><td>Remote procedural call URL.</td></tr><tr><td>liquidStakingId</td><td>String</td><td>Refer to the <a href="/pages/u3rku1i5idIPw6PiPmmH">Liquid Staking Id</a> page for details.</td></tr><tr><td>from<mark style="color:red;">*</mark></td><td>String</td><td>Public address of the owner of this request.</td></tr><tr><td>amount<mark style="color:red;">*</mark></td><td>String</td><td>Amount of token to stake.</td></tr><tr><td>gas</td><td>String</td><td>Maximum gas limit provided by the sender, for the transaction.</td></tr><tr><td>gasPriority</td><td>String</td><td>low, medium, or high.</td></tr></tbody></table>

{% tabs %}
{% tab title="Sample Request" %}

```json
{
    "amount": "1000000000000000000",
    "liquidStakingId": "43114",
    "from": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
    "gas": "40000"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "43114",
        "from": "0xefdc8FC1145ea88e3f5698eE7b7b432F083B4246",
        "to": "0x2b2C81e08f1Af8835a78Bb2A90AE924ACE0eA4bE",
        "data": "0x5bcb2fc6",
        "value": "1000000000000000000",
        "gas": "40000",
        "referenceId": "39bb3a38c06b4543a4bbf48985a0bcba"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
**With gasPriority:**

```json
{
    "amount": "1000000000000000000",
    "liquidStakingId": "43114",
    "from": "0xefdc8FC1145ea88e3f5698eE7b7b432F083B4246",
    "gas": "40000",
    "gasPriority": "low"
}
```

{% endtab %}

{% tab title="Sample Response" %}
**With gasPriority:**

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "43114",
        "from": "0xefdc8FC1145ea88e3f5698eE7b7b432F083B4246",
        "to": "0x2b2C81e08f1Af8835a78Bb2A90AE924ACE0eA4bE",
        "data": "0x5bcb2fc6",
        "value": "1000000000000000000",
        "gas": "40000",
        "gasPrice": "25000000000",
        "referenceId": "39bb3a38c06b4543a4bbf48985a0bcba"
    }
}
```

{% endtab %}
{% endtabs %}

[<mark style="color:blue;">back to top</mark>](#endpoints-available)

### /requestwithdrawal

#### Initiate a transaction to request a withdrawal on Stader.

<mark style="color:green;">`POST`</mark> `https://api.expand.network/liquidstaking/requestwithdrawal`

#### Request Body

<table><thead><tr><th width="182">Name</th><th width="143">Type</th><th>Description</th></tr></thead><tbody><tr><td>rpc</td><td>String</td><td>Remote procedural call URL.</td></tr><tr><td>liquidStakingId</td><td>String</td><td>Refer to the <a href="/pages/u3rku1i5idIPw6PiPmmH">Liquid Staking Id</a> page for details.</td></tr><tr><td>from<mark style="color:red;">*</mark></td><td>String</td><td>Public address of the owner of this request.</td></tr><tr><td>amount<mark style="color:red;">*</mark></td><td>String</td><td>Amount of tokens to request withdrawal.</td></tr><tr><td>ownerAddress<mark style="color:red;">*</mark></td><td>String</td><td>Public address of the owner.</td></tr><tr><td>gas</td><td>String</td><td>Maximum gas limit provided by the sender, for the transaction.</td></tr><tr><td>gasPriority</td><td>String</td><td>low, medium, or high.</td></tr></tbody></table>

{% tabs %}
{% tab title="Sample Request" %}

```json
{
    "amount": "100000",
    "liquidStakingId": "43114",
    "from": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
    "gas": "40000"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "43114",
        "from": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
        "to": "0x2b2C81e08f1Af8835a78Bb2A90AE924ACE0eA4bE",
        "data": "0xc9d2ff9d00000000000000000000000000000000000000000000000000000000000186a0",
        "gas": "40000",
        "value": "0",
        "referenceId": "575c082d45a44ced9d64017437cdfbae"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
**With gasPriority:**&#x20;

```json
{
    "amount": "100000",
    "liquidStakingId": "43114",
    "from": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
    "gas": "40000",
    "gasPriority": "low"
}
```

{% endtab %}

{% tab title="Sample Response" %}
**With gasPriority:**

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "43114",
        "from": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
        "to": "0x2b2C81e08f1Af8835a78Bb2A90AE924ACE0eA4bE",
        "data": "0xc9d2ff9d00000000000000000000000000000000000000000000000000000000000186a0",
        "gas": "40000",
        "value": "0",
        "gasPrice": "25000000000",
        "referenceId": "71d1eb3a86254ccb9d2da22c677edc31"
    }
}
```

{% endtab %}
{% endtabs %}

[<mark style="color:blue;">back to top</mark>](#endpoints-available)

### /claim

#### Initiate a transaction to burn the NFT, which is minted upon request, and to claim the rewards.

<mark style="color:green;">`POST`</mark> `https://api.expand.network/liquidstaking/claim`

#### Request Body

<table><thead><tr><th width="184">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>liquidStakingId</td><td>String</td><td>Refer to the <a href="/pages/u3rku1i5idIPw6PiPmmH">Liquid Staking Id</a> page for details.</td></tr><tr><td>from<mark style="color:red;">*</mark></td><td>String</td><td>Public address of the owner of this request.</td></tr><tr><td>requestId<mark style="color:red;">*</mark></td><td>String</td><td>The token id of NFT , which is minted upon request, to claim the rewards.</td></tr><tr><td>gas</td><td>String</td><td>Maximum gas limit provided by the sender, for the transaction.</td></tr><tr><td>gasPriority</td><td>String</td><td>low, medium, or high.</td></tr></tbody></table>

{% tabs %}
{% tab title="Sample Request" %}

```json
{
    "liquidStakingId": "43114",
    "requestId": "0",
    "from": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
    "gas": "400000"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "43114",
        "from": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
        "to": "0x2b2C81e08f1Af8835a78Bb2A90AE924ACE0eA4bE",
        "data": "0xdb006a750000000000000000000000000000000000000000000000000000000000000000",
        "gas": "400000",
        "value": "0",
        "referenceId": "193cb54ca10748b1a6983b876bff3ace"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
**With gasPriority:**

```json
{
    "liquidStakingId": "43114",
    "requestId": "0",
    "from": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
    "gasPriority": "medium",
    "gas": "400000"
}
```

{% endtab %}

{% tab title="Sample Response" %}
**With gasPriority:**

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "43114",
        "from": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
        "to": "0x2b2C81e08f1Af8835a78Bb2A90AE924ACE0eA4bE",
        "data": "0xdb006a750000000000000000000000000000000000000000000000000000000000000000",
        "gas": "400000",
        "value": "0",
        "gasPrice": "30000000000",
        "referenceId": "f94e863e53be482b9f724cebda22af3c"
    }
}
```

{% endtab %}
{% endtabs %}

[<mark style="color:blue;">back to top</mark>](#endpoints-available)

### Error Handling Details

<table><thead><tr><th width="253">Error</th><th>Description</th></tr></thead><tbody><tr><td>400 (Bad Request)</td><td>Indicates the request is invalid or missing the required parameters. The msg field will contain details about the error.</td></tr><tr><td>401 (Unauthorised)</td><td>Indicates the request lacks valid authentication credentials (API key). Ensure that you provide a valid API key in the request headers.</td></tr><tr><td>404 (Not Found)</td><td>Indicates that the specified endpoint or resource does not exist.</td></tr><tr><td>500 (Server Error)</td><td>Indicates an internal server error.</td></tr></tbody></table>

[<mark style="color:blue;">back to top</mark>](#endpoints-available)


# Jito

### Supported Chains

Available on **Solana**

### Available Endpoints:

*Click on the endpoint to jump to the section with full details*

* [<mark style="color:blue;">**getapr**</mark>](#getapr) <mark style="color:blue;">`GET`</mark> - Get the Jito staking APR.
* [<mark style="color:blue;">**getrewards**</mark> ](#getrewards)<mark style="color:blue;">`GET`</mark> - Get the initial staked amount and current staked value by a specified user address.
* [<mark style="color:blue;">**getstake**</mark>](#getstake) <mark style="color:blue;">`GET`</mark> -Get the stake amount for a particular address.
* [<mark style="color:blue;">**Stake**</mark>](#stake) <mark style="color:green;">`POST`</mark> - Initiate a transaction to stake on Jito protocol.
* [<mark style="color:blue;">**requestwithdrawal**</mark> ](#requestwithdrawal)<mark style="color:green;">`POST`</mark> - Initiate a withdrawal request on Jito.

*Also see* [<mark style="color:blue;">Error Handling Details</mark>](#error-handling-details)

## Liquid Staking IDs

Many endpoints have a parameter where you can provide a Liquid Staking ID.&#x20;

Below is a list of Liquid Staking IDs related to Jito. For a complete list and more information, please see the [liquid staking ID](/ids/liquid-staking-ids) page.

<table><thead><tr><th width="275">Liquid Staking Name</th><th>Chain</th><th>Liquid Staking ID</th></tr></thead><tbody><tr><td>Jito Network</td><td>Solana</td><td>900</td></tr></tbody></table>

## Endpoint Details

### /getapr

#### Get the Jito staking APR.

<mark style="color:blue;">`GET`</mark> `https://api.expand.network/liquidstaking/getapr`

#### Query Parameters

| Name            | Type   | Description                                                                 |
| --------------- | ------ | --------------------------------------------------------------------------- |
| rpc             | String | Remote procedural call URL.                                                 |
| liquidStakingId | String | Refer to the [Liquid Staking Id](/ids/liquid-staking-ids) page for details. |

{% tabs %}
{% tab title="Sample Request" %}

```url
https://api.expand.network/liquidstaking/getapr?liquidStakingId=900
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "timeUnix": "1729519201",
        "apr": "7.92",
        "blockNumber": "296879404"
    }
}
```

{% endtab %}
{% endtabs %}

[<mark style="color:blue;">back to top</mark>](#endpoints-available)

### /getrewards

#### Get the initial staked amount and current staked value by a specified user address.

<mark style="color:blue;">`GET`</mark> `https://api.expand.network/liquidstaking/getrewards`

#### Query Parameters

<table><thead><tr><th width="182">Name</th><th width="159">Type</th><th>Description</th></tr></thead><tbody><tr><td>rpc</td><td>String</td><td>Remote procedural call URL.</td></tr><tr><td>liquidStakingId</td><td>String</td><td>Refer to the <a href="/pages/u3rku1i5idIPw6PiPmmH">Liquid Staking Id</a> page for details.</td></tr><tr><td>address<mark style="color:red;">*</mark></td><td>String</td><td>Public address of the user.</td></tr></tbody></table>

{% tabs %}
{% tab title="Sample Request" %}

```url
https://api.expand.network/liquidstaking/getrewards?liquidStakingId=900&address=bxnWxiRkGpwUzJBSWAecFVFS44L48sGbJrFw23uzDBc
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "stakedAmount": "17208357980018603",
        "stakeValue": "20073834784345071"
    }
}
```

{% endtab %}
{% endtabs %}

[<mark style="color:blue;">back to top</mark>](#endpoints-available)

### /getstake

#### Get the stake amount for a particular address.

<mark style="color:blue;">`GET`</mark> `https://api.expand.network/liquidstaking/getstake`

#### Query Parameters

<table><thead><tr><th width="190">Name</th><th width="167">Type</th><th>Description</th></tr></thead><tbody><tr><td>rpc</td><td>String</td><td>Remote procedural call URL.</td></tr><tr><td>liquidStakingId</td><td>String</td><td>Refer to the <a href="/pages/u3rku1i5idIPw6PiPmmH">Liquid Staking Id</a> page for details.</td></tr><tr><td>address<mark style="color:red;">*</mark></td><td>String</td><td>Public address of the user.</td></tr></tbody></table>

{% tabs %}
{% tab title="Sample Request" %}

```url
https://api.expand.network/liquidstaking/getstake?liquidStakingId=900&address=9HJuxDecTUKDWonwVEbGnGEwnSY86rSRcdQe4rNKKQry
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "jitoSOL": "17208357980018603"
    }
}
```

{% endtab %}
{% endtabs %}

[<mark style="color:blue;">back to top</mark>](#endpoints-available)

### /stake

#### Initiate a transaction to stake on Jito.

<mark style="color:green;">`POST`</mark> `https://api.expand.network/liquidstaking/stake`

#### Request Body

<table><thead><tr><th width="214">Name</th><th width="141">Type</th><th>Description</th></tr></thead><tbody><tr><td>rpc</td><td>String</td><td>Remote procedural call URL.</td></tr><tr><td>liquidStakingId</td><td>String</td><td>Refer to the <a href="/pages/u3rku1i5idIPw6PiPmmH">Liquid Staking Id</a> page for details.</td></tr><tr><td>from<mark style="color:red;">*</mark></td><td>String</td><td>Public address of the owner of this request.</td></tr><tr><td>amount<mark style="color:red;">*</mark></td><td>String</td><td>Amount of token to stake.</td></tr></tbody></table>

{% tabs %}
{% tab title="Sample Request" %}

```json
{
    "liquidStakingId": "900",
    "amount": "10000000",
    "from": "67yiWoBFGmHd4r5AVGkmmE64okVmCgnYBwufxgoqcLmo"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "900",
        "from": "67yiWoBFGmHd4r5AVGkmmE64okVmCgnYBwufxgoqcLmo",
        "to": "Jito4APyf642JPZPx3hGc6WWJ8zPKtRbRs4P815Awbb",
        "data": "AgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAFDEwUDFZqeozpMRjta3iDP6Owdij8OKmd8K86PMapNehKp20wm8Gdp9IOyCEi7ZlK8lA7Ddb9RkA44HNhlPggtN2ep2j+32RMiq6bjiGIrdBrxVD79xbIIrnOY8d4PZUuHwnmo/7s+ZAy4cHfa5ci3LNjTnuONECTa8NLDMHI61If/NFB6YMsrxCtkXSVyg8nG1spPNRwJ+pzcAftQOs5oL0Eij4Iw7SVvhf0VCfYm+xbgMfiaVwYZNdnQ9s5vtNG1gd0gnoRKhFDRgaVqek3K8E/8xU2QSLAz3GdlTbvN73nAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABU5Z4kwFGooUp7HpeX8OEs36dJAhZlMZWmpRKm8WZgK4yXJY9OJInxuz0QKRSODYMLWhOZ2v8QhASOe9jb6fhZBoFO1Mr2ihdGcv2shgMaY+hOoV76HUS3IpP229sAFlAG3fbh12Whk9nL4UbO63msHLSF7V9bN5E6jPWFfv8AqSsm1R2neGolMuqF9Lj5T1I3MA6jBnOQCfzygSeJiR14AwcCAAEMAgAAAICWmAAAAAAACQYABgAEBwsBAQoKBQgCAQYDBgQHCwkOgJaYAAAAAAA=",
        "additionalSigners": "5EosQqnkFNmQ4UcrkNPpgyDxyXwfr2NXBqpsf69LknQjAujbkUDJYPmtWBrG1csgid8MtU2eQRmpaqiPgDon9HUp",
        "referenceId": "8b175dd9da0244edb4cebe400969029e"
    }
}
```

{% endtab %}
{% endtabs %}

[<mark style="color:blue;">back to top</mark>](#endpoints-available)

### /requestwithdrawal

#### Initiate a transaction to request a withdrawal on Jito.

<mark style="color:green;">`POST`</mark> `https://api.expand.network/liquidstaking/requestwithdrawal`

#### Request Body

<table><thead><tr><th width="182">Name</th><th width="143">Type</th><th>Description</th></tr></thead><tbody><tr><td>rpc</td><td>String</td><td>Remote procedural call URL.</td></tr><tr><td>liquidStakingId</td><td>String</td><td>Refer to the <a href="/pages/u3rku1i5idIPw6PiPmmH">Liquid Staking Id</a> page for details.</td></tr><tr><td>from<mark style="color:red;">*</mark></td><td>String</td><td>Public address of the owner of this request.</td></tr><tr><td>amount<mark style="color:red;">*</mark></td><td>String</td><td>Amount of tokens to request withdrawal.</td></tr></tbody></table>

{% tabs %}
{% tab title="Sample Request" %}

```json
{
    "liquidStakingId": "900",
    "amount": "1000",
    "from": "67yiWoBFGmHd4r5AVGkmmE64okVmCgnYBwufxgoqcLmo"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "900",
        "from": "67yiWoBFGmHd4r5AVGkmmE64okVmCgnYBwufxgoqcLmo",
        "to": "Jito4APyf642JPZPx3hGc6WWJ8zPKtRbRs4P815Awbb",
        "data": "AgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgEGDUwUDFZqeozpMRjta3iDP6Owdij8OKmd8K86PMapNehK/dY31Lekj0q/WzBH+WS5QHkVRIuvgR8qMjYZov9f7sCep2j+32RMiq6bjiGIrdBrxVD79xbIIrnOY8d4PZUuHwnmo/7s+ZAy4cHfa5ci3LNjTnuONECTa8NLDMHI61If/NFB6YMsrxCtkXSVyg8nG1spPNRwJ+pzcAftQOs5oL0Eij4Iw7SVvhf0VCfYm+xbgMfiaVwYZNdnQ9s5vtNG1gd0gnoRKhFDRgaVqek3K8E/8xU2QSLAz3GdlTbvN73nVOWeJMBRqKFKex6Xl/DhLN+nSQIWZTGVpqUSpvFmYCsGgU7UyvaKF0Zy/ayGAxpj6E6hXvodRLcik/bb2wAWUAah2BeRN1QqmDQ3vf4qerJVf1NcinhyK2ikncAAAAAABqfVFxjHdMkoVmOYaR1etoteuKObS21cc1VbIQAAAAAGp9UXGTWE0P7tm7NDHRMga+VEKBtXuFZsxTdf9AAAAAbd9uHXZaGT2cvhRs7reawctIXtX1s3kTqM9YV+/wCpPLBnwnf6ubVN8fjUrdhNq0x7G1bCjaHjRKCUn0/agaYCDAMGAQAJBOgDAAAAAAAACAwFBwEGAgADBAoLCQwJEOgDAAAAAAAA",
        "additionalSigners": "2hoNJ7hNSnPMwKXHmViGkb8fmfMDta2KeY6MhNiHG96edtBGegWsXfPxgN2WLEVxBfYB7DmUQJsm4RRjBi9rkJBH",
        "referenceId": "dcc1f69bf5404578a5456f7d88a3aa5e"
    }
}
```

{% endtab %}
{% endtabs %}

[<mark style="color:blue;">back to top</mark>](#endpoints-available)

### Error Handling Details

<table><thead><tr><th width="253">Error</th><th>Description</th></tr></thead><tbody><tr><td>400 (Bad Request)</td><td>Indicates the request is invalid or missing the required parameters. The msg field will contain details about the error.</td></tr><tr><td>401 (Unauthorised)</td><td>Indicates the request lacks valid authentication credentials (API key). Ensure that you provide a valid API key in the request headers.</td></tr><tr><td>404 (Not Found)</td><td>Indicates that the specified endpoint or resource does not exist.</td></tr><tr><td>500 (Server Error)</td><td>Indicates an internal server error.</td></tr></tbody></table>

[<mark style="color:blue;">back to top</mark>](#endpoints-available)


# EigenLayer

### Supported Chains

Available on **Ethereum mainnet and testnet**

### Available Endpoints:

*Click on the endpoint to jump to the section with full details*

* [<mark style="color:blue;">**/getstake**</mark>](#getstake) <mark style="color:blue;">`GET`</mark> -Get the stake amount for a particular address.
* <mark style="color:blue;">**/**</mark>[<mark style="color:blue;">**restake**</mark>](#restake) <mark style="color:green;">`POST`</mark> - Initiate a transaction to restake on EigenLayer protocol.
* [<mark style="color:blue;">**/requestwithdrawal**</mark> ](#requestwithdrawal)<mark style="color:green;">`POST`</mark> - Initiate a withdrawal request on EigenLayer.
* [<mark style="color:blue;">**/claim**</mark>](#claim) <mark style="color:green;">`POST`</mark> - Initiate a transaction to claim restaked token after a withdrawal request.
* [**/**](#mint)[<mark style="color:blue;">**delegate**</mark>](#delegate) <mark style="color:green;">`POST`</mark> - Initiate a transaction to delegate the staked assets on EigenLayer.
* [**/**](#burn)[<mark style="color:blue;">**undelegate**</mark>](#undelegate) <mark style="color:green;">`POST`</mark> - Initiate a transaction to undelegate the staked assets on the EigenLayer.

*Also see* [<mark style="color:blue;">Error Handling Details</mark>](#error-handling-details)

## Liquid Staking IDs

Many endpoints have a parameter where you can provide a Liquid Staking ID.&#x20;

Below is a list of Liquid Staking IDs related to the EigenLayer. Please see the [Liquid Staking ID page](/ids/liquid-staking-ids) for a complete Liquid Staking ID list and more information.

<table><thead><tr><th width="275">Liquid Staking Name</th><th>Chain</th><th>Liquid Staking ID</th></tr></thead><tbody><tr><td>EigenLayer</td><td>Ethereum</td><td>3</td></tr><tr><td>EigenLayer</td><td>Ethereum Holesky Testnet </td><td>17000</td></tr></tbody></table>

## Endpoint Details

### /getstake

#### Get the stake amount for a particular address.

<mark style="color:blue;">`GET`</mark> `https://api.expand.network/liquidstaking/getstake`

#### Query Parameters

<table><thead><tr><th width="190">Name</th><th width="167">Type</th><th>Description</th></tr></thead><tbody><tr><td>rpc</td><td>String</td><td>Remote procedural call URL.</td></tr><tr><td>liquidStakingId</td><td>String</td><td>Refer to the <a href="/pages/u3rku1i5idIPw6PiPmmH">Liquid Staking Id</a> page for details.</td></tr><tr><td>address<mark style="color:red;">*</mark></td><td>String</td><td>Public address of the user.</td></tr></tbody></table>

{% tabs %}
{% tab title="Sample Request" %}

```
https://api.expand.network/liquidstaking/getstake?address=0x7358cE33f7C3361A66d644A95603983adF16D722&liquidStakingId=3
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "bEIGEN": "110000000000000000"
    }
}
```

{% endtab %}
{% endtabs %}

[<mark style="color:blue;">back to top</mark>](#endpoints-available)

### /restake

#### Initiate a transaction to restake on EigenLayer.

<mark style="color:green;">`POST`</mark> `https://api.expand.network/liquidstaking/restake`

#### Request Body

<table><thead><tr><th width="214">Name</th><th width="141">Type</th><th>Description</th></tr></thead><tbody><tr><td>rpc</td><td>String</td><td>Remote procedural call URL.</td></tr><tr><td>liquidStakingId</td><td>String</td><td>Refer to the <a href="/pages/u3rku1i5idIPw6PiPmmH">Liquid Staking Id</a> page for details.</td></tr><tr><td>from<mark style="color:red;">*</mark></td><td>String</td><td>Public address of the owner of this request.</td></tr><tr><td>token<mark style="color:red;">*</mark></td><td>String</td><td>Staked token name for restake.</td></tr><tr><td>gas</td><td>String</td><td>Maximum gas limit provided by the sender, for the transaction.</td></tr><tr><td>gasPriority</td><td>String</td><td>low, medium, or high.</td></tr></tbody></table>

{% tabs %}
{% tab title="Sample Request" %}

```json
{
   "from": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
   "amount": "100000000000000",
   "liquidStakingId": "3",
   "gas": "8000000",
   "gasPriority": "high",
   "token":"sTETH"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
        "to": "0x858646372CC42E1A627fcE94aa7A7033e7CF075A",
        "data": "0xe7a050aa00000000000000000000000093c4b944d05dfe6df7645a86cd2206016c51564d000000000000000000000000ae7ab96520de3a18e5e111b5eaab095312d7fe8400000000000000000000000000000000000000000000000000005af3107a4000",
        "value": "0",
        "gas": "171219",
        "gasPrice": "2",
        "estimationCheck": true,
        "referenceId": "6ced624eb4bf46438063062d4a4df12d"
    }
}
```

{% endtab %}
{% endtabs %}

[<mark style="color:blue;">back to top</mark>](#endpoints-available)

### /delegate

#### Initiate a transaction to delegate the staked assets on EigenLayer.

<mark style="color:green;">`POST`</mark> `https://api.expand.network/liquidstaking/delegate`

#### Request Body

<table><thead><tr><th width="193">Name</th><th width="139">Type</th><th>Description</th></tr></thead><tbody><tr><td>rpc</td><td>String</td><td>Remote procedural call URL.</td></tr><tr><td>liquidStakingId</td><td>String</td><td>Refer to the <a href="/pages/u3rku1i5idIPw6PiPmmH">Liquid Staking Id</a> page for details.</td></tr><tr><td>from<mark style="color:red;">*</mark></td><td>String</td><td>Public address of the owner of this request.</td></tr><tr><td>delegateTo<mark style="color:red;">*</mark></td><td>String</td><td>The operator contract address to which the user wants to delegate</td></tr><tr><td>gas</td><td>String</td><td>Maximum gas limit provided by the sender, for the transaction.</td></tr><tr><td>gasPriority</td><td>String</td><td>low, medium, or high.</td></tr></tbody></table>

{% tabs %}
{% tab title="Sample Request" %}

```json
{
    "from": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
    "delegateTo": "0xdbed88d83176316fc46797b43adee927dc2ff2f5",
    "liquidStakingId": "3",
    "gas": "80000",
    "gasPriority": "low"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
        "to": "0x39053D51B77DC0d36036Fc1fCc8Cb819df8Ef37A",
        "data": "0xeea9064b000000000000000000000000dbed88d83176316fc46797b43adee927dc2ff2f500000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
        "gas": "80000",
        "value": "0",
        "gasPrice": "1",
        "estimationCheck": true,
        "referenceId": "f95b5b2d47124927ba87c452202d9bbf"
    }
}
```

{% endtab %}
{% endtabs %}

[<mark style="color:blue;">back to top</mark>](#endpoints-available)

### /undelegate

#### Initiate a transaction to undelegate the staked assets on the Eigen Layer.

<mark style="color:green;">`POST`</mark> `https://api.expand.network/liquidstaking/undelegate`

#### Request Body

<table><thead><tr><th width="192">Name</th><th width="136">Type</th><th>Description</th></tr></thead><tbody><tr><td>rpc</td><td>String</td><td>Remote procedural call URL.</td></tr><tr><td>liquidStakingId</td><td>String</td><td>Refer to the <a href="/pages/u3rku1i5idIPw6PiPmmH">Liquid Staking Id</a> page for details.</td></tr><tr><td>from<mark style="color:red;">*</mark></td><td>String</td><td>Public address of the owner of this request.</td></tr><tr><td>gas</td><td>String</td><td>Maximum gas limit provided by the sender, for the transaction.</td></tr><tr><td>gasPriority</td><td>String</td><td>low, medium, or high.</td></tr></tbody></table>

{% tabs %}
{% tab title="Sample Request" %}

```json
{
    "from": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
    "liquidStakingId": "3",
    "gas": "80000"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
        "to": "0x39053D51B77DC0d36036Fc1fCc8Cb819df8Ef37A",
        "data": "0xda8be864000000000000000000000000dae2f6eddda6fb4fb60cc02633de27e2b431b402",
        "gas": "131514",
        "value": "0",
        "estimationCheck": true,
        "referenceId": "e05489bdfda945f096746d4634c7a283"
    }
}
```

{% endtab %}
{% endtabs %}

[<mark style="color:blue;">back to top</mark>](#endpoints-available)

### /requestwithdrawal

#### Initiate a transaction to request a withdrawal on EigenLayer.

<mark style="color:green;">`POST`</mark> `https://api.expand.network/liquidstaking/requestwithdrawal`

#### Request Body

<table><thead><tr><th width="182">Name</th><th width="143">Type</th><th>Description</th></tr></thead><tbody><tr><td>rpc</td><td>String</td><td>Remote procedural call URL.</td></tr><tr><td>liquidStakingId</td><td>String</td><td>Refer to the <a href="/pages/u3rku1i5idIPw6PiPmmH">Liquid Staking Id</a> page for details.</td></tr><tr><td>from<mark style="color:red;">*</mark></td><td>String</td><td>Public address of the owner of this request.</td></tr><tr><td>amount<mark style="color:red;">*</mark></td><td>String</td><td>Amount of tokens to request withdrawal.</td></tr><tr><td>token<mark style="color:red;">*</mark></td><td>String</td><td>Staked token name.</td></tr><tr><td>gas</td><td>String</td><td>Maximum gas limit provided by the sender, for the transaction.</td></tr><tr><td>gasPriority</td><td>String</td><td>low, medium, or high.</td></tr></tbody></table>

{% tabs %}
{% tab title="Sample Request" %}

```json
{
    "liquidStakingId": "3",
    "from": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
    "amount": "15630524642139",
    "gas": "800000",
    "gasPriority": "high",
    "token": "sTETH"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
        "to": "0x39053D51B77DC0d36036Fc1fCc8Cb819df8Ef37A",
        "data": "0x0dd8dd02000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000dae2f6eddda6fb4fb60cc02633de27e2b431b402000000000000000000000000000000000000000000000000000000000000000100000000000000000000000093c4b944d05dfe6df7645a86cd2206016c51564d000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000e3743de735b",
        "gas": "97185",
        "value": "0",
        "gasPrice": "2",
        "estimationCheck": true,
        "referenceId": "f77d6f7160f84040a5766e908cc76510"
    }
}
```

{% endtab %}
{% endtabs %}

[<mark style="color:blue;">back to top</mark>](#endpoints-available)

### /claim

#### Initiate a transaction to claim the rewards.

<mark style="color:green;">`POST`</mark> `https://api.expand.network/liquidstaking/claim`

#### Request Body

<table><thead><tr><th width="184">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>liquidStakingId</td><td>String</td><td>Refer to the <a href="/pages/u3rku1i5idIPw6PiPmmH">Liquid Staking Id</a> page for details.</td></tr><tr><td>from<mark style="color:red;">*</mark></td><td>String</td><td>Public address of the owner of this request.</td></tr><tr><td>amount<mark style="color:red;">*</mark></td><td>String</td><td>Amount of tokens to claim.</td></tr><tr><td>token<mark style="color:red;">*</mark></td><td>String</td><td>Staked token name.</td></tr><tr><td>gas</td><td>String</td><td>Maximum gas limit provided by the sender, for the transaction.</td></tr><tr><td>gasPriority</td><td>String</td><td>low, medium, or high.</td></tr></tbody></table>

{% tabs %}
{% tab title="Sample Request" %}

```json
{
   "liquidStakingId": "3",
   "from": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
   "amount": "1236",
   "token": "sTETH",
   "gas": "800000",
   "gasPriority": "high"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
        "to": "0x39053D51B77DC0d36036Fc1fCc8Cb819df8Ef37A",
        "data": "0x334043960000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000022000000000000000000000000000000000000000000000000000000000000002a000000000000000000000000000000000000000000000000000000000000002e000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000020000000000000000000000000dae2f6eddda6fb4fb60cc02633de27e2b431b402000000000000000000000000dbed88d83176316fc46797b43adee927dc2ff2f5000000000000000000000000dae2f6eddda6fb4fb60cc02633de27e2b431b4020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000000100000000000000000000000093c4b944d05dfe6df7645a86cd2206016c51564d000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000004d4000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000001000000000000000000000000ae7ab96520de3a18e5e111b5eaab095312d7fe840000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001",
        "gas": "800000",
        "value": "0",
        "gasPrice": "2",
        "estimationCheck": true,
        "referenceId": "2b178c56016b4446bd9e77329bcc3eaf"
    }
}
```

{% endtab %}
{% endtabs %}

[<mark style="color:blue;">back to top</mark>](#endpoints-available)

### Error Handling Details

<table><thead><tr><th width="253">Error</th><th>Description</th></tr></thead><tbody><tr><td>400 (Bad Request)</td><td>Indicates the request is invalid or missing the required parameters. The msg field will contain details about the error.</td></tr><tr><td>401 (Unauthorised)</td><td>Indicates the request lacks valid authentication credentials (API key). Ensure that you provide a valid API key in the request headers.</td></tr><tr><td>404 (Not Found)</td><td>Indicates that the specified endpoint or resource does not exist.</td></tr><tr><td>500 (Server Error)</td><td>Indicates an internal server error.</td></tr></tbody></table>

[<mark style="color:blue;">back to top</mark>](#endpoints-available)


# Non Fungible Tokens

Provides functionalities to get details of non fungible tokens.

Following are the common functions implemented for the Non Fungible Tokens:-&#x20;

<table><thead><tr><th width="312.4">Name</th><th width="150">Type</th><th>Description</th></tr></thead><tbody><tr><td>getbalance</td><td>Read</td><td>Retrieves the number of NFTs held in the owner's account.</td></tr><tr><td>getowner</td><td>Read</td><td>Retrieves the owner of the specified token ID.</td></tr><tr><td>getmetadata</td><td>Read</td><td>Retrieves the metadata for the specified NFT.</td></tr><tr><td>historical/transactions</td><td>Read</td><td>Retrieves past transactions associated with a designated address, sorted based on an NFT token contract, and limited within a specific block range.</td></tr><tr><td>historical/logs</td><td>Read</td><td>Retrieves historical logs for any NFT Collection.</td></tr></tbody></table>


# ERC721

### /getbalance

Retrieves the number of NFTs held in the owner's account. Currently available on Ethereum, Polygon, BSC, Avalanche, Mantle and zkSync.

<mark style="color:blue;">`GET`</mark> `https://api.expand.network/nft/getbalance`

#### Query Parameters

| Name                                            | Type   | Description                                                                                                                         |
| ----------------------------------------------- | ------ | ----------------------------------------------------------------------------------------------------------------------------------- |
| rpc                                             | String | Remote procedural call URL.                                                                                                         |
| chainId                                         | String | Refer to the [Chain ID ](/ids/chain-ids)page for details.                                                                           |
| chainSymbol                                     | String | <p>Refer to the <a href="/pages/5o1xMsQPqXw9GBfGTpdB">Chain ID </a>page for details. <br>Chain Symbols: eth, bsc, avax, matic. </p> |
| nftCollection<mark style="color:red;">\*</mark> | String | NFT collection address                                                                                                              |
| address<mark style="color:red;">\*</mark>       | String | User's account address                                                                                                              |
| nftProtocolId                                   | String | <p>721/1155 standard choice</p><p>by default it is 721</p>                                                                          |

{% tabs %}
{% tab title="Sample Request" %}

```url
https://api.expand.network/nft/getbalance?nftCollection=0xBC4CA0EdA7647A8aB7C2061c2E118A18a936f13D&address=0xc5c7b46843014B1591e9aF24de797156cde67f08
```

{% endtab %}

{% tab title="Sample Response" %}

<pre><code><strong>{
</strong>    "status": 200,
    "msg": "success",
    "data": {
        "balance": "2"
    }
}
</code></pre>

{% endtab %}
{% endtabs %}

### /getmetadata

Retrieves the metadata for the specified NFT. Currently available on Ethereum, Polygon, BSC, Avalanche, Mantle and zkSync.

<mark style="color:blue;">`GET`</mark> `https://api.expand.network/nft/getmetadata`

#### Query Parameters

| Name                                            | Type   | Description                                               |
| ----------------------------------------------- | ------ | --------------------------------------------------------- |
| rpc                                             | String | Remote procedural call URL.                               |
| chainId                                         | String | Refer to the [Chain ID ](/ids/chain-ids)page for details. |
| chainSymbol                                     | String | Refer to the [Chain ID ](/ids/chain-ids)page for details. |
| nftCollection<mark style="color:red;">\*</mark> | String | NFT collection address.                                   |

{% tabs %}
{% tab title="Sample Request" %}

```url
https://api.expand.network/nft/getmetadata?nftCollection=0x5af0d9827e0c53e4799bb226655a1de152a425a5
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "name": "Milady",
        "symbol": "MIL"
    }
}
```

{% endtab %}
{% endtabs %}

### /getowner

Retrieves the owner of the specified token ID. Currently available on Ethereum, Polygon, BSC, Avalanche, Mantle and zkSync.

<mark style="color:blue;">`GET`</mark> `https://api.expand.network/nft/getowner`

#### Query Parameters

| Name                                            | Type   | Description                                                                                                                           |
| ----------------------------------------------- | ------ | ------------------------------------------------------------------------------------------------------------------------------------- |
| rpc                                             | String | Remote procedural call URL.                                                                                                           |
| chainId                                         | String | Refer to the [Chain ID ](/ids/chain-ids)page for details.                                                                             |
| chainSymbol                                     | String | <p>Refer to the <a href="/pages/5o1xMsQPqXw9GBfGTpdB">Chain ID </a>page for details.</p><p>Chain Symbols: eth, bsc, avax, matic. </p> |
| nftCollection<mark style="color:red;">\*</mark> | String | NFT collection address                                                                                                                |
| nftProtocolId                                   | String | <p>721/1155 standard choice</p><p>by default: 721</p>                                                                                 |
| nftIndex<mark style="color:red;">\*</mark>      | String | Index of the nft in the Collection                                                                                                    |

{% tabs %}
{% tab title="Sample Request" %}

```url
https://api.expand.network/nft/getowner?nftIndex=1000&nftCollection=0xBC4CA0EdA7647A8aB7C2061c2E118A18a936f13D
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "owner": "0x68761dE35422d8e36d18dC2F7f6313a58c1a3616"
    }
}
```

{% endtab %}
{% endtabs %}

### /historicaltransactions

&#x20;Retrieves past transactions associated with a designated address, sorted based on an NFT token contract, and limited within a specific block range. Currently available on ethereum.

<mark style="color:blue;">`GET`</mark> `https://api.expand.network/nft/historicaltransactions`

#### Query Parameters

| Name                                            | Type   | Description                                                           |
| ----------------------------------------------- | ------ | --------------------------------------------------------------------- |
| rpc                                             | String | Remote procedural call URL.                                           |
| chainId                                         | String | Refer to the [Chain ID ](/ids/chain-ids)page for details.             |
| chainSymbol                                     | String | Refer to the [Chain ID ](/ids/chain-ids)page for details.             |
| nftCollection<mark style="color:red;">\*</mark> | String | NFT collection address                                                |
| nftProtocolId                                   | String | <p>721/1155 standard choice</p><p>by Default 721</p>                  |
| startBlock                                      | String | <p>starting block of the range</p><p>by Default: latestBlock -100</p> |
| page                                            | String | <p>page no to get</p><p>by Default 1</p>                              |
| endBlock                                        | String | <p>end block of the range</p><p>by Default: latestBlock</p>           |
| sort                                            | String | <p>asc/desc</p><p>by Default  desc</p>                                |

{% tabs %}
{% tab title="Sample Request " %}

```url
https://api.expand.network/nft/historicaltransactions?chainId=1&nftProtocolId=721&startBlock=0&nftCollection=0x306b1ea3ecdf94aB739F1910bbda052Ed4A9f949&page=1&sort=desc
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "transactions": [
            {
                "blockNumber": "18968332",
                "timeStamp": "1704790283",
                "hash": "0x719286621b2b2e4aeda8e61a0ce2e58bd6f4806d1d411653172ec5380ec2c3d6",
                "nonce": "722",
                "blockHash": "0x6929852257b9d94b5f9b5908d851a25488d3a2afd11c103229f7a8fb305b5898",
                "from": "0x2efdb6dd6daa243fdf30cac2391adb8350d5e322",
                "contractAddress": "0x306b1ea3ecdf94ab739f1910bbda052ed4a9f949",
                "to": "0xae78174d3ab843dd349acb975ed1b3b1431a55e8",
                "tokenID": "769",
                "tokenName": "Beanz",
                "tokenSymbol": "BEANZ",
                "tokenDecimal": "0",
                "transactionIndex": "43",
                "gas": "173141",
                "gasPrice": "16138857662",
                "gasUsed": "128215",
                "cumulativeGasUsed": "9277786",
                "input": "deprecated",
                "confirmations": "513",
                "methodId": "0x00000000",
                "methodSignature": "get_block_hash_257335279069929(uint256)"
            },
            ...
        ]
    }
}
```

{% endtab %}
{% endtabs %}

### /historicallogs

Retrieves historical logs for any nftCollection. Currently available on ethereum.

<mark style="color:blue;">`GET`</mark> `https://api.expand.network/nft/historicallogs`

#### Query Parameters

| Name                                            | Type   | Description                                                           |
| ----------------------------------------------- | ------ | --------------------------------------------------------------------- |
| rpc                                             | String | Remote procedural call URL.                                           |
| chainId                                         | String | Refer to the [Chain ID ](/ids/chain-ids)page for details.             |
| chainSymbol                                     | String | Refer to the [Chain ID ](/ids/chain-ids)page for details.             |
| nftCollection<mark style="color:red;">\*</mark> | String | NFT collection address                                                |
| nftProtocolId                                   | String | <p>721/1155 standard choice</p><p>by Default 721</p>                  |
| startBlock                                      | String | <p>starting block of the range</p><p>by Default: latestBlock -100</p> |
| page                                            | String | <p>page no to get</p><p>by Default 1</p>                              |
| endBlock                                        | String | <p>end block of the range</p><p>by Default: latestBlock</p>           |
| type<mark style="color:red;">\*</mark>          | String | <p>ERC721: Approval, Transfer</p><p></p>                              |

{% tabs %}
{% tab title="Sample Request " %}

```url
https://api.expand.network/nft/historicallogs?chainId=1&nftCollection=0x08D7C0242953446436F34b4C78Fe9da38c73668d&type=Transfer&startBlock=17146713&endBlock=17157177
```

{% endtab %}

{% tab title="Sample Response" %}

<pre class="language-json"><code class="lang-json"><strong>{
</strong>    "status": 200,
    "msg": "success",
    "data": {
        "logs": [
            {
                "address": "0x08d7c0242953446436f34b4c78fe9da38c73668d",
                "topics": [
                    "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
                    "0x00000000000000000000000050d36f27872f637ec9ecb4eedff300df44a608ab",
                    "0x000000000000000000000000fcbe7b6da18a08a86ab1beb68c7372a60ab4e331",
                    "0x00000000000000000000000000000000000000000000000000000000000003d5"
                ],
                "params": {
                    "from": "0x50d36f27872f637ec9ecb4eedff300df44a608ab",
                    "to": "0xfcbe7b6da18a08a86ab1beb68c7372a60ab4e331",
                    "tokenId": "981"
                },
                "data": "0x",
                "blockNumber": "17147007",
                "blockHash": "0x0af8cae4fce3cabdad9dbcac77ba4761afea961c040817ea835260ea6d56703a",
                "timeStamp": "1682713763",
                "gasPrice": "35684114147",
                "gasUsed": "267808",
                "logIndex": "250",
                "transactionHash": "0x0eb9b987533eee819a1509b5e50691438d0de6f9c43b46973fdd2516eccefd97",
                "transactionIndex": "98"
            },
            ...
           }
       ]
   }
}
</code></pre>

{% endtab %}
{% endtabs %}


# ERC1155

### /getbalance

Retrieves the number of NFTs held in the owner's account. Currently available on ethereum, polygon, BSC, and avalanche.

<mark style="color:blue;">`GET`</mark> `https://api.expand.network/nft/getbalance`

#### Query Parameters

| Name                                            | Type   | Description                                                                                                                           |
| ----------------------------------------------- | ------ | ------------------------------------------------------------------------------------------------------------------------------------- |
| rpc                                             | String | Remote procedural call URL.                                                                                                           |
| chainId                                         | String | Refer to the [Chain ID ](/ids/chain-ids)page for details.                                                                             |
| chainSymbol                                     | String | <p>Refer to the <a href="/pages/5o1xMsQPqXw9GBfGTpdB">Chain ID </a>page for details.</p><p>Chain Symbols: eth, bsc, avax, matic. </p> |
| nftCollection<mark style="color:red;">\*</mark> | String | NFT collection address                                                                                                                |
| address<mark style="color:red;">\*</mark>       | String | User's account address                                                                                                                |
| nftProtocolId                                   | String | <p>721/1155 standard choice</p><p>by default it is 721</p>                                                                            |
| tokenId<mark style="color:red;">\*</mark>       | String | Id of the token                                                                                                                       |

{% tabs %}
{% tab title="Sample Request" %}

```url
https://api.expand.network/nft/getbalance?nftProtocolId=1155&nftCollection=0x6d4bbC0387dD4759EEe30f6A482AC6dC2Df3Facf&address=0x41e8BF3d9288EdDAcc3206f9aB21b61A1c59Df31&tokenId=1&chainId=1
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "balance": "172"
    }
}
```

{% endtab %}
{% endtabs %}

### /historicaltransactions

&#x20;Retrieves past transactions associated with a designated address, sorted based on an NFT token contract, and limited within a specific block range. Currently available on ethereum.

<mark style="color:blue;">`GET`</mark> `https://api.expand.network/nft/historicaltransactions`

#### Query Parameters

| Name                                            | Type   | Description                                                           |
| ----------------------------------------------- | ------ | --------------------------------------------------------------------- |
| rpc                                             | String | Remote procedural call URL.                                           |
| chainId                                         | String | Refer to the [Chain ID ](/ids/chain-ids)page for details.             |
| chainSymbol                                     | String | Refer to the [Chain ID ](/ids/chain-ids)page for details.             |
| nftCollection<mark style="color:red;">\*</mark> | String | NFT collection address                                                |
| nftProtocolId                                   | String | <p>721/1155 standard choice</p><p>by Default 721</p>                  |
| startBlock                                      | String | <p>starting block of the range</p><p>by Default: latestBlock -100</p> |
| page                                            | String | <p>page no to get</p><p>by Default 1</p>                              |
| endBlock                                        | String | <p>end block of the range</p><p>by Default: latestBlock</p>           |
| sort                                            | String | <p>asc/desc</p><p>by Default  desc</p>                                |

{% tabs %}
{% tab title="Sample Request" %}

```url
https://api.expand.network/nft/historicaltransactions?chainId=1&nftProtocolId=1155&startBlock=0&nftCollection=0x6Fc436606771bA2Cff576695FE9CA04D8D95d4ec&page=1&sort=desc
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "transactions": [
            {
                "blockNumber": "17594313",
                "timeStamp": "1688155067",
                "hash": "0x8415c34fe5a21ed999b5deb2d82d24c92a579ac8201f0a74e69991bc88a2d1c2",
                "nonce": "71",
                "blockHash": "0x2925fc992c4239963b0a4af6d76221989f7df37ccc36fc8da502f5b7139d417e",
                "transactionIndex": "86",
                "gas": "77951",
                "gasPrice": "28151909699",
                "gasUsed": "72436",
                "cumulativeGasUsed": "12259715",
                "input": "deprecated",
                "contractAddress": "0x6fc436606771ba2cff576695fe9ca04d8d95d4ec",
                "from": "0xe4de48c4abc7e97c64cea4788edf1434e2463d93",
                "to": "0xfc40dcc9ab7dd6ffa62abd82ad7b913c180f08c5",
                "tokenID": "37",
                "tokenValue": "1",
                "tokenName": "EnigmaNFT1155",
                "tokenSymbol": "NFT1155",
                "confirmations": "1374518",
                "methodId": "0xf242432a",
                "methodSignature": "safeTransferFrom(address,address,uint256,uint256,bytes)"
            },
            ...
        ]
    }

```

{% endtab %}
{% endtabs %}

### /historicallogs

Retrieves historical logs for any nftCollection. Currently available on ethereum.

<mark style="color:blue;">`GET`</mark> `https://api.expand.network/nft/historicallogs`

#### Query Parameters

| Name                                            | Type   | Description                                                           |
| ----------------------------------------------- | ------ | --------------------------------------------------------------------- |
| rpc                                             | String | Remote procedural call URL.                                           |
| chainId                                         | String | Refer to the [Chain ID ](/ids/chain-ids)page for details.             |
| chainSymbol                                     | String | Refer to the [Chain ID ](/ids/chain-ids)page for details.             |
| nftCollection<mark style="color:red;">\*</mark> | String | NFT collection address                                                |
| nftProtocolId                                   | String | <p>721/1155 standard choice</p><p>by Default 721</p>                  |
| startBlock                                      | String | <p>starting block of the range</p><p>by Default: latestBlock -100</p> |
| page                                            | String | <p>page no to get</p><p>by Default 1</p>                              |
| endBlock                                        | String | <p>end block of the range</p><p>by Default: latestBlock</p>           |
| type<mark style="color:red;">\*</mark>          | String | ERC1155: ApprovalForAll,TransferSingle                                |

{% tabs %}
{% tab title="Sample Request " %}

```url
https://api.expand.network/nft/historicallogs?nftCollection=0x6d4bbC0387dD4759EEe30f6A482AC6dC2Df3Facf&chainId=1&type=ApprovalForAll&nftProtocolId=1155&startBlock=17046490&endBlock=17151713
```

{% endtab %}

{% tab title="Sample Response" %}

<pre class="language-json"><code class="lang-json"><strong>{
</strong>    "status": 200,
    "msg": "success",
    "data": {
        "logs": [
            {
                "address": "0x6d4bbc0387dd4759eee30f6a482ac6dc2df3facf",
                "topics": [
                    "0x17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31",
                    "0x0000000000000000000000004525aead5112662d8c117d1d27433bac9abc2029",
                    "0x0000000000000000000000004fee7b061c97c9c496b01dbce9cdb10c02f0a0be"
                ],
                "params": {},
                "data": "0x0000000000000000000000000000000000000000000000000000000000000001",
                "blockNumber": "17046490",
                "blockHash": "0x1b78ea8731de05cee7073e5d22c4b2196acbfbba3358677e593a43efd3c27664",
                "timeStamp": "1681488623",
                "gasPrice": "32423597367",
                "gasUsed": "46718",
                "logIndex": "300",
                "transactionHash": "0xf1558666d8a5ec595d6ef0431cc9e7801faf2b57671052e2c917019b9228b646",
                "transactionIndex": "144"
            },
          ]
        }
    }
</code></pre>

{% endtab %}
{% endtabs %}




---

[Next Page](/llms-full.txt/1)

