Skip to main content

tx RPC Method

Retrieves information on a single transaction, by its identifying hash

Updated on
Jun 11, 2026

Parameters

object
object
REQUIRED

The tx request object.

transaction
string
REQUIRED

The 256-bit hash of the transaction, as hex

binary
boolean

If true, return transaction data and metadata as binary serialized to hexadecimal strings

Returns

result
object

An object which contains the following fields:

Account
string

The unique address of the account that initiated the transaction

Amount
string

The amount of the transaction

Destination
string

The recipient of the transaction

Fee
string

The amount of XRP, in drops, to be destroyed as a cost for distributing this transaction to the network

Flags
integer

The set of bit-flags for this transaction

LastLedgerSequence
integer

The highest ledger index this transaction can appear in

Memos
array

The additional arbitrary information used to identify this transaction

Sequence
integer

The sequence number of the account sending the transaction

SigningPubKey
string

The hex representation of the public key that corresponds to the private key used to sign this transaction

TransactionType
string

The type of transaction. Valid transaction types include: Payment, OfferCreate, TrustSet, and many others

TxnSignature
string

The signature that verifies this transaction as originating from the account it says it is from

hash
string

The hash of the transaction

metadata
object

The metadata object which contain the following fields:

AffectedNodes
array

The AffectedNodes object which contain the following fields:

ModifiedNode
object

The ModifiedNode object which contain the following fields:

FinalFields
object

The content fields of the ledger object after applying any changes from this transaction

Account
string

The account related to the modified node

Balance
string

The balance of the account

Flags
integer

The set of bit-flags for this transaction

OwnerCount
integer

The number of owners for the account

Sequence
integer

The sequence number of the account

LedgerEntryType
string

The type of ledger object that was deleted

LedgerIndex
string

The ID of this ledger object in the ledger's state tree

PreviousFields
object

The previous values for all fields of the object that were changed as a result of this transaction

Balance
string

The previous balance of the account

Sequence
integer

The previous sequence number of the account

PreviousTxnID
string

The identifying hash of the previous transaction to modify this ledger object

PreviousTxnLgrSeq
integer

The Ledger Index of the ledger version containing the previous transaction to modify this ledger object

TransactionIndex
integer

The transaction's position within the ledger that included it

TransactionResult
string

A result code indicating whether the transaction succeeded or how it failed

delivered_amount
string

The currency Amount actually received by the Destination account

ledger_index
integer

The index of the ledger to retrieve information from

date
integer

The timestamp of the transaction, represented as the number of seconds since the Unix epoch

validated
boolean

It indicates whether the result has been validated

status
string

The status of the request

warnings
array

An array of warning objects, each containing the following fields:

id
integer

The ID of the warning

message
string

The warning message

Request
Response
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": {
5
"result": {
6
"Account": "example_value",
7
"Amount": "example_value",
8
"Destination": "example_value",
9
"Fee": "example_value",
10
"Flags": 1,
11
"LastLedgerSequence": 1,
12
"Memos": [],
13
"Sequence": 1,
14
"SigningPubKey": "example_value",
15
"TransactionType": "example_value",
16
"TxnSignature": "example_value",
17
"hash": "example_value",
18
"metadata": {
19
"AffectedNodes": [
20
{
21
"ModifiedNode": {
22
"FinalFields": {
23
"Account": "example_value",
24
"Balance": "example_value",
25
"Flags": 1,
26
"OwnerCount": 1,
27
"Sequence": 1
28
},
29
"LedgerEntryType": "example_value",
30
"LedgerIndex": "example_value",
31
"PreviousFields": {
32
"Balance": "example_value",
33
"Sequence": 1
34
},
35
"PreviousTxnID": "example_value",
36
"PreviousTxnLgrSeq": 1
37
}
38
}
39
],
40
"TransactionIndex": 1,
41
"TransactionResult": "example_value",
42
"delivered_amount": "example_value"
43
},
44
"ledger_index": 1,
45
"date": 1,
46
"validated": false,
47
"status": "example_value"
48
},
49
"warnings": [
50
{
51
"id": 1,
52
"message": "example_value"
53
}
54
]
55
}
56
}
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": {
5
"result": {
6
"Account": "example_value",
7
"Amount": "example_value",
8
"Destination": "example_value",
9
"Fee": "example_value",
10
"Flags": 1,
11
"LastLedgerSequence": 1,
12
"Memos": [],
13
"Sequence": 1,
14
"SigningPubKey": "example_value",
15
"TransactionType": "example_value",
16
"TxnSignature": "example_value",
17
"hash": "example_value",
18
"metadata": {
19
"AffectedNodes": [
20
{
21
"ModifiedNode": {
22
"FinalFields": {
23
"Account": "example_value",
24
"Balance": "example_value",
25
"Flags": 1,
26
"OwnerCount": 1,
27
"Sequence": 1
28
},
29
"LedgerEntryType": "example_value",
30
"LedgerIndex": "example_value",
31
"PreviousFields": {
32
"Balance": "example_value",
33
"Sequence": 1
34
},
35
"PreviousTxnID": "example_value",
36
"PreviousTxnLgrSeq": 1
37
}
38
}
39
],
40
"TransactionIndex": 1,
41
"TransactionResult": "example_value",
42
"delivered_amount": "example_value"
43
},
44
"ledger_index": 1,
45
"date": 1,
46
"validated": false,
47
"status": "example_value"
48
},
49
"warnings": [
50
{
51
"id": 1,
52
"message": "example_value"
53
}
54
]
55
}
56
}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free