Get Event Subscription
get
/v1/besu/event-subscriptions/{subId}
Retrieves an event subscription record by subscription identifier.
Request
Path Parameters
-
subId(required): string
Unique identifier for the event subscription.
There's no request body for this operation.
Back to TopResponse
Supported Media Types
- application/json
200 Response
Returns the requested event subscription.
Root Schema : EventSubscriptionResponse
Type:
objectEvent subscription configuration and current lifecycle state.
Show Source
-
callbackUrl: string
HTTPS endpoint receiving callback deliveries.
-
confirmations: integer
Block confirmation threshold configured for the subscription.
-
cursor: object
EventSubscriptionCursor
Event processing position for an event subscription.
-
endBlock: integer
(int64)
Final block number to process before stopping, when provided.
-
expiresAt: string
(date-time)
Timestamp after which the subscription is automatically considered expired.
-
nonEmptyBlocksOnly: boolean
Indicates whether empty
newHeadsblocks are suppressed for this subscription. -
startBlock: integer
(int64)
First block number considered when replaying events, when provided.
-
stateChangedAt: string
(date-time)
Timestamp when the lifecycle status was most recently updated.
-
stateReason: string
Optional transition reason for terminal state changes.
-
status: string
Current lifecycle state of the subscription (
running,stopped,deleted,completed, orexpired). -
subId: string
Unique identifier for the subscription.
-
type: string
Event type for the subscription (
newHeadsorlogs).
Nested Schema : EventSubscriptionCursor
Type:
objectEvent processing position for an event subscription.
Show Source
-
lastFinalizedBlock: integer
(int64)
Most recent finalized block used for head progression.
-
lastFinalizedBlockHash: string
Block hash for
lastFinalizedBlock, when known. -
lastLogBlock: integer
(int64)
Most recent block used for log delivery.
-
lastLogBlockHash: string
Block hash for
lastLogBlock, when known. -
lastLogIndex: integer
Last delivered log index in
lastLogBlockwhen resuming within-block. -
lastLogTxIndex: integer
Last delivered transaction index in
lastLogBlockwhen resuming within-block.
Examples
404 Response
Event subscription 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.
Examples
500 Response
Unexpected service error.
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
Event subscriptions are 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