slp_parser 0.0.3

Dart native js
Flutter Android iOS web

Parse Simple Ledger Protocol OP_RETURN data segments with ease!

SLP Parser for Dart #

This package is for parsing Simple Ledger Protocol (SLP) metadata. TokenType1 and NFT1 tokens are supported.

Usage #

  var scriptPubKey = '6a04534c500001010747454e455349530ce3838ae382abe383a2e383884c004c004c0001094c00080000000000000064';
  var slpMsg = parseSLP(hex.decode(scriptPubKey));
  print('Parsed results (raw form):\n ${slpMsg.toMap(raw: true)}');
  print('Parsed results (readable form):\n ${slpMsg.toMap()}');

Test #

$ dart test/parser.spec.dart

2
likes
90
pub points
0%
popularity

Publisher

slp.dev

Parse 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_parser