createCrossmintWalletSigner
EmbeddedOfframpPayer for a Crossmint wallet, such as the one useWallet() returns. It supports EVM and Solana wallets.
It throws a plain error when the deposit was prepared for another chain or another wallet. That error leaves the user on the confirming screen, so mount CrossmintEmbeddedOfframp only while this wallet has the same address and chain as the session’s payer.
Usage
OfframpSignatureRejectedError
wallet-rejected and lets the user confirm again.
Usage
Note: A payer for an external wallet. Throw OfframpSignatureRejectedError only when the user declined and nothing was broadcast.
EmbeddedOfframpCredentials
ThesessionId and clientSecret that Create Offramp Session returns. Create the session on your server.
EmbeddedOfframpPayer
Signs and sends the deposit. PasscreateCrossmintWalletSigner(wallet) for a Crossmint wallet, or your own object for an external wallet.
OfframpStatus
onStatusChange. orderId can change during one withdrawal, so keep the latest.
OfframpErrorReason
onError fired. When retriable is false, the session cannot continue: unmount the component.
