Skip to content

bbachain/cli-config

Repository files navigation

BBAChain CLI Config

Typescript bindings for BBAChain CLI config (originally in rust).

No browser, intended for use in node.js based bbachain CLI applications.

Example Usage

import { Connection, Keypair } from "@bbachain/web3.js";
import { BBAChainCliConfig } from "@bbachain/cli-config"

// Load the bbachain CLI config file from the default path ($HOME/.bbachain/cli/config.yml)
const config = BBAChainCliConfig.load();

// Load the keypair from the file path specified in the config file
const keypair: Keypair = config.loadKeypair();

// Create a `Connection` object from the config
const connection: Connection = config.createConnection();

About

Typescript bindings for Solana's CLI config (originally in Rust)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages