Instance Properties
Instance Methods
addRecoveryMethod(_:signer:approvingMembers:prepareOnly:)
Adds a recovery method to the wallet.Return Value
The completedTransaction. With prepareOnly, or when a quorum approves, the transaction with the status TransactionStatus.awaitingApproval. Each member then approves it with approve(transactionId:).
Discussion
A recovery method of the wallet approves the change. To select it, seeuseRecoveryMethod(_:).
To change the members or the threshold of a quorum, add a new quorum and then remove the old one.
Throws:WalletError.recoveryConfigRejected(code:message:)withWalletError.RecoveryConfigCode.signerNotAllowedifmethodis a passkey and the wallet is a Solana wallet.
Example
Parameters
addSigner(_:signer:approvingMembers:prepareOnly:)
Registers a new signer on this wallet.Return Value
WithprepareOnly, or when a quorum approves, the transaction that adds the signer. Otherwise nil.
Discussion
When a quorum approves the new signer, the SDK creates the registration without approving it, as withprepareOnly. Each member then approves it with approve(transactionId:).
Throws: WalletError if registration fails.
Parameters
approve(transactionId:)
Approves and submits a pending transaction on behalf of the current signer.Discussion
Use this when a transaction was created externally (e.g. via the Crossmint API) and showsTransactionStatus.awaitingApproval. The SDK signs the approval message and polls until the transaction reaches a terminal state.
If a quorum must approve the transaction, the SDK approves as each member that this device has a signer for. When only other members must still approve, the SDK returns the transaction with the status TransactionStatus.awaitingApproval. quorums shows the progress.
Parameters
balance(of:)
balances(_:_:)
Returns balances for the requested tokens, always including the chain’s native token and USDC.Parameters
fund(token:amount:)
Funds the wallet with test tokens from the Crossmint faucet.Discussion
Only available in staging/development environments; throws in production.Parameters
getTransaction(id:)
Fetches a transaction by its ID.Return Value
TheTransaction matching the given ID.
Discussion
Use this to check the current status of a transaction, including itsTransactionStatus, on-chain data, and any pending or submitted approvals.
Throws: TransactionError if the transaction cannot be retrieved or decoded.
Example
Parameters
isSignerApproved(_:)
Returns whether the given signer is approved and usable on this wallet’s chain.Discussion
A freshly registered signer can need approval before it can sign. CalladdSigner(_:) to register a signer. This method returns false when the signer is not registered on this wallet.
Throws:WalletErrorif the request fails, orWalletError.signerLocatorError(_:)when the locator string does not parse as aSignerLocator.
Parameters
isSignerApproved(_:)
Returns whether the given signer is approved and usable on this wallet’s chain.Discussion
A freshly registered signer can need approval before it can sign. CalladdSigner(_:) to register a signer. This method returns false when the signer is not registered on this wallet.
Throws: WalletError if the request fails.
Parameters
listTransactions(page:transactionsPerPage:)
Fetches a page of the transaction history for this wallet, ordered most recent first.Return Value
The wallet’sTransaction list for the requested page.
Discussion
Throws: TransactionError if the request fails.
Example
Parameters
listTransfers(tokens:)
Fetches the transfer history for this wallet.Return Value
ATransferListResult containing the transfer events sorted by timestamp (most recent first).
Discussion
Returns a list of incoming and outgoing transfers for the specified tokens. Use this method to display transaction history in your application.
Throws: WalletError if the request fails.
Example
Parameters
localDeviceSigner()
Returns the locator of the device signer whose private key is on this device. Returnsnil if this wallet has no such signer.
Discussion
A wallet can havedevice: delegated signers registered from other devices. This method only returns a locator when the matching key is present in local secure storage.
localDeviceSignerLocator()
Returns the locator string of the device signer whose private key is on this device. Returnsnil if this wallet has no such signer.
needsRecovery()
Returns whether this wallet needs recovery on the current device.Discussion
A wallet needs recovery when a device signer is configured but the signing key for this wallet is not present on the current device. Callrecover() to re-register.
Note: This method awaits the background signer-initialization task that runs at wallet creation, so the first call may take a moment on slow networks.
nfts(page:nftsPerPage:)
Returns a page of NFTs owned by this wallet.Parameters
recover()
Re-registers the device signer on this device.Return Value
The transaction that adds the device signer when a quorum approves it. Otherwisenil.
Discussion
Call this whenneedsRecovery() returns true — i.e. the wallet has a device signer registered but the private key is missing on the current device. This generates a new key, registers it with Crossmint, and awaits approval from the existing admin signer.
When a quorum approves the device signer, the SDK creates the registration without approving it and returns the transaction. Each member then approves it with approve(transactionId:). Until then, needsRecovery() stays true, and a later call returns the same transaction.
If the wallet’s provider does not support device signers, this returns without error and signing stays on the recovery signer; the rejection is remembered so registration is not retried for this wallet instance.
Throws: WalletError if recovery fails or there is no device signer configured.
removeRecoveryMethod(locator:signer:approvingMembers:prepareOnly:)
Removes a recovery method from the wallet.Return Value
The completedTransaction. With prepareOnly, or when a quorum approves, the transaction with the status TransactionStatus.awaitingApproval. Each member then approves it with approve(transactionId:).
Discussion
A different recovery method of the wallet approves the change. To select it, seeuseRecoveryMethod(_:). If you selected the removed recovery method, the SDK clears the selection.
To remove a signer that you added with addSigner(_:), use removeSigner(locator:).
Throws:WalletError.recoveryConfigRejected(code:message:)withWalletError.RecoveryConfigCode.lastSignerif the wallet has no other recovery method.
Example
Parameters
removeSigner(locator:)
Removes an assigned signer from this wallet.Return Value
The completedTransaction once the signer has been removed on-chain.
Discussion
This method submits a remove-signer transaction on-chain. If the transaction needs approval, the current signer signs it. The method then polls until the transaction completes.Parameters
removeSigner(locator:signer:approvingMembers:prepareOnly:)
Removes an assigned signer from this wallet.Return Value
The completedTransaction once the signer has been removed on-chain. With prepareOnly, or when a quorum approves, the transaction with the status TransactionStatus.awaitingApproval.
Discussion
This method submits a remove-signer transaction on-chain. If the transaction needs approval, the current signer signs it. The method then polls until the transaction completes. UseremoveRecoveryMethod(locator:) to remove a recovery method.
When a quorum approves the removal, the SDK creates the removal without approving it, as with prepareOnly. Each member then approves it with approve(transactionId:).
Parameters
send(_:_:_:idempotencyKey:signer:approvingMembers:prepareOnly:)
Transfers tokens to another wallet and polls until the transaction is confirmed on-chain.Return Value
ATransactionSummary with the on-chain hash and explorer link once confirmed. When the SDK does not approve the transfer, the summary has only the transaction ID.
Discussion
When a quorum sends the transfer, the SDK creates the transfer without approving it, as withprepareOnly. Each member then approves it with approve(transactionId:), also the members that this device holds.
Example
Parameters
send(token:recipient:amount:)
signerIsRegistered(_:)
Returns true if the locator is a signer on this wallet.Discussion
This method sends a request to the server. It returnsfalse if the request fails.
signerIsRegistered(_:)
Returns true if the locator is a signer on this wallet.Discussion
This method sends a request to the server. It returnsfalse if the request fails. It also returns false if the locator string is not valid.
Parameters
signers()
Fetches the current list of signers from the API.Discussion
EachWalletSigner includes its registration status on this wallet’s chain. On EVM wallets, signers without a registration entry (pending or completed) for the wallet’s chain are omitted. A signer whose state lookup fails is returned with SignerStatus.unknown rather than dropped.
Always returns fresh data — safe to call after addSigner(_:) or removeSigner(locator:).
transferToken(tokenId:recipient:amount:)
Transfers an NFT or fungible token to a recipient.Parameters
useRecoveryMethod(_:)
Selects the recovery method that approves changes to signers and recovery methods.Discussion
The signer for transactions and messages does not change. To change it, useuseSigner(_:).
If you do not select a recovery method, the SDK uses one of these:
- The only recovery method of the wallet.
- The active signer, if it is a recovery method.
If neither applies, the change fails with
WalletError.RecoveryConfigCode.signerRequired.
Throws:WalletError.recoveryConfigRejected(code:message:)withWalletError.RecoveryConfigCode.invalidConfigifmethodis not inrecoveryMethods, or ifmethodis a passkey with noidand the wallet has more than one passkey recovery method. The SDK throwsWalletError.walletGeneric(_:)for a different signer type.
Example
Parameters
useSigner(_:)
Sets the signer for the send and sign operations of this wallet.Discussion
The signer replaces the admin signer. The signer must be registered on this wallet. To register a new signer, calladdSigner(_:) first.
The signer can also be a member of a quorum recovery method or of a quorum signer. Then the transactions that you send name the quorum, and the member approves for the quorum. If the signer is also a signer of the wallet on its own, it sends as itself. If it is a member of more than one quorum, name the quorum with the signer parameter of the call.
To select the recovery method that approves signer changes, use useRecoveryMethod(_:).
Throws: -WalletError.signerNotRegistered(_:)if the signer is not registered on this wallet.
- The
WalletErrorof the failed request if the API does not return the wallet signers. The active signer does not change. You can try again.WalletError.walletGeneric(_:)ifconfigisSignerConfig.externalWallet(_:onSign:)andonSignisnil.WalletError.walletGeneric(_:)ifconfigisSignerConfig.passkey(name:host:id:)with noidand the wallet has more than one passkey signer.WalletError.deviceSignerNotSupported(_:)if you select.deviceand the wallet provider does not accept device signers.

