Documentation
¶
Overview ¶
Package goslp has helpers for Simple Ledger Protocol (SLP) token transactions that work across SLP versions and token types. Its v1parser package parses SLP metadata, and its metadatamaker package builds it.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSlpTokenID ¶
GetSlpTokenID parses the SLP message in the first output of tx and returns its token ID, as GetSlpTokenIDFromMsg does.
func GetSlpTokenIDFromMsg ¶
GetSlpTokenIDFromMsg returns the token ID of tx, whose first output ParseSLP parsed as slpMsg. A GENESIS creates a token whose ID is its own transaction hash, in the byte order MINT and SEND messages carry it in.
func GetSlpVersionType ¶
GetSlpVersionType returns the token type of the SLP message in slpPkScript. It returns an error for any script ParseSLP rejects, which includes every token type other than 0x01, 0x41 and 0x81.
Types ¶
This section is empty.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package metadatamaker builds the OP_RETURN scripts that carry SLP metadata in the first output of type 1, NFT1 group and NFT1 child token transactions.
|
Package metadatamaker builds the OP_RETURN scripts that carry SLP metadata in the first output of type 1, NFT1 group and NFT1 child token transactions. |
|
Package v1parser parses the SLP metadata that a version 1 SLP transaction carries in the OP_RETURN script of its first output.
|
Package v1parser parses the SLP metadata that a version 1 SLP transaction carries in the OP_RETURN script of its first output. |