Versions in this module Expand all Collapse all v0 v0.0.1 Aug 28, 2025 Changes in this version + var CurrentNetworkParams *chaincfg.Params = &chaincfg.MainNetParams + func OpcodeName(op byte) string + func SetCurrentNetwork(net string) + type AddressInfo struct + Addresses []string + Cls txscript.ScriptClass + PKScript []byte + ReqSigs int + Typ AddressType + type AddressScriptInfo struct + Address string + BechEncoding string + Cls txscript.ScriptClass + IsWitness bool + PubKeyHashHex []byte + RedeemScriptHashHex []byte + ScriptAsm string + ScriptPubKeyHex []byte + TaprootOutputKeyHex []byte + Typ AddressType + WitnessProgramHex []byte + WitnessProgramLen int + WitnessVersion int + type AddressType string + const AddrP2PK + const AddrP2PKH + const AddrP2SH + const AddrP2TR + const AddrP2WPKH + const AddrP2WSH + const AddrUnknown + type BRC20Action struct + Amt string + Lim string + Max string + Op string + Tick string + type Hash32 [32]byte + func (h *Hash32) FromBEHex(s string) error + func (h *Hash32) UnmarshalJSON(b []byte) error + func (h Hash32) BytesBE() []byte + func (h Hash32) BytesLE() []byte + func (h Hash32) MarshalJSON() ([]byte, error) + func (h Hash32) String() string + type Network string + const Mainnet + const Regtest + const Signet + const Testnet + var CurrentNetwork Network = Mainnet + func (n Network) ToParams() *chaincfg.Params + type OrdinalsEnvelope struct + BodyHex string + ContentType string + Records []OrdinalsRecord + type OrdinalsRecord struct + KeyHex string + ValueHex string + type Runestone struct + BodyHex string + type ScriptOp struct + DataHex string + DataLen int + Op string + type TapControlBlock struct + Header byte + InternalKey string + LeafVersion byte + MerkleHashes []string + Parity int + type Tx struct + LockTime uint32 + TxIn []TxIn + TxOut []TxOut + Version int32 + type TxIn struct + PreviousOutPoint TxOutPoint + ScriptSig []byte + Sequence uint32 + Witness TxWitness + func (in TxIn) MarshalJSON() ([]byte, error) + type TxInputParams struct + AmountBTC []float64 + ChangeAddress string + Data string + FeeRate float64 + FromAddress []string + Locktime int64 + PublicKey string + Replaceable bool + ToAddress []string + type TxOut struct + Address string + PkScript []byte + ScriptType string + Value int64 + func (out TxOut) MarshalJSON() ([]byte, error) + type TxOutPoint struct + Hash Hash32 + Index uint32 + type TxUTXO struct + Address string + Coinbase bool + Height uint32 + OutPoint TxOutPoint + PkScript []byte + Value int64 + type TxWitness [][]byte + type VarInt = uint64