JustaName

@justaname.id/sdkDocs


@justaname.id/sdk / JustaName

Class: JustaName

The main class for the JustaName SDK.

Classdesc

The main class for the JustaName SDK.

Example

import { JustaName } from '@justaname.id/sdk';

const configuration = {
 apiKey: 'your-api-key',
 networks: [
 {
 chainId: 1,
 providerUrl: 'https://mainnet.infura.io/v3/your-infura-key'
 },
 ],
 ensDomains: ['justan.id']
 };

 const justaName = JustaName.init(configuration);

Constructors

new JustaName()

new JustaName(siwe, subnames, offchainResolvers, signIn, mApps): JustaName

Parameters

siwe: SubnameChallenge

subnames: Subnames

offchainResolvers: OffchainResolvers

signIn: SignIn

mApps: MApps

Returns

JustaName

Defined in

packages/@justaname.id/sdk/src/lib/justaname/index.ts:78

Properties

mApps

mApps: MApps

The MApps feature.

Memberof

JustaName

Defined in

packages/@justaname.id/sdk/src/lib/justaname/index.ts:76


offchainResolvers

offchainResolvers: OffchainResolvers

The offchainResolvers feature.

Memberof

JustaName

Defined in

packages/@justaname.id/sdk/src/lib/justaname/index.ts:60


signIn

signIn: SignIn

The signIn feature.

Memberof

JustaName

Defined in

packages/@justaname.id/sdk/src/lib/justaname/index.ts:68


siwe

siwe: SubnameChallenge

Defined in

packages/@justaname.id/sdk/src/lib/justaname/index.ts:44


subnames

subnames: Subnames

The subnames feature.

Memberof

JustaName

Defined in

packages/@justaname.id/sdk/src/lib/justaname/index.ts:52

Methods

createNetworks()

static createNetworks(networks): NetworksWithProvider

Parameters

networks: Networks = []

Returns

NetworksWithProvider

Defined in

packages/@justaname.id/sdk/src/lib/justaname/index.ts:160


init()

static init(configuration): JustaName

Parameters

configuration: JustaNameConfig<Configuration, Networks, undefined | EnsDomains, undefined | ChainId> = {}

Returns

JustaName

Defined in

packages/@justaname.id/sdk/src/lib/justaname/index.ts:92

Last updated