@interlay/interbtc-api / Exports / H256Le
Name
H256Le
H256
↳ H256Le
• Readonly
BYTES_PER_ELEMENT: number
The size in bytes of each element in the array.
H256.BYTES_PER_ELEMENT
node_modules/typescript/lib/lib.es5.d.ts:2161
• Readonly
[toStringTag]: "Uint8Array"
H256.[toStringTag]
node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts:284
• Readonly
buffer: ArrayBufferLike
The ArrayBuffer instance referenced by the array.
H256.buffer
node_modules/typescript/lib/lib.es5.d.ts:2166
• Readonly
byteLength: number
The length in bytes of the array.
H256.byteLength
node_modules/typescript/lib/lib.es5.d.ts:2171
• Readonly
byteOffset: number
The offset in bytes of the array.
H256.byteOffset
node_modules/typescript/lib/lib.es5.d.ts:2176
• Optional
createdAtHash: IU8a
H256.createdAtHash
node_modules/@polkadot/types-codec/native/Raw.d.ts:14
• Optional
initialU8aLength: number
H256.initialU8aLength
node_modules/@polkadot/types-codec/native/Raw.d.ts:15
• Optional
isStorageFallback: boolean
H256.isStorageFallback
node_modules/@polkadot/types-codec/native/Raw.d.ts:16
• Readonly
length: number
The length of the array.
H256.length
node_modules/typescript/lib/lib.es5.d.ts:2275
• Readonly
registry: Registry
H256.registry
node_modules/@polkadot/types-codec/native/Raw.d.ts:13
• get
encodedLength(): number
number
Description
The length of the value when encoded as a Uint8Array
H256.encodedLength
node_modules/@polkadot/types-codec/native/Raw.d.ts:26
• get
hash(): IU8a
IU8a
Description
returns a hash of the contents
H256.hash
node_modules/@polkadot/types-codec/native/Raw.d.ts:30
• get
isAscii(): boolean
boolean
Description
Returns true if the wrapped value contains only ASCII printable characters
H256.isAscii
node_modules/@polkadot/types-codec/native/Raw.d.ts:34
• get
isEmpty(): boolean
boolean
Description
Returns true if the type wraps an empty/default all-0 value
H256.isEmpty
node_modules/@polkadot/types-codec/native/Raw.d.ts:38
• get
isUtf8(): boolean
boolean
Description
Returns true if the wrapped value contains only utf8 characters
H256.isUtf8
node_modules/@polkadot/types-codec/native/Raw.d.ts:42
▸ [iterator](): ArrayIterator
<number
>
ArrayIterator
<number
>
H256.[iterator]
node_modules/typescript/lib/lib.es2015.iterable.d.ts:302
▸ at(index
): undefined
| number
Takes an integer value and returns the item at that index, allowing for positive and negative integers. Negative integers count back from the last item in the array.
Name | Type |
---|---|
index |
number |
undefined
| number
H256.at
node_modules/@types/node/globals.d.ts:297
▸ bitLength(): number
number
Description
Returns the number of bits in the value
H256.bitLength
node_modules/@polkadot/types-codec/native/Raw.d.ts:46
▸ copyWithin(target
, start
, end?
): this
Returns the this object after copying a section of the array identified by start and end to the same array starting at position target
Name | Type | Description |
---|---|---|
target |
number |
If target is negative, it is treated as length+target where length is the length of the array. |
start |
number |
If start is negative, it is treated as length+start. If end is negative, it is treated as length+end. |
end? |
number |
If not specified, length of the this object is used as its default value. |
this
H256.copyWithin
node_modules/typescript/lib/lib.es5.d.ts:2187
▸ entries(): ArrayIterator
<[number
, number
]>
Returns an array of key, value pairs for every entry in the array
ArrayIterator
<[number
, number
]>
H256.entries
node_modules/typescript/lib/lib.es2015.iterable.d.ts:306
▸ eq(other?
): boolean
Name | Type |
---|---|
other? |
unknown |
boolean
Description
Compares the value of the input to see if there is a match
H256.eq
node_modules/@polkadot/types-codec/native/Raw.d.ts:50
▸ every(predicate
, thisArg?
): boolean
Determines whether all the members of an array satisfy the specified test.
Name | Type | Description |
---|---|---|
predicate |
(value : number , index : number , array : Uint8Array ) => unknown |
A function that accepts up to three arguments. The every method calls the predicate function for each element in the array until the predicate returns a value which is coercible to the Boolean value false, or until the end of the array. |
thisArg? |
any |
An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value. |
boolean
H256.every
node_modules/typescript/lib/lib.es5.d.ts:2197
▸ fill(value
, start?
, end?
): this
Changes all array elements from start
to end
index to a static value
and returns the modified array
Name | Type | Description |
---|---|---|
value |
number |
value to fill array section with |
start? |
number |
index to start filling the array at. If start is negative, it is treated as length+start where length is the length of the array. |
end? |
number |
index to stop filling the array at. If end is negative, it is treated as length+end. |
this
H256.fill
node_modules/typescript/lib/lib.es5.d.ts:2207
▸ filter(predicate
, thisArg?
): Uint8Array
Returns the elements of an array that meet the condition specified in a callback function.
Name | Type | Description |
---|---|---|
predicate |
(value : number , index : number , array : Uint8Array ) => any |
A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array. |
thisArg? |
any |
An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value. |
Uint8Array
H256.filter
node_modules/typescript/lib/lib.es5.d.ts:2216
▸ find(predicate
, thisArg?
): undefined
| number
Returns the value of the first element in the array where predicate is true, and undefined otherwise.
Name | Type | Description |
---|---|---|
predicate |
(value : number , index : number , obj : Uint8Array ) => boolean |
find calls predicate once for each element of the array, in ascending order, until it finds one where predicate returns true. If such an element is found, find immediately returns that element value. Otherwise, find returns undefined. |
thisArg? |
any |
If provided, it will be used as the this value for each invocation of predicate. If it is not provided, undefined is used instead. |
undefined
| number
H256.find
node_modules/typescript/lib/lib.es5.d.ts:2227
▸ findIndex(predicate
, thisArg?
): number
Returns the index of the first element in the array where predicate is true, and -1 otherwise.
Name | Type | Description |
---|---|---|
predicate |
(value : number , index : number , obj : Uint8Array ) => boolean |
find calls predicate once for each element of the array, in ascending order, until it finds one where predicate returns true. If such an element is found, findIndex immediately returns that element index. Otherwise, findIndex returns -1. |
thisArg? |
any |
If provided, it will be used as the this value for each invocation of predicate. If it is not provided, undefined is used instead. |
number
H256.findIndex
node_modules/typescript/lib/lib.es5.d.ts:2238
▸ forEach(callbackfn
, thisArg?
): void
Performs the specified action for each element in an array.
Name | Type | Description |
---|---|---|
callbackfn |
(value : number , index : number , array : Uint8Array ) => void |
A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array. |
thisArg? |
any |
An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value. |
void
H256.forEach
node_modules/typescript/lib/lib.es5.d.ts:2247
▸ includes(searchElement
, fromIndex?
): boolean
Determines whether an array includes a certain element, returning true or false as appropriate.
Name | Type | Description |
---|---|---|
searchElement |
number |
The element to search for. |
fromIndex? |
number |
The position in this array at which to begin searching for searchElement. |
boolean
H256.includes
node_modules/typescript/lib/lib.es2016.array.include.d.ts:52
▸ indexOf(searchElement
, fromIndex?
): number
Returns the index of the first occurrence of a value in an array.
Name | Type | Description |
---|---|---|
searchElement |
number |
The value to locate in the array. |
fromIndex? |
number |
The array index at which to begin the search. If fromIndex is omitted, the search starts at index 0. |
number
H256.indexOf
node_modules/typescript/lib/lib.es5.d.ts:2255
▸ inspect(): Inspect
Inspect
Description
Returns a breakdown of the hex encoding for this Codec
H256.inspect
node_modules/@polkadot/types-codec/native/Raw.d.ts:54
▸ join(separator?
): string
Adds all the elements of an array separated by the specified separator string.
Name | Type | Description |
---|---|---|
separator? |
string |
A string used to separate one element of an array from the next in the resulting String. If omitted, the array elements are separated with a comma. |
string
H256.join
node_modules/typescript/lib/lib.es5.d.ts:2262
▸ keys(): ArrayIterator
<number
>
Returns an list of keys in the array
ArrayIterator
<number
>
H256.keys
node_modules/typescript/lib/lib.es2015.iterable.d.ts:310
▸ lastIndexOf(searchElement
, fromIndex?
): number
Returns the index of the last occurrence of a value in an array.
Name | Type | Description |
---|---|---|
searchElement |
number |
The value to locate in the array. |
fromIndex? |
number |
The array index at which to begin the search. If fromIndex is omitted, the search starts at index 0. |
number
H256.lastIndexOf
node_modules/typescript/lib/lib.es5.d.ts:2270
▸ map(callbackfn
, thisArg?
): Uint8Array
Calls a defined callback function on each element of an array, and returns an array that contains the results.
Name | Type | Description |
---|---|---|
callbackfn |
(value : number , index : number , array : Uint8Array ) => number |
A function that accepts up to three arguments. The map method calls the callbackfn function one time for each element in the array. |
thisArg? |
any |
An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value. |
Uint8Array
H256.map
node_modules/typescript/lib/lib.es5.d.ts:2285
▸ reduce(callbackfn
): number
Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
Name | Type | Description |
---|---|---|
callbackfn |
(previousValue : number , currentValue : number , currentIndex : number , array : Uint8Array ) => number |
A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array. |
number
H256.reduce
node_modules/typescript/lib/lib.es5.d.ts:2297
▸ reduce(callbackfn
, initialValue
): number
Name | Type |
---|---|
callbackfn |
(previousValue : number , currentValue : number , currentIndex : number , array : Uint8Array ) => number |
initialValue |
number |
number
H256.reduce
node_modules/typescript/lib/lib.es5.d.ts:2298
▸ reduce<U
>(callbackfn
, initialValue
): U
Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
Name |
---|
U |
Name | Type | Description |
---|---|---|
callbackfn |
(previousValue : U , currentValue : number , currentIndex : number , array : Uint8Array ) => U |
A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array. |
initialValue |
U |
If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value. |
U
H256.reduce
node_modules/typescript/lib/lib.es5.d.ts:2310
▸ reduceRight(callbackfn
): number
Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
Name | Type | Description |
---|---|---|
callbackfn |
(previousValue : number , currentValue : number , currentIndex : number , array : Uint8Array ) => number |
A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array. |
number
H256.reduceRight
node_modules/typescript/lib/lib.es5.d.ts:2322
▸ reduceRight(callbackfn
, initialValue
): number
Name | Type |
---|---|
callbackfn |
(previousValue : number , currentValue : number , currentIndex : number , array : Uint8Array ) => number |
initialValue |
number |
number
H256.reduceRight
node_modules/typescript/lib/lib.es5.d.ts:2323
▸ reduceRight<U
>(callbackfn
, initialValue
): U
Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
Name |
---|
U |
Name | Type | Description |
---|---|---|
callbackfn |
(previousValue : U , currentValue : number , currentIndex : number , array : Uint8Array ) => U |
A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array. |
initialValue |
U |
If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value. |
U
H256.reduceRight
node_modules/typescript/lib/lib.es5.d.ts:2335
▸ reverse(): Uint8Array
Reverses the elements in an Array.
Uint8Array
H256.reverse
node_modules/typescript/lib/lib.es5.d.ts:2340
▸ set(array
, offset?
): void
Sets a value or an array of values.
Name | Type | Description |
---|---|---|
array |
ArrayLike <number > |
A typed or untyped array of values to set. |
offset? |
number |
The index in the current array at which the values are to be written. |
void
H256.set
node_modules/typescript/lib/lib.es5.d.ts:2347
▸ slice(start?
, end?
): Uint8Array
Returns a section of an array.
Name | Type | Description |
---|---|---|
start? |
number |
The beginning of the specified portion of the array. |
end? |
number |
The end of the specified portion of the array. This is exclusive of the element at the index ‘end’. |
Uint8Array
H256.slice
node_modules/typescript/lib/lib.es5.d.ts:2354
▸ some(predicate
, thisArg?
): boolean
Determines whether the specified callback function returns true for any element of an array.
Name | Type | Description |
---|---|---|
predicate |
(value : number , index : number , array : Uint8Array ) => unknown |
A function that accepts up to three arguments. The some method calls the predicate function for each element in the array until the predicate returns a value which is coercible to the Boolean value true, or until the end of the array. |
thisArg? |
any |
An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value. |
boolean
H256.some
node_modules/typescript/lib/lib.es5.d.ts:2364
▸ sort(compareFn?
): this
Sorts an array.
Name | Type | Description |
---|---|---|
compareFn? |
(a : number , b : number ) => number |
Function used to determine the order of the elements. It is expected to return a negative value if first argument is less than second argument, zero if they’re equal and a positive value otherwise. If omitted, the elements are sorted in ascending order. ts [11,2,22,1].sort((a, b) => a - b) |
this
H256.sort
node_modules/typescript/lib/lib.es5.d.ts:2375
▸ subarray(begin?
, end?
): Uint8Array
Gets a new Uint8Array view of the ArrayBuffer store for this array, referencing the elements at begin, inclusive, up to end, exclusive.
Name | Type | Description |
---|---|---|
begin? |
number |
The index of the beginning of the array. |
end? |
number |
The index of the end of the array. |
Uint8Array
H256.subarray
node_modules/typescript/lib/lib.es5.d.ts:2383
▸ toHex(): `0x${string}`
`0x${string}`
Description
Returns a hex string representation of the value
H256.toHex
node_modules/@polkadot/types-codec/native/Raw.d.ts:58
▸ toHuman(): AnyJson
AnyJson
Description
Converts the Object to to a human-friendly JSON, with additional fields, expansion and formatting of information
H256.toHuman
node_modules/@polkadot/types-codec/native/Raw.d.ts:62
▸ toJSON(): string
string
Description
Converts the Object to JSON, typically used for RPC transfers
H256.toJSON
node_modules/@polkadot/types-codec/native/Raw.d.ts:66
▸ toLocaleString(): string
Converts a number to a string by using the current locale.
string
H256.toLocaleString
node_modules/typescript/lib/lib.es5.d.ts:2388
▸ toLocaleString(locales
, options?
): string
Name | Type |
---|---|
locales |
string | string [] |
options? |
NumberFormatOptions |
string
H256.toLocaleString
node_modules/typescript/lib/lib.es2015.core.d.ts:568
▸ toPrimitive(): AnyJson
AnyJson
Description
Converts the value in a best-fit primitive form
H256.toPrimitive
node_modules/@polkadot/types-codec/native/Raw.d.ts:70
▸ toRawType(): string
string
Description
Returns the base runtime type name for this instance
H256.toRawType
node_modules/@polkadot/types-codec/extended/U8aFixed.d.ts:15
▸ toString(): string
string
Description
Returns the string representation of the value
H256.toString
node_modules/@polkadot/types-codec/native/Raw.d.ts:78
▸ toU8a(_isBare?
): Uint8Array
Name | Type |
---|---|
_isBare? |
boolean |
Uint8Array
Description
Encodes the value as a Uint8Array as per the SCALE specifications
H256.toU8a
node_modules/@polkadot/types-codec/native/Raw.d.ts:82
▸ toUtf8(): string
string
Description
Returns the wrapped data as a UTF-8 string
H256.toUtf8
node_modules/@polkadot/types-codec/native/Raw.d.ts:86
▸ valueOf(): Uint8Array
Returns the primitive value of the specified object.
Uint8Array
H256.valueOf
node_modules/typescript/lib/lib.es5.d.ts:2396
▸ values(): ArrayIterator
<number
>
Returns an list of values in the array
ArrayIterator
<number
>
H256.values
node_modules/typescript/lib/lib.es2015.iterable.d.ts:314