Skip to main content
After the user signs a swap, send it with POST /send-transaction. Raptor submits it straight to block leaders and keeps resending it for up to 30 seconds or until it lands. Then poll GET /transaction/{signature} for the result. You can send any signed transaction this way, not only Raptor swaps.

Send

Response
success: true means Raptor accepted the transaction. It doesn’t mean it landed. Check the status for that.

Track

The signature can be base58 or base64. Raptor only tracks transactions sent through /send-transaction, and only for a short time. Other signatures return 404.

Read the swap result

For Raptor swaps, events lists the program’s events. SwapEvent holds the amounts that were actually traded:
Example
Event names: SwapEvent, SwapCompleteEvent, PlaceOrderEvent, FillOrderEvent, CancelOrderEvent, UpdateOrderEvent.

Errors

Full field lists: Send a signed transaction and Get transaction status.