Skip to main content

@iota/sdk

Table of contents

Enumerations

Classes

Interfaces

Type Aliases

Functions

Type Aliases

BlockId

Ƭ BlockId: string

A block identifier, the BLAKE2b-256 hash of the block bytes. See https://www.blake2.net/ for more information.


IBip32Chain

Ƭ IBip32Chain: number[]

BIP 32 chain.


QueryParameter

Ƭ QueryParameter: Address | AliasAddress | HasStorageDepositReturn | StorageDepositReturnAddress | HasTimelock | TimelockedBefore | TimelockedAfter | HasExpiration | ExpiresBefore | ExpiresAfter | ExpirationReturnAddress | Sender | Tag | Issuer | StateController | Governor | CommonQueryParameters

Query parameter for filtering output requests


AliasQueryParameter

Ƭ AliasQueryParameter: StateController | Governor | Issuer | Sender | CommonQueryParameters

Query parameters for filtering Alias Outputs


FoundryQueryParameter

Ƭ FoundryQueryParameter: AliasAddress | CommonQueryParameters

Query parameters for filtering Foundry Outputs


NftQueryParameter

Ƭ NftQueryParameter: Address | AliasAddress | HasStorageDepositReturn | StorageDepositReturnAddress | HasTimelock | TimelockedBefore | TimelockedAfter | HasExpiration | ExpiresBefore | ExpiresAfter | ExpirationReturnAddress | Sender | Tag | CommonQueryParameters

Query parameters for filtering Nft Outputs


PlaceholderSecretManager

Ƭ PlaceholderSecretManager: "placeholder"

Placeholder secret manager that can't do anything.


SecretManagerType

Ƭ SecretManagerType: LedgerNanoSecretManager | MnemonicSecretManager | StrongholdSecretManager | PlaceholderSecretManager

Supported secret managers


AccountId

Ƭ AccountId: number | string

Account identifier Could be the account index (number) or account alias (string)


RemainderValueStrategy

Ƭ RemainderValueStrategy: ChangeAddress | ReuseAddress | CustomAddress

The RemainderValueStrategy


ChangeAddress

Ƭ ChangeAddress: Object

ChangeAddress variant of RemainderValueStrategy

Type declaration

NameType
strategy"ChangeAddress"
valuenull

ReuseAddress

Ƭ ReuseAddress: Object

ReuseAddress variant of RemainderValueStrategy

Type declaration

NameType
strategy"ReuseAddress"
valuenull

CustomAddress

Ƭ CustomAddress: Object

CustomAddress variant of RemainderValueStrategy

Type declaration

NameType
strategy"CustomAddress"
valuestring

Functions

initLogger

initLogger(config?): any

Initialize logger, if no arguments are provided a default config will be used.

Parameters

NameTypeDefault value
configILoggerConfigdefaultLoggerConfig

Returns

any


utf8ToBytes

utf8ToBytes(utf8): number[]

Convert UTF8 string to an array of bytes

Parameters

NameType
utf8string

Returns

number[]


hexToUtf8

hexToUtf8(hex): string

Convert hex encoded string to UTF8 string

Parameters

NameType
hexstring

Returns

string


utf8ToHex

utf8ToHex(utf8): string

Convert UTF8 string to hex encoded string

Parameters

NameType
utf8string

Returns

string