Skip to main content

platform.getTx RPC Method

Returns the specified transaction.

Updated on
Dec 4, 2024

platform.getTx RPC Method

Parameters

txID
string
REQUIRED
The transaction id
encoding
string
It specifies the format for the returned transaction. Can be either hex or json

Returns

result
object
The result containing the transaction information
tx
object
The transaction details
unsignedTx
object
The unsigned transaction details
networkID
integer
The network ID for the transaction
blockchainID
string
The blockchain ID where the transaction occurs
outputs
array
The list of outputs for the transaction
assetID
string
The asset ID for the output
fxID
string
The function ID for the output
output
object
Details about the output
addresses
array
Addresses associated with the output
amount
integer
The amount of the output
locktime
integer
The locktime for the output
threshold
integer
The threshold for spending the output
inputs
array
The list of inputs for the transaction
memo
string
The memo field for the transaction
sourceChain
string
The source chain ID for the transaction
importedInputs
array
The imported inputs for the transaction
txID
string
The transaction ID for the imported input
outputIndex
integer
The output index for the imported input
assetID
string
The asset ID for the imported input
fxID
string
The function ID for the imported input
input
object
Details about the imported input
amount
integer
The amount of the imported input
signatureIndices
array
The signature indices for the imported input
credentials
array
The credentials for the transaction
signatures
array
The list of signatures for the transaction
encoding
string
The encoding format for the transaction
Request
1
curl --location --request POST https://docs-demo.flare-mainnet.quiknode.pro/ext/bc/P \
2
--header 'Content-Type: application/json' \
3
--data-raw '{
4
"jsonrpc":"2.0",
5
"id" :1,
6
"method" :"platform.getTx",
7
"params" :{
8
"txID":"QNc6KfssJB3zj88U6rTkznthJHr6gWi3PsNsEcYCJq47QPvzK",
9
"encoding": "json"
10
}
11
}'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free