bitcoind_client 0.1.9

BitcoindClient

A simpliest Bitcoind client

Example

import 'package:bitcoind_client/bitcoind_client.dart';

var client = new BitcoindClient('http://bitcoinrpc:password@localhost:8332');
client.call('getbalance', params: ['accountname', 0]).then((balance) => print(balance));

Logging

You can do request/response/error logging with log callback in constructor

import 'package:logging/logging.dart';
import 'package:bitcoind_client/bitcoind_client.dart';

var log = new Logger('testlog');
log.onRecord.listen((record) => print(new DateTime.now().toString() + ' ' +record.message));

var client = new BitcoindClient('http://bitcoinrpc:password@localhost:8332', log.info);

... or without dependencies ...

var client = new BitcoindClient('http://bitcoinrpc:password@localhost:8332', (String message) => print(message));

0.1.9 (2013-11-21)

  • fixed bug with long responses
  • missed exception when malformed response from bitcoind

0.1.3 (2013-11-13)

  • fixed dart enviroment in pubspec.yaml

1. Depend on it

Add this to your package's pubspec.yaml file:

dependencies:
  bitcoind_client: ">=0.1.9 <0.2.0"

If your package is an application package you should use any as the version constraint.

2. Install it

If you're using the Dart Editor, choose:

Menu > Tools > Pub Install

Or if you want to install from the command line, run:

$ pub install

3. Import it

Now in your Dart code, you can use:

import 'package:bitcoind_client/bitcoind_client.dart';

About

Bitcoind client for Dart.

Author

Email info@analogic.cz Analogic s.r.o.

Homepage

github.com/analogic/bitcoind_client

Documentation

www.dartdocs.org/documentation/bitcoind_client/0.1.9/index.html#bitcoind_client

Uploader

efesak

Share