Bako ID SDK enable to register a @ handler domain in Fuel Network.
pnpm install fuels @bako-id/sdknpm install fuels @bako-id/sdkyarn install fuels @bako-id/sdkimport { BakoIDClient } from '@bako-id/sdk';
import { Provider } from 'fuels';
const provider = new Provider('https://testnet.fuel.network/v1/graphql');
const client = new BakoIDClient();
const resolverAddress = await client.resolver('bakoid', await provider.getChainId());
console.log(resolverAddress); // 0x000000...import { BakoIDClient } from '@bako-id/sdk';
import { Provider } from 'fuels';
const provider = new Provider('https://testnet.fuel.network/v1/graphql');
const client = new BakoIDClient();
const name = await client.name('0x000000...', await provider.getChainId());
console.log(name); // @bakoidimport { 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/bakoidThis repo is licensed under the Apache-2.0 license. See LICENSE for more information.