Pezkuwi API
    Preparing search index...

    Class GenericExtrinsic<A>

    GenericExtrinsic

    Representation of an Extrinsic in the system. It contains the actual call, (optional) signature and encodes with an actual length prefix

    https://github.com/pezkuwichain/wiki/blob/master/Extrinsic.md#the-extrinsic-format-for-node.

    Can be:

    • signed, to create a transaction
    • left as is, to create an inherent

    Type Parameters

    • A extends AnyTuple = AnyTuple

    Hierarchy

    • ExtrinsicBase<A>
      • GenericExtrinsic

    Implements

    • IExtrinsic<A>
    Index
    createdAtHash?: IU8a

    The block at which this value was retrieved/created (set to non-empty when retrieved from storage)

    initialU8aLength?: number

    The length of the initial encoded value (Only available when the value was constructed from a Uint8Array input)

    isStorageFallback?: boolean

    (internal usage) Indicates that the value was created via a fallback. This is used when with data specified in the metadata when the storage entry is empty.

    With metadata fallback values (available as defaults on most storage entries) any empty storage item should erturn the default. (This is the same as the implementation on the Bizinikiwi runtime)

    registry: Registry

    The registry associated with this object

    LATEST_EXTRINSIC_VERSION: number = LATEST_EXTRINSIC_VERSION
    • get args(): A

      Returns A

      The arguments passed to for the call, exposes args so it is compatible with [[Call]]

    • get argsDef(): ArgsDef

      Returns ArgsDef

      The argument definitions, compatible with [[Call]]

    • get callIndex(): Uint8Array

      Returns Uint8Array

      The actual [sectionIndex, methodIndex] as used in the Call

    • get encodedLength(): number

      Returns number

      The length of the value when encoded as a Uint8Array

    • get meta(): FunctionMetadataLatest

      Returns FunctionMetadataLatest

      The [[FunctionMetadataLatest]] that describes the extrinsic

    • get signature(): EcdsaSignature | Ed25519Signature | Sr25519Signature

      Returns EcdsaSignature | Ed25519Signature | Sr25519Signature

      The actual [[EcdsaSignature]], [[Ed25519Signature]] or [[Sr25519Signature]]

    • get type(): number

      Returns number

      Returns the raw transaction version (not flagged with signing information)

    • Parameters

      • signer: string | Uint8Array | Address
      • signature: Uint8Array | `0x${string}`
      • payload: Uint8Array | `0x${string}` | ExtrinsicPayloadValue

      Returns GenericExtrinsic<A>

      Injects an already-generated signature into the extrinsic

    • Parameters

      • Optionalother: unknown

      Returns boolean

      Compares the value of the input to see if there is a match

    • Returns Inspect

      Returns a breakdown of the hex encoding for this Codec

    • Parameters

      • other: IMethod<AnyTuple>

      Returns other is IMethod<A, any>

      Checks if the source matches this in type

    • Parameters

      • OptionalisBare: boolean

      Returns `0x${string}`

      Returns a hex string representation of the value

    • Parameters

      • OptionalisExpanded: boolean
      • OptionaldisableAscii: boolean

      Returns AnyJson

      Converts the Object to to a human-friendly JSON, with additional fields, expansion and formatting of information

    • Returns string

      Converts the Object to JSON, typically used for RPC transfers

    • Parameters

      • OptionaldisableAscii: boolean

      Returns AnyJson

      Converts the value in a best-fit primitive form

    • Returns string

      Returns the base runtime type name for this instance

    • Returns string

      Returns the string representation of the value

    • Parameters

      • OptionalisBare: boolean

        true when the value is not length-prefixed

      Returns Uint8Array

      Encodes the value as a Uint8Array as per the SCALE specifications