1.0.8 • Published 9 months ago

@storkdomains/js v1.0.8

Weekly downloads
-
License
MIT
Repository
-
Last release
9 months ago

@storkdomains/js

Client library to interact with the Stork Domains smart contract.

Install with npm:

$ npm install @storkdomains/js

Install with yarn:

$ yarn add @storkdomains/js

Examples

Below are some of our available query methods.

Resolve a Domain to its addresses

This is the core query of Stork Domains and resolves a domain to its configured address.

import {ClientApi, ChainType} from '@storkdomains/js';

const api = new ClientApi();

// Resolve domain to its Sui Address
const sui_address = await api.domains.resolveAddress(
    "anthony.stork", ChainType.SUI
);

// Resolve domain to its ETH Address
const eth_address = await api.domains.resolveAddress(
    "anthony.stork", ChainType.ETH
);

Fetch a Domain Object

const domain = await api.domains.getDomainObject("anthony.stork");

Get the owner of the Domain Object

This will return a Sui Address because Stork Domains are natively stored on the Sui blockchain.

const owner: SuiAddress = await api.domains.getOwner("anthony.stork");

Open Source

This package is open source and available at github.com/storkdomains/js.

Support

If you have integrated with Stork Domains or require assistance with integration, please ping us on our discord at discord.gg/stork, or email us at anthony@stork.domains.

1.0.8

9 months ago

1.0.7

9 months ago

1.0.6

9 months ago

1.0.5

9 months ago

1.0.4

9 months ago

1.0.3

9 months ago

1.0.2

9 months ago

1.0.1

9 months ago

1.0.0

9 months ago