Parameters
- event_typestringREQUIRED
The type of event we have detected. Must be
swap_tokensfor this webhook.
- bodyobjectREQUIRED
The details for this event
- txstringREQUIRED
The transaction as an unsigned encoded string.
- tx_typestringREQUIRED
The type of transaction we are sending you. Must be one of
versioned_transactionortransaction.
- amount_inintegerREQUIRED
The amount of the token you were paid in commission we are going to swap.
- quoteobjectREQUIRED
The quote we used to generate this swap.
- inputMintstringREQUIRED
The source token's mint address
- inAmountstringREQUIRED
The amount of the source token being swapped
- outputMintstringREQUIRED
The destination token's mint address
- outAmountstringREQUIRED
The amount of the destination token received after the swap
- otherAmountThresholdstringREQUIRED
A threshold amount for the destination token
- swapModestringREQUIRED
Indicates the swap mode
- slippageBpsintegerREQUIRED
Slippage tolerance in basis points
- platformFeeobjectREQUIRED
The platform Fee object which contains the following fields:
- amountstringREQUIRED
The amount of the platform fee
- feeBpsintegerREQUIRED
The fee percentage in basis points
- priceImpactPctstringREQUIRED
The percentage of price impact due to the swap
- routePlanarrayREQUIRED
An array containing detailed information about each step of the swap process
- swapInfoobjectREQUIRED
Detailed information about a specific swap step
- ammKeystringREQUIRED
The key identifying the Automated Market Maker (AMM) responsible for the swap
- labelstringREQUIRED
A label or identifier for the AMM
- inputMintstringREQUIRED
The mint address of the token being swapped from in this step
- outputMintstringREQUIRED
The mint address of the token being received in this step
- inAmountstringREQUIRED
The amount of the token being swapped from in this step
- outAmountstringREQUIRED
The amount of the token being received after the swap in this step
- feeAmountstringREQUIRED
The amount of fee charged for this step of the swap
- feeMintstringREQUIRED
The mint address of the token used for paying fees in this step
- percentintegerREQUIRED
The percentage allocation of the swap for this step
- contextSlotintegerREQUIRED
A contextual identifier
- wallet_pubkeystringREQUIRED
The wallet address used to generate the unsigned transaction here.