Interface: TransactionPayload
base/types.TransactionPayload
Unsigned transaction data in JSON a format
Properties
metadata
• Readonly
metadata: Record
<string
, string
>
Additional information attached to the payload, such as IDs or memos about the transaction.
Note
this is not chain data. Its for convenience for attaching a trace ID
Defined in
method
• Readonly
method: `0x${string}`
A hex representation of the core extrinsic information. i.e. the extrinsic and args, but does not contain information about who is to sign the transaction.
Defined in
multiSig
• Readonly
multiSig: null
| string
The address of the MultiSig if the transaction is a proposal.
Will be set only if the signing account is a MultiSig signer and the transaction is not approving or rejecting an existing proposal
Defined in
payload
• Readonly
payload: SignerPayloadJSON
This is what a Polkadot signer ".signPayload" method expects
Note
this field is recommended to be passed in with the signature when submitting a signed transaction
Defined in
rawPayload
• Readonly
rawPayload: SignerPayloadRaw
An alternative representation of the payload for which Polkadot signers providing ".signRaw" expect.
Note
using the field payload
is generally recommended. The raw version is included so any polkadot compliant signer can sign.
Note
signRaw
typically returns just the signature. However signatures must be prefixed with a byte to indicate the type. For ed25519 signatures prepend a zero byte (0x00
), for sr25519 0x01
byte to indicate sr25519 if the signer implementation does not already do so.