API Response
Detailed descriptions of the `create-tx` API response structure.
Last updated
Was this helpful?
Detailed descriptions of the `create-tx` API response structure.
Last updated
Was this helpful?
There are several sections to a create-tx
response. You can see a full, real-world API response example . They are:
estimation
contains gas and fee-related estimates used in the transaction planning process.
tx
data
is the data that must be signed and submitted. It contains all necessary information to initiate a , including cases involving . It is either a calldata (for EVM-based chains) or a serialized transaction (for Solana)
to
is a destination address for the transaction. Acts as the spender in the approve
call for ERC-20 tokens. Applicable to EVM source chains only.
value
is a in the source chain's native currency charged by the protocol. Applicable to EVM source chains only.
prependedOperatingExpenseCost
is the estimated operating cost added to the transaction, adjusted for token decimals. Present only if the request was made with prependOperatingExpenses
.
order
is an object containing details required to facilitate the cross-chain trade.
approximateFulfillmentDelay
Estimated delay, in seconds, for the order to be fulfilled.
salt
Randomized value used to ensure uniqueness in the order hash.
metadata
Additional contextual information about the order.
orderId
A deterministic identifier for the order. The same ID is used on both source and destination chains and can be used to .
fixFee
charged in the source chain's native currency. This matches tx.value
for EVM-based chains.
userPoints
The number of that the user will get for this trade.
integratorPoints
The number of that the integrator will get for this trade.
Source .
It will be different from the srcChainTokenInAmount
if the request had . If it had, this will be the amount to use in the approve
call.
Solver's for this swap.
Signifies if the request had .
Source chain output asset address - what the source chain input asset was swapped for in the .
This asset will be used for cross-chain settlement, and what the solver fulfilling the order will receive. This is also the asset that the user will receive if the order is .
Source .
Solver's for this swap.
Destination .