A pay‐to‐anchor destination for a P2A address.

Synopsis

Declared in <addresstype.h>

struct PayToAnchor
    : WitnessUnknown

Base Classes

Name

Description

WitnessUnknown

CTxDestination subtype to encode any future Witness version.

Member Functions

Name

Description

PayToAnchor [constructor]

Construct the fixed pay‐to‐anchor witness program.

GetWitnessProgram

Return the witness program bytes.

GetWitnessVersion

Return the witness version.

Non-Member Functions

Name

Description

operator<

Order two destinations by version, then by program.

operator==

Compare two destinations for equality by version and program.

Created with MrDocs