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 balance change activities

get

https://pro-api.solscan.io/v2.0/account/balance_change

Get balance change activities involving an account

QUERY PARAMS

address

string

required

Solana wallet address

token_account

string

A token account address on the Solana blockchain

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

page_size

number

Number of items per page

page

number

Page number for pagination

remove_spam

boolean

Exclude spam activities

amount

array

Filter by amount range for a specific token. Example: ?amount[]=1&amount[]=2&token=So11111111111111111111111111111111111111112

Maximum allowed values: 2

flow

string

Filter by change direction: in or out

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

block_time

number

Unix time of the slot

time

string

Time of the slot

trans_id

string

Transaction hash or signature for activity

address

string

The wallet involved in the activity

token_address

string

The address of token involved in the activity

token_decimals

number

The decimals of token involved in the activity

token_account

string

The address of the token account involved in the activity

amount

number

The amount of change

pre_balance

number

The account balance before executing the transaction

post_balance

number

The account balance after executing the transaction

change_type

string

The type of account balance change: increase (inc) or decrease (dec)

fee

number

The fee of transaction

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

Response

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

Response Examples