Cancel Last Action
The Cancel Last Action command allows an applicant to cancel a pending validation process (VP) for a permission before it is completed. This is useful in scenarios where:
- The applicant submitted incorrect details during validation.
- The validator has not yet completed their part, and the applicant wants to withdraw.
- The applicant wishes to stop the process to avoid additional trust deposit usage or fees.
When a validation process is canceled:
- If the process never completed, the permission entry is set to TERMINATED.
- If the process had previously been validated and was renewed, the permission state is reset to VALIDATED.
- Trust deposit and validation fees are refunded where applicable.
Flow Diagram
Message Parameters
Name | Description | Mandatory |
---|---|---|
perm-id | Numeric ID of the permission for which you want to cancel the current validation process. | yes |
TODO
@matlux
Post the Message
- CLI
- Frontend
Usage
veranad tx perm cancel-last-action <perm-id> --from <user> --chain-id <chain-id> --keyring-backend test --fees <amount> --gas auto
Example
PERM_ID=12
veranad tx perm cancel-last-action $PERM_ID --from $USER_ACC --chain-id $CHAIN_ID --keyring-backend test --fees 600000uvna --node $NODE_RPC
Check the updated status of the permission:
veranad q perm list-permissions --node $NODE_RPC --output json | jq '.permissions[] | select(.id == "'$PERM_ID'")'
Expected status: VALIDATED
(for cancelation of a renewal) or TERMINATED
(if never validated).
tip
TODO: describe here