|
rippled
|
API version numbers used in later API versions. More...
Namespaces | |
| namespace | common |
| namespace | detail |
| namespace | Tuning |
| Tuned constants. | |
Classes | |
| class | AccountLines_test |
| class | codeString_test |
| struct | Context |
| The context of information needed to call an RPC. More... | |
| struct | ErrorInfo |
| Maps an rpc error code to its token, default message, and HTTP status. More... | |
| class | fillJson_test |
| struct | GRPCContext |
| struct | Handler |
| struct | JsonContext |
| class | JSONRPC_test |
| struct | key_strings |
| class | LedgerHandler |
| class | LedgerRequestRPC_test |
| class | LegacyPathFind |
| struct | Request |
| struct | Status |
| Status represents the results of an operation that might fail. More... | |
| struct | TxnTestData |
| class | VersionHandler |
| class | WalletPropose_test |
Typedefs | |
| using | ProcessTransactionFn = std::function< void(std::shared_ptr< Transaction > &transaction, bool bUnlimited, bool bLocal, NetworkOPs::FailHard failType)> |
| using | Output = std::function< void(boost::string_ref const &)> |
Enumerations | |
| enum | Condition { NO_CONDITION = 0 , NEEDS_NETWORK_CONNECTION = 1 , NEEDS_CURRENT_LEDGER = 1 << 1 , NEEDS_CLOSED_LEDGER = 1 << 2 } |
| enum | LedgerShortcut { CURRENT , CLOSED , VALIDATED } |
Functions | |
| ErrorInfo const & | get_error_info (error_code_i code) |
| Returns an ErrorInfo that reflects the error code. More... | |
| bool | contains_error (Json::Value const &json) |
Returns true if the json contains an rpc error specification. More... | |
| int | error_code_http_status (error_code_i code) |
| Returns http status that corresponds to the error code. More... | |
| BEAST_DEFINE_TESTSUITE (AccountLines, rpc, ripple) | |
| BEAST_DEFINE_TESTSUITE (JSONRPC, ripple_app, ripple) | |
| BEAST_DEFINE_TESTSUITE (WalletPropose, ripple_basics, ripple) | |
| BEAST_DEFINE_TESTSUITE (LedgerRequestRPC, app, ripple) | |
| BEAST_DEFINE_TESTSUITE (codeString, Status, RPC) | |
| BEAST_DEFINE_TESTSUITE (fillJson, Status, RPC) | |
| template<class L > | |
| Json::Value | computeBookChanges (std::shared_ptr< L const > const &lpAccepted) |
| std::optional< std::string > | encodeCTID (uint32_t ledger_seq, uint16_t txn_index, uint16_t network_id) noexcept |
| template<typename T > | |
| std::optional< std::tuple< uint32_t, uint16_t, uint16_t > > | decodeCTID (const T ctid) noexcept |
| template<class GetLedgerIndex , class GetCloseTime > | |
| std::optional< STAmount > | getDeliveredAmount (GetLedgerIndex const &getLedgerIndex, GetCloseTime const &getCloseTime, std::shared_ptr< STTx const > const &serializedTx, TxMeta const &transactionMeta) |
| template<class GetFix1623Enabled > | |
| bool | canHaveDeliveredAmountHelp (GetFix1623Enabled const &getFix1623Enabled, std::shared_ptr< STTx const > const &serializedTx, TxMeta const &transactionMeta) |
| bool | canHaveDeliveredAmount (RPC::Context const &context, std::shared_ptr< STTx const > const &serializedTx, TxMeta const &transactionMeta) |
| template<class GetLedgerIndex > | |
| static std::optional< STAmount > | getDeliveredAmount (RPC::Context const &context, std::shared_ptr< STTx const > const &serializedTx, TxMeta const &transactionMeta, GetLedgerIndex const &getLedgerIndex) |
| Handler const * | getHandler (unsigned version, bool betaEnabled, std::string const &name) |
| std::set< char const * > | getHandlerNames () |
| Return names of all methods. More... | |
| Handler const * | getHandler (unsigned int version, bool betaEnabled, std::string const &) |
| template<class Value > | |
| Json::Value | makeObjectValue (Value const &value, Json::StaticString const &field=jss::message) |
| Return a Json::objectValue with a single entry. More... | |
| template<class T > | |
| error_code_i | conditionMet (Condition condition_required, T &context) |
| Status | doCommand (RPC::JsonContext &, Json::Value &) |
| Execute an RPC command and store the results in a Json::Value. More... | |
| Role | roleRequired (unsigned int version, bool betaEnabled, std::string const &method) |
| std::optional< AccountID > | accountFromStringStrict (std::string const &) |
| Get an AccountID from an account ID or public key. More... | |
| error_code_i | accountFromStringWithCode (AccountID &result, std::string const &strIdent, bool bStrict=false) |
| Decode account ID from string. More... | |
| Json::Value | accountFromString (AccountID &result, std::string const &strIdent, bool bStrict) |
| std::uint64_t | getStartHint (std::shared_ptr< SLE const > const &sle, AccountID const &accountID) |
| Gets the start hint for traversing account objects. More... | |
| bool | isRelatedToAccount (ReadView const &ledger, std::shared_ptr< SLE const > const &sle, AccountID const &accountID) |
| Tests if a SLE is owned by accountID. More... | |
| bool | getAccountObjects (ReadView const &ledger, AccountID const &account, std::optional< std::vector< LedgerEntryType > > const &typeFilter, uint256 dirIndex, uint256 entryIndex, std::uint32_t const limit, Json::Value &jvResult) |
| Gathers all objects for an account in a ledger. More... | |
| template<class T , class R > | |
| Status | ledgerFromRequest (T &ledger, GRPCContext< R > &context) |
| template Status | ledgerFromRequest (std::shared_ptr< ReadView const > &, GRPCContext< org::xrpl::rpc::v1::GetLedgerEntryRequest > &) |
| template Status | ledgerFromRequest (std::shared_ptr< ReadView const > &, GRPCContext< org::xrpl::rpc::v1::GetLedgerDataRequest > &) |
| template Status | ledgerFromRequest (std::shared_ptr< ReadView const > &, GRPCContext< org::xrpl::rpc::v1::GetLedgerRequest > &) |
| template<class T > | |
| Status | ledgerFromSpecifier (T &ledger, org::xrpl::rpc::v1::LedgerSpecifier const &specifier, Context &context) |
| template<class T > | |
| Status | getLedger (T &ledger, uint256 const &ledgerHash, Context &context) |
| Get ledger by hash If there is no error in the return value, the ledger pointer will have been filled. More... | |
| template<class T > | |
| Status | getLedger (T &ledger, uint32_t ledgerIndex, Context &context) |
| Get ledger by sequence If there is no error in the return value, the ledger pointer will have been filled. More... | |
| template<class T > | |
| Status | getLedger (T &ledger, LedgerShortcut shortcut, Context &context) |
| Get ledger specified in shortcut. More... | |
| template Status | getLedger (std::shared_ptr< ReadView const > &, uint32_t, Context &) |
| template Status | getLedger (std::shared_ptr< ReadView const > &, LedgerShortcut shortcut, Context &) |
| template Status | getLedger (std::shared_ptr< ReadView const > &, uint256 const &, Context &) |
| Status | lookupLedger (std::shared_ptr< ReadView const > &, JsonContext &, Json::Value &result) |
| Look up a ledger from a request and fill a Json::Result with the data representing a ledger. More... | |
| Json::Value | lookupLedger (std::shared_ptr< ReadView const > &, JsonContext &) |
| Look up a ledger from a request and fill a Json::Result with either an error, or data representing a ledger. More... | |
| hash_set< AccountID > | parseAccountIds (Json::Value const &jvArray) |
| void | injectSLE (Json::Value &jv, SLE const &sle) |
| Inject JSON describing ledger entry. More... | |
| std::optional< Json::Value > | readLimitField (unsigned int &limit, Tuning::LimitRange const &, JsonContext const &) |
| Retrieve the limit value from a JsonContext, or set a default - then restrict the limit by max and min if not an ADMIN request. More... | |
| std::optional< Seed > | parseRippleLibSeed (Json::Value const &value) |
| std::optional< Seed > | getSeedFromRPC (Json::Value const ¶ms, Json::Value &error) |
| std::optional< std::pair< PublicKey, SecretKey > > | keypairForSignature (Json::Value const ¶ms, Json::Value &error, unsigned int apiVersion) |
| std::pair< RPC::Status, LedgerEntryType > | chooseLedgerEntryType (Json::Value const ¶ms) |
| bool | isAccountObjectsValidType (LedgerEntryType const &type) |
| Check if the type is a valid filtering type for account_objects method. More... | |
| unsigned int | getAPIVersionNumber (const Json::Value &value, bool betaEnabled) |
| Retrieve the api version number from the json value. More... | |
| std::variant< std::shared_ptr< Ledger const >, Json::Value > | getLedgerByContext (RPC::JsonContext &context) |
| Return a ledger based on ledger_hash or ledger_index, or an RPC error. More... | |
| bool | isHexTxID (std::string const &txid) |
| template<class Object > | |
| void | setVersion (Object &parent, unsigned int apiVersion, bool betaEnabled) |
| static XRPAmount | getTxFee (Application const &app, Config const &config, Json::Value tx) |
| Json::Value | getCurrentNetworkFee (Role const role, Config const &config, LoadFeeTrack const &feeTrack, TxQ const &txQ, Application const &app, Json::Value const &tx, int mult, int div) |
| Json::Value | checkFee (Json::Value &request, Role const role, bool doAutoFill, Config const &config, LoadFeeTrack const &feeTrack, TxQ const &txQ, Application const &app) |
| Fill in the fee on behalf of the client. More... | |
| Json::Value | transactionSign (Json::Value jvRequest, unsigned apiVersion, NetworkOPs::FailHard failType, Role role, std::chrono::seconds validatedLedgerAge, Application &app) |
| Returns a Json::objectValue. More... | |
| Json::Value | transactionSubmit (Json::Value jvRequest, unsigned apiVersion, NetworkOPs::FailHard failType, Role role, std::chrono::seconds validatedLedgerAge, Application &app, ProcessTransactionFn const &processTransaction) |
| Returns a Json::objectValue. More... | |
| Json::Value | transactionSignFor (Json::Value jvRequest, unsigned apiVersion, NetworkOPs::FailHard failType, Role role, std::chrono::seconds validatedLedgerAge, Application &app) |
| Returns a Json::objectValue. More... | |
| Json::Value | transactionSubmitMultiSigned (Json::Value jvRequest, unsigned apiVersion, NetworkOPs::FailHard failType, Role role, std::chrono::seconds validatedLedgerAge, Application &app, ProcessTransactionFn const &processTransaction) |
| Returns a Json::objectValue. More... | |
| ProcessTransactionFn | getProcessTxnFn (NetworkOPs &netOPs) |
| Output | stringOutput (std::string &s) |
| template<class JsonValue > | |
| void | inject_error (error_code_i code, JsonValue &json) |
| Add or update the json update to reflect the error code. More... | |
| template<class JsonValue > | |
| void | inject_error (int code, JsonValue &json) |
| template<class JsonValue > | |
| void | inject_error (error_code_i code, std::string const &message, JsonValue &json) |
| Json::Value | make_error (error_code_i code) |
| Returns a new json object that reflects the error code. More... | |
| Json::Value | make_error (error_code_i code, std::string const &message) |
| Json::Value | make_param_error (std::string const &message) |
| Returns a new json object that indicates invalid parameters. More... | |
| std::string | missing_field_message (std::string const &name) |
| Json::Value | missing_field_error (std::string const &name) |
| Json::Value | missing_field_error (Json::StaticString name) |
| std::string | object_field_message (std::string const &name) |
| Json::Value | object_field_error (std::string const &name) |
| Json::Value | object_field_error (Json::StaticString name) |
| std::string | invalid_field_message (std::string const &name) |
| std::string | invalid_field_message (Json::StaticString name) |
| Json::Value | invalid_field_error (std::string const &name) |
| Json::Value | invalid_field_error (Json::StaticString name) |
| std::string | expected_field_message (std::string const &name, std::string const &type) |
| std::string | expected_field_message (Json::StaticString name, std::string const &type) |
| Json::Value | expected_field_error (std::string const &name, std::string const &type) |
| Json::Value | expected_field_error (Json::StaticString name, std::string const &type) |
| Json::Value | not_validator_error () |
| void | insertDeliverMax (Json::Value &tx_json, TxType txnType, unsigned int apiVersion) |
Copy Amount field to DeliverMax field in transaction output JSON. More... | |
| void | insertDeliveredAmount (Json::Value &meta, ReadView const &, std::shared_ptr< STTx const > const &serializedTx, TxMeta const &) |
Add a delivered_amount field to the meta input/output parameter. More... | |
| void | insertDeliveredAmount (Json::Value &meta, RPC::JsonContext const &, std::shared_ptr< Transaction > const &, TxMeta const &) |
| void | insertDeliveredAmount (Json::Value &meta, RPC::JsonContext const &, std::shared_ptr< STTx const > const &, TxMeta const &) |
| std::optional< STAmount > | getDeliveredAmount (RPC::Context const &context, std::shared_ptr< STTx const > const &serializedTx, TxMeta const &transactionMeta, LedgerIndex const &ledgerIndex) |
| bool | canHaveMPTokenIssuanceID (std::shared_ptr< STTx const > const &serializedTx, TxMeta const &transactionMeta) |
Add a mpt_issuance_id field to the meta input/output parameter. More... | |
| std::optional< uint192 > | getIDFromCreatedIssuance (TxMeta const &transactionMeta) |
| void | insertMPTokenIssuanceID (Json::Value &response, std::shared_ptr< STTx const > const &transaction, TxMeta const &transactionMeta) |
Variables | |
| template<unsigned int Version> | |
| static constexpr std::integral_constant< unsigned, Version > | apiVersion = {} |
| static constexpr auto | apiInvalidVersion = apiVersion<0> |
| static constexpr auto | apiMinimumSupportedVersion = apiVersion<1> |
| static constexpr auto | apiMaximumSupportedVersion = apiVersion<2> |
| static constexpr auto | apiVersionIfUnspecified = apiVersion<1> |
| static constexpr auto | apiCommandLineVersion |
| static constexpr auto | apiBetaVersion = apiVersion<3> |
| static constexpr auto | apiMaximumValidVersion = apiBetaVersion |
| static constexpr TxnTestData | txnTestArray [] |
| static key_strings const | secp256k1_strings |
| static key_strings const | ed25519_strings |
| static key_strings const | strong_brain_strings |
| beast::SemanticVersion const | firstVersion ("1.0.0") |
| API version numbers used in API version 1. More... | |
| beast::SemanticVersion const | goodVersion ("1.0.0") |
| beast::SemanticVersion const | lastVersion ("1.0.0") |
API version numbers used in later API versions.
Requests with a version number in the range [apiMinimumSupportedVersion, apiMaximumSupportedVersion] are supported.
If [beta_rpc_api] is enabled in config, the version numbers in the range [apiMinimumSupportedVersion, apiBetaVersion] are supported.
Network Requests without explicit version numbers use apiVersionIfUnspecified. apiVersionIfUnspecified is 1, because all the RPC requests with a version >= 2 must explicitly specify the version in the requests. Note that apiVersionIfUnspecified will be lower than apiMinimumSupportedVersion when we stop supporting API version 1.
Command line Requests use apiCommandLineVersion.
| using ripple::RPC::ProcessTransactionFn = typedef std::function<void( std::shared_ptr<Transaction>& transaction, bool bUnlimited, bool bLocal, NetworkOPs::FailHard failType)> |
Definition at line 87 of file TransactionSign.h.
| using ripple::RPC::Output = typedef std::function<void(boost::string_ref const&)> |
Definition at line 28 of file src/xrpld/rpc/Output.h.
| Enumerator | |
|---|---|
| CURRENT | |
| CLOSED | |
| VALIDATED | |
Definition at line 130 of file RPCHelpers.h.
| ErrorInfo const & ripple::RPC::get_error_info | ( | error_code_i | code | ) |
Returns an ErrorInfo that reflects the error code.
Definition at line 177 of file ErrorCodes.cpp.
| void ripple::RPC::inject_error | ( | error_code_i | code, |
| JsonValue & | json | ||
| ) |
Add or update the json update to reflect the error code.
Definition at line 223 of file ErrorCodes.h.
| void ripple::RPC::inject_error | ( | int | code, |
| JsonValue & | json | ||
| ) |
Definition at line 233 of file ErrorCodes.h.
| void ripple::RPC::inject_error | ( | error_code_i | code, |
| std::string const & | message, | ||
| JsonValue & | json | ||
| ) |
Definition at line 240 of file ErrorCodes.h.
| Json::Value ripple::RPC::make_error | ( | error_code_i | code | ) |
Returns a new json object that reflects the error code.
Definition at line 185 of file ErrorCodes.cpp.
| Json::Value ripple::RPC::make_error | ( | error_code_i | code, |
| std::string const & | message | ||
| ) |
Definition at line 193 of file ErrorCodes.cpp.
| Json::Value ripple::RPC::make_param_error | ( | std::string const & | message | ) |
Returns a new json object that indicates invalid parameters.
Definition at line 261 of file ErrorCodes.h.
| std::string ripple::RPC::missing_field_message | ( | std::string const & | name | ) |
Definition at line 267 of file ErrorCodes.h.
| Json::Value ripple::RPC::missing_field_error | ( | std::string const & | name | ) |
Definition at line 273 of file ErrorCodes.h.
| Json::Value ripple::RPC::missing_field_error | ( | Json::StaticString | name | ) |
Definition at line 279 of file ErrorCodes.h.
| std::string ripple::RPC::object_field_message | ( | std::string const & | name | ) |
Definition at line 285 of file ErrorCodes.h.
| Json::Value ripple::RPC::object_field_error | ( | std::string const & | name | ) |
Definition at line 291 of file ErrorCodes.h.
| Json::Value ripple::RPC::object_field_error | ( | Json::StaticString | name | ) |
Definition at line 297 of file ErrorCodes.h.
| std::string ripple::RPC::invalid_field_message | ( | std::string const & | name | ) |
Definition at line 303 of file ErrorCodes.h.
| std::string ripple::RPC::invalid_field_message | ( | Json::StaticString | name | ) |
Definition at line 309 of file ErrorCodes.h.
| Json::Value ripple::RPC::invalid_field_error | ( | std::string const & | name | ) |
Definition at line 315 of file ErrorCodes.h.
| Json::Value ripple::RPC::invalid_field_error | ( | Json::StaticString | name | ) |
Definition at line 321 of file ErrorCodes.h.
| std::string ripple::RPC::expected_field_message | ( | std::string const & | name, |
| std::string const & | type | ||
| ) |
Definition at line 327 of file ErrorCodes.h.
| std::string ripple::RPC::expected_field_message | ( | Json::StaticString | name, |
| std::string const & | type | ||
| ) |
Definition at line 333 of file ErrorCodes.h.
| Json::Value ripple::RPC::expected_field_error | ( | std::string const & | name, |
| std::string const & | type | ||
| ) |
Definition at line 339 of file ErrorCodes.h.
| Json::Value ripple::RPC::expected_field_error | ( | Json::StaticString | name, |
| std::string const & | type | ||
| ) |
Definition at line 345 of file ErrorCodes.h.
| Json::Value ripple::RPC::not_validator_error | ( | ) |
Definition at line 351 of file ErrorCodes.h.
| bool ripple::RPC::contains_error | ( | Json::Value const & | json | ) |
Returns true if the json contains an rpc error specification.
Definition at line 201 of file ErrorCodes.cpp.
| int ripple::RPC::error_code_http_status | ( | error_code_i | code | ) |
Returns http status that corresponds to the error code.
Definition at line 209 of file ErrorCodes.cpp.
| ripple::RPC::BEAST_DEFINE_TESTSUITE | ( | AccountLines | , |
| rpc | , | ||
| ripple | |||
| ) |
| ripple::RPC::BEAST_DEFINE_TESTSUITE | ( | JSONRPC | , |
| ripple_app | , | ||
| ripple | |||
| ) |
| ripple::RPC::BEAST_DEFINE_TESTSUITE | ( | WalletPropose | , |
| ripple_basics | , | ||
| ripple | |||
| ) |
| ripple::RPC::BEAST_DEFINE_TESTSUITE | ( | LedgerRequestRPC | , |
| app | , | ||
| ripple | |||
| ) |
| ripple::RPC::BEAST_DEFINE_TESTSUITE | ( | codeString | , |
| Status | , | ||
| RPC | |||
| ) |
| ripple::RPC::BEAST_DEFINE_TESTSUITE | ( | fillJson | , |
| Status | , | ||
| RPC | |||
| ) |
| void ripple::RPC::insertDeliverMax | ( | Json::Value & | tx_json, |
| TxType | txnType, | ||
| unsigned int | apiVersion | ||
| ) |
Copy Amount field to DeliverMax field in transaction output JSON.
This only applies to Payment transaction type, all others are ignored.
When apiVersion > 1 will also remove Amount field, forcing users to access this value using new DeliverMax field only.
Definition at line 28 of file DeliverMax.cpp.
| Json::Value ripple::RPC::computeBookChanges | ( | std::shared_ptr< L const > const & | lpAccepted | ) |
Definition at line 47 of file BookChanges.h.
|
noexcept |
|
noexcept |
| void ripple::RPC::insertDeliveredAmount | ( | Json::Value & | meta, |
| ReadView const & | ledger, | ||
| std::shared_ptr< STTx const > const & | serializedTx, | ||
| TxMeta const & | transactionMeta | ||
| ) |
Add a delivered_amount field to the meta input/output parameter.
The field is only added to successful payment and check cash transactions. If a delivered amount field is available in the TxMeta parameter, that value is used. Otherwise, the transaction's Amount field is used. If neither is available, then the delivered amount is set to "unavailable".
Definition at line 129 of file DeliveredAmount.cpp.
| void ripple::RPC::insertDeliveredAmount | ( | Json::Value & | meta, |
| RPC::JsonContext const & | context, | ||
| std::shared_ptr< Transaction > const & | transaction, | ||
| TxMeta const & | transactionMeta | ||
| ) |
Definition at line 198 of file DeliveredAmount.cpp.
| void ripple::RPC::insertDeliveredAmount | ( | Json::Value & | meta, |
| RPC::JsonContext const & | context, | ||
| std::shared_ptr< STTx const > const & | transaction, | ||
| TxMeta const & | transactionMeta | ||
| ) |
Definition at line 209 of file DeliveredAmount.cpp.
| std::optional< STAmount > ripple::RPC::getDeliveredAmount | ( | RPC::Context const & | context, |
| std::shared_ptr< STTx const > const & | serializedTx, | ||
| TxMeta const & | transactionMeta, | ||
| LedgerIndex const & | ledgerIndex | ||
| ) |
Definition at line 185 of file DeliveredAmount.cpp.
| std::optional< STAmount > ripple::RPC::getDeliveredAmount | ( | GetLedgerIndex const & | getLedgerIndex, |
| GetCloseTime const & | getCloseTime, | ||
| std::shared_ptr< STTx const > const & | serializedTx, | ||
| TxMeta const & | transactionMeta | ||
| ) |
Definition at line 44 of file DeliveredAmount.cpp.
| bool ripple::RPC::canHaveDeliveredAmountHelp | ( | GetFix1623Enabled const & | getFix1623Enabled, |
| std::shared_ptr< STTx const > const & | serializedTx, | ||
| TxMeta const & | transactionMeta | ||
| ) |
Definition at line 84 of file DeliveredAmount.cpp.
| bool ripple::RPC::canHaveDeliveredAmount | ( | RPC::Context const & | context, |
| std::shared_ptr< STTx const > const & | serializedTx, | ||
| TxMeta const & | transactionMeta | ||
| ) |
Definition at line 111 of file DeliveredAmount.cpp.
|
static |
Definition at line 164 of file DeliveredAmount.cpp.
| Handler const * ripple::RPC::getHandler | ( | unsigned | version, |
| bool | betaEnabled, | ||
| std::string const & | name | ||
| ) |
Definition at line 311 of file Handler.cpp.
| std::set< char const * > ripple::RPC::getHandlerNames | ( | ) |
Return names of all methods.
Definition at line 317 of file Handler.cpp.
| Handler const * ripple::RPC::getHandler | ( | unsigned int | version, |
| bool | betaEnabled, | ||
| std::string const & | |||
| ) |
| Json::Value ripple::RPC::makeObjectValue | ( | Value const & | value, |
| Json::StaticString const & | field = jss::message |
||
| ) |
Return a Json::objectValue with a single entry.
| error_code_i ripple::RPC::conditionMet | ( | Condition | condition_required, |
| T & | context | ||
| ) |
| bool ripple::RPC::canHaveMPTokenIssuanceID | ( | std::shared_ptr< STTx const > const & | serializedTx, |
| TxMeta const & | transactionMeta | ||
| ) |
Add a mpt_issuance_id field to the meta input/output parameter.
The field is only added to successful MPTokenIssuanceCreate transactions. The mpt_issuance_id is parsed from the sequence and the issuer in the MPTokenIssuance object.
Definition at line 27 of file MPTokenIssuanceID.cpp.
| std::optional< uint192 > ripple::RPC::getIDFromCreatedIssuance | ( | TxMeta const & | transactionMeta | ) |
Definition at line 46 of file MPTokenIssuanceID.cpp.
| void ripple::RPC::insertMPTokenIssuanceID | ( | Json::Value & | response, |
| std::shared_ptr< STTx const > const & | transaction, | ||
| TxMeta const & | transactionMeta | ||
| ) |
Definition at line 64 of file MPTokenIssuanceID.cpp.
| Status ripple::RPC::doCommand | ( | RPC::JsonContext & | context, |
| Json::Value & | result | ||
| ) |
Execute an RPC command and store the results in a Json::Value.
Definition at line 222 of file RPCHandler.cpp.
| Role ripple::RPC::roleRequired | ( | unsigned int | version, |
| bool | betaEnabled, | ||
| std::string const & | method | ||
| ) |
Definition at line 261 of file RPCHandler.cpp.
| std::optional< AccountID > ripple::RPC::accountFromStringStrict | ( | std::string const & | account | ) |
Get an AccountID from an account ID or public key.
Definition at line 44 of file RPCHelpers.cpp.
| error_code_i ripple::RPC::accountFromStringWithCode | ( | AccountID & | result, |
| std::string const & | strIdent, | ||
| bool | bStrict = false |
||
| ) |
Decode account ID from string.
| [out] | result | account ID decoded from string |
| strIdent | public key, account ID, or regular seed. | |
| bStrict | Only allow account id or public key. |
Definition at line 60 of file RPCHelpers.cpp.
| Json::Value ripple::RPC::accountFromString | ( | AccountID & | result, |
| std::string const & | strIdent, | ||
| bool | bStrict | ||
| ) |
Definition at line 88 of file RPCHelpers.cpp.
| std::uint64_t ripple::RPC::getStartHint | ( | std::shared_ptr< SLE const > const & | sle, |
| AccountID const & | accountID | ||
| ) |
Gets the start hint for traversing account objects.
| sle | - Ledger entry defined by the marker passed into the RPC. |
| accountID | - The ID of the account whose objects you are traversing. |
Definition at line 98 of file RPCHelpers.cpp.
| bool ripple::RPC::isRelatedToAccount | ( | ReadView const & | ledger, |
| std::shared_ptr< SLE const > const & | sle, | ||
| AccountID const & | accountID | ||
| ) |
Tests if a SLE is owned by accountID.
| ledger | - The ledger used to search for the sle. |
| sle | - The SLE to test for ownership. |
| account | - The account being tested for SLE ownership. |
Definition at line 115 of file RPCHelpers.cpp.
| bool ripple::RPC::getAccountObjects | ( | ReadView const & | ledger, |
| AccountID const & | account, | ||
| std::optional< std::vector< LedgerEntryType > > const & | typeFilter, | ||
| uint256 | dirIndex, | ||
| uint256 | entryIndex, | ||
| std::uint32_t const | limit, | ||
| Json::Value & | jvResult | ||
| ) |
Gathers all objects for an account in a ledger.
| ledger | Ledger to search account objects. |
| account | AccountID to find objects for. |
| typeFilter | Gathers objects of these types. empty gathers all types. |
| dirIndex | Begin gathering account objects from this directory. |
| entryIndex | Begin gathering objects from this directory node. |
| limit | Maximum number of objects to find. |
| jvResult | A JSON result that holds the request objects. |
Definition at line 153 of file RPCHelpers.cpp.
| Status ripple::RPC::ledgerFromRequest | ( | T & | ledger, |
| GRPCContext< R > & | context | ||
| ) |
Definition at line 408 of file RPCHelpers.cpp.
| template Status ripple::RPC::ledgerFromRequest | ( | std::shared_ptr< ReadView const > & | , |
| GRPCContext< org::xrpl::rpc::v1::GetLedgerEntryRequest > & | |||
| ) |
| template Status ripple::RPC::ledgerFromRequest | ( | std::shared_ptr< ReadView const > & | , |
| GRPCContext< org::xrpl::rpc::v1::GetLedgerDataRequest > & | |||
| ) |
| template Status ripple::RPC::ledgerFromRequest | ( | std::shared_ptr< ReadView const > & | , |
| GRPCContext< org::xrpl::rpc::v1::GetLedgerRequest > & | |||
| ) |
| Status ripple::RPC::ledgerFromSpecifier | ( | T & | ledger, |
| org::xrpl::rpc::v1::LedgerSpecifier const & | specifier, | ||
| Context & | context | ||
| ) |
Definition at line 434 of file RPCHelpers.cpp.
| Status ripple::RPC::getLedger | ( | T & | ledger, |
| uint256 const & | ledgerHash, | ||
| Context & | context | ||
| ) |
Get ledger by hash If there is no error in the return value, the ledger pointer will have been filled.
Definition at line 488 of file RPCHelpers.cpp.
| Status ripple::RPC::getLedger | ( | T & | ledger, |
| uint32_t | ledgerIndex, | ||
| Context & | context | ||
| ) |
Get ledger by sequence If there is no error in the return value, the ledger pointer will have been filled.
Definition at line 498 of file RPCHelpers.cpp.
| Status ripple::RPC::getLedger | ( | T & | ledger, |
| LedgerShortcut | shortcut, | ||
| Context & | context | ||
| ) |
Get ledger specified in shortcut.
If there is no error in the return value, the ledger pointer will have been filled
Definition at line 527 of file RPCHelpers.cpp.
| template Status ripple::RPC::getLedger | ( | std::shared_ptr< ReadView const > & | , |
| uint32_t | , | ||
| Context & | |||
| ) |
| template Status ripple::RPC::getLedger | ( | std::shared_ptr< ReadView const > & | , |
| LedgerShortcut | shortcut, | ||
| Context & | |||
| ) |
| template Status ripple::RPC::getLedger | ( | std::shared_ptr< ReadView const > & | , |
| uint256 const & | , | ||
| Context & | |||
| ) |
| Status ripple::RPC::lookupLedger | ( | std::shared_ptr< ReadView const > & | , |
| JsonContext & | , | ||
| Json::Value & | result | ||
| ) |
Look up a ledger from a request and fill a Json::Result with the data representing a ledger.
If the returned Status is OK, the ledger pointer will have been filled.
Definition at line 622 of file RPCHelpers.cpp.
| Json::Value ripple::RPC::lookupLedger | ( | std::shared_ptr< ReadView const > & | , |
| JsonContext & | |||
| ) |
Look up a ledger from a request and fill a Json::Result with either an error, or data representing a ledger.
If there is no error in the return value, then the ledger pointer will have been filled.
Definition at line 647 of file RPCHelpers.cpp.
| hash_set< AccountID > ripple::RPC::parseAccountIds | ( | Json::Value const & | jvArray | ) |
Definition at line 657 of file RPCHelpers.cpp.
| void ripple::RPC::injectSLE | ( | Json::Value & | jv, |
| SLE const & | sle | ||
| ) |
Inject JSON describing ledger entry.
Effects: Adds the JSON description of sle to jv.
If sle holds an account root, also adds the urlgravatar field JSON if sfEmailHash is present.
Definition at line 673 of file RPCHelpers.cpp.
| std::optional< Json::Value > ripple::RPC::readLimitField | ( | unsigned int & | limit, |
| Tuning::LimitRange const & | , | ||
| JsonContext const & | |||
| ) |
Retrieve the limit value from a JsonContext, or set a default - then restrict the limit by max and min if not an ADMIN request.
If there is an error, return it as JSON.
Definition at line 698 of file RPCHelpers.cpp.
| std::optional< Seed > ripple::RPC::parseRippleLibSeed | ( | Json::Value const & | value | ) |
Definition at line 717 of file RPCHelpers.cpp.
| std::optional< Seed > ripple::RPC::getSeedFromRPC | ( | Json::Value const & | params, |
| Json::Value & | error | ||
| ) |
Definition at line 736 of file RPCHelpers.cpp.
| std::optional< std::pair< PublicKey, SecretKey > > ripple::RPC::keypairForSignature | ( | Json::Value const & | params, |
| Json::Value & | error, | ||
| unsigned int | apiVersion | ||
| ) |
Definition at line 795 of file RPCHelpers.cpp.
| std::pair< RPC::Status, LedgerEntryType > ripple::RPC::chooseLedgerEntryType | ( | Json::Value const & | params | ) |
Definition at line 931 of file RPCHelpers.cpp.
| bool ripple::RPC::isAccountObjectsValidType | ( | LedgerEntryType const & | type | ) |
Check if the type is a valid filtering type for account_objects method.
Since Amendments, DirectoryNode, FeeSettings, LedgerHashes can not be owned by an account, this function will return false in these situations.
Definition at line 986 of file RPCHelpers.cpp.
| unsigned int ripple::RPC::getAPIVersionNumber | ( | const Json::Value & | value, |
| bool | betaEnabled | ||
| ) |
Retrieve the api version number from the json value.
Note that APIInvalidVersion will be returned if 1) the version number field has a wrong format 2) the version number retrieved is out of the supported range 3) the version number is unspecified and APIVersionIfUnspecified is out of the supported range
| value | a Json value that may or may not specifies the api version number |
| betaEnabled | if the beta API version is enabled |
Definition at line 1006 of file RPCHelpers.cpp.
| std::variant< std::shared_ptr< Ledger const >, Json::Value > ripple::RPC::getLedgerByContext | ( | RPC::JsonContext & | context | ) |
Return a ledger based on ledger_hash or ledger_index, or an RPC error.
Definition at line 1027 of file RPCHelpers.cpp.
| bool ripple::RPC::isHexTxID | ( | std::string const & | txid | ) |
| void ripple::RPC::setVersion | ( | Object & | parent, |
| unsigned int | apiVersion, | ||
| bool | betaEnabled | ||
| ) |
Definition at line 213 of file RPCHelpers.h.
|
static |
Definition at line 721 of file TransactionSign.cpp.
| Json::Value ripple::RPC::getCurrentNetworkFee | ( | Role const | role, |
| Config const & | config, | ||
| LoadFeeTrack const & | feeTrack, | ||
| TxQ const & | txQ, | ||
| Application const & | app, | ||
| Json::Value const & | tx, | ||
| int | mult, | ||
| int | div | ||
| ) |
Definition at line 787 of file TransactionSign.cpp.
| Json::Value ripple::RPC::checkFee | ( | Json::Value & | request, |
| Role const | role, | ||
| bool | doAutoFill, | ||
| Config const & | config, | ||
| LoadFeeTrack const & | feeTrack, | ||
| TxQ const & | txQ, | ||
| Application const & | app | ||
| ) |
Fill in the fee on behalf of the client.
This is called when the client does not explicitly specify the fee. The client may also put a ceiling on the amount of the fee. This ceiling is expressed as a multiplier based on the current ledger's fee schedule.
JSON fields
"Fee" The fee paid by the transaction. Omitted when the client wants the fee filled in.
"fee_mult_max" A multiplier applied to the current ledger's transaction fee that caps the maximum fee the server should auto fill. If this optional field is not specified, then a default multiplier is used. "fee_div_max" A divider applied to the current ledger's transaction fee that caps the maximum fee the server should auto fill. If this optional field is not specified, then a default divider (1) is used. "fee_mult_max" and "fee_div_max" are both used such that the maximum fee will be base * fee_mult_max / fee_div_max as an integer.
| tx | The JSON corresponding to the transaction to fill in. |
| ledger | A ledger for retrieving the current fee schedule. |
| roll | Identifies if this is called by an administrative endpoint. |
Definition at line 828 of file TransactionSign.cpp.
| Json::Value ripple::RPC::transactionSign | ( | Json::Value | jvRequest, |
| unsigned | apiVersion, | ||
| NetworkOPs::FailHard | failType, | ||
| Role | role, | ||
| std::chrono::seconds | validatedLedgerAge, | ||
| Application & | app | ||
| ) |
Returns a Json::objectValue.
Definition at line 897 of file TransactionSign.cpp.
| Json::Value ripple::RPC::transactionSubmit | ( | Json::Value | jvRequest, |
| unsigned | apiVersion, | ||
| NetworkOPs::FailHard | failType, | ||
| Role | role, | ||
| std::chrono::seconds | validatedLedgerAge, | ||
| Application & | app, | ||
| ProcessTransactionFn const & | processTransaction | ||
| ) |
Returns a Json::objectValue.
Definition at line 931 of file TransactionSign.cpp.
| Json::Value ripple::RPC::transactionSignFor | ( | Json::Value | jvRequest, |
| unsigned | apiVersion, | ||
| NetworkOPs::FailHard | failType, | ||
| Role | role, | ||
| std::chrono::seconds | validatedLedgerAge, | ||
| Application & | app | ||
| ) |
Returns a Json::objectValue.
Definition at line 1061 of file TransactionSign.cpp.
| Json::Value ripple::RPC::transactionSubmitMultiSigned | ( | Json::Value | jvRequest, |
| unsigned | apiVersion, | ||
| NetworkOPs::FailHard | failType, | ||
| Role | role, | ||
| std::chrono::seconds | validatedLedgerAge, | ||
| Application & | app, | ||
| ProcessTransactionFn const & | processTransaction | ||
| ) |
Returns a Json::objectValue.
Definition at line 1171 of file TransactionSign.cpp.
| ProcessTransactionFn ripple::RPC::getProcessTxnFn | ( | NetworkOPs & | netOPs | ) |
Definition at line 94 of file TransactionSign.h.
| Output ripple::RPC::stringOutput | ( | std::string & | s | ) |
Definition at line 31 of file src/xrpld/rpc/Output.h.
|
staticconstexpr |
Definition at line 54 of file ApiVersion.h.
|
staticconstexpr |
Definition at line 56 of file ApiVersion.h.
|
staticconstexpr |
Definition at line 57 of file ApiVersion.h.
|
staticconstexpr |
Definition at line 58 of file ApiVersion.h.
|
staticconstexpr |
Definition at line 59 of file ApiVersion.h.
|
staticconstexpr |
Definition at line 60 of file ApiVersion.h.
|
staticconstexpr |
Definition at line 62 of file ApiVersion.h.
|
staticconstexpr |
Definition at line 63 of file ApiVersion.h.
|
staticconstexpr |
Definition at line 71 of file JSONRPC_test.cpp.
|
static |
Definition at line 55 of file KeyGeneration_test.cpp.
|
static |
Definition at line 69 of file KeyGeneration_test.cpp.
|
static |
Definition at line 83 of file KeyGeneration_test.cpp.
| beast::SemanticVersion const ripple::RPC::firstVersion | ( | "1.0.0" | ) |
API version numbers used in API version 1.
Definition at line 207 of file RPCHelpers.h.
| beast::SemanticVersion const ripple::RPC::goodVersion | ( | "1.0.0" | ) |
Definition at line 208 of file RPCHelpers.h.
| beast::SemanticVersion const ripple::RPC::lastVersion | ( | "1.0.0" | ) |
Definition at line 209 of file RPCHelpers.h.