Skip to main content
Pass callback functions to proofWidget.run({...}) to react to widget lifecycle and transaction events.
Callbacks fire in the browser and can be lost if the user closes the tab. Never use them as the authoritative source for business logic. Use polling, WebSocket, or the outbound webhook on your backend for state you depend on.

onStatusChange

Fired each time the transaction status changes inside the widget.

Payload


onLoad

Fired when the widget starts loading.
No payload.

onReady

Fired when the widget has finished loading and is visible to the user.
No payload.

onPaymentFinished

Fired in on-ramp when the fiat payment and KYC check (if required) have both completed, regardless of outcome.

Payload


onSellTransferEnabled

Fired in off-ramp when the user selects the sell flow and a address is displayed for the crypto transfer.

Payload