CrossmintEvmWalletCheckoutPayer class final

Bridges a CrossmintEvmWallet into the checkout payer contract.

This adapter is intentionally EVM-only. The embedded checkout sends raw serialized EVM transactions, and the runtime wallet forwards those through the wallet transaction APIs using the same raw-transaction shape as the JS wallet SDK.

Implemented types

Constructors

CrossmintEvmWalletCheckoutPayer({required CrossmintEvmWallet wallet, List<String>? supportedChains, String? initialChain})
Creates an EVM payer backed by wallet.

Properties

address String
EVM address of the backing CrossmintEvmWallet.
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
initialChain String
Chain currently selected for outgoing transactions. Starts at the initialChain constructor argument (defaulting to wallet.chain) and updates when the hosted checkout calls switchChain.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
supportedChains List<String>
EVM chains the wallet can sign transactions on. Computed from the supportedChains argument (defaulting to [wallet.chain]) and normalized to drop duplicates and blanks.
final
walletProviderKey String?
Always null — this adapter wraps an SDK-owned CrossmintEvmWallet rather than a third-party wallet provider, so there is no provider key to report.
no setteroverride

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
signAndSendTransaction(String serializedTransaction) Future<CrossmintCheckoutTransactionResult>
Signs and broadcasts a raw serialized EVM transaction received from the hosted checkout via the backing CrossmintEvmWallet. Returns CrossmintCheckoutTransactionSuccess with the transaction id on success. Errors are caught and surfaced as CrossmintCheckoutTransactionFailure — this method never throws so the hosted checkout can render a user-facing message.
override
signMessage(String message) Future<String>
Signs an arbitrary message with the backing EVM wallet's approval signer. Returns the hex-encoded signature.
override
switchChain(String chain) Future<void>
Switches the selected chain used for subsequent transactions. Throws ArgumentError when chain is not in supportedChains. Called by the hosted checkout when the user changes chain in the UI.
override
toString() String
A string representation of this object.
inherited

Operators

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