Tracking unstake requests

This section describes how to tarck unstake requests.

  1. Monitor Events on the Blockchain

The unstake request process typically involves sending a transaction to the smart contract that initiates the unstaking. The contract may emit events (messages) related to the Unstake Request, which can be tracked on the blockchain. Look for events such as:

  • OP::UNSTAKE: When the Unstake Request is initiated, a message with the OP::UNSTAKE operation code will be sent. This message will contain details about the unstake request, such as the amount of TON and jettons to be unstaked (currently unused), the owner's address, and the index of the request.

  1. Invoke get_unstake_data() method in Unstake Request contract. By invoking this method you can retrieve the details of an unstake request. When Unstake Request sends message to Financial with OP::UNSTAKE it sets unlock_timestamp equal to 0.

Last updated