Decode SRC-20 data from transaction Matches BTCStampsExplorer/utils/decodeSrc20OlgaTx.ts
Decode SRC-20 data from P2WSH outputs
Encode SRC-20 data using direct P2WSH data embedding Data is embedded directly in the script hash, NOT in witness scripts Supports both sync and async usage for backward compatibility
Optionaloptions: SRC20EncodingOptionsAsync version of encode for compatibility
Optionaloptions: SRC20EncodingOptionsEncode SRC-20 data using direct P2WSH data embedding (sync version) Data is embedded directly in the script hash, NOT in witness scripts
NEW: Creates complete transaction outputs including dust outputs in stampchain order
Optionaloptions: SRC20EncodingOptionsAsync encode with automatic compression decision
Optionaloptions: SRC20EncodingOptionsValidate SRC-20 data
SRC-20 Encoder Implementation Matches BTCStampsExplorer production exactly