For the complete documentation index, see llms.txt. This page is also available as Markdown.

Author

Method Name : hasKey

Parameter : publicKey-Bytes, keyType-Text

Return Type: bool​

  • interface: api.rpc.author.hasKey

  • jsonrpc: author_hasKey

The hasKey method returns true if the keystore has private keys for the given parameters publicKey and keyType.

Method Name: hasSessionKeys

Parameter: sessionKeys - Bytes

Return Type: bool​

  • interface: api.rpc.author.hasSessionKeys

  • jsonrpc: author_hasSessionKeys

The hasSessionKeys method returns true if the keystore has private keys for the given parameter sessionKeys.

Method Name: insertKey

Parameters: keyType - Text, Suri-Text, publicKey-Bytes

Return Type: Bytes

  • interface: api.rpc.author.insertKey​

  • jsonrpc: author_insertKey

The hasSessionKeys method inserts a key into the keystore for the given parameters keyType, Suri, and publicKey.

Method Name: pendingExtrinsics

Parameters -

Return Type: Vec<Extrinsic>

  • interface: api.rpc.author.pendingExtrinsics

  • jsonrpc: author_pendingExtrinsics

The pendingExtrinsics method returns all pending extrinsics, potentially grouped by sender.

Method Name: removeExtrinsic

Parameters: bytesOrHash - Vec<ExtrinsicOrHash>

Return Type: Vec<Hash>

  • interface: api.rpc.author.removeExtrinsic

  • jsonrpc: author_removeExtrinsic

The removeExtrinsic method removes given extrinsic from the pool and temporarily bans it to prevent re-importing for the given parameter bytesOrHash.

Method Name: rotateKeys

Parameters: -

Return Type: Bytes​

  • interface: api.rpc.author.rotateKeys

  • jsonrpc: author_rotateKeys

The rotateKeys method generates new session keys and returns the corresponding public keys.

Method Name: submitAndWatchExtrinsic

Parameters: extrinsic - Extrinsic

Return Type: ExtrinsicStatus​

  • interface: api.rpc.author.submitAndWatchExtrinsic

  • jsonrpc: author_submitAndWatchExtrinsic

The submitAndWatchExtrinsic method submits and subscribes to watch an extrinsic until unsubscribed for the given parameter extrinsic.

Method Name: submitExtrinsic

Parameter: extrinsic - Extrinsic

Return Type: Hash​

  • interface: api.rpc.author.submitExtrinsic

  • jsonrpc: author_submitExtrinsic

The submitExtrinsic method submits a fully formatted extrinsic for block inclusion for the given parameter extrinsic.

Last updated