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

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

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

Last updated