Wallets V1
Kotlin Class
class Wallet
val address: String
val chainType: ChainType
val config: WalletConfig
val owner: Owner?
val type: WalletType
suspend fun addSigner(signer: DelegatedSigner): Result<Unit, WalletError>
suspend fun approve(transactionId: String, signer: SignerSelection = SignerSelection.Admin): Result<Transaction, TransactionError>
suspend fun balances(tokens: List<String> = emptyList()): Result<Balances, BalanceError>
suspend fun fund(token: String, amount: Int, chain: String): Result<Unit, BalanceError>
fun getSigner(): Signer?
suspend fun getTransaction(transactionId: String): Result<Transaction, TransactionError>
suspend fun needsRecovery(): Boolean
suspend fun recover(): Result<Unit, WalletError>
suspend fun removeSigner(signer: DelegatedSigner): Result<Unit, WalletError>
suspend fun send(recipient: String, tokenLocator: String, amount: Double, idempotencyKey: String? = null, signer: SignerSelection = SignerSelection.Admin): Result<Transaction, TransactionError>
fun signerIsRegistered(locator: String): Boolean
suspend fun useSigner(signer: DelegatedSigner): Result<Unit, WalletError>
fun withSigner(newSigner: Signer): Wallet
Was this page helpful?