Skip to content

Instantly share code, notes, and snippets.

View niteshbalusu11's full-sized avatar
Lightning!

Nitesh Balusu niteshbalusu11

Lightning!
View GitHub Profile

Chaincode labs excercise:

  1. Increase the for loop count by 1
        for _ in range(11):
            # Use the blocktools functionality to manually build a block.
            # Calling the generate() rpc is easier, but this allows us to exactly
            # control the blocks and transactions.
            block = create_block(self.tip, create_coinbase(height+1), self.block_time)
@niteshbalusu11
niteshbalusu11 / gist:71e74e49a26b152f733126c8ccabe9bf
Created March 10, 2023 17:48
Verifying that I control the following Nostr public key: npub1qgwhaaa2lsp54rl0hfx7qa3z678ax6wlre0em475rhpvl7n54cpqgg7y7n
Verifying that I control the following Nostr public key: npub1qgwhaaa2lsp54rl0hfx7qa3z678ax6wlre0em475rhpvl7n54cpqgg7y7n
@niteshbalusu11
niteshbalusu11 / bitcoin_json_rpc.mjs
Last active August 26, 2022 00:43
Call Bitcoin JSON RPC Using NodeJS
import axios from 'axios';
try {
const username = 'rpcUser';
const password = 'rpcPassword';
const url = `http://${username}:${password}@localhost:18443`;
const postPody = {
jsonrpc: '1.0',