AddressInfo

data class AddressInfo(    var index: UInt,     var address: Address,     var keychain: KeychainKind)

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
}

Constructors

Link copied to clipboard
fun AddressInfo(    index: UInt,     address: Address,     keychain: KeychainKind)

Properties

Link copied to clipboard
var address: Address

Address.

Link copied to clipboard
var index: UInt

Child index of this address.

Link copied to clipboard
var keychain: KeychainKind

Type of keychain.