AddressIndex

sealed class AddressIndex

The address index selection strategy to use to derive an address from the wallet’s external descriptor.

If you’re unsure which one to use, use AddressIndex.New.

Samples


fun main() { 
   //sampleStart 
   val wallet: Wallet = Wallet(
    descriptor = descriptor,
    changeDescriptor = changeDescriptor,
    network = Network.TESTNET,
    databaseConfig = DatabaseConfig.Memory
)

fun peekAddress100(): AddressInfo {
    return wallet.getAddress(AddressIndex.Peek(100u))
} 
   //sampleEnd
}

Types

Link copied to clipboard
object LastUnused : AddressIndex
Link copied to clipboard
object New : AddressIndex

Return a new address after incrementing the current descriptor index.

Link copied to clipboard
class Peek(val index: UInt) : AddressIndex
Link copied to clipboard
class Reset(val index: UInt) : AddressIndex

Inheritors

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard