getCompressedTokenAccountsByDelegate

Returns the compressed token accounts that are partially or fully delegated to the given delegate. This is a paginated endpoint.

post
Body
idstring · enumRequired

An ID to identify the request.

Available options:
jsonrpcstring · enumRequired

The version of the JSON-RPC protocol.

Available options:
methodstring · enumRequired

The name of the method to invoke.

Available options:
paramsobjectRequired
Responses
application/json
objectOptional
post
POST / HTTP/1.1
Host: mainnet.helius-rpc.com
Content-Type: application/json
Accept: */*
Content-Length: 239

{
  "id": "test-account",
  "jsonrpc": "2.0",
  "method": "getCompressedTokenAccountsByDelegate",
  "params": {
    "cursor": "3J98t1WpEZ73CNm",
    "delegate": "11111118eRTi4fUVRoeYEeeTyL4DPAwxatvWT5q1Z",
    "limit": 1,
    "mint": "11111118eRTi4fUVRoeYEeeTyL4DPAwxatvWT5q1Z"
  }
}
{
  "context": {
    "slot": 100
  },
  "value": {
    "cursor": "3J98t1WpEZ73CNm",
    "items": [
      {
        "account": {
          "address": "11111118eRTi4fUVRoeYEeeTyL4DPAwxatvWT5q1Z",
          "data": {
            "data": "SGVsbG8sIFdvcmxkIQ==",
            "dataHash": "111111193m4hAxmCcGXMfnjVPfNhWSjb69sDgffKu",
            "discriminator": 100
          },
          "hash": "111111193m4hAxmCcGXMfnjVPfNhWSjb69sDgffKu",
          "lamports": 100,
          "leafIndex": 100,
          "owner": "11111118eRTi4fUVRoeYEeeTyL4DPAwxatvWT5q1Z",
          "seq": 100,
          "slotCreated": 100,
          "tree": "11111118eRTi4fUVRoeYEeeTyL4DPAwxatvWT5q1Z"
        },
        "tokenData": {
          "amount": 100,
          "delegate": "11111118eRTi4fUVRoeYEeeTyL4DPAwxatvWT5q1Z",
          "mint": "11111118eRTi4fUVRoeYEeeTyL4DPAwxatvWT5q1Z",
          "owner": "11111118eRTi4fUVRoeYEeeTyL4DPAwxatvWT5q1Z",
          "state": "initialized",
          "tlv": "SGVsbG8sIFdvcmxkIQ=="
        }
      }
    ]
  }
}

Last updated

Was this helpful?