![]() |
Bitcoin ABC
0.22.13
P2P Digital Currency
|
#include <attributes.h>
#include <script/signingprovider.h>
#include <script/standard.h>
#include <array>
#include <string>
#include <vector>
Go to the source code of this file.
Enumerations | |
enum | OutputType { OutputType::LEGACY, OutputType::CHANGE_AUTO } |
Functions | |
NODISCARD bool | ParseOutputType (const std::string &str, OutputType &output_type) |
const std::string & | FormatOutputType (OutputType type) |
CTxDestination | GetDestinationForKey (const CPubKey &key, OutputType) |
Get a destination of the requested type (if possible) to the specified key. More... | |
std::vector< CTxDestination > | GetAllDestinationsForKey (const CPubKey &key) |
Get all destinations (potentially) supported by the wallet for the given key. More... | |
CTxDestination | AddAndGetDestinationForScript (FillableSigningProvider &keystore, const CScript &script, OutputType) |
Get a destination of the requested type (if possible) to the specified script. More... | |
Variables | |
const std::array< OutputType, 1 > | OUTPUT_TYPES |
|
strong |
Enumerator | |
---|---|
LEGACY | |
CHANGE_AUTO | Special output type for change outputs only. Automatically choose type based on address type setting and the types other of non-change outputs. |
Definition at line 17 of file outputtype.h.
CTxDestination AddAndGetDestinationForScript | ( | FillableSigningProvider & | keystore, |
const CScript & | script, | ||
OutputType | |||
) |
Get a destination of the requested type (if possible) to the specified script.
This function will automatically add the script (and any other necessary scripts) to the keystore.
Definition at line 51 of file outputtype.cpp.
const std::string& FormatOutputType | ( | OutputType | type | ) |
std::vector<CTxDestination> GetAllDestinationsForKey | ( | const CPubKey & | key | ) |
Get all destinations (potentially) supported by the wallet for the given key.
Definition at line 45 of file outputtype.cpp.
CTxDestination GetDestinationForKey | ( | const CPubKey & | key, |
OutputType | |||
) |
Get a destination of the requested type (if possible) to the specified key.
The caller must make sure LearnRelatedScripts has been called beforehand.
Definition at line 36 of file outputtype.cpp.
NODISCARD bool ParseOutputType | ( | const std::string & | str, |
OutputType & | output_type | ||
) |
const std::array<OutputType, 1> OUTPUT_TYPES |
Definition at line 17 of file outputtype.cpp.