Address Info
data class AddressInfo( var index: UInt, var address: Address, var keychain: KeychainKind)
Content copied to clipboard
A derived address and the index it was found at.
Samples
fun main() {
//sampleStart
val wallet: Wallet = Wallet(
descriptor = descriptor,
changeDescriptor = changeDescriptor,
network = Network.TESTNET,
databaseConfig = DatabaseConfig.Memory
)
val newAddress: AddressInfo = wallet.getAddress(AddressIndex.New)
println("New address at index ${newAddress.index} is ${newAddress.address.asString()}")
//sampleEnd
}