ckb_sdk_dart 0.23.2 copy "ckb_sdk_dart: ^0.23.2" to clipboard
ckb_sdk_dart: ^0.23.2 copied to clipboard

outdated

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_rpc.dart';
import 'package:ckb_sdk_dart/ckb_type.dart';
import 'package:ckb_sdk_dart/src/type/block.dart';

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

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

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

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

Publisher

unverified uploader

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

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

bip_bech32, dio, http, pointycastle, test_coverage

More

Packages that depend on ckb_sdk_dart