CrossmintEmbeddedOfframpPayer class final

Signs for the offramp: CrossmintEmbeddedOfframpPayer.wallet for a Crossmint wallet, or your own functions for an external wallet.

The offramp widget takes these requests only from the offramp page itself and, once the page stamps its events, drops any from a cross-origin iframe in it, such as the identity provider's. The SDK does not authenticate the serialized transaction, so that page decides what the payer sends. When these functions throw, the page receives only the thrown value's message, or "The wallet failed" when it has none.

Constructors

CrossmintEmbeddedOfframpPayer({required Future<String> signAndSendTransaction(CrossmintOfframpTransaction transaction), Future<String> signMessage(CrossmintOfframpMessage message)?})
const
CrossmintEmbeddedOfframpPayer.wallet(CrossmintRuntimeWalletBase wallet)
Pays from a Crossmint EVM or Solana wallet. It cannot prove ownership, so it leaves signMessage null. It adds no confirmation prompt; the user confirms only when the wallet's signer asks them to.
factory

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
signAndSendTransaction → Future<String> Function(CrossmintOfframpTransaction transaction)
Signs and broadcasts the deposit for payerAddress on chain, then returns the on-chain transaction hash or Solana signature, never an API resource id. Throw CrossmintOfframpSignatureRejectedException only when nothing was broadcast: the user declined, or your wallet is not that payer.
final
signMessage → Future<String> Function(CrossmintOfframpMessage message)?
Signs the ownership challenge as payerAddress on chain: the EIP-191 personal_sign 0x hex string on EVM, or the base64 (not base58) 64-byte ed25519 signature over the UTF-8 message on Solana. Refuse when your wallet is not that payer. Without it, a user whose withdrawal needs the proof is told to verify the wallet in your app first. Adding or removing it reloads the offramp.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited