Skip to content
Discussion options

You must be logged in to vote

To manage and calculate an account's staking and delegations within the Aptos blockchain, you may need to implement custom logic. This involves searching through an account's transaction history to identify which delegation pools it has interacted with. For small-scale implementations, a brute force search could suffice. Here's a code snippet using the SDK:

await aptos.getAccountTransactions({ accountAddress: "0x123" })

For information regarding delegations, the documentation provides insights into the various view functions accessible via the SDK. You could also use the indexer directly too.

Here's a potential approach:

  1. Checking for Delegation Pool Existence
    Utilize the delegation_pool…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by tktres
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
staking Questions about staking APT
2 participants