Zerpedia/API methods

API methods

The requests a program can send to an XRP Ledger server, each in plain words.

All 25 lists

A14

Account MethodsAccount methods are the API methods you use to work with account info. An account in the XRP Ledger represents a holder of XRP and a sender of transactions.account_channelsThe account_channels method returns information about an account's payment channels. It includes only the channels where that account is the source, also called the owner, not the destination.account_currenciesThe account_currencies command retrieves a list of currencies that an account can send or receive, based on its trust lines. It is not a thoroughly confirmed list, but it can be used to fill user ...account_infoThe account_info command looks up one account on the XRP Ledger and returns its information, its activity and its XRP balance. Everything in the answer belongs to one particular version of the ledger.account_linesThe account_lines method returns information about an account's trust lines, which hold its balances in all currencies and assets other than XRP. The information belongs to one particular version of ...account_mptoken_issuancesaccount_mptoken_issuances is a method that returns information about the MPT issuances an account has created. It is only available using Clio, not xrpld, and is new in Clio v2.7.0.account_mptokensThe account_mptokens method lists the MPTs that one account holds, with the balance of each. MPT is short for multi-purpose token. It works only on a Clio server, not on xrpld.account_nftsThe account_nfts method returns a list of NFToken objects for the account you specify. The result is a list of the NFTs that account owns.account_objectsaccount_objects is a command that returns all ledger entries owned by an account, in their raw ledger format. Trust lines and offers are two of the types of ledger entry an account can have.account_offersThe account_offers method retrieves a list of offers made by a given account. It shows the offers that are outstanding as of a particular ledger version.account_txThe account_tx method returns a list of validated transactions that involve one account. You can narrow it to a range of ledgers and read the list page by page.Admin API MethodsAdmin API methods are commands for the people who run an xrpld server, a server in the XRP Ledger network. They are used to manage, monitor and debug that server.amm_infoThe amm_info method gets information about one Automated Market Maker, or AMM, in the ledger. It shows the assets in the AMM's pool, its trading fee and its LP Tokens.API ConventionsAPI Conventions is a section that describes the data types and formats of the HTTP APIs of the xrpld server. Those APIs are JSON-RPC and WebSocket.

B2

book_changesThe book_changes method reports how the order books in the decentralized exchange changed in one ledger version, compared with the previous one. This may be useful for building candlestick charts.book_offersThe book_offers method retrieves a list of offers between two currencies, also known as an order book. It leaves out unfunded offers and reports how much of each remaining offer is currently funded.

C7

can_deleteThe can_delete method tells an xrpld server the latest ledger version that it may delete. It is used with online deletion, the routine that removes ledgers from the server, when advisory deletion is ...channel_authorizeThe channel_authorize method creates a signature that can be used to redeem a specific amount of XRP from a payment channel. A signature proves who approved something.channel_verifyThe channel_verify method checks whether a signature is valid for redeeming a specific amount of XRP from a payment channel. A signature is a piece of data that proves who approved something.Clio MethodsClio methods are API methods that only the Clio server provides. The xrpld server does not offer them.Compact Transaction IdentifierA Compact Transaction Identifier, or CTID, is a unique identifier for a validated transaction. It applies across any network, not just the XRP Ledger Mainnet.connectThe connect command forces an xrpld server to connect to a specific peer server. You name that server by its IP address.consensus_infoThe consensus_info method gives information about the consensus process, for debugging purposes. In that process, peers propose versions of a ledger, and this method shows where the server stands in ...

D1

deposit_authorizedThe deposit_authorized command tells you whether one account is authorized to send payments directly to another. An account can require authorization before money is delivered to it.

E1

Error FormattingWhen a request to an xrpld server fails, the server tries to respond in a standardized error format. This page describes that format and the errors that any method can return.

F4

featureThe feature method returns information about the amendments this server knows about. It shows whether each one is enabled and whether the server is voting in favor of it in the amendment process.featureThe feature command returns information about the amendments a server knows about. It tells you whether each one is enabled and whether the server knows how to apply it.feeThe fee command reports the current state of the open-ledger requirements for the transaction cost. It shows what a transaction has to pay right now to be included in the ledger or to wait in the ...fetch_infoThe fetch_info method returns information about objects this server is fetching from the network at this moment, and how many peers have that information. It can also be used to reset the current ...

G3

gateway_balancesThe gateway_balances command calculates the total balances of trust line tokens issued by a given account. It can leave out amounts held by operational addresses, and it does not support MPTs.get_aggregate_priceThe get_aggregate_price method retrieves the aggregate price of the Oracle objects you name. It returns three price statistics: mean, median and trimmed mean.get_countsThe get_counts method gives various statistics about the health of the server. Most of them are the number of objects of different types that the server holds in memory at this moment.

H1

Health CheckThe Health Check is a special peer port method that reports on the health of one xrpld server. It is intended for automated monitoring, to recognize outages and prompt a response such as restarting ...

J1

jsonThe json method is a proxy for running other commands. It runs another command for you and accepts that command's parameters as a JSON value. It is exclusive to the Commandline client.

L14

ledgerThe ledger command on a Clio server returns information about a version of the public ledger. By default, the Clio server returns validated ledger data.ledgerThe ledger method retrieves information about the public ledger. You can ask for one ledger version and, if you want, the transactions it contains.Ledger MethodsLedger methods are the requests you use to retrieve ledger information.ledger_acceptThe ledger_accept method forces the server to close the ledger it is working on and move to the next ledger number. It is meant for testing only and works only when the xrpld server runs in ...ledger_cleanerThe ledger_cleaner command controls the Ledger Cleaner, a maintenance process that can find and repair corruption in the server's database of ledgers.ledger_closedThe ledger_closed method returns the unique identifiers of the most recently closed ledger. That ledger is not necessarily validated and immutable yet, so it is not certain to be final.ledger_currentThe ledger_current method returns the unique identifiers of the current in-progress ledger. It is mostly useful for testing, because the ledger it returns is still in flux.ledger_dataledger_data is a method that retrieves the contents of the ledger you specify. By making several calls one after another, you can retrieve the entire contents of a single ledger version.ledger_entryThe ledger_entry method returns one single entry from the XRP Ledger in its raw format. An entry is one stored record, such as an account, an escrow or a check.ledger_indexThe ledger_index command finds the last closed ledger at a given real-world time. This can help you match events that happened outside the ledger with historical data in the XRP Ledger.ledger_requestThe ledger_request command tells a server to fetch a specific ledger version from the peers it is connected to. It only works if one of the server's immediately connected peers has that ledger.log_levelThe log_level command changes how much detail an xrpld server writes to its logs. It can also return the current logging level for each category of log messages. A category is called a partition.Logging and Data Management MethodsLogging and Data Management Methods is a group of methods you use to manage log levels and other data, such as ledgers.logrotateThe logrotate command closes and reopens the server's log file. It is intended to help with log rotation on Linux file systems.

M3

manifestThe manifest method reports the current manifest information for a given validator public key. A manifest is a block of data that authorizes an ephemeral signing key, meaning a temporary one, with a ...Markers and PaginationSome requests to an XRP Ledger server have more results than fit in one response. The server then adds a marker, a bookmark you send back to get the next page of data.mpt_holdersThe mpt_holders method returns all holders of one MPT and the balance of each, for a given issuance ID and ledger. MPT is short for multi-purpose token. It is only available on a Clio server, not on ...

N6

nft_buy_offersThe nft_buy_offers method returns a list of buy offers for one NFT, which the XRP Ledger calls an NFToken. A buy offer is an offer someone has placed to buy that NFT.nft_historynft_history is a command that asks the Clio server for the past transaction metadata of one NFT, a non-fungible token. It returns only successful transactions associated with that NFT.nft_infoThe nft_info command asks a Clio server for information about one NFT, a non-fungible token. It tells you who owns it, who issued it and whether it has been burned, which means destroyed.nft_sell_offersThe nft_sell_offers method returns a list of sell offers for one NFT, which the XRP Ledger calls an NFToken. A sell offer is an offer that has been placed to sell that NFT.nfts_by_issuerThe nfts_by_issuer command returns a list of the NFTs, or non-fungible tokens, issued by one account. You can narrow the list to NFTs with one taxon.noripple_checkThe noripple_check command is a quick way to check an account's Default Ripple field and the No Ripple flag of its trust lines. It compares them with the recommended settings.

P13

Path and Order Book MethodsPath and order book methods are the requests you use to work with paths and order books.path_findThe path_find method searches for a path along which a payment can travel from one account to another, and keeps sending updates as the path changes. It works over WebSocket only. Payments made ...Payment Channel MethodsPayment channel methods are the API methods you use to work with payment channels. Payment channels are a tool for repeated payments in one direction, or for temporary credit, between two parties.Peer CrawlerThe Peer Crawler is a special peer port method that reports on the health and layout of the XRP Ledger peer-to-peer network. An xrpld server offers it by default through its Peer Protocol port.Peer Management MethodsPeer Management Methods is a group of methods you use to manage your server's peer-to-peer connections.Peer Port MethodsPeer port methods are a few special API methods that xrpld servers provide from the same port they use for XRP Ledger peer protocol communications. They report on the server itself and its connection ...peer_reservations_addThe peer_reservations_add method adds or updates a reserved slot for one specific peer server in the XRP Ledger peer-to-peer network. A peer server is another server that connects to yours.peer_reservations_delThe peer_reservations_del method removes one specific peer reservation, if it exists. A peer reservation is a slot that a server keeps for one named peer server.peer_reservations_listThe peer_reservations_list method lists the peer reservations a server has. A peer reservation is a slot the server keeps for one named peer server.peerspeers is a command that lists all other xrpld servers currently connected to this one over the Peer Protocol, with information on their connection and sync status. It is an admin method, so ...pingThe ping command asks a server for an acknowledgement, a short reply that says the request arrived. Clients use it to test the connection status and the latency, which is how long a reply takes.printThe print method returns the current status of various internal subsystems of the server. These include peers, the ledger cleaner and the resource manager.Public API MethodsPublic API methods let you communicate directly with an XRP Ledger server. Any client attached to the server uses them, and they come in groups such as account, ledger and transaction methods.

R5

randomThe random command provides a random number from the server. Clients use it as a source of entropy, which means unpredictable data, for their own random number generation.Rate LimitingAn xrpld server limits how fast a client can make requests on its public APIs. A client that goes over the limit is disconnected, and the server does not serve its requests for a while.Request FormattingYou can send a request to an xrpld server in three ways: over WebSocket, over JSON-RPC or from the commandline. Each way has its own format for naming the API method and passing its parameters.Response FormattingWhen an xrpld server answers a request, the response follows a set format. The format differs slightly between the WebSocket and JSON-RPC interfaces, and the commandline uses the JSON-RPC format.ripple_path_findripple_path_find is a method that gives a single response with a payment path you can use right away. It is a simplified version of the path_find method and is available in both the WebSocket and ...

S15

Server Info MethodsServer info methods are API methods that give you information about the current state of an xrpld server.server_definitionsThe server_definitions command returns a definitions.json file generated from the xrpld server that is currently running. The file is compatible with software development kits, which use it to read ...server_infoThe server_info command asks a Clio server for a readable report about itself: its version, how long it has been running, which ledgers it has and how its data cache is doing. It is new in Clio ...server_info (xrpld)The server_info command asks an xrpld server for a readable report about itself: its version, how well it is connected, how busy it is and which ledgers it holds. Clio servers have their own ...server_stateThe server_state command asks an xrpld server for information about its current state in a form made for programs. It is almost the same as server_info, but XRP amounts come as whole drops and times ...Short Names of Ledger EntriesSome API methods let you filter the ledger entries they return by the type of ledger entry. For that type you can use the canonical name of the ledger entry or a short name.signThe sign method takes a transaction written in JSON and a seed value, and gives back the signed transaction in binary form. A signature proves who approved the transaction.sign_forThe sign_for method provides one signature for a multi-signed transaction. A signature proves who approved something, and a multi-signed transaction carries signatures from more than one signer.simulateThe simulate method runs a dry run of any transaction type. You see the results and metadata the transaction would produce, without committing them to the XRP Ledger.Status and Debugging MethodsStatus and Debugging Methods is a group of methods. You use these methods to check the status of the network and of the server.stopThe stop method gracefully shuts down the server. Gracefully means the server closes down in an orderly way when you ask it to.submitThe submit method applies a transaction and sends it to the network, so that it can be confirmed and included in a future ledger. You can hand in a transaction that is already signed, or let the ...submit_multisignedsubmit_multisigned is a command that applies a multi-signed transaction and sends it to the network to be included in future ledgers. A multi-signed transaction carries the signatures of several ...subscribeThe subscribe method asks a server to keep sending you messages when certain things happen on the XRP Ledger, such as a new validated ledger or a transaction that affects an account you watch.Subscription MethodsSubscription methods let the server push updates to your client when various events happen, so that you can know and react right away. They work over the WebSocket API only.

T4

Transaction MethodsTransaction methods are the API methods you use to work with transactions. Transactions are the only thing that can change the shared state of the XRP Ledger.transaction_entrytransaction_entry is a method that retrieves information on a single transaction from one specific ledger version. The tx method searches all ledgers for a transaction instead, and the source ...txThe tx method looks up a single transaction, by its identifying hash or by its compact transaction identifier (CTID). It returns the transaction's data, its results and whether those results are ...tx_historytx_history is a method that retrieves some of the most recent transactions made. It is removed in API v2.

U2

unsubscribeThe unsubscribe command tells the server to stop sending messages for one subscription or a set of subscriptions.Utility MethodsUtility methods are a group of API methods for convenient tasks, such as ping and random number generation.

V9

validation_createThe validation_create method generates a set of cryptographic keys that an xrpld server can use to identify itself to the network. It only makes the keys in the proper format. It does not change XRP ...Validator List MethodThe validator list method is a special API endpoint that fetches a current, trusted validator list that an xrpld server is using. This often represents the exact list of validators a server trusts.validator_infoThe validator_info method returns the current validator settings of the server, if the server is configured as a validator.validator_list_sitesThe validator_list_sites method returns status information about the sites that serve validator lists.validatorsvalidators is a command that returns readable information about the current list of published and trusted validators the server uses. It is an admin method, so unprivileged users cannot run it.Vault MethodsVault methods are the API methods you use to interact with vaults on the XRP Ledger. A Vault object in the XRP Ledger represents the state of a tokenized vault.vault_infoThe vault_info command returns information about a vault: its owner, the assets available in it and details of the shares it has issued. Everything it returns belongs to one particular version of the ...versionThe version command retrieves the API version information of a Clio server. It tells you the lowest and highest API releases the server supports and the one it uses by default.versionThe version command retrieves the API version information for an xrpld server. It tells you which releases of the API the server supports and which one it uses by default.

W1

wallet_proposeThe wallet_propose method generates a key pair and an XRP Ledger address. It only creates the key and address values. It does not affect the XRP Ledger itself in any way.

X1

xrpld Server StatesA server state is one word that tells you how far an xrpld server is taking part in the global XRP Ledger peer-to-peer network. The states run from not connected at all to proposing its own version ...

107 records, read 6 December 2026. Each one states what its source says and links to it. How Zerpedia is made

zerps Trading tokens on the XRP Ledger carries risk, including total loss. zerps is a self-custodial interface; it does not hold funds, give advice, or execute trades on your behalf.