ckb_sdk_dart 0.31.0

Dart native js
Flutter Android iOS web

A Dart SDK for Nervos CKB which is a public/permissionless blockchain, the layer 1 of Nervos network.

example/main.dart

import 'package:ckb_sdk_dart/ckb_core.dart';

void main() async {
  var api = Api('http://localhost:8114', hasLogger: true);
  var blockHash = await api.getBlockHash('0x2');
  print('blockHash: $blockHash \n');

  var block = await api.getBlock(blockHash);
  print('block: ${block.toJson()}\n');

  var tx = await api.getTransaction(block.transactions[0].hash);

  print('transaction: ${tx.toJson()}\n');
}
1
likes
80
pub points
0%
popularity

A Dart SDK for Nervos CKB which is a public/permissionless blockchain, the layer 1 of Nervos network.

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

duanyytop@gmail.com

License

MIT (LICENSE)

Dependencies

bip_bech32, dio, hex, http, json_annotation, pinenacl, pointycastle, test_coverage

More

Packages that depend on ckb_sdk_dart