import type { ExtrinsicEra } from '../../interfaces/extrinsics'; import type { Balance, Hash, Index } from '../../interfaces/runtime'; import type { ExtrinsicPayloadValue, IKeyringPair, Registry } from '../../types'; import { Compact } from '../../codec/Compact'; import { Struct } from '../../codec/Struct'; import { Bytes } from '../../primitive/Bytes'; import { u32 } from '../../primitive/U32'; /** * @name GenericExtrinsicPayloadV4 * @description * A signing payload for an [[Extrinsic]]. For the final encoding, it is variable length based * on the contents included */ export declare class GenericExtrinsicPayloadV4 extends Struct { #private; constructor(registry: Registry, value?: ExtrinsicPayloadValue | Uint8Array | string); /** * @description The block [[Hash]] the signature applies to (mortal/immortal) */ get blockHash(): Hash; /** * @description The [[ExtrinsicEra]] */ get era(): ExtrinsicEra; /** * @description The genesis [[Hash]] the signature applies to (mortal/immortal) */ get genesisHash(): Hash; /** * @description The [[Bytes]] contained in the payload */ get method(): Bytes; /** * @description The [[Index]] */ get nonce(): Compact; /** * @description The specVersion for this signature */ get specVersion(): u32; /** * @description The application key */ get key(): Compact; /** * @description The tip [[Balance]] */ get tip(): Compact; /** * @description The transactionVersion for this signature */ get transactionVersion(): u32; /** * @description Sign the payload with the keypair */ sign(signerPair: IKeyringPair): Uint8Array; }