Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.crossmint.com/llms.txt

Use this file to discover all available pages before exploring further.

Abstract Interface Class Interface for apps to provide crypto wallet signing capabilities.
abstract interface class CrossmintCheckoutPayer
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.

Properties

address

String get address
Current wallet address.

initialChain

String get initialChain
Chain the wallet is initially connected on.

supportedChains

List<String> get supportedChains
Chains the wallet can sign transactions on. The hosted checkout only offers chains that appear here.

walletProviderKey

String? get walletProviderKey
Optional wallet provider identifier (e.g. “metamask”, “coinbase”). Returns null if not applicable.

Methods

signAndSendTransaction

Future<CrossmintCheckoutTransactionResult> signAndSendTransaction(
  String serializedTransaction,
)
Signs and broadcasts a serialized transaction. Return CrossmintCheckoutTransactionSuccess with the transaction id on success, or CrossmintCheckoutTransactionFailure with a user-facing message on failure.

switchChain

Future<void> switchChain(String chain)
Switches the wallet to chain. Called by the hosted page when the user changes chain in the UI.

signMessage

Future<String>? signMessage(String message)
Optional — return null if message signing is not supported.