getTokenAccountsByDelegateV2 returns the SPL Token and Token-2022 accounts whose delegate is the given address, one page at a time, ordered by pubkey. Use it instead of getTokenAccountsByDelegate when a delegate can have more than 10,000 token accounts or you want bounded page sizes.
Send it to the complete ThorEdge RPC URL like any other method.
Parameters
string
required
Delegate pubkey as a base-58 string.
object
required
Exactly one of:
{ "mint": "<pubkey>" }: token accounts for one mint.{ "programId": "<pubkey>" }: all token accounts owned by that token program. Must be the SPL Token or Token-2022 program id.
object
Options for the query. All fields are optional.
filters and changedSinceSlot are not supported on this method.
Response
object
{ "slot": <int> }: the indexed slot the page reflects.object
Paginate
Repeat the request withpaginationKey set to the value you received, keeping the filter, encoding, and limit unchanged, until paginationKey is null.