Skip to main content
POST
Swap an ERC20 token to native token

Authorizations

X-API-KEY
string
header
required

Body

application/json
amount
string
required

Amount of native token to swap

Example:

"0.1"

tokenIn
string
required

Token address to receive

Example:

"0x6B175474E89094C44Da98b954EedeAC495271d0F"

chainId
number
required

Chain ID (e.g., 1 for Ethereum)

Example:

1

Response

default - application/json
statusCode
number
required
message
string
required
data
object
required
errors
object
required