-
- All Implemented Interfaces:
public final class Address
A bitcoin address.
-
-
Method Summary
Modifier and Type Method Description final Address
fromScript(Script script, Network network)
Construct an `Address` from an output script. final Payload
payload()
Return the Payload final Network
network()
Return the Network. final Script
scriptPubkey()
Return the ScriptPubKey. final String
toQrUri()
Creates a URI string bitcoin:address optimized to be encoded in QR codes. final String
asString()
Return the address as a string. -
-
Constructor Detail
-
Address
Address(String address)
- Parameters:
address
- The address in string format.
-
-
Method Detail
-
fromScript
final Address fromScript(Script script, Network network)
Construct an `Address` from an output script.
-
scriptPubkey
final Script scriptPubkey()
Return the ScriptPubKey.
-
toQrUri
final String toQrUri()
Creates a URI string bitcoin:address optimized to be encoded in QR codes.
If the address is bech32, both the schema and the address become uppercase. If the address is base58, the schema is lowercase and the address is left mixed case.
Quoting BIP 173 "inside QR codes uppercase SHOULD be used, as those permit the use of alphanumeric mode, which is 45% more compact than the normal byte mode."
-
-
-
-