Disable the box "Pay Now" button depending on an arbitrary disableGuard function
Default
None
Considerations
Among other things, this is great for NFT claim conditions or launching / ending functionality at a given time.
onTxError
onTxError?: (e: unknown) => void;
About
Callback function executed on a transaction through The Box failing
Default
None
onTxPending
onTxPending?: (r: WriteContractResult) => void;
About
Callback function executed on a transaction through The Box being initiated
Default
None
onTxReceipt
onTxReceipt?: (r: TransactionReceipt) => void;
About
Callback function executed on source chain transaction confirming
Default
None
onDstTxReceipt
onDstTxReceipt?: (r: TransactionReceipt) => void;
About
Callback function executed on destination chain transaction confirming
Default
None
Considerations
Transactions on destination network will very rarely fail if The Box has been properly configured. From your users' point-of-view, it is safe for them to assume that their transaction is taken care of once it is confirmed on the source chain. We recommend anchoring core transaction loading states and messaging on onTxReceipt. onDstTxReceipt is best for asynchronously notifying users about the outcome of their transaction.