Parse Transaction(s)
Parse individual Solana transactions.
The max number of transactions you can pass in to this endpoint is 100. We *only* parse NFT actions, Jupiter swaps, and SPL related transactions so far. Do not rely on these parsers for DeFi or non-NFT, Jupiter, and SPL transactions.
Returns an array of enriched, human-readable transactions of the given transaction signatures. Please see Supported Protocols to see parsing coverage.
Use https://api-devnet.helius.xyz/v0/transactions for devnet transactions
post
https://api.helius.xyz
/v0/transactions
Returns an array of enriched, human-readable versions of the given transactions.
Parameters
Query
api-key*
string
The api key.
commitment
string
How finalized a block must be to be included in the search. If not provided, will default to "finalized" commitment. Note that "processed" level commitment is not supported.
Body
Example
Schema
{
"transactions": [
"string"
]
}
Responses
200: OK
Returns an array of enriched transactions.
400: Bad Request
Invalid request.
401: Unauthorized
Unauthorized request.
403: Forbidden
Request was forbidden.
404: Not Found
The specified resource was not found.
429: Too Many Requests
Exceeded rate limit.
500: Internal Server Error
The server encountered an unexpected condition that prevented it from fulfilling the request.
parseTransaction.js
const url = "https://api.helius.xyz/v0/transactions/?api-key=<your-key>";
const parseTransaction = async () => {
const response = await fetch(url, {
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
body: JSON.stringify({
transactions: ["your-txn-id-here"],
}),
});
const data = await response.json();
console.log("parsed transaction: ", data);
};
parseTransaction();
Last modified 1mo ago