Skip to main content
POST
/
api
/
solscan
/
accounts
/
defi-activities
/solscan/accounts/defi-activities
curl --request POST \
  --url https://api.anysite.io/api/solscan/accounts/defi-activities \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "address": "<string>",
  "count": 2,
  "timeout": 300
}
'
[
  {
    "@type": "SolscanDefiActivity",
    "signature": "<string>",
    "slot": 123,
    "block_time": 123,
    "activity_type": "<string>",
    "from_address": "<string>",
    "platforms": [],
    "sources": [],
    "token_1": "<string>",
    "token_2": "<string>",
    "amount_1": 123,
    "amount_2": 123,
    "value": 123
  }
]

Authorizations

access-token
string
header
required

API token from the dashboard

Headers

access-token
string
required

Body

application/json
address
string
required

Solana account or token mint address (base58)

Example:

"5tzFkiKscXHK5ZXCGbXZxdw7gTjjD1mBwuoFbhUvuAi9"

count
integer
required

Max number of activities to return

Required range: x >= 1
timeout
integer
default:300

Max scrapping execution timeout (in seconds)

Required range: 20 <= x <= 1500

Response

Successful Response

@type
string
default:SolscanDefiActivity
signature
string | null
slot
integer | null
block_time
integer | null
activity_type
string | null
from_address
string | null
platforms
string[]
sources
string[]
token_1
string | null
token_2
string | null
amount_1
number | null
amount_2
number | null
value
number | null