Skip to main content
Class
class Wallet

Properties

address

val address: String
The blockchain address of the wallet

chainType

val chainType: ChainType
The blockchain type (EVM, Solana, etc.)

config

val config: WalletConfig
The wallet configuration including admin signer

owner

val owner: Owner?
The owner of the wallet, if available

type

val type: WalletType
The type of wallet (smart wallet or MPC wallet)

Functions

approve

suspend fun approve(transactionId: String, signer: Signer? = null): Result<Transaction, TransactionError>
Signs a transaction that is in AWAITING_APPROVAL status.

balances

suspend fun balances(tokens: List<String> = emptyList()): Result<Balances, BalanceError>
Gets the wallet balances.

getSigner

fun getSigner(): Signer?
Returns the current signer for this wallet.

getTransaction

suspend fun getTransaction(transactionId: String): Result<Transaction, TransactionError>
Retrieves a transaction by its ID.

send

suspend fun send(recipient: String, tokenLocator: String, amount: Double, idempotencyKey: String? = null, signer: Signer? = null): Result<Transaction, TransactionError>
Sends tokens to a recipient address.

withSigner

fun withSigner(newSigner: Signer): Wallet
Creates a new Wallet instance that uses the specified signer for transactions.