Skip to content

SDK to interact with domains in Bako.

Notifications You must be signed in to change notification settings

luisburigo/bako-id

 
 

Repository files navigation

twitter Waitlist

📦 Bako ID SDK

Bako ID SDK enable to register a @ handler domain in Fuel Network. Compatible with BETA-5

Installation

npm install fuels @bako-id/sdk

Getting Started

Domain resolver

import { resolver } from '@bako-id/sdk';

const providerURL = 'https://beta-5.fuel.network/graphql';

// Get domain resolver
const fuelDomain = await resolver({
  domain: '@my_domain',
  providerURL,
});
console.log(fuelDomain); // { owner: '0x000...', resolver: '0x000...' }

Domain register

import { register } from '@fuel-domains/sdk';
import { Wallet } from 'fuels';

// Fuel Wallet instance
const wallet: Wallet;

// Register a .fuel domain 
await register({
  account: wallet,
  resolver: '0x0000...',
  domain: '@my_domain',
});

📜 License

This repo is licensed under the Apache-2.0 license. See LICENSE for more information.

About

SDK to interact with domains in Bako.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 93.1%
  • Sway 4.4%
  • CSS 1.2%
  • Vue 0.8%
  • HTML 0.2%
  • JavaScript 0.1%
  • Other 0.2%