Overview

The BitBadges SDK is a bundle of TypeScript libraries that provide all the tools and functions needed for you to build your own frontend or interact with the BitBadges API, blockchain, and indexer.

GitHub: https://github.com/bitbadges/bitbadgesjsarrow-up-right

Full Documentation: https://bitbadges.github.io/bitbadgesjs/arrow-up-right

npm install bitbadgesjs-sdk

This library provides miscellaneous functionality to help you interact with BitBadges, such as types, API routes, managing metadata requests, logic with ID ranges and balances, etc.

Address Conversion

The SDK includes address conversion utilities to convert between Ethereum addresses (0x-prefixed) and BitBadges addresses (bb-prefixed). See Address Conversions for more details.

import { ethToCosmos, cosmosToEth } from 'bitbadgesjs-sdk';

const bitbadgesAddress = ethToCosmos(address);
const ethAddress = cosmosToEth(bitbadgesAddress);

Last updated