account_tx RPC Method
Parameters
account
string
REQUIRED
The XRP Ledger account for which to retrieve the transactions
binary
boolean
Specifies whether to return transaction data in binary format
forward
boolean
Specifies the direction of the transaction retrieval. If set to 'true', retrieves transactions from the oldest to the newest. If set to 'false', retrieves transactions from the newest to the oldest
ledger_index_max
integer
Specifies the maximum ledger index for the retrieval. Transactions with a ledger index higher than this value will not be included
ledger_index_min
integer
Specifies the minimum ledger index for the retrieval. Transactions with a ledger index lower than this value will not be included
limit
integer
Specifies the maximum number of transactions to retrieve
ledger_index
string
The ledger index of the ledger to use
ledger_hash
string
A 20-byte hex string for identifying the ledger version
marker
string
REQUIRED
The value from a previous paginated response
Returns
result
object
An object which contains the following fields:
limit
integer
The maximum number of transactions specified in the request
ledger_index_min
integer
The minimum ledger index specified in the request
ledger_index_max
integer
The maximum ledger index specified in the request
transactions
array
A list of transactions involving the specified account
account
string
The XRP Ledger account for which the transactions were retrieved
validated
boolean
Indicates whether the transactions are validated or not
status
string
The status of the request
marker
string
The server-defined value indicating the response is paginated
warnings
array
A list of warnings
id
integer
The ID of the warning
message
string
The warning message
Request
1curl https://docs-demo.xrp-mainnet.quiknode.pro/ \2-X POST \3-H "Content-Type: application/json" \4--data '{"method": "account_tx",5"params": [{6"account": "rLNaPoKeeBjZe2qs6x52yVPZpZ8td4dc6w",7"binary": false,8"forward": false,9"ledger_index_max": -1,10"ledger_index_min": -1,11"limit": 212}],"id":1,"jsonrpc":"2.0"}'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free