Get Transaction Status by Transaction Hash
get
/v1/besu/transaction/by-hash/{txHash}
Returns a transaction operation for the specified transaction hash.
- The response includes
receipt: nulluntil a receipt is available. - When available,
receiptcontains a redacted receipt summary. receiptDetail=fullincludes the current Besu receipt inrawReceiptfor the same transaction operation.- With
receiptDetail=full,X-Besu-Nodeselects the Besu node used for the live receipt lookup. - The operation is available only to the authenticated caller that created it. Requests for operations created by other callers return HTTP 404.
Request
Path Parameters
-
txHash(required): string
Transaction hash associated with a tracked transaction attempt.
Query Parameters
-
receiptDetail: string
Defaults to
summary. Set tofullto include the current Besu transaction receipt inrawReceipt.Default Value:summaryAllowed Values:[ "summary", "full" ]
Header Parameters
-
X-Besu-Node: string
Optional operator-defined Besu node identifier used only when
receiptDetail=full. Supported values includerpc-0,rpc-1,archive-0,validator-0, andbootnode-0. -
X-Request-Id: string
Optional correlation ID. Echoed in the response when provided.
There's no request body for this operation.
Back to TopResponse
Supported Media Types
- application/json
200 Response
Returns the current transaction status.
Root Schema : TransactionOperationStatusResponse
Type:
objectCurrent status of a tracked transaction operation.
Show Source
-
blockedByNonce: [
"integer",
"null"
]
(int64)
Lower nonce preventing progress, when available.
-
broadcastStatus: object
TransactionBroadcastStatus
Summary of transaction broadcast progress.
-
callbacks: array
callbacks
Redacted callback delivery state for the operation. Callback target URLs, OAuth credentials, TLS private keys, payload bodies, and raw callback errors are excluded.
-
chainId: integer
(int64)
Ethereum chain identifier for the transaction operation.
-
completedAt: [
"string",
"null"
]
Timestamp when the transaction operation completed, when available.
-
createdAt: string
Timestamp when the transaction operation was created.
-
diagnosticClassification: [
"string",
"null"
]
Current diagnostic classification, when available.
-
diagnosticsUrl: string
Non-public lifecycle metadata URL, when available.
-
feeMode: string
Allowed Values:
[ "zero_fee" ]Fee profile used for the transaction operation. -
finalOutcome: [
"string",
"null"
]
Final transaction outcome, when available.
-
latestAttempt: object
TransactionAttemptSummary
Summary of a transaction submission attempt.
-
nextAllocatableNonce: [
"integer",
"null"
]
(int64)
Next nonce available for managed allocation, when available.
-
nonceQueueManaged: boolean
Indicates whether managed nonce allocation is used for the sender.
-
nonceState: [
"string",
"null"
]
Current managed nonce allocation state, when available.
-
operationId: string
Unique identifier for the transaction operation.
-
queuePosition: [
"integer",
"null"
]
(int64)
Number of active lower nonce allocations, when available.
-
rawReceipt: [
"object",
"null"
]
rawReceipt
Additional Properties Allowed:
trueComplete transaction receipt returned by Besu. Available only for by-hash lookups with `receiptDetail=full`; it can include receipt logs and topics. -
receipt:
Receipt summary, when a receipt is available.
-
receiptDetail: string
Allowed Values:
[ "summary", "full" ]Receipt detail level. Defaults to `summary`; `full` is returned only for by-hash lookups requested with `receiptDetail=full`. -
requestedMode: string
Allowed Values:
[ "NORMAL" ]Requested transaction submission mode. -
senderAddress: string
Sender address for the transaction operation.
-
status: string
Allowed Values:
[ "accepted", "signing", "submitted", "mined", "confirmed", "failed" ]Current lifecycle status of the transaction operation. -
statusUrl: string
URL for retrieving the transaction operation status.
-
updatedAt: string
Timestamp when the transaction operation was last updated.
-
walletId: [
"string",
"null"
]
Wallet identifier used for signing, when applicable.
Nested Schema : TransactionBroadcastStatus
Type:
objectSummary of transaction broadcast progress.
Show Source
-
acceptedByNode: boolean
Indicates whether the Besu node accepted the transaction.
-
acceptedByProxy: boolean
Indicates whether the transaction request was accepted.
-
confirmed: boolean
Indicates whether the transaction reached the required confirmation threshold.
-
executionStatus: string
Allowed Values:
[ "unknown", "success", "reverted" ]Execution result for the mined transaction. -
feeMode: string
Allowed Values:
[ "zero_fee" ]Fee profile used for the transaction. -
mined: boolean
Indicates whether the transaction was included in a block.
-
observedInTxpool: string
Allowed Values:
[ "unknown", "observed", "not_observed" ]Indicates whether the transaction was observed in the transaction pool. -
signed: boolean
Indicates whether the transaction was signed.
-
submittedToNode: boolean
Indicates whether the signed transaction was submitted to a Besu node.
-
validated: boolean
Indicates whether the transaction request passed validation.
Nested Schema : callbacks
Type:
arrayRedacted callback delivery state for the operation. Callback target URLs, OAuth credentials, TLS private keys, payload bodies, and raw callback errors are excluded.
Show Source
-
Array of:
object TransactionCallbackDelivery
Redacted callback delivery status for a tracked transaction.
Nested Schema : TransactionAttemptSummary
Type:
objectSummary of a transaction submission attempt.
Show Source
-
attemptId: string
Unique identifier for the transaction submission attempt.
-
attemptNumber: integer
Sequential number of the submission attempt.
-
createdAt: string
Timestamp when the attempt was created.
-
nonce: [
"integer",
"null"
]
(int64)
Nonce used for the attempt, when available.
-
normalizedErrorCode: [
"string",
"null"
]
Standardized error code for the submission attempt, when available. Use this value to classify failures programmatically.
-
sendStatus: string
Current submission status for the attempt.
-
txHash: [
"string",
"null"
]
Transaction hash for the attempt, when available.
-
updatedAt: string
Timestamp when the attempt was last updated.
Nested Schema : rawReceipt
Type:
objectAdditional Properties Allowed:
trueComplete transaction receipt returned by Besu. Available only for by-hash lookups with `receiptDetail=full`; it can include receipt logs and topics.
Nested Schema : TransactionCallbackDelivery
Type:
objectRedacted callback delivery status for a tracked transaction.
Show Source
-
attemptCount: integer
Number of delivery attempts performed.
-
callbackId: integer
(int64)
Unique identifier for the callback delivery.
-
createdAt: string
Timestamp when callback delivery was created.
-
deadLetteredAt: [
"string",
"null"
]
Timestamp when delivery entered the dead-letter state, when available.
-
deliveredAt: [
"string",
"null"
]
Timestamp when callback delivery succeeded, when available.
-
deliveryState: string
Allowed Values:
[ "registered", "pending", "claimed", "delivered", "dead_letter" ]Current delivery state of the callback. -
eventType: string
Transaction lifecycle event associated with the callback.
-
lastAttemptAt: [
"string",
"null"
]
Timestamp of the most recent delivery attempt, when available.
-
lastError: [
"string",
"null"
]
Concise, sanitized delivery error classification.
-
nextAttemptAt: [
"string",
"null"
]
Timestamp of the next scheduled delivery attempt, when available.
-
updatedAt: string
Timestamp when callback delivery was last updated.
Examples
400 Response
Validation failed.
Root Schema : ErrorResponse
Type:
objectError response returned by the service.
Show Source
-
decodedError:
Returned only when `decode.errors=true` and decodable revert bytes are present.
-
error: string
Short error summary suitable for display.
-
hint: [
"string",
"null"
]
Optional guidance for resolving the error.
-
message: [
"string",
"null"
]
Additional error details, when available.
-
policy:
Present for policy warnings or denials such as preflight failure.
-
preflight:
Present for preflight-gated transaction submission errors.
-
requestId: [
"string",
"null"
]
Client-provided correlation ID echoed in the response.
-
upstreamCode: [
"integer",
"null"
]
Besu node error code, when provided by the RPC endpoint.
-
upstreamData: [
"string",
"null"
]
Error data returned by the Besu node in 0x-prefixed hexadecimal or JSON format, when available.
-
upstreamError: [
"object",
"null"
]
upstreamError
Additional Properties Allowed:
trueComplete error object returned by the Besu node, including code, message, and data fields, when available.
Nested Schema : upstreamError
Type:
objectAdditional Properties Allowed:
trueComplete error object returned by the Besu node, including code, message, and data fields, when available.
Examples
404 Response
Transaction operation not found.
Root Schema : ErrorResponse
Type:
objectError response returned by the service.
Show Source
-
decodedError:
Returned only when `decode.errors=true` and decodable revert bytes are present.
-
error: string
Short error summary suitable for display.
-
hint: [
"string",
"null"
]
Optional guidance for resolving the error.
-
message: [
"string",
"null"
]
Additional error details, when available.
-
policy:
Present for policy warnings or denials such as preflight failure.
-
preflight:
Present for preflight-gated transaction submission errors.
-
requestId: [
"string",
"null"
]
Client-provided correlation ID echoed in the response.
-
upstreamCode: [
"integer",
"null"
]
Besu node error code, when provided by the RPC endpoint.
-
upstreamData: [
"string",
"null"
]
Error data returned by the Besu node in 0x-prefixed hexadecimal or JSON format, when available.
-
upstreamError: [
"object",
"null"
]
upstreamError
Additional Properties Allowed:
trueComplete error object returned by the Besu node, including code, message, and data fields, when available.
Nested Schema : upstreamError
Type:
objectAdditional Properties Allowed:
trueComplete error object returned by the Besu node, including code, message, and data fields, when available.
502 Response
Requested receipt is unavailable.
Root Schema : ErrorResponse
Type:
objectError response returned by the service.
Show Source
-
decodedError:
Returned only when `decode.errors=true` and decodable revert bytes are present.
-
error: string
Short error summary suitable for display.
-
hint: [
"string",
"null"
]
Optional guidance for resolving the error.
-
message: [
"string",
"null"
]
Additional error details, when available.
-
policy:
Present for policy warnings or denials such as preflight failure.
-
preflight:
Present for preflight-gated transaction submission errors.
-
requestId: [
"string",
"null"
]
Client-provided correlation ID echoed in the response.
-
upstreamCode: [
"integer",
"null"
]
Besu node error code, when provided by the RPC endpoint.
-
upstreamData: [
"string",
"null"
]
Error data returned by the Besu node in 0x-prefixed hexadecimal or JSON format, when available.
-
upstreamError: [
"object",
"null"
]
upstreamError
Additional Properties Allowed:
trueComplete error object returned by the Besu node, including code, message, and data fields, when available.
Nested Schema : upstreamError
Type:
objectAdditional Properties Allowed:
trueComplete error object returned by the Besu node, including code, message, and data fields, when available.
Examples
503 Response
Transaction lifecycle service is unavailable.
Root Schema : ErrorResponse
Type:
objectError response returned by the service.
Show Source
-
decodedError:
Returned only when `decode.errors=true` and decodable revert bytes are present.
-
error: string
Short error summary suitable for display.
-
hint: [
"string",
"null"
]
Optional guidance for resolving the error.
-
message: [
"string",
"null"
]
Additional error details, when available.
-
policy:
Present for policy warnings or denials such as preflight failure.
-
preflight:
Present for preflight-gated transaction submission errors.
-
requestId: [
"string",
"null"
]
Client-provided correlation ID echoed in the response.
-
upstreamCode: [
"integer",
"null"
]
Besu node error code, when provided by the RPC endpoint.
-
upstreamData: [
"string",
"null"
]
Error data returned by the Besu node in 0x-prefixed hexadecimal or JSON format, when available.
-
upstreamError: [
"object",
"null"
]
upstreamError
Additional Properties Allowed:
trueComplete error object returned by the Besu node, including code, message, and data fields, when available.
Nested Schema : upstreamError
Type:
objectAdditional Properties Allowed:
trueComplete error object returned by the Besu node, including code, message, and data fields, when available.