author_submitAndWatchExtrinsic

Submit and subscribe to watch an extrinsic until it is unsubscribed.

Example Request and Result for author_submitAndWatchExtrinsic method

In this section, we provide an illustrative example of a request made to retrieve details contents using the author_submitAndWatchExtrinsic method. Additionally, we present the resulting response containing information about subscribing to watch an extrinsic until it is unsubscribed.

This method is available only with WebSocket connection.

Parameters

FieldTypeDescription

extrinsic*

string

The fully formatted extrinsic that you want to submit to the network

The example in this section uses a non-existing project id.

Make sure you replace it with your Vara Mainnet endpoint when issuing the API calls.

Don't have a project id? Here's a straightforward guide on how to obtain one!

Submit and subscribe to watch an extrinsic until it is unsubscribed.

POST wss://vara-mainnet.blastapi.io/<project-id>

Request Body

NameTypeDescription

extrinsic*

string

0x4902840092e18d8c3794ca19985547f9ea887f38f8a0e74488aefc2fd36eca57d86d4bd800adbf148201412504ef5e005d05607e0edbddd0e17edf350972002fa15ff8fc7eed1f542edd98eb3c73bbfd899dd5c67cd47bab05823a4aa041d0e3d972504408007286110000050700bc6c427a82323a81fa5b2d69f0adba287a8c1172f70ee94181e2c22d5cf2e02d0700aaa0680b

The status of the submitted extrinsic

Curl Request example

wscat -c wss://vara-mainnet.blastapi.io/<project-id>
# wait for connection
message: {"id":1,"jsonrpc":"2.0","method":"author_submitAndWatchExtrinsic","params":["0x91028400f8b38f6e10e81d365db7349fe60ad1529047c27f0b5df2029178528561e37a56011a888b217bed6776564392dc90faf5890e00c613758a5072450bb2a28b2b383f4c1da3fd19b86a4b4a32167c6ae8c1c755938d0af98b29ac8c5db0576b8a3b85060104006803c05a8ac14d94c845a4a070129cc8449161f79b787f4193650229d46d401003400403004429353a0000000000000000000000000000000000000000"]}

Last updated