1

I am trying to get details about my tezos staking transactions through ghostnet tzkt indexer.
tried hitting https://api.ghostnet.tzkt.io/v1/operations/delegations?sender=tz1UuLNVosJQuDoYmo66RoxPcZjGxRQ6bLTJ api .It returns all the delegations operations.But i am unable to distingush between delgation and undelegation operation. How to do that?

1 Answer 1

2

You can understand what's happened just by looking at prevDelegate -> newDelegate pattern. Like

  1. null -> not null - this is delegation to a new baker.
  2. not null -> not null - this is re-delegation to another baker.
  3. not null -> null - this is delegation cancellation.
  4. null -> null - this does nothing :)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.