Clio  develop
The XRP Ledger API server.
Loading...
Searching...
No Matches
rpc::TxHandler::Output Struct Reference

A struct to hold the output data of the command. More...

#include <Tx.hpp>

Public Attributes

uint32_t date = 0u
 Close time of the ledger containing the transaction.
std::string hash = {}
 Transaction hash, only set when binary was requested.
uint32_t ledgerIndex = 0u
 Sequence of the ledger containing the transaction.
std::optional< boost::json::object > meta
 Metadata as JSON, unless binary was requested.
std::optional< boost::json::object > tx
 Transaction as JSON, unless binary was requested.
std::optional< std::string > metaStr
 Hex-encoded metadata, if binary was requested.
std::optional< std::string > txStr
 Hex-encoded transaction, if binary was requested.
std::optional< std::string > ctid
 Compact transaction ID, if the network ID is known and the CTID can be encoded.
std::optional< xrpl::LedgerHeader > ledgerHeader
 Header of the containing ledger (API version 2+).
uint32_t apiVersion = 0u
 API version of the request.
bool validated = true
 Whether the ledger is validated.

Detailed Description

A struct to hold the output data of the command.

Member Data Documentation

◆ ctid

std::optional<std::string> rpc::TxHandler::Output::ctid
Initial value:
=
std::nullopt

Compact transaction ID, if the network ID is known and the CTID can be encoded.

◆ ledgerHeader

std::optional<xrpl::LedgerHeader> rpc::TxHandler::Output::ledgerHeader
Initial value:
=
std::nullopt

Header of the containing ledger (API version 2+).

◆ meta

std::optional<boost::json::object> rpc::TxHandler::Output::meta
Initial value:
=
std::nullopt

Metadata as JSON, unless binary was requested.

◆ metaStr

std::optional<std::string> rpc::TxHandler::Output::metaStr
Initial value:
=
std::nullopt

Hex-encoded metadata, if binary was requested.

◆ tx

std::optional<boost::json::object> rpc::TxHandler::Output::tx
Initial value:
=
std::nullopt

Transaction as JSON, unless binary was requested.

◆ txStr

std::optional<std::string> rpc::TxHandler::Output::txStr
Initial value:
=
std::nullopt

Hex-encoded transaction, if binary was requested.


The documentation for this struct was generated from the following file:
  • /__w/clio/clio/src/rpc/handlers/Tx.hpp