solscan logo

token defi activities

v2

Get defi activities involving a token

QUERY PARAMS

address

string

required

A Wallet address on solana blockchain

from

string

Filter activities from an address

platform

array

Filter by list platform addresses. Maximum 5 addresses

source

array

Filter by list source addresses. Maximum 5 addresses

activity_type

array

Type of defi-activity data

Enum: ACTIVITY_TOKEN_SWAP, ACTIVITY_AGG_TOKEN_SWAP, ACTIVITY_TOKEN_ADD_LIQ, ACTIVITY_TOKEN_REMOVE_LIQ, ACTIVITY_SPL_TOKEN_STAKE, ACTIVITY_SPL_TOKEN_UNSTAKE, ACTIVITY_SPL_TOKEN_WITHDRAW_STAKE

token

string

Filter activities data by token address

block_time

array

Used when you want to filter data by block time. Format time: UnixTime in seconds. You need to pass array into http query to filter by start and stop block_time. Example: ?block_time[]=1720153259&block_time[]=1720153276

page

number

Page number for pagination

page_size

number

Number items per page

Enum: 10, 20, 30, 40, 60, 100

RESPONSES

200

OK

Response Body

400

Bad Request

Response Body

401

Authentication failed

403

Too Many Requests

500

Internal Server Error

icon

Javascript

icon

Python

icon

Shell

icon

Go

icon

C#

Authorization

Response

Click Try It! to start a request and see the response here!