Skip to content

navroudsari/chia_client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chia Client

A simple Dart Chia client.

Currently supports all the 1.3.5 full node endpoints.

Generate Models

$ dart run build_runner build --delete-conflicting-outputs
Building package executable... (5.3s)
Built build_runner:build_runner.
[INFO] Generating build script completed, took 426ms
[INFO] Reading cached asset graph completed, took 76ms
[INFO] Checking for updates since last build completed, took 519ms
[INFO] Running build completed, took 7.0s
[INFO] Caching finalized dependency graph completed, took 40ms
[INFO] Succeeded after 7.0s with 53 outputs (56 actions)

Build and Test

$ dart test
Building package executable... (5.1s)
Built test:test.
00:00 +22: All tests passed!

Configure Full Node Service

final fullNodeService = FullNodeService(
    RpcClient(
          uri: Uri(scheme: 'https', host: 'localhost', port: 8555),
          certByteData: <fullNodeCertByteData>
          keyByteData: <fullNodeKeyByteData>
    ),
);

Get Blockchain State Example

var blockchainState = await fullNodeService.getBlockchainState();
print(blockchainState);

About

Dart client for the Chia Blockchain

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages