Skip to main content
POST
/
api
/
v1
/
evm-exchange
/
token-to-native
Swap an ERC20 token to native token
curl --request POST \
  --url https://api.dev.monei.cc/api/v1/evm-exchange/token-to-native \
  --header 'Content-Type: application/json' \
  --header 'X-API-KEY: <api-key>' \
  --data '
{
  "amount": "0.1",
  "tokenIn": "0x6B175474E89094C44Da98b954EedeAC495271d0F",
  "chainId": 1
}
'
{
  "statusCode": 123,
  "message": "<string>",
  "data": {
    "txHash": "<string>"
  },
  "errors": {}
}

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