author_submitAndWatchExtrinsic - Kusama
Example code for the author_submitAndWatchExtrinsic WebSocket method. Complete guide on how to use author_submitAndWatchExtrinsic WebSocket in GetBlock Web3 documentation.
Submits a signed extrinsic and opens a subscription that streams its lifecycle status — ready, broadcast, inBlock, finalized, or an error. WebSocket only; the standard way to track a transaction to finality.
Parameters
extrinsic
string
Yes
Hex-encoded signed extrinsic
Subscribe
wscat -c wss://shared.eu-central-1.getblock.io/<ACCESS-TOKEN>/
# then send:
{
"jsonrpc": "2.0",
"id": "getblock.io",
"method": "author_submitAndWatchExtrinsic",
"params": [
"0x4d028400d43593c715fdd31c61141abd04a99fd6822c8558854ccde39a5684e7a56da27d..."
]
}Subscription ID
The initial response returns the subscription id used to correlate and cancel the stream:
Notifications
While subscribed, the node pushes a notification per update:
Notification Fields
status
string
object | Lifecycle status: ready, broadcast, inBlock, finalized, dropped, invalid
inBlock
string
Block hash once included
finalized
string
Block hash once finalized
Use Cases
Transaction Tracking: Follow an extrinsic to finalization
Wallet UX: Show live submission status
Reliability: Detect dropped or invalid extrinsics
Error Handling
-32603 / Internal error
Bad extrinsic
The extrinsic is malformed or fails validation
403 / RBAC: access denied
Access denied
The GetBlock access token is missing or incorrect
Last updated
Was this helpful?