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.

Return Value

When a quorum approves, the transaction that adds the signer. Each member then approves it with approve(transactionId:). Otherwise nil.

Discussion

Throws: WalletError if registration fails, or if a quorum approves and deployImmediately is false.

Parameters

approve(signatureId:)

Approves a pending signature request on behalf of the signers on this device.

Return Value

A Signature. While other quorum members must still approve, it has only the signature ID.

Discussion

If a quorum must approve the request, the SDK approves as each member that this device has a signer for.

Parameters

sendTransaction(to:data:value:chain:)

sendTransaction(to:value:data:chain:signer:prepareOnly:)

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

Discussion

When a quorum sends the transaction, the SDK creates it without approving it, as with prepareOnly.

Example

Parameters

signMessage(_:signer:isSmartWalletSignature:prepareOnly:)

Signs an arbitrary message with this wallet.

Return Value

A Signature. When the SDK does not approve the request, it has only the signature ID.

Discussion

When a quorum signs, the SDK creates the request without approving it, as with prepareOnly. Each member then approves it with approve(signatureId:).

Example

Parameters

signTypedData(_:signer:isSmartWalletSignature:prepareOnly:)

Signs EIP-712 typed structured data with this wallet.

Return Value

A Signature. When the SDK does not approve the request, it has only the signature ID.

Discussion

When a quorum signs, the SDK creates the request without approving it, as with prepareOnly. Each member then approves it with approve(signatureId:).

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.