Expand description
A low-level crate that extracts the common RPC protocol used by the HTML
and WebSocket clients. The data models defined in [types
] and [objects
] are
JSON representations compared to the crate xrpl_types
that defines
the internal format of the types and objects.
Modules§
- account_
channels - The account_channels method returns information about an account’s Payment Channels. This includes only channels where the specified account is the channel’s source, not the destination. (A channel’s “source” and “owner” are the same.) All information retrieved is relative to a particular version of the ledger.
- account_
currencies - https://xrpl.org/account_currencies.html
- account_
info - https://xrpl.org/account_info.html
- account_
lines - https://xrpl.org/account_lines.html
- account_
nfts - The account_nfts method returns a list of NFToken objects for the specified account.
- account_
objects - https://xrpl.org/account_objects.html
- account_
offers - The account_offers method retrieves a list of offers made by a given account that are outstanding as of a particular ledger version.
- account_
tx - The account_tx method retrieves a list of transactions that involved the specified account.
- book_
offers - The book_offers method retrieves a list of offers, also known as the order book, between two currencies.
- deposit_
authorized - The deposit_authorized command indicates whether one account is authorized to send payments directly to another. See Deposit Authorization for information on how to require authorization to deliver money to your account.
- fee
- The fee command reports the current state of the open-ledger requirements for the transaction cost.
- gateway_
balances - The gateway_balances command calculates the total balances issued by a given account, optionally excluding amounts held by operational addresses.
- get_
offer_ object - https://xrpl.org/ledger_entry.html
- ledger
- https://xrpl.org/ledger.html
- ledger_
closed - The ledger_closed method returns the unique identifiers of the most recently closed ledger. (This ledger is not necessarily validated and immutable yet.)
- ledger_
current - The ledger_current method returns the unique identifiers of the current in-progress ledger. This command is mostly useful for testing, because the ledger returned is still in flux.
- ledger_
data - The ledger_data method retrieves contents of the specified ledger. You can iterate through several calls to retrieve the entire contents of a single ledger version.
- ledger_
entry - https://xrpl.org/ledger_entry.html
- manifest
- The manifest method reports the current “manifest” information for a given validator public key. The “manifest” is the public portion of that validator’s configured token. Updated in: rippled 1.7.0
- nft_
buy_ offers - The nft_buy_offers method returns a list of buy offers for a given NFToken object.
- nft_
sell_ offers - The nft_sell_offers method returns a list of sell offers for a given NFToken object.
- path_
find - WebSocket API only! The path_find method searches for a path along which a transaction can possibly be made, and periodically sends updates when the path changes over time. For a simpler version that is supported by JSON-RPC, see the ripple_path_find method. For payments occurring strictly in XRP, it is not necessary to find a path, because XRP can be sent directly to any account.
- ping
- The ping command returns an acknowledgement, so that clients can test the connection status and latency.
- random
- The random command provides a random number to be used as a source of entropy for random number generation by clients.
- ripple_
path_ find - The ripple_path_find method is a simplified version of the path_find method that provides a single response with a payment path you can use right away. It is available in both the WebSocket and JSON-RPC APIs. However, the results tend to become outdated as time passes. Instead of making multiple calls to stay updated, you should instead use the path_find method to subscribe to continued updates where possible.
- server_
info - The server_info command asks the server for a human-readable version of various information about the rippled server being queried.
- server_
state - The server_state command asks the server for various machine-readable information about the rippled server’s current state. The response is almost the same as the server_info method, but uses units that are easier to process instead of easier to read. (For example, XRP values are given in integer drops instead of scientific notation or decimal values, and time is given in milliseconds instead of seconds.)
- submit
- The submit method applies a transaction and sends it to the network to be confirmed and included in future ledgers.
- subscribe
- The subscribe method requests periodic notifications from the server when certain events happen.
- transaction_
entry - The transaction_entry method retrieves information on a single transaction from a specific ledger version. (The tx method, by contrast, searches all ledgers for the specified transaction. We recommend using that method instead.)
- tx
- The
tx
method retrieves information on a single transaction, by its identifying hash. - unsubscribe
- https://xrpl.org/unsubscribe.html
- with_
ledger_ spec - with_
pagination
Structs§
- Account
Channel - Account
Channels Request - Account
Channels Response - Account
Currencies Request - Account
Currencies Response - Account
Delete Transaction - An
AccountDelete
transaction https://xrpl.org/accountdelete.html - Account
Info Request - Account
Info Response - Account
Line - Account
Lines Request - Account
Lines Response - Account
Nfts Request - Account
Nfts Response - Account
Objects Request - Account
Objects Response - Account
Offer - Account
Offers Request - Account
Offers Response - Account
Root - An account root in the ledger.
- Account
SetTransaction - An
AccountSet
transaction https://xrpl.org/accountset.html - Account
Transaction - Account
TxRequest - Account
TxResponse - Book
- A book on the ledger.
- Book
Offers Request - Book
Offers Response - Deposit
Authorized Request - Deposit
Authorized Response - Details
- Drops
- Various information about the transaction cost (the Fee field of a transaction), in drops of XRP.
- Expand
Ledger Request - FeeRequest
- FeeResponse
- Gateway
Balances Request - Gateway
Balances Response - GetOffer
Object Request - GetOffer
Object Response - Issued
Amount - Amount of issued token. See https://xrpl.org/currency-formats.html#token-amounts
- Ledger
- Ledger
Closed Event - Ledger
Closed Request - Ledger
Closed Response - Ledger
Current Request - Ledger
Current Response - Ledger
Data - Ledger
Data Request - Ledger
Data Response - Ledger
Entry Request - Ledger
Entry Response - Ledger
Request - Ledger
Response - Levels
- Various information about the transaction cost, in fee levels. The ratio in fee levels applies to any transaction relative to the minimum cost of that particular transaction.
- Manifest
Request - Manifest
Response - Memo
- Meta
- NFToken
- The NFToken object represents a single non-fungible token (NFT). It is not stored on its own, but is contained in a NFTokenPage object alongside other NFTs.
- NFToken
Offer - NftBuy
Offers Request - NftBuy
Offers Response - NftSell
Offers Request - NftSell
Offers Response - Offer
- An offer in the ledger.
- Offer
Cancel Transaction - An
OfferCancel
transaction https://xrpl.org/offercancel.html - Offer
Create Transaction - An
OfferCreate
transaction https://xrpl.org/offercreate.html - Offer
Params - Path
- Payment
Transaction - An
Payment
transaction https://xrpl.org/payment.html - Ping
Request - Ping
Response - Random
Request - Random
Response - Request
Pagination - Pagination part of request, see https://xrpl.org/markers-and-pagination.html
- Response
Pagination - Pagination part of response, see https://xrpl.org/markers-and-pagination.html
- Retrieve
Ledger Spec - Ledger specification when retrieving data
- Return
Ledger Spec - Ledger specification in returned data
- Ripple
Path Find Request - Ripple
Path Find Response - Ripple
State - An ripple state in the ledger.
- SIValidated
Ledger - SSValidated
Ledger - Server
Info - Server
Info Request - Server
Info Response - Server
State - Server
State Request - Server
State Response - State
Accounting Info - Information about the time the server spends in server state. This can be useful for tracking the long-term health of your server’s connectivity to the network.
- Submit
Request - Submit
Response - Subscribe
Request - Subscribe
Response - Transaction
Common - Transaction
Entry Request - Transaction
Entry Response - Transaction
Event - Trust
SetTransaction - A
TrustSet
transaction https://xrpl.org/trustset.html - TxRequest
- TxResponse
- Unsubscribe
Request - Unsubscribe
Response - Validation
Received Event
Enums§
- Account
Root Flags - Affected
Node - Amount
- Amount of XRP or issued token. See https://xrpl.org/currency-formats.html#specifying-currency-amounts
- Currency
- An XRP Ledger currency. Can be either an Issued Currency (IOU) or the native XRP digital asset. See https://xrpl.org/currency-formats.html#specifying-without-amounts
- Ledger
Index - Specification of ledger to retreive data from by the
ledger_index
property. See <https://xrpl.org/basic-data-types.html#specifying-ledgers - Ledger
Object - Any ledger object. See https://xrpl.org/ledger-object-types.html
- Ledger
Spec - Specification of ledger to retreive data from. See <https://xrpl.org/basic-data-types.html#specifying-ledgers
- Object
Type - Offer
Flags - Result
Category - Category of transaction result https://xrpl.org/transaction-results.html
- Ripple
State Flags - Transaction
- Ledger transaction. See https://xrpl.org/transaction-formats.html
- Transaction
Result - Transaction result https://xrpl.org/tec-codes.html
Constants§
- LSF_
PASSIVE - The object was placed as a passive offer
- LSF_
SELL - The object was placed as a sell offer
Traits§
- Request
- With
Ledger Spec - Request that allows specifying ledger index to execute request on. See https://xrpl.org/basic-data-types.html#specifying-ledgers.
- With
Request Pagination - Request that allows specifying pagination. See https://xrpl.org/markers-and-pagination.html.
- With
Response Pagination - Response that allows specifying pagination. See https://xrpl.org/markers-and-pagination.html.