slp_mdm 1.0.0 copy "slp_mdm: ^1.0.0" to clipboard
slp_mdm: ^1.0.0 copied to clipboard

Create Simple Ledger Protocol OP_RETURN data segments with ease!

SLP Metadata Maker for Dart #

This package is for creating Simple Ledger Protocol (SLP) OP_RETURN messages. Both TokenType1 and NFT1 tokens are supported.

Usage #

The following snippet shows basic usage. Don't forget to adjust the BigInt quantities to account for decimal divisibility of the token (see code in example/main.dart with an example of this conversion).

  var tokenId = hex.decode('ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff');
  var sendMsg = Send(tokenId, [BigInt.from(1), BigInt.from(10)]);
  print(hex.encode(sendMsg));

  var mintMsg = Mint(tokenId, BigInt.from(10), mintBatonVout);
  print(hex.encode(mintMsg));

Test #

$ dart test/slp_mdm.dart

2
likes
150
pub points
0%
popularity

Publisher

verified publisherslp.dev

Create Simple Ledger Protocol OP_RETURN data segments with ease!

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

convert

More

Packages that depend on slp_mdm