PrivateKeyInput

data class PrivateKeyInput(val privateKey: PrivateKey, val address: AccountAddressInput? = null, val legacy: Boolean = true)

Input for creating an account from a private key.

This is a wrapper around the private key, and optionally an address to associate with the account. We can use this when we want to pass a single object to a function that needs the private key, address, and legacy flag. For example, with infix functions.

Parameters

privateKey

the private key to create the account from

address

the address to associate with the account

legacy

whether to use the legacy address format

Constructors

Link copied to clipboard
constructor(privateKey: PrivateKey, address: AccountAddressInput? = null, legacy: Boolean = true)

Properties

Link copied to clipboard
Link copied to clipboard
val legacy: Boolean = true
Link copied to clipboard