Interface for apps to provide crypto wallet signing capabilities.
When crypto payments are enabled in the checkout, the hosted page will request transaction signing via postMessage. The app implements this interface to bridge to its wallet.
Prefer attaching the payer under payment.crypto.payer in
CrossmintCheckoutConfig. The widget-level
CrossmintEmbeddedCheckout.payer override is retained for compatibility.
- Implementers
Properties
- address → String
-
Current wallet address.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- initialChain → String
-
Chain the wallet is initially connected on.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
supportedChains
→ List<
String> -
Chains the wallet can sign transactions on. The hosted checkout only
offers chains that appear here.
no setter
- walletProviderKey → String?
-
Optional wallet provider identifier (e.g. "metamask", "coinbase").
Returns null if not applicable.
no setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
signAndSendTransaction(
String serializedTransaction) → Future< CrossmintCheckoutTransactionResult> - Signs and broadcasts a serialized transaction. Return CrossmintCheckoutTransactionSuccess with the transaction id on success, or CrossmintCheckoutTransactionFailure with a user-facing message on failure.
-
signMessage(
String message) → Future< String> ? - Optional — return null if message signing is not supported.
-
switchChain(
String chain) → Future< void> -
Switches the wallet to
chain. Called by the hosted page when the user changes chain in the UI. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited