Clio  develop
The XRP Ledger API server.
Loading...
Searching...
No Matches
MPTHelpers.hpp File Reference
#include "data/DBHelpers.hpp"
#include <ripple/protocol/STTx.h>
#include <ripple/protocol/TxMeta.h>
Include dependency graph for MPTHelpers.hpp:

Go to the source code of this file.

Functions

std::optional< MPTHolderDataetl::getMPTHolderFromTx (ripple::TxMeta const &txMeta, ripple::STTx const &sttx)
 Pull MPT data from TX via ETLService.
std::optional< MPTHolderDataetl::getMPTHolderFromObj (std::string const &key, std::string const &blob)
 Pull MPT data from ledger object via loadInitialLedger.

Function Documentation

◆ getMPTHolderFromObj()

std::optional< MPTHolderData > etl::getMPTHolderFromObj ( std::string const & key,
std::string const & blob )

Pull MPT data from ledger object via loadInitialLedger.

Parameters
keyThe owner key
blobObject data as blob
Returns
The MPTIssuanceID and holder pair as a optional

◆ getMPTHolderFromTx()

std::optional< MPTHolderData > etl::getMPTHolderFromTx ( ripple::TxMeta const & txMeta,
ripple::STTx const & sttx )

Pull MPT data from TX via ETLService.

Parameters
txMetaTransaction metadata
sttxThe transaction
Returns
The MPTIssuanceID and holder pair as a optional