Skip to main content
GET
Swap Token Amount

Path Parameters

tokenPair
string
default:SOL-Bonk
required

Token pair in format input-output. Input and output are token symbols or addresses.

Example:

"SOL-Bonk"

amount
number
default:0.01
required

Amount of the input token to swap. If the input token is SOL, this is in SOL, otherwise, this is in USD equivalent of input.

Required range: x >= 0
Example:

0.01

Response

Successful response with fixed amount swap action details

icon
string
required
label
string
required
title
string
required
description
string
required
disabled
boolean
error
object