Overview
Obtain an instance viagetWallet(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 withapprove(transactionId:). Otherwise nil.
Discussion
Throws:WalletErrorif registration fails, or if a quorum approves anddeployImmediatelyisfalse.
Parameters
approve(signatureId:)
Approves a pending signature request on behalf of the signers on this device.Return Value
ASignature. 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 withprepareOnly.
Example
Parameters
signMessage(_:signer:isSmartWalletSignature:prepareOnly:)
Signs an arbitrary message with this wallet.Return Value
ASignature. 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 withprepareOnly. 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
ASignature. 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 withprepareOnly. Each member then approves it with approve(signatureId:).
Parameters
Type Aliases
EVMWallet.SpecificChain
Inherited fromWalletOnChain.SpecificChain.
Type Methods
from(wallet:)
Casts a genericWallet to EVMWallet.
Discussion
Useful when you have aWallet reference and need EVM-specific methods. Throws WalletError if the wallet is not an EVM wallet.
