xrpld
Loading...
Searching...
No Matches
SyntheticFields.h
1#pragma once
2
3#include <xrpl/json/json_forwards.h>
4#include <xrpl/protocol/STTx.h>
5#include <xrpl/protocol/TxMeta.h>
6
7#include <memory>
8
9namespace xrpl {
10
11class ReadView;
12
13namespace rpc {
14
15struct JsonContext;
16
23void
25 json::Value& metadata,
26 ReadView const&,
27 std::shared_ptr<STTx const> const&,
28 TxMeta const&);
29
30void
32 json::Value& metadata,
33 JsonContext const&,
34 std::shared_ptr<STTx const> const&,
35 TxMeta const&);
37
38} // namespace rpc
39} // namespace xrpl
A view into a ledger.
Definition ReadView.h:41
API version numbers used in later API versions.
Definition ApiVersion.h:36
void insertAllSyntheticInJson(json::Value &metadata, ReadView const &ledger, std::shared_ptr< STTx const > const &transaction, TxMeta const &transactionMeta)
Adds all synthetic fields to transaction metadata JSON.
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:5