ord_dart 0.0.8+4 copy "ord_dart: ^0.0.8+4" to clipboard
ord_dart: ^0.0.8+4 copied to clipboard

The Flutter plugin that supports Ordinals protocol (Runes protocol only).

example/lib/main.dart

import 'dart:typed_data';

import 'package:flutter/material.dart';
import 'package:ord_dart/ord_dart.dart';

void main() async {
  await OrdDart.init();
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  Uint8List getEncipher() {
    final etching = Etching(
      divisibility: 2,
      premine: BigInt.from(11000000000),
      rune: Rune.fromStr(s: "ZZZZZFEHUZZZZZ"),
      spacers: 7967,
      symbol: "ᚠ",
      terms: Terms(
        amount: BigInt.from(100),
        cap: BigInt.from(1111111),
        height: null,
        offset: null,
      ),
      turbo: true,
    );
    final runestone = Runestone(etching: etching);
    return runestone.encipher();
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(title: const Text('ord_dart quickstart')),
        body: Center(
          child: Text(
            'Action: Call Rust `RuneStone.encipher`\n'
            'Result: `${getEncipher()}`',
          ),
        ),
      ),
    );
  }
}
0
likes
120
points
3
downloads

Publisher

verified publisherastrox.io

Weekly Downloads

The Flutter plugin that supports Ordinals protocol (Runes protocol only).

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, flutter_rust_bridge, freezed_annotation, meta

More

Packages that depend on ord_dart