Skip to content

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.

new NodeSubmitter(nodeUrl): NodeSubmitter

Parameter Type
nodeUrl string

NodeSubmitter

submit(tx): Promise<void>

Parameter Type
tx Uint8Array

Promise<void>

Submitter.submit


close(): Promise<void>

Promise<void>

Submitter.close