starknet 0.0.2 copy "starknet: ^0.0.2" to clipboard
starknet: ^0.0.2 copied to clipboard

outdated

The Dart SDK for StarkNet. It implements all the JSON-RPC endpoints plus higher level abstractions to deal with smart contracts.

example/starknet_example.dart

import 'dart:convert';

import 'package:starknet/starknet.dart';

void main() async {
  final blockNumber = await JsonRpcProvider.devnet.blockNumber();
  print(blockNumber);
}

prettyPrintJson(Map<String, dynamic> json) {
  var encoder = JsonEncoder.withIndent("  ");
  print(encoder.convert(json));
}
4
likes
0
points
166
downloads

Publisher

verified publishergabinmarignier.com

Weekly Downloads

The Dart SDK for StarkNet. It implements all the JSON-RPC endpoints plus higher level abstractions to deal with smart contracts.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

crypto, freezed_annotation, http, json_annotation, pointycastle

More

Packages that depend on starknet