name: Extrinsics

description: A Vector of Extrinsic

Type parameters

T : Codec

Hierarchy

↳ Vector

↳ Extrinsics

↳ PendingExtrinsics

Implements

Indexable

[n: number]: T

Constructors

constructor

⊕ new Extrinsics(Type: Constructor<T>, value?: Vector<any> | Uint8Array | string | Array<any>): Extrinsics

Inherited from Vector.constructor

Defined in codec/Vector.ts:22

Parameters:

Name Type Default value
Type Constructor<T> -
Default value value Vector<any> Uint8Array string Array<any> [] as Array<any>

Returns: Extrinsics


Accessors

Type

getType(): string

Inherited from Vector.Type

Defined in codec/Vector.ts:57

Returns: string


encodedLength

getencodedLength(): number

Inherited from Vector.encodedLength

Defined in codec/Vector.ts:64

description: The length of the value when encoded as a Uint8Array

Returns: number


length

getlength(): number

Inherited from Vector.length

Overrides Array.length

Defined in codec/Vector.ts:73

description: The length of the value

Returns: number


Methods

filter

▸ filter(callbackfn: function, thisArg?: any): Array<T>

Inherited from Vector.filter

Overrides Array.filter

Defined in codec/Vector.ts:139

description: Filters the array with the callback

Parameters:

Name Type Description
callbackfn function The filter function
Optional thisArg any The `this` object to apply the result to

Returns: Array<T>


map

▸ map<U>(callbackfn: function, thisArg?: any): Array<U>

Inherited from Vector.map

Overrides Array.map

Defined in codec/Vector.ts:148

description: Maps the array with the callback

Type parameters:

U

Parameters:

Name Type Description
callbackfn function The mapping function
Optional thisArg any The `this` onject to apply the result to

Returns: Array<U>


toArray

▸ toArray(): Array<T>

Inherited from Vector.toArray

Defined in codec/Vector.ts:81

description: Converts the Object to an standard JavaScript Array

Returns: Array<T>


toHex

▸ toHex(): string

Implementation of Codec.toHex

Inherited from Vector.toHex

Defined in codec/Vector.ts:88

description: Returns a hex string representation of the value

Returns: string


toJSON

▸ toJSON(): any

Implementation of Codec.toJSON

Inherited from Vector.toJSON

Defined in codec/Vector.ts:95

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

Returns: any


toString

▸ toString(): string

Implementation of Codec.toString

Inherited from Vector.toString

Overrides Array.toString

Defined in codec/Vector.ts:104

description: Returns the string representation of the value

Returns: string


toU8a

▸ toU8a(isBare?: undefined | false | true): Uint8Array

Inherited from Vector.toU8a

Defined in codec/Vector.ts:117

description: Encodes the value as a Uint8Array as per the parity-codec specifications

Parameters:

Name Type Description
Optional isBare undefined false true true when the value has none of the type-specific prefixes (internal)

Returns: Uint8Array


<Static> decodeVector

▸ decodeVector<T>(Type: Constructor<T>, value: Vector<any> | Uint8Array | string | Array<any>): Array<T>

Inherited from Vector.decodeVector

Defined in codec/Vector.ts:32

Type parameters:

T : Codec

Parameters:

Name Type
Type Constructor<T>
value Vector<any> Uint8Array string Array<any>

Returns: Array<T>


<Static> with

▸ with<O>(Type: Constructor<O>): Constructor<Vector<O>>

Inherited from Vector.with

Defined in codec/Vector.ts:49

Type parameters:

O : Codec

Parameters:

Name Type
Type Constructor<O>

Returns: Constructor<Vector<O>>


results matching ""

    No results matching ""