Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.crossmint.com/llms.txt

Use this file to discover all available pages before exploring further.

Class
class Wallet

Instance Properties

address

var address: String { get }

Instance Methods

addSigner(_:)

func addSigner(_ config: SignerConfig) async throws(WalletError)

approve(transactionId:)

func approve(transactionId id: String) async throws(TransactionError) -> Transaction

balance(of:)

func balance(of tokens: [CryptoCurrency] = []) async throws(WalletError) -> Balances

balances(::)

func balances(_ tokens: [CryptoCurrency] = [], _ chains: [Chain] = []) async throws(WalletError) -> Balance

fund(token:amount:)

func fund(token: CryptoCurrency, amount: Int) async throws(WalletError)

listTransfers(tokens:)

func listTransfers(tokens: [CryptoCurrency]) async throws(WalletError) -> TransferListResult

needsRecovery()

func needsRecovery() async -> Bool

nfts(page:nftsPerPage:)

func nfts(page: Int, nftsPerPage: Int) async throws(WalletError) -> [NFT]

recover()

func recover() async throws(WalletError)

removeSigner(locator:)

func removeSigner(locator: String) async throws(TransactionError) -> Transaction

send(::_:idempotencyKey:)

func send(_ walletLocator: String, _ tokenLocator: String, _ amount: Double, idempotencyKey: String? = nil) async throws(TransactionError) -> TransactionSummary

send(token:recipient:amount:)

func send(token: CryptoCurrency, recipient: TransferTokenRecipient, amount: String) async throws(TransactionError) -> Transaction

signerIsRegistered(_:)

func signerIsRegistered(_ locator: String) async -> Bool

transferToken(tokenId:recipient:amount:)

func transferToken(tokenId: String? = nil, recipient: TransferTokenRecipient, amount: String) async throws(TransactionError) -> Transaction

useSigner(_:)

func useSigner(_ config: SignerConfig) async throws(WalletError)