solscan logo
Register NowRegister Now

token defi activities

get

https://pro-api.solscan.io/playground/token/defi/activities

Get defi activities involving a token

QUERY PARAMS

address

string

required

A token address on solana blockchain

from

string

Filter activities from an address

source

array

Filter by list source addresses. Maximum 5 addresses

Maximum allowed values: 5

activity_type

array

Type of defi-activity data

token

string

Filter activities data by token address

from_time

number

Filter by time range (Unix timestamp in seconds). Example: ?from_time=1720153259&to_time=1720153276

to_time

number

Filter by time range (Unix timestamp in seconds). Example: ?from_time=1720153259&to_time=1720153276

value

array

Filter by value range (dollar). Example: ?value[]=1&value[]=10

Maximum allowed values: 2

page

number

Page number for pagination

page_size

number

Number items per page

sort_by

string

The parameter allows you to specify the field by which the returned list will be sorted

sort_order

string

The parameter allows you to specify the sort order

block_time

array

Deprecated

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

Maximum allowed values: 2

RESPONSES

200

OK

Response Body

success

boolean

Status of Api

block_id

number

Slot Number of activity

trans_id

string

Transaction Hash or Signature for activity

block_time

number

UnixTime of the slot

time

string

Time of the slot

activity_type

string

Type of activity.

from_address

string

Transfer from an address

to_address

string

Transfer to an address

platform

string

platform

sources

token1

string

Token address

token1_decimals

number

Token decimals

amount1

number

Amount of token1

token2

string

Token address

token2_decimals

number

Token decimals

amount2

number

Amount of token2

token1

string

Token address

token1_decimals

number

Token decimals

amount1

string

Amount of token1

token2

string

Token address

token2_decimals

number

Token decimals

amount2

string

Amount of token2

400

Bad Request

Response Body

401

Authentication failed

Response Body

429

Too Many Requests

Response Body

500

Internal Server Error

Response Body

icon

Javascript

icon

Python

icon

Shell

icon

Go

icon

C#

Authorization

Response

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

Response Examples