Skip to main content
POST
getTokenAccountsByOwner
curl --request POST \
  --url https://ca.raze.sh/ \
  --header 'Content-Type: application/json' \
  --data '
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "getTokenAccountsByOwner",
  "params": [
    "4Nd1mBQtrMJVYVfKf2PJy9NZUZdTAsp7D4xWLs4gDB4T",
    {
      "programId": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
    },
    {
      "encoding": "jsonParsed"
    }
  ]
}
'
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "context": {
      "slot": 418263083
    },
    "value": []
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.raze.bot/llms.txt

Use this file to discover all available pages before exploring further.

Body

application/json
jsonrpc
enum<string>
required
Available options:
2.0
Example:

"2.0"

method
enum<string>
required
Available options:
getTokenAccountsByOwner
Example:

"getTokenAccountsByOwner"

params
any[]
required

[wallet, filter, config?]filter is {mint} or {programId}

Example:
[
"4Nd1mBQtrMJVYVfKf2PJy9NZUZdTAsp7D4xWLs4gDB4T",
{
"programId": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
},
{ "encoding": "jsonParsed" }
]
id
Example:

1

Response

200 - application/json

JSON-RPC response. Inspect result (success) or error (failure).

jsonrpc
string
required
Example:

"2.0"

result
any
required
id
Example:

1