Bako ID SDK enable to register a @
handler domain in Fuel Network.
pnpm install fuels @bako-id/sdk
npm install fuels @bako-id/sdk
yarn install fuels @bako-id/sdk
import { BakoIDClient } from '@bako-id/sdk';
import { Provider } from 'fuels';
const provider = await Provider.create('https://testnet.fuel.network/v1/graphql');
const client = new BakoIDClient();
const resolverAddress = await client.resolver('bakoid', provider.getChainId());
console.log(resolverAddress); // 0x000000...
import { BakoIDClient } from '@bako-id/sdk';
import { Provider } from 'fuels';
const provider = await Provider.create('https://testnet.fuel.network/v1/graphql');
const client = new BakoIDClient();
const name = await client.name('0x000000...', provider.getChainId());
console.log(name); // @bakoid
import { BakoIDClient } from '@bako-id/sdk';
import { Provider } from 'fuels';
const client = new BakoIDClient();
const profileUrl = await client.profile('@bakoid');
console.log(profileUrl); // https://bako.id/bakoid
This repo is licensed under the Apache-2.0
license. See LICENSE
for more information.