Address

class Address(address: String)

A bitcoin address.

Parameters

address

The address in string format.

Constructors

Link copied to clipboard
fun Address(address: String)

Functions

Link copied to clipboard
fun asString(): String

Return the address as a string.

Link copied to clipboard
fun fromScript(script: Script, network: Network): Address

Construct an `Address` from an output script.

Link copied to clipboard
fun network(): Network

Return the Network.

Link copied to clipboard
fun payload(): Payload

Return the Payload

Link copied to clipboard
fun scriptPubkey(): Script

Return the ScriptPubKey.

Link copied to clipboard
fun toQrUri(): String

Creates a URI string bitcoin:address optimized to be encoded in QR codes.