Parameters
chainId
string
default:"solana-devnet"
required
Unique identifier for a blockchain network.
Request identifier used to match responses.
jsonrpc
string
default:"2.0"
required
JSON-RPC version.
method
string
default:"getTokenAccountsByDelegate"
required
JSON-RPC method name.
Parameters for method getTokenAccountsByDelegate: [delegateAddress, filter, config]Positional parameters for getTokenAccountsByDelegate:params[0]: Pubkey of the account delegate (base-58 encoded).params[1]: Filter object specifying either mint or programId (exactly one required).params[2]: Optional configuration object.
Returns
Array of token accounts owned by delegate.
Token account object.
Account Pubkey (base-58 encoded).
Token account data object.
Number of lamports assigned to this account.
Pubkey of the program that owns this account (base-58 encoded).
Encoded data as [data, encoding] tuple.
Encoded data as [data, encoding] tuple.
Token state data in JSON format (if jsonParsed encoding).
True if the account contains a program (strictly read-only).
Epoch when this account will next owe rent.
Data size of the account in bytes.
curl --request POST \
--url https://api.uniblock.dev/uni/v1/json-rpc?chainId=solana-devnet \
--header 'content-type: application/json' \
--data '{
"id": 1,
"jsonrpc": "2.0",
"method": "getTokenAccountsByDelegate",
"params": [
"4Nd1mBQtrMJVYVfKf2PJy9NZUZdTAsp7D4xWLs4gDB4T",
{
"programId": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
},
{
"encoding": "jsonParsed"
}
]
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": []
}