EVM Exchange

Get quote to swap native token to an ERC20 token

post
Authorizations
Body
amountstringRequired

Amount of native token to swap

Example: 0.1
tokenOutstringRequired

Token address to receive

Example: 0x6B175474E89094C44Da98b954EedeAC495271d0F
chainIdnumberRequired

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

Example: 1
Responses
post
/api/v1/evm-exchange/quote/native-to-token
default

Swap native token to an ERC20 token

post
Authorizations
Body
amountstringRequired

Amount of native token to swap

Example: 0.1
tokenOutstringRequired

Token address to receive

Example: 0x6B175474E89094C44Da98b954EedeAC495271d0F
chainIdnumberRequired

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

Example: 1
Responses
post
/api/v1/evm-exchange/native-to-token
default

Get quote to swap one ERC20 token to another

post
Authorizations
Body
inputMintstringRequired
outputMintstringRequired
amountnumberRequired
slippageBpsnumberOptional
Responses
post
/api/v1/evm-exchange/quote/token-to-token
default

Swap one ERC20 token to another

post
Authorizations
Body
inputMintstringRequired
outputMintstringRequired
amountnumberRequired
slippageBpsnumberOptional
Responses
post
/api/v1/evm-exchange/token-to-token
default

Get quote to swap an ERC20 token to native token

post
Authorizations
Body
amountstringRequired

Amount of native token to swap

Example: 0.1
tokenInstringRequired

Token address to receive

Example: 0x6B175474E89094C44Da98b954EedeAC495271d0F
chainIdnumberRequired

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

Example: 1
Responses
post
/api/v1/evm-exchange/quote/token-to-native
default

Swap an ERC20 token to native token

post
Authorizations
Body
amountstringRequired

Amount of native token to swap

Example: 0.1
tokenInstringRequired

Token address to receive

Example: 0x6B175474E89094C44Da98b954EedeAC495271d0F
chainIdnumberRequired

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

Example: 1
Responses
post
/api/v1/evm-exchange/token-to-native
default

Last updated