For the complete documentation index, see llms.txt. Markdown versions of the documentation pages are available from that index.
solscan logo
Register NowRegister Now

account defi activities

* Try live endpoints on real data. No paid plan required ยท Free tier limits apply.

get

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

Get defi activities involving an account

QUERY PARAMS

address

string

required

Solana wallet address

activity_type

array

Type of activity data

from

string

Filter activities from an address

source

array

Filter by list source addresses. Maximum 5 addresses

Maximum allowed values: 5

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 (USD). Example: ?value[]=1&value[]=10

Maximum allowed values: 2

page

number

Page number for pagination

page_size

number

Number of items per page

sort_by

string

Field to sort by

sort_order

string

Sort order

block_time

array

Deprecated

Deprecated โ€” use from_time/to_time instead. Block time range, Unix seconds, passed as an array. Example: ?block_time[]=1720153259&block_time[]=1720153276

Maximum allowed values: 2

RESPONSES

200

OK

Response Body (application/json)

success

boolean

Request status

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

array of string

Address(es) of the top-level protocol/aggregator(s) the activity is attributed to

sources

array of string

Program address(es) of the underlying pool(s)/venue(s) the activity routed through

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

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 (application/json)

401

Authentication failed

Response Body (application/json)

429

Too Many Requests

Response Body (application/json)

500

Internal Server Error

Response Body (application/json)

icon

Javascript

icon

Python

icon

Shell

icon

Go

icon

C#

Authorization

Free API key

Response

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

Response Examples