Base class for external-wallet delegated signers — wallets the user owns (e.g. MetaMask, Rainbow, Phantom) where the SDK never holds keys. In Crossmint terminology, an external wallet is a flavor of delegated signer that approves operations through the user's own wallet UI.
Signing goes through onSign; the signer is responsible for presenting
the user whatever approval UI their wallet provides. The locator
defaults to external-wallet:<address> when not provided explicitly.
- Implemented types
- Implementers
Constructors
- CrossmintExternalWalletSigner({required String address, String? locator, required CrossmintExternalWalletSignCallback onSign})
- Creates an external-wallet signer.
Properties
- address → String
-
The wallet address the user controls.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- locator → String
-
final
- onSign → CrossmintExternalWalletSignCallback
-
User-provided signing callback. Receives the chain-specific payload
and returns the resulting signature string.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → String
-
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
requireSignature(
String payload, {required String label}) → Future< String> - Invokes onSign and validates the result is non-empty. Used by subclasses to share error wrapping.
-
signMessage(
String message) → Future< Object> -
inherited
-
signTransaction(
String transaction) → Future< Object> -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited