dart_coin_rpc 2.1.7 copy "dart_coin_rpc: ^2.1.7" to clipboard
dart_coin_rpc: ^2.1.7 copied to clipboard

A simple RPC client for bitcoin-like coins created in dart.

example/dart_coin_rpc_example.dart

import 'package:dart_coin_rpc/dart_coin_rpc.dart';

void main() async {
  RPCClient client = RPCClient(
    username: 'rpc',
    password: 'password',
    port: 9902,
    host: '127.0.0.1',
    useSSL: false,
  );

  var res = await client
      .call('validateaddress', ["p92W3t7YkKfQEPDb7cG9jQ6iMh7cpKLvwK"]) as Map;
  assert(res["isvalid"] == true);
}
0
likes
120
pub points
38%
popularity

Publisher

verified publisherpeercoin.net

A simple RPC client for bitcoin-like coins created in dart.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (LICENSE)

Dependencies

dio, dio_smart_retry

More

Packages that depend on dart_coin_rpc