KAS

KAS

The class that manages KAS API services.

Constructor

new KAS()

Creates an instance of KAS.

Members

tokenHistory :TokenHistory

Type:

wallet :Wallet

Type:

anchor :Anchor

Type:

kip17 :KIP17

Type:

Methods

initTokenHistoryAPI(chainId, accessKeyId, secretAccessKey, urlopt) → {void}

Sets chain id and authentication key for Token History API.

Parameters:
Name Type Attributes Description
chainId number

The chain id.

accessKeyId string

The access key id.

secretAccessKey string

The secret access key.

url string <optional>

The end point url.

Returns:
Type
void

initWalletAPI(chainId, accessKeyId, secretAccessKey, urlopt) → {void}

Sets chain id and authentication key for Wallet API.

Parameters:
Name Type Attributes Description
chainId number

The chain id.

accessKeyId string

The access key id.

secretAccessKey string

The secret access key.

url string <optional>

The end point url.

Returns:
Type
void

initAnchorAPI(chainId, accessKeyId, secretAccessKey, urlopt) → {void}

Sets chain id and authentication key for Anchor API.

Parameters:
Name Type Attributes Description
chainId number

The chain id.

accessKeyId string

The access key id.

secretAccessKey string

The secret access key.

url string <optional>

The end point url.

Returns:
Type
void

initKIP17API(chainId, accessKeyId, secretAccessKey, urlopt) → {void}

Sets chain id and authentication key for KIP17 API.

Parameters:
Name Type Attributes Description
chainId number

The chain id.

accessKeyId string

The access key id.

secretAccessKey string

The secret access key.

url string <optional>

The end point url.

Returns:
Type
void