NodeSubmitter
Submission through the node's JSON-RPC (author_submitExtrinsic of
midnight.sendMnTransaction): the node checks the transaction and takes it into its
pool, or refuses it with its reason. The transport is nodeTransport's: HTTP for a URL
with an access token, the WebSocket for a ws(s):// URL without one.
Implements
Section titled “Implements”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new NodeSubmitter(
nodeUrl):NodeSubmitter
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
nodeUrl |
string |
Returns
Section titled “Returns”NodeSubmitter
Methods
Section titled “Methods”submit()
Section titled “submit()”submit(
tx):Promise<void>
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
tx |
Uint8Array |
Returns
Section titled “Returns”Promise<void>
Implementation of
Section titled “Implementation of”close()
Section titled “close()”close():
Promise<void>
Returns
Section titled “Returns”Promise<void>