Skip to main content
POST
Get token approval data

Authorizations

Authorization
string
header
required

Send Authorization: <ApiKey>:<ApiSecret> — joined by a colon, raw. No Bearer prefix, no base64.

Get your credentials

Body

application/json
quoteId
string
required

Quote ID from a prior quote response.

Example:

"69a02882f48d56c923119d95"

addressFrom
string
required

Address from which the amount will be deducted (EVM or Tron)

Pattern: ^(0x[0-9a-fA-F]{40}|T[1-9A-HJ-NP-Za-km-z]{33})$
Example:

"0xb7dE6b6eEBF7401aFea5a49D6405C9048fEf2d40"

addressTo
string

Destination address on the output chain. Only required by routes whose approval step signs the destination, currently HyperCore withdrawals. Format follows the output chain, so it is not restricted to EVM.

Example:

"8jZnXYnZB1MJQG6zBXyouzcycsaPTrZtPXPHDNifjYaC"

usePermit
boolean

Whether to use permit instead of approve. Defaults to true for swaps that support it.

Example:

false

Response

What the wallet must approve; both arrays empty if nothing is needed

approvals
object[]
required

Transactions the wallet must send before the swap. Empty when the allowance already covers it.

signatures
object[]
required

Messages to sign instead of sending an approval transaction, when the token and provider both support it. Pass the signed results to signatures on Create exchange.