Skip to main content
Close an authorization that you will not capture. The operator can call void at any time to return all remaining capturable funds. If the operator becomes inactive, the payer can call reclaim at or after authorizationExpiry.

Demo

The demo above is mock only. If you want to see onchain demos on Vibenet, head to Base chain demos.

Void the Remaining Authorization

void returns the complete capturableAmount; there is no partial-void operation. Capture the final fulfilled amount first, then void the remainder.
TypeScript
Both void and reclaim set capturableAmount to zero while leaving any previously captured refundableAmount unchanged.
Verify PaymentVoided or PaymentReclaimed, and match its amount to the capturable balance immediately before the return.
After authorization expiry, the operator and payer can race to return the same remainder through void or reclaim. One succeeds and the other reverts with ZeroAuthorization; process either event idempotently as the terminal authorization return.

See Also

Authorize a Payment

Configure the authorization and recovery windows.

Refund a Payment

Return value that was already captured.