5 #ifndef BITCOIN_NODE_TRANSACTION_H 6 #define BITCOIN_NODE_TRANSACTION_H 69 #endif // BITCOIN_NODE_TRANSACTION_H std::shared_ptr< const CTransaction > CTransactionRef
is a home for simple string functions returning descriptive messages that are used in RPC and GUI int...
CTransactionRef GetTransaction(const CBlockIndex *const block_index, const CTxMemPool *const mempool, const uint256 &hash, uint256 &hashBlock, const BlockManager &blockman)
Return transaction with a given hash.
Transaction validation functions.
int64_t CAmount
Amount in satoshis (Can be negative)
TransactionError BroadcastTransaction(NodeContext &node, const CTransactionRef tx, std::string &err_string, const CAmount &max_tx_fee, bool relay, bool wait_callback)
Submit a transaction to the mempool and (optionally) relay it to all P2P peers.
CTxMemPool stores valid-according-to-the-current-best-chain transactions that may be included in the ...
static const CAmount DEFAULT_MAX_BURN_AMOUNT
Maximum burn value for sendrawtransaction, submitpackage, and testmempoolaccept RPC calls...
The block chain is a tree shaped structure starting with the genesis block at the root...
const CChainParams & Params()
Return the currently selected parameters.
Fee rate in satoshis per kilovirtualbyte: CAmount / kvB.
static const CFeeRate DEFAULT_MAX_RAW_TX_FEE_RATE
Maximum fee rate for sendrawtransaction and testmempoolaccept RPC calls.
static constexpr CAmount COIN
The amount of satoshis in one BTC.