项目作者: fiatjaf

项目描述 :
Simplest Bitcoin Core RPC interface.
高级语言: Python
项目地址: git://github.com/fiatjaf/bitcoin-requests.git
创建时间: 2019-02-18T01:33:17Z
项目社区:https://github.com/fiatjaf/bitcoin-requests

开源协议:Other

下载


The simplest Bitcoin Core RPC library for when you just want to talk to Bitcoin Core.

Usage

If you started Bitcoin Core like this:

  1. bitcoind -regtest -rpcuser=user -rpcpassword=pass

Instantiate the bitcoin_requests RPC client like this:

  1. from bitcoin_requests import BitcoinRPC
  2. rpc = BitcoinRPC('http://127.0.0.1:18443', 'user', 'pass')
  3. blocks = rpc.generate(101)
  4. tx = rpc.sendtoaddress(address, 20)

Installation

  1. pip install bitcoin-requests