Skip to content

demattosanthony/btcd-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bitcoin Core Json RPC Client

Typescript btcd client. Connect to your bitcoin core node.

How to use

1 Install package

npm install btcd-client
  1. Import package
import { BitcoinCoreClient } from 'btcd-client'
  1. Initalize
const credentials = {
  url: process.env.BITCOIN_RPC_URL!,
  username: process.env.BITCOIN_RPC_USERNAME!,
  password: process.env.BITCOIN_RPC_PASSWORD!,
}

const btcdClient = new BitcoinCoreClient(credentials)
  1. Use the client
const blockchainInfo = await btcdClient.getBlockchainInfo()

Wallet Specific

const walletInfo = await btcdClient.getWalletInfo(walletName)

With params

const transaction = await btcdClient.getTransaction(
        walletName!,
        [txReq.txid],
      )

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published