bitcoind_client 0.1.9

  • README.md
  • CHANGELOG.md
  • Installing
  • Versions
  • 7

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"

2. Install it

You can install packages from the command line:

with pub:


$ pub get

Alternatively, your editor might support pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:bitcoind_client/bitcoind_client.dart';
        
Version Uploaded Documentation Archive
0.1.9 Nov 21, 2013 Go to the documentation of bitcoind_client 0.1.9 Download bitcoind_client 0.1.9 archive
0.1.8 Nov 21, 2013 Go to the documentation of bitcoind_client 0.1.8 Download bitcoind_client 0.1.8 archive
0.1.7 Nov 21, 2013 Go to the documentation of bitcoind_client 0.1.7 Download bitcoind_client 0.1.7 archive
0.1.6 Nov 21, 2013 Go to the documentation of bitcoind_client 0.1.6 Download bitcoind_client 0.1.6 archive
0.1.5 Nov 21, 2013 Go to the documentation of bitcoind_client 0.1.5 Download bitcoind_client 0.1.5 archive
0.1.4 Nov 21, 2013 Go to the documentation of bitcoind_client 0.1.4 Download bitcoind_client 0.1.4 archive
0.1.3 Nov 13, 2013 Go to the documentation of bitcoind_client 0.1.3 Download bitcoind_client 0.1.3 archive
0.1.2 Nov 1, 2013 Go to the documentation of bitcoind_client 0.1.2 Download bitcoind_client 0.1.2 archive
0.1.1 Oct 31, 2013 Go to the documentation of bitcoind_client 0.1.1 Download bitcoind_client 0.1.1 archive
0.1.0+2 Oct 2, 2013 Go to the documentation of bitcoind_client 0.1.0+2 Download bitcoind_client 0.1.0+2 archive

All 16 versions...

Analysis

This feature is new.
We welcome feedback.

We analyzed this package, and provided a score, details, and suggestions below.

  • tool failures on Dec 6, 2017
  • Dart: 2.0.0-dev.8.0
  • pana: 0.7.3+1

Scores

Popularity:
Describes how popular the package is relative to other packages. [more]
0
Health:
Code health derived from static analysis. [more]
24
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
0
Overall score:
Weighted score of the above. [more]
7

Platforms

Detected platforms:

Error(s) in lib/bitcoind_client.dart: The argument type 'List' can't be assigned to the parameter type 'Iterable<int>'.

Suggestions

  • Fix lib/bitcoind_client.dart.

    Strong-mode analysis of lib/bitcoind_client.dart failed with the following error:

    line: 43 col: 87
    The argument type 'List' can't be assigned to the parameter type 'Iterable<int>'.