Home Reference Source Test

Function

Static Public Summary
public

async getSimbaInstance(url: string, wallet: Wallet, apiKey: string, managementKey: string): Promise<Simbachain>

Create an instance of a Simbachain API interaction class Automatically takes care of choosing the correct implementation and running asynchronous initialisation.

Static Public

public async getSimbaInstance(url: string, wallet: Wallet, apiKey: string, managementKey: string): Promise<Simbachain> source

import {getSimbaInstance} from '@simbachain/libsimba-js/src/index.js'

Create an instance of a Simbachain API interaction class Automatically takes care of choosing the correct implementation and running asynchronous initialisation.

Params:

NameTypeAttributeDescription
url string

The API URL

wallet Wallet

The Wallet to use

apiKey string
  • optional

(Optional) The API key

managementKey string
  • optional

(Optional) The Management API key

Return:

Promise<Simbachain>

An initialised instance of the API interaction class