Skip to content

Instantly share code, notes, and snippets.

Avatar
Lightning!

Nitesh Balusu niteshbalusu11

Lightning!
View GitHub Profile
@niteshbalusu11
niteshbalusu11 / bitcoin_json_rpc.mjs
Last active Aug 26, 2022
Call Bitcoin JSON RPC Using NodeJS
View bitcoin_json_rpc.mjs
import axios from 'axios';
try {
const username = 'rpcUser';
const password = 'rpcPassword';
const url = `http://${username}:${password}@localhost:18443`;
const postPody = {
jsonrpc: '1.0',