Polkadot JS APIGlobals"generic/Call"Call

# Class: Call <S, T, V, E>

name Call

description Extrinsic function descriptor, as defined in https://github.com/paritytech/wiki/blob/master/Extrinsic.md#the-extrinsic-format-for-node.

# Type parameters

S: TypesDef

T: object

V: object

E: object

# Hierarchy

Struct

Call

# Implements

# Index

# Constructors

# Properties

# Accessors

# Methods

# Constructors

# constructor

+ new Call(registry: Registry, value: unknown, meta?: FunctionMetadataLatest): Call

Overrides Struct.constructor

Defined in packages/types/src/generic/Call.ts:121

Parameters:

Name Type
registry Registry
value unknown
meta? FunctionMetadataLatest

Returns: Call

# Properties

# Readonly registry

registry: Registry

Implementation of IMethod.registry

Inherited from Struct.registry

Defined in packages/types/src/codec/Struct.ts:112

# Accessors

# Type

get Type(): E

Inherited from Struct.Type

Defined in packages/types/src/codec/Struct.ts:175

description Returns the Type description to sthe structure

Returns: E


# args

get args(): Codec[]

Defined in packages/types/src/generic/Call.ts:148

description The arguments for the function call

Returns: Codec[]


# argsDef

get argsDef(): ArgsDef

Defined in packages/types/src/generic/Call.ts:156

description The argument definitions

Returns: ArgsDef


# callIndex

get callIndex(): Uint8Array

Defined in packages/types/src/generic/Call.ts:163

description The encoded [sectionIndex, methodIndex] identifier

Returns: Uint8Array


# data

get data(): Uint8Array

Defined in packages/types/src/generic/Call.ts:170

description The encoded data

Returns: Uint8Array


# defKeys

get defKeys(): string[]

Inherited from Struct.defKeys

Defined in packages/types/src/codec/Struct.ts:153

description The available keys for this enum

Returns: string[]


# encodedLength

get encodedLength(): number

Inherited from Struct.encodedLength

Defined in packages/types/src/codec/Struct.ts:189

description The length of the value when encoded as a Uint8Array

Returns: number


# hasOrigin

get hasOrigin(): boolean

Defined in packages/types/src/generic/Call.ts:177

description true if the Origin type is on the method (extrinsic method)

Returns: boolean


# hash

get hash(): H256

Inherited from Struct.hash

Defined in packages/types/src/codec/Struct.ts:200

description returns a hash of the contents

Returns: H256


# isEmpty

get isEmpty(): boolean

Inherited from Struct.isEmpty

Defined in packages/types/src/codec/Struct.ts:160

description Checks if the value is an empty value

Returns: boolean


# meta

get meta(): FunctionMetadataLatest

Defined in packages/types/src/generic/Call.ts:186

description The [[FunctionMetadata]]

Returns: FunctionMetadataLatest


# methodName

get methodName(): string

Defined in packages/types/src/generic/Call.ts:193

description Returns the name of the method

Returns: string


# sectionName

get sectionName(): string

Defined in packages/types/src/generic/Call.ts:200

description Returns the module containing the method

Returns: string

# Methods

# eq

eq(other?: unknown): boolean

Implementation of IMethod

Inherited from Struct.eq

Defined in packages/types/src/codec/Struct.ts:207

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

Parameters:

Name Type
other? unknown

Returns: boolean


# get

get(name: keyof S): Codec | undefined

Inherited from Struct.get

Overrides CodecMap.get

Defined in packages/types/src/codec/Struct.ts:215

description Returns a specific names entry in the structure

Parameters:

Name Type Description
name keyof S The name of the entry to retrieve

Returns: Codec | undefined


# getAtIndex

getAtIndex(index: number): Codec

Inherited from Struct.getAtIndex

Defined in packages/types/src/codec/Struct.ts:222

description Returns the values of a member at a specific index (Rather use get(name) for performance)

Parameters:

Name Type
index number

Returns: Codec


# toArray

toArray(): Codec[]

Inherited from Struct.toArray

Defined in packages/types/src/codec/Struct.ts:229

description Converts the Object to an standard JavaScript Array

Returns: Codec[]


# toHex

toHex(): string

Inherited from Struct.toHex

Defined in packages/types/src/codec/Struct.ts:236

description Returns a hex string representation of the value

Returns: string


# toHuman

toHuman(isExpanded?: undefined | false | true): AnyJson

Implementation of IMethod

Overrides Struct.toHuman

Defined in packages/types/src/generic/Call.ts:207

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

Parameters:

Name Type
isExpanded? undefined | false | true

Returns: AnyJson


# toJSON

toJSON(): AnyJson

Implementation of IMethod

Inherited from Struct.toJSON

Defined in packages/types/src/codec/Struct.ts:256

description Converts the Object to JSON, typically used for RPC transfers

Returns: AnyJson


# toRawType

toRawType(): string

Implementation of IMethod

Overrides Struct.toRawType

Defined in packages/types/src/generic/Call.ts:231

description Returns the base runtime type name for this instance

Returns: string


# toString

toString(): string

Implementation of IMethod

Inherited from Struct.toString

Defined in packages/types/src/codec/Struct.ts:289

description Returns the string representation of the value

Returns: string


# toU8a

toU8a(isBare?: BareOpts): Uint8Array

Implementation of IMethod

Inherited from Struct.toU8a

Defined in packages/types/src/codec/Struct.ts:297

description Encodes the value as a Uint8Array as per the SCALE specifications

Parameters:

Name Type Description
isBare? BareOpts true when the value has none of the type-specific prefixes (internal)

Returns: Uint8Array


# Static filterOrigin

filterOrigin(meta?: FunctionMetadataLatest): FunctionArgumentMetadataLatest[]

Defined in packages/types/src/generic/Call.ts:136

Parameters:

Name Type
meta? FunctionMetadataLatest

Returns: FunctionArgumentMetadataLatest[]


# Static typesToMap

typesToMap(registry: Registry, Types: Record‹string, Constructor›): Record‹string, string›

Inherited from Struct.typesToMap

Defined in packages/types/src/codec/Struct.ts:269

Parameters:

Name Type
registry Registry
Types Record‹string, Constructor

Returns: Record‹string, string›


# Static with

with<S>(Types: S, jsonMap?: Map‹keyof S, string›): ConstructorStruct‹S››

Inherited from Struct.with

Defined in packages/types/src/codec/Struct.ts:129

Type parameters:

S: TypesDef

Parameters:

Name Type
Types S
jsonMap? Map‹keyof S, string›

Returns: ConstructorStruct‹S››