Address Index
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
Link copied to clipboard
Return a new address after incrementing the current descriptor index.
Link copied to clipboard
Link copied to clipboard