@bako-id/sdk
TypeScript icon, indicating that this package has built-in type declarations

0.0.11 • Public • Published

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://testnet.fuel.network/v1/graphql';

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

Domain register

import { register } from '@bako-id/sdk';
import { Wallet } from 'fuels';

// Fuel Wallet instance
const wallet: Wallet;

// Register a Bako handle 
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.

Readme

Keywords

none

Package Sidebar

Install

npm i @bako-id/sdk

Weekly Downloads

0

Version

0.0.11

License

Apache-2.0

Unpacked Size

276 kB

Total Files

8

Last publish

Collaborators

  • gugaba29