New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@soceanfi/solana-cli-config

Package Overview
Dependencies
Maintainers
3
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@soceanfi/solana-cli-config

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

latest
Source
npmnpm
Version
0.2.0
Version published
Maintainers
3
Created
Source

Solana CLI Config

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

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

Example Usage

import { Connection, Keypair } from "@solana/web3.js";
import { SolanaCliConfig } from "@soceanfi/solana-cli-config"

// Load the solana CLI config file from the default path ($HOME/.config/solana/cli/config.yml)
const config = SolanaCliConfig.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();

Keywords

socean.fi

FAQs

Package last updated on 06 Jul 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts