![]() |
Bitcoin ABC 0.32.5
P2P Digital Currency
|
#include <rpc/util.h>#include <map>#include <string>#include <vector>Go to the source code of this file.
Functions | |
| void | SignTransaction (CMutableTransaction &mtx, const SigningProvider *keystore, const std::map< COutPoint, Coin > &coins, const UniValue &hashType, UniValue &result) |
| Sign a transaction with the given keystore and previous transactions. More... | |
| void | SignTransactionResultToJSON (CMutableTransaction &mtx, bool complete, const std::map< COutPoint, Coin > &coins, const std::map< int, std::string > &input_errors, UniValue &result) |
| void | ParsePrevouts (const UniValue &prevTxsUnival, FillableSigningProvider *keystore, std::map< COutPoint, Coin > &coins) |
| Parse a prevtxs UniValue array and get the map of coins from it. More... | |
| CMutableTransaction | ConstructTransaction (const CChainParams ¶ms, const UniValue &inputs_in, const UniValue &outputs_in, const UniValue &locktime) |
| Create a transaction from univalue parameters. More... | |
| std::vector< RPCResult > | DecodeTxDoc (const std::string &txid_field_doc, bool wallet) |
| Explain the UniValue "decoded" transaction object, may include extra fields if processed by wallet. More... | |
| CMutableTransaction ConstructTransaction | ( | const CChainParams & | params, |
| const UniValue & | inputs_in, | ||
| const UniValue & | outputs_in, | ||
| const UniValue & | locktime | ||
| ) |
Create a transaction from univalue parameters.
Definition at line 23 of file rawtransaction_util.cpp.
| std::vector< RPCResult > DecodeTxDoc | ( | const std::string & | txid_field_doc, |
| bool | wallet | ||
| ) |
Explain the UniValue "decoded" transaction object, may include extra fields if processed by wallet.
Definition at line 310 of file rawtransaction_util.cpp.
| void ParsePrevouts | ( | const UniValue & | prevTxsUnival, |
| FillableSigningProvider * | keystore, | ||
| std::map< COutPoint, Coin > & | coins | ||
| ) |
Parse a prevtxs UniValue array and get the map of coins from it.
| prevTxsUnival | Array of previous txns outputs that tx depends on but may not yet be in the block chain |
| keystore | A pointer to the temporary keystore if there is one |
| coins | Map of unspent outputs - coins in mempool and current chain UTXO set, may be extended by previous txns outputs after call |
Definition at line 176 of file rawtransaction_util.cpp.
| void SignTransaction | ( | CMutableTransaction & | mtx, |
| const SigningProvider * | keystore, | ||
| const std::map< COutPoint, Coin > & | coins, | ||
| const UniValue & | hashType, | ||
| UniValue & | result | ||
| ) |
Sign a transaction with the given keystore and previous transactions.
| mtx | The transaction to-be-signed |
| keystore | Temporary keystore containing signing keys |
| coins | Map of unspent outputs |
| hashType | The signature hash type |
| result | JSON object where signed transaction results accumulate |
Definition at line 264 of file rawtransaction_util.cpp.
| void SignTransactionResultToJSON | ( | CMutableTransaction & | mtx, |
| bool | complete, | ||
| const std::map< COutPoint, Coin > & | coins, | ||
| const std::map< int, std::string > & | input_errors, | ||
| UniValue & | result | ||
| ) |
Definition at line 281 of file rawtransaction_util.cpp.