|
| std::optional< xrpl::AccountID > | rpc::accountFromStringStrict (std::string const &account) |
| | Get a xrpl::AccountID from its string representation.
|
| bool | rpc::isOwnedByAccount (xrpl::SLE const &sle, xrpl::AccountID const &accountID) |
| | Check whether the SLE is owned by the account.
|
| std::uint64_t | rpc::getStartHint (xrpl::SLE const &sle, xrpl::AccountID const &accountID) |
| | Get the start hint for the account.
|
| std::optional< AccountCursor > | rpc::parseAccountCursor (std::optional< std::string > jsonCursor) |
| | Parse the account cursor from the JSON.
|
| std::pair< std::shared_ptr< xrpl::STTx const >, std::shared_ptr< xrpl::STObject const > > | rpc::deserializeTxPlusMeta (data::TransactionAndMetadata const &blobs) |
| | Deserialize a TransactionAndMetadata into a pair of STTx and STObject.
|
| std::pair< std::shared_ptr< xrpl::STTx const >, std::shared_ptr< xrpl::TxMeta const > > | rpc::deserializeTxPlusMeta (data::TransactionAndMetadata const &blobs, std::uint32_t seq) |
| | Deserialize a TransactionAndMetadata into a pair of STTx and TxMeta.
|
| std::pair< boost::json::object, boost::json::object > | rpc::toExpandedJson (data::TransactionAndMetadata const &blobs, std::uint32_t apiVersion, NFTokenjson nftEnabled=NFTokenjson::DISABLE, std::optional< uint16_t > networkId=std::nullopt) |
| | Convert a TransactionAndMetadata to two JSON objects.
|
| boost::json::object | rpc::toJsonWithBinaryTx (data::TransactionAndMetadata const &txnPlusMeta, std::uint32_t apiVersion) |
| | Convert a TransactionAndMetadata to JSON object containing tx and metadata data in hex format. According to the apiVersion, the key is "tx_blob" and "meta" or "meta_blob".
|
| void | rpc::insertDeliverMaxAlias (boost::json::object &txJson, std::uint32_t apiVersion) |
| | Add "DeliverMax" which is the alias of "Amount" for "Payment" transaction to transaction json. Remove the "Amount" field when version is greater than 1.
|
| bool | rpc::insertDeliveredAmount (boost::json::object &metaJson, std::shared_ptr< xrpl::STTx const > const &txn, std::shared_ptr< xrpl::TxMeta const > const &meta, uint32_t date) |
| | Add "DeliveredAmount" to the transaction json object.
|
| bool | rpc::insertMPTIssuanceID (boost::json::object &txnJson, std::shared_ptr< xrpl::STTx const > const &txn, boost::json::object &metaJson, std::shared_ptr< xrpl::TxMeta const > const &meta) |
| | Add "mpt_issuance_id" into various MPTToken transaction json.
|
| boost::json::object | rpc::toJson (xrpl::STBase const &obj) |
| | Convert STBase object to JSON.
|
| boost::json::object | rpc::toJson (xrpl::SLE const &sle) |
| | Convert SLE to JSON.
|
| boost::json::object | rpc::toJson (xrpl::LedgerHeader const &info, bool binary, std::uint32_t apiVersion) |
| | Convert a LedgerHeader to JSON object.
|
| boost::json::object | rpc::toJson (xrpl::TxMeta const &meta) |
| | Convert a TxMeta to JSON object.
|
| boost::json::value | rpc::toBoostJson (RippledJson const &value) |
| | Convert a RippledJson to boost::json::value.
|
| boost::json::object | rpc::generatePubLedgerMessage (xrpl::LedgerHeader const &lgrInfo, xrpl::Fees const &fees, std::string const &ledgerRange, std::uint32_t txnCount) |
| | Generate a JSON object to publish ledger message.
|
| std::expected< xrpl::LedgerHeader, Status > | rpc::ledgerHeaderFromRequest (std::shared_ptr< data::BackendInterface const > const &backend, web::Context const &ctx) |
| | Get ledger info from the request.
|
| std::expected< xrpl::LedgerHeader, Status > | rpc::getLedgerHeaderFromHashOrSeq (BackendInterface const &backend, boost::asio::yield_context yield, std::optional< std::string > ledgerHash, std::optional< uint32_t > ledgerIndex, uint32_t maxSeq) |
| | Get ledger info from hash or sequence.
|
| std::expected< AccountCursor, Status > | rpc::traverseOwnedNodes (BackendInterface const &backend, xrpl::Keylet const &owner, xrpl::uint256 const &hexMarker, std::uint32_t startHint, std::uint32_t sequence, std::uint32_t limit, boost::asio::yield_context yield, std::function< void(xrpl::SLE)> atOwnedNode) |
| | Traverse nodes owned by an account.
|
| std::expected< AccountCursor, Status > | rpc::traverseOwnedNodes (BackendInterface const &backend, xrpl::AccountID const &accountID, std::uint32_t sequence, std::uint32_t limit, std::optional< std::string > jsonCursor, boost::asio::yield_context yield, std::function< void(xrpl::SLE)> atOwnedNode, bool nftIncluded=false) |
| | Traverse nodes owned by an account.
|
| std::shared_ptr< xrpl::SLE const > | rpc::read (std::shared_ptr< data::BackendInterface const > const &backend, xrpl::Keylet const &keylet, xrpl::LedgerHeader const &lgrInfo, web::Context const &context) |
| | Read SLE from the backend.
|
| std::vector< xrpl::AccountID > | rpc::getAccountsFromTransaction (boost::json::object const &transaction) |
| | Get the account associated with a transaction.
|
| std::vector< unsigned char > | rpc::ledgerHeaderToBlob (xrpl::LedgerHeader const &info, bool includeHash=false) |
| | Convert a ledger header to a blob.
|
| bool | rpc::isGlobalFrozen (BackendInterface const &backend, std::uint32_t seq, xrpl::AccountID const &issuer, boost::asio::yield_context yield) |
| | Whether global frozen is set.
|
| bool | rpc::isFrozen (BackendInterface const &backend, std::uint32_t sequence, xrpl::AccountID const &account, xrpl::Currency const ¤cy, xrpl::AccountID const &issuer, boost::asio::yield_context yield) |
| | Whether the account is frozen.
|
| bool | rpc::fetchAndCheckAnyFlagsExists (BackendInterface const &backend, std::uint32_t sequence, xrpl::Keylet const &keylet, std::vector< std::uint32_t > const &flags, boost::asio::yield_context yield) |
| | Fetches a ledger object and checks if any of the specified flag is set on the account.
|
| bool | rpc::isDeepFrozen (BackendInterface const &backend, std::uint32_t sequence, xrpl::AccountID const &account, xrpl::Currency const ¤cy, xrpl::AccountID const &issuer, boost::asio::yield_context yield) |
| | Whether the trustline is deep frozen.
|
| bool | rpc::isLPTokenFrozen (BackendInterface const &backend, std::uint32_t sequence, xrpl::AccountID const &account, xrpl::Issue const &asset, xrpl::Issue const &asset2, boost::asio::yield_context yield) |
| | Whether the account that owns a LPToken is frozen for the assets in the pool.
|
| xrpl::STAmount | rpc::accountFunds (BackendInterface const &backend, data::AmendmentCenterInterface const &amendmentCenter, std::uint32_t sequence, xrpl::STAmount const &amount, xrpl::AccountID const &id, boost::asio::yield_context yield) |
| | Get the account funds.
|
| xrpl::STAmount | rpc::accountHolds (BackendInterface const &backend, data::AmendmentCenterInterface const &amendmentCenter, std::uint32_t sequence, xrpl::AccountID const &account, xrpl::Currency const ¤cy, xrpl::AccountID const &issuer, bool zeroIfFrozen, boost::asio::yield_context yield) |
| | Get the amount that an account holds.
|
| xrpl::STAmount | rpc::ammAccountHolds (BackendInterface const &backend, std::uint32_t sequence, xrpl::AccountID const &account, xrpl::Currency const ¤cy, xrpl::AccountID const &issuer, bool const zeroIfFrozen, boost::asio::yield_context yield) |
| | Get the amount that an LPToken owner holds.
|
| xrpl::Rate | rpc::transferRate (BackendInterface const &backend, std::uint32_t sequence, xrpl::AccountID const &issuer, boost::asio::yield_context yield) |
| | Get the transfer rate.
|
| xrpl::XRPAmount | rpc::xrpLiquid (BackendInterface const &backend, std::uint32_t sequence, xrpl::AccountID const &id, boost::asio::yield_context yield) |
| | Get the XRP liquidity.
|
| boost::json::array | rpc::postProcessOrderBook (std::vector< data::LedgerObject > const &offers, xrpl::Book const &book, xrpl::AccountID const &takerID, data::BackendInterface const &backend, data::AmendmentCenterInterface const &amendmentCenter, std::uint32_t ledgerSequence, boost::asio::yield_context yield) |
| | Post process an order book.
|
| std::expected< xrpl::Book, Status > | rpc::parseBook (xrpl::Currency pays, xrpl::AccountID payIssuer, xrpl::Currency gets, xrpl::AccountID getIssuer, std::optional< std::string > const &domain) |
| | Parse the book from the request.
|
| std::expected< xrpl::Book, Status > | rpc::parseBook (boost::json::object const &request) |
| | Parse the book from the request.
|
| std::expected< xrpl::AccountID, Status > | rpc::parseTaker (boost::json::value const &taker) |
| | Parse the taker from the request.
|
| xrpl::Issue | rpc::parseIssue (boost::json::object const &issue) |
| | Parse the json object into a xrpl::Issue object.
|
| bool | rpc::specifiesCurrentOrClosedLedger (boost::json::object const &request) |
| | Check whether the request specifies the current or closed ledger.
|
| bool | rpc::isAdminCmd (std::string const &method, boost::json::object const &request) |
| | Check whether a request requires administrative privileges on rippled side.
|
| std::expected< xrpl::uint256, Status > | rpc::getNFTID (boost::json::object const &request) |
| | Get the NFTID from the request.
|
| std::optional< std::string > | rpc::encodeCTID (uint32_t ledgerSeq, uint16_t txnIndex, uint16_t networkId) noexcept |
| | Encode CTID as string.
|
| template<typename T> |
| std::optional< std::tuple< uint32_t, uint16_t, uint16_t > > | rpc::decodeCTID (T const ctid) noexcept |
| | Decode the CTID from a string or a uint64_t.
|
| template<typename DurationType> |
| void | rpc::logDuration (boost::json::object const &request, util::BaseTagDecorator const &tag, DurationType const &dur) |
| | Log the duration of the request processing.
|
| std::optional< xrpl::Seed > | rpc::parseRippleLibSeed (boost::json::value const &value) |
| | Parse a ripple-lib seed.
|
| std::expected< AccountCursor, Status > | rpc::traverseNFTObjects (BackendInterface const &backend, std::uint32_t sequence, xrpl::AccountID const &accountID, xrpl::uint256 nextPage, std::uint32_t limit, boost::asio::yield_context yield, std::function< void(xrpl::SLE)> atOwnedNode) |
| | Traverse NFT objects and call the callback for each owned node.
|
| std::optional< std::uint32_t > | rpc::parseStringAsUInt (std::string const &value) |
| | Parse the string as a uint32_t.
|
| bool | rpc::canHaveDeliveredAmount (std::shared_ptr< xrpl::STTx const > const &txn, std::shared_ptr< xrpl::TxMeta const > const &meta) |
| | Whether the transaction can have a delivered amount.
|
| std::optional< xrpl::STAmount > | rpc::getDeliveredAmount (std::shared_ptr< xrpl::STTx const > const &txn, std::shared_ptr< xrpl::TxMeta const > const &meta, std::uint32_t ledgerSequence, uint32_t date) |
| | Get the delivered amount.
|