curl --request POST \
--url https://amoy-indexer.sequence.app/rpc/Indexer/FetchTransactionReceipt \
--header 'Content-Type: application/json' \
--header 'X-Access-Key: <api-key>' \
--data '
{
"txnHash": "<string>",
"maxBlockWait": 123
}
'{
"receipt": {
"txnHash": "<string>",
"txnStatus": "FAILED",
"txnIndex": 123,
"txnType": "LegacyTxnType",
"blockHash": "<string>",
"blockNumber": 123,
"gasUsed": 123,
"effectiveGasPrice": "<string>",
"from": "<string>",
"to": "<string>",
"logs": [
{
"contractAddress": "<string>",
"topics": [
"<string>"
],
"data": "<string>",
"index": 123
}
],
"final": true,
"reorged": true
}
}On Sepolia Mainnet, get the transaction receipt for a specific hash after a certain number of blocks
curl --request POST \
--url https://amoy-indexer.sequence.app/rpc/Indexer/FetchTransactionReceipt \
--header 'Content-Type: application/json' \
--header 'X-Access-Key: <api-key>' \
--data '
{
"txnHash": "<string>",
"maxBlockWait": 123
}
'{
"receipt": {
"txnHash": "<string>",
"txnStatus": "FAILED",
"txnIndex": 123,
"txnType": "LegacyTxnType",
"blockHash": "<string>",
"blockNumber": 123,
"gasUsed": 123,
"effectiveGasPrice": "<string>",
"from": "<string>",
"to": "<string>",
"logs": [
{
"contractAddress": "<string>",
"topics": [
"<string>"
],
"data": "<string>",
"index": 123
}
],
"final": true,
"reorged": true
}
}Public project access key for authenticating requests obtained on Sequence Builder. Example Test Key: AQAAAAAAAEGvyZiWA9FMslYeG_yayXaHnSI
OK
Show child attributes
Represented as uint32 on the server side
FAILED, SUCCESSFUL Represented as uint32 on the server side
LegacyTxnType, AccessListTxnType, DynamicFeeTxnType Was this page helpful?