ic_tools


This is a package for the connection of the dart-code with the DFINITY-INTERNET-COMPUTER.

This package is for the Dart & Flutter, on the Web & Linux.

See lib/src/common.dart for some samples.


import 'package:ic_tools/ic_tools.dart';
import 'package:ic_tools/candid.dart';
import 'package:ic_tools/common.dart';



main() async {
    Caller caller = CallerEd25519.new_keys();
    String caller_icp_id = icp_id(caller.principal);
    double icp_balance = await check_icp_balance(caller_icp_id);

    print(caller);
    print(caller_icp_id);
    print(icp_balance);
}

runs with the sound-null-safety.


On the Linux:


On the web:

<script src="ic_tools_webfiles/unpkg_bignumber.js"></script>  
<script src="ic_tools_webfiles/cbor-web.js"></script>  
<script src="ic_tools_webfiles/rust_wasm_bls12381/rust_wasm_bls12381.js"></script>   

Libraries

candid
common
common_web
ic_tools
tools