Skip to main content
Class A Crossmint smart wallet on an EVM-compatible chain.

Overview

Obtain an instance via getWallet(chain:options:) or createWallet(chain:recoveryMethods:options:).

Instance Methods

addSigner(_:deployImmediately:)

Registers a new signer on this wallet, choosing how the registration gets approved.

Discussion

Throws: WalletError if registration fails.

Parameters

sendTransaction(to:data:value:chain:)

sendTransaction(to:value:data:chain:)

Sends a raw EVM transaction and polls until it is confirmed on-chain.

Example

Parameters

signMessage(_:signer:isSmartWalletSignature:)

Signs an arbitrary message with this wallet.

Example

Parameters

signTypedData(_:signer:isSmartWalletSignature:)

Signs EIP-712 typed structured data with this wallet.

Parameters

Type Aliases

EVMWallet.SpecificChain

Inherited from WalletOnChain.SpecificChain.

Type Methods

from(wallet:)

Casts a generic Wallet to EVMWallet.

Discussion

Useful when you have a Wallet reference and need EVM-specific methods. Throws WalletError if the wallet is not an EVM wallet.