Skip to main content

Receipt

Returns the status of a given transaction receipt by hash


Endpoint

GET /receipt/{chainId}/{transactionHash}

The following describes the usage with placeholder parameters on a testnet gateway URL:

curl -X GET https://testnets.tableland.network/api/v1/receipt/{chainId}/{transactionHash} \
-H 'Accept: application/json'

Parameters

NameInTypeRequiredDescription
chainIdpathinteger(int32)trueThe parent chain to target
transactionHashpathstringtrueThe transaction hash to request

Responses

StatusMeaningDescriptionSchema
200https://tools.ietf.org/html/rfc7231#section-6.3.1successful operationTransactionReceipt
400https://tools.ietf.org/html/rfc7231#section-6.5.1Invalid chain identifier or transaction hash formatNone
404https://tools.ietf.org/html/rfc7231#section-6.5.4No transaction receipt found with the provided hashNone
429https://tools.ietf.org/html/rfc6585#section-4Too Many RequestsNone

This operation does not require authentication

Response properties

NameTypeRequiredRestrictionsDescription
table_idstringfalsenoneThis field is deprecated
table_ids[string]falsenonenone
transaction_hashstringfalsenonenone
block_numberinteger(int64)falsenonenone
chain_idinteger(int32)falsenonenone
errorstringfalsenonenone
error_event_idxinteger(int32)falsenonenone

Example

curl -X GET https://testnets.tableland.network/api/v1/receipt/80001/0x02f319429b8a7be1cbb492f0bfbf740d2472232a2edadde7df7c16c0b61aa78b \
-H 'Accept: application/json'

Returns a successful (200) response:

{
"table_id": "1",
"table_ids": ["1"],
"transaction_hash": "0x02f319429b8a7be1cbb492f0bfbf740d2472232a2edadde7df7c16c0b61aa78b",
"block_number": 27055540,
"chain_id": 80001
}