ord_dart 0.1.0+1 copy "ord_dart: ^0.1.0+1" to clipboard
ord_dart: ^0.1.0+1 copied to clipboard

retracted

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

ord_dart #

The library related to the ordinals protocol currently supports the runes protocol.

Getting Started #

Since ord_dart relies on cargokit, you'll need to install the Rust environment through rustup before using ord_dart.

To use this library, add ord_dart as a dependency in your pubspec.yaml file.

dependencies:
  ord_dart:
    git:
      url: https://github.com/AstroxNetwork/ord_dart
      ref: main

Usage #

Etching #


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);
final encipher = runestone.encipher();

print(encipher);

Mint #


final runestone = Runestone(mint: RuneId.fromStr(s: "840000:1"));
final encipher = runestone.encipher();

print(encipher);

Transfer #


final runestone = Runestone(edicts: [
  Edict(
      id: RuneId.fromStr(s: "840000:1"),
      amount: BigInt.from(100),
      output: 1)
]);
final encipher = runestone.encipher();

print(encipher);

View more examples

0
likes
0
pub points
0%
popularity

Publisher

verified publisherastrox.io

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

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, flutter_rust_bridge, freezed_annotation, meta

More

Packages that depend on ord_dart