npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@beyond-tech/sdk

v0.1.0

Published

A minimal SDK to interact with the Beyond protocol, for seamless Bitcoin interoperability.

Downloads

15

Readme

Beyond SDK

A minimal SDK to interact with the Beyond protocol, for seamless Bitcoin interoperability.

The Beyond SDK enables developers to move tokens and assets between Bitcoin (L1 and L2s) and the 80+ chains supported by LayerZero. The SDK also provides tools for managing token inscriptions from all the major standards (BRC20, Runes, BTC), enabling seamless Bitcoin interoperability for your blockchain app.

Features

  • Token Management: Easily create, mint, and manage BRC20, CBRC20, and Runes tokens on Bitcoin Layer 1.
  • Wallet Integration: Securely manage wallet operations, including generating new wallets and signing transactions.
  • Transaction Handling: Craft, sign, and broadcast transactions with intuitive interfaces.
  • Network Compatibility: Seamlessly switch between Bitcoin's mainnet and testnet environments.

Installation

Install the Beyond SDK with npm:

npm install @beyond/sdk

Or with yarn:

yarn add @beyond/sdk

Quick Start

To get started with the Beyond SDK, you first need to import it into your project:

import { Wallet, BRC20, Runes } from '@beyond/sdk';

Usage

Here is a full example demonstrating how to use the Beyond SDK to create a wallet, and interact with BRC20 and Runes tokens:

import { Wallet, BRC20, Runes } from '@beyond/sdk';

// Initialize your wallet. In a real-world application, always keep your private keys secure.
const myWallet = new Wallet('your-private-key-here');

// Example of creating and using a BRC20 token
const myBRC20Token = new BRC20('token-address-here', myWallet);

// Mint 1000 BRC20 tokens to an address
myBRC20Token.mint('recipient-address-here', 1000)
  .then((transaction) => console.log(`BRC20 Mint Transaction Hash: ${transaction.txid}`))
  .catch((error) => console.error('Error minting BRC20 tokens:', error));

// Example of transferring Runes tokens
const myRunesToken = new Runes('token-address-here', myWallet);

// Transfer 500 Runes tokens to an address
myRunesToken.transfer('recipient-address-here', 500)
  .then((transaction) => console.log(`Runes Transfer Transaction Hash: ${transaction.txid}`))
  .catch((error) => console.error('Error transferring Runes tokens:', error));

Support

If you need help or have any questions, please submit an issue on this GitHub repository or get in touch.