slp_mdm

Creator: coderz1093

Last updated:

0 purchases

TODO
Add to Cart

Description:

slp mdm

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));
copied to clipboard
Test #
$ dart test/slp_mdm.dart

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.