For the complete documentation index, see llms.txt. This page is also available as Markdown.

Uniswap X

/getorders

Returns the details of the specified order.

GET https://api.expand.network/dex/getorders

Query Parameters

Name
Type
Description

dexId*

String

Refer to the DEX ID page for details.

status

String

The order status. Accepted values: open, expired, error, cancelled, filled, and insufficient-funds

orderHashes

String

Comma separated order hashes.

filler

String

Address of the filler.

sort

String

"asc" or "desc".

By default, desc.

rpc

String

Remote procedural call URL.

https://api.expand.network/dex/getorders?status=filled&dexId=1900&orderHashes=0xe788217d7450116385e71cc754ead242c21f5ec7f533ed48f9be47ccc2afc7a8%2C0xa553e8984c77d9a1c784aea07560add932d91b8812b737573e209223aeea7ff6%2C0x63138358f0b8a02353f954aa19bfb806d444f7c8f4b30791ab879746f6a7803c&filler=0xb07508e0de659b7d6dd550a1cf1a796fec4fc9aa&sort=desc
{
    "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"
            }
        ]
    }
}

/createorder

Initiate a transaction to generate the order values.

POST https://api.expand.network/dex/createorder

Request Body

Name
Type
Description

dexId*

String

Refer to DEX ID page for details.

amountOutMin*

String

Minimum amount accepted.

decayStartTime*

String

Dutch order bidding start time. (UNIX Timestamp).

decayEndTime*

String

Dutch order bidding end time. (UNIX Timestamp).

deadline*

String

Deadline for the transaction to be executed (UNIX Timestamp).

from*

String

Address of the sender of the token.

path*

String

Comma-separated values of token addresses, inside an array, to swap.

amountIn*

String

Amount of token to create an order.

to*

String

Address of the recipient of the token.

slippage

String

Percentage of total swap value. By default, 1.

0 <= slippage value <= 10

With Slippage:

With Slippage:

/swap

Initiate a swap transaction on a specified DEX.

POST https://api.expand.network/dex/swap

Request Body

Name
Type
Description

dexId*

String

Refer to DEX ID page for details.

gasPriority

String

low, medium, or high.

gas

String

Maximum gas limit provided by the sender, for the transaction.

signature*

String

The quoter's signature.

serializedOrder*

String

The encoded order data received from UniswapX.

from*

String

Address of the sender of the token.

With gasPriority:

With gasPriority:

Last updated