Skip to main content
POST
/
action
/
rewards
/
swap
Get swap information
curl --request POST \
  --url http://localhost:4000/v1/action/rewards/swap \
  --header 'Authorization: <api-key>'

Authorizations

Authorization
string
header
required

Use this format: ApiKey <your_api_key>

Query Parameters

protocol
enum<string>

DEX protocol to use for token operations

Available options:
lfj,
pangolin,
arenaswap
chainId
number
required

Chain ID for the blockchain network

kolRouterAddress
string
required

The address of the Kol Router contract you want to use to make the swap

userAddress
string
required

The address of the user who wishes to make the swap

fromToken
string
required

Token to swap from (address or symbol)

toToken
string
required

Token to swap to (address or symbol)

amount
number

Amount to be swapped (in decimals)

slippage
number

Maximum slippage allowed (in percentage)

Response

200

Swap data based on query parameters