Skip to main content
POST
Get Swaps

Authorizations

x-api-key
string
header
required

Your Prism API key. You can get one for free in the Prism Dashboard.

Body

application/json
wallet
string

Wallet address to filter swaps by.

token
string

Token address to filter swaps by.

pool
string

Pool address to filter swaps by.

limit
integer
default:20

Maximum number of results to return in a single page.

Required range: 1 <= x <= 100
cursor
string

Opaque cursor returned by a previous response. Pass it to fetch the next page of results.

Response

List of swaps.

count
integer

Total number of matching items

cursor
string

Cursor for pagination

data
object[]