kinds
:
SignerPayload
, serialized generic signer payload.
SignerPayload
Signs a generic signer payload. Note: converting the generic signer payload to a signable extrinsic requires fetching metadata from the targeted blockchain. Therefore it’s tied to a specificnetwork
rather than the blockchain kind.
Field | Description | Type - Optional |
---|---|---|
network | A supported Substrate network. | String |
kind | SignerPayload | String |
payload | The unsigned signer payload formatted as JSON or a serialized hex-encoded buffer as shown below. | String or SignerPayloadJson |
Hex String
Typescript Example with polkadot{.js}
First install the polkadot{.js} SDK. You can find the full documentation here: https://polkadot.js.org/docs/ Here a code sample to generate a signature via the Dfns TypeScript SDK:SignerPayloadJson
Please refer to the original Polkadot definition for more details: SignerPayloadJson. Note that additional fields will be rejected.Field | Description | Type - Optional |
---|---|---|
address | ss58-encoded address of the sending account. | String |
blockHash | The hash of the checkpoint block, hex encoded. | String |
blockNumber | The checkpoint block number, hex encoded. | String |
era | The number of blocks after the checkpoint for which a transaction is valid, hex encoded. | String |
genesisHash | The genesis hash of the chain, hex encoded. | String |
metadataHash | The metadataHash for the CheckMetadataHash SignedExtension, hex encoded. | String (optional) |
mode | flag indicating whether to verify the metadata hash or not. | Integer (optional) |
method | The encoded method with arguments, hex encoded. | String |
nonce | The nonce for the transaction, hex encoded. | String |
tip | The tip to increase transaction priority, hex encoded. | String |
version | The version of the extrinsic. | Integer |
specVersion | The current spec version for the runtime, hex encoded. | String |
transactionVersion | The current transaction version for the runtime, hex encoded. | String |
signedExtensions | The applicable signed extensions for this runtime. | Array<String> |