Module

x/polkadot/mod.ts>types.GenericExtrinsicV4

Package publishing for deno.land/x/polkadot
Go to Latest
class types.GenericExtrinsicV4
implements IExtrinsicImpl
extends Struct
import { types } from "https://dotland.deno.dev/x/polkadot@0.2.35/mod.ts";
const { GenericExtrinsicV4 } = types;

Constructors

new
GenericExtrinsicV4(
registry: Registry,
value?: Uint8Array | ExtrinsicValueV4 | Call,
unnamed 2?: Partial<ExtrinsicOptions>,
)

Properties

readonly
encodedLength: number
readonly
method: Call
readonly
signature: ExtrinsicSignatureV4
readonly
version: number

Methods

addSignature(
signer: Address | Uint8Array | string,
signature: Uint8Array | HexString,
payload: ExtrinsicPayloadValue | Uint8Array | HexString,
): GenericExtrinsicV4
sign(account: IKeyringPair, options: SignatureOptions): GenericExtrinsicV4
signFake(signer: Address | Uint8Array | string, options: SignatureOptions): GenericExtrinsicV4

Static Methods

decodeExtrinsic(
registry: Registry,
value?: Call | Uint8Array | ExtrinsicValueV4,
isSigned?,
): ExtrinsicValueV4