Skip to main content

platform.getTx RPC Method

Returns the specified transaction.

Updated on
Nov 2, 2023

platform.getTx RPC Method

Parameters

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

Returns

txunsignedTxnetworkIDblockchainIDoutputsassetIDfxIDoutputaddressesamountlocktimethresholdinputstxIDoutputIndexassetIDfxIDinputamountsignatureIndicesmemodestinationChainexportedOutputsassetIDfxIDoutputaddressesamountlocktimethresholdcredentialssignaturesid
objectstringintegerstringobjectstringstringstringstringintegerintegerintegerobjectstringintegerstringstringstringintegerstringstringstringstringstringstringstringstringintegerintegerintegerintegerstringstring
tx -object - The tx object with the following field:unsignedTx -string - The unsigned transaction associated with the specified transaction IDnetworkID -integer - The ID of the Avalanche network where the transaction was createdblockchainID -string - The ID of the blockchain on which the transaction was createdoutputs -object - An array of output details for the transactionassetID -string - An asset ID associated with the transactionfxID -string - The exchange rate used in the transactionoutput -string - The specific output associated with the transactionaddresses -string - An array of Avalanche addresses associated with the transactionamount -integer - The amount of the assetlocktime -integer - The time at which the output was locked, in Unix timestamp format. This field is only present for locked outputsthreshold -integer - The number of signatures required to spend the output. This field is only present for threshold outputsinputs -object - An array of input details for the transactiontxID -string - The ID of the transactionoutputIndex -integer - The output at a specific index in the outputs arrayassetID -string - An asset ID associated with the transactionfxID -string - The exchange rate used in the transactioninput -string - An array of input details for the transactionamount -integer - The amount of the assetsignatureIndices -string - The indices of the signatures that are required to spend the transaction's outputsmemo -string - A string containing any memo or message included in the transactiondestinationChain -string - The ID of the destination chain for the exported assetsexportedOutputs -string - An array of output details for the assets being exportedassetID -string - An asset ID associated with the transactionfxID -string - The exchange rate used in the transactionoutput -string - The output associated with the transactionaddresses -string - An array of Avalanche addresses associated with the transactionamount -integer - The amount of the assetlocktime -integer - The time at which the output was locked, in Unix timestamp format. This field is only present for locked outputsthreshold -integer - The number of signatures required to spend the output. This field is only present for threshold outputscredentials -integer - The required credentialssignatures -string - Specifies the encoding format used in the requestid -string - The transaction id
unsignedTx
string
The unsigned transaction associated with the specified transaction ID
networkID
integer
The ID of the Avalanche network where the transaction was created
blockchainID
string
The ID of the blockchain on which the transaction was created
outputs
object
An array of output details for the transaction
assetID
string
An asset ID associated with the transaction
fxID
string
The exchange rate used in the transaction
output
string
The specific output associated with the transaction
addresses
string
An array of Avalanche addresses associated with the transaction
amount
integer
The amount of the asset
locktime
integer
The time at which the output was locked, in Unix timestamp format. This field is only present for locked outputs
threshold
integer
The number of signatures required to spend the output. This field is only present for threshold outputs
inputs
object
An array of input details for the transaction
txID
string
The ID of the transaction
outputIndex
integer
The output at a specific index in the outputs array
assetID
string
An asset ID associated with the transaction
fxID
string
The exchange rate used in the transaction
input
string
An array of input details for the transaction
amount
integer
The amount of the asset
signatureIndices
string
The indices of the signatures that are required to spend the transaction's outputs
memo
string
A string containing any memo or message included in the transaction
destinationChain
string
The ID of the destination chain for the exported assets
exportedOutputs
string
An array of output details for the assets being exported
assetID
string
An asset ID associated with the transaction
fxID
string
The exchange rate used in the transaction
output
string
The output associated with the transaction
addresses
string
An array of Avalanche addresses associated with the transaction
amount
integer
The amount of the asset
locktime
integer
The time at which the output was locked, in Unix timestamp format. This field is only present for locked outputs
threshold
integer
The number of signatures required to spend the output. This field is only present for threshold outputs
credentials
integer
The required credentials
signatures
string
Specifies the encoding format used in the request
id
string
The transaction id
Request
1
curl --location --request POST https://docs-demo.avalanche-mainnet.quiknode.pro/ext/bc/C/rpc/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":"U15zcJLxmXLCG6PbvSXL3RaZwqfv2YgeM1oEK1ThbxThbPMKS",
9
"encoding": "json"
10
}
11
}'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free