Documentation ¶
Index ¶
- Constants
- Variables
- func AddrToPkScript(addr string, network *chaincfg.Params) ([]byte, error)
- func PayToPubKeyHashScript(pubKeyHash []byte) ([]byte, error)
- func PayToWitnessPubKeyHashScript(pubKeyHash []byte) ([]byte, error)
- func Transfer(ins []*TxInput, outs []*TxOutput, network *chaincfg.Params) (string, error)
- type InscribeTxs
- type InscriptionData
- type InscriptionRequest
- type InscriptionTool
- type PrevOutput
- type TxInput
- type TxOutput
Constants ¶
View Source
const ( DefaultTxVersion = 2 DefaultSequenceNum = mempool.MaxRBFSequence DefaultRevealOutValue = int64(546) MaxStandardTxWeight = blockchain.MaxBlockWeight / 10 )
Variables ¶
View Source
var (
ErrInsufficientBalance = errors.New("insufficient balance")
)
Functions ¶
func PayToPubKeyHashScript ¶
Types ¶
type InscribeTxs ¶
type InscribeTxs struct { CommitTx string `json:"commitTx"` RevealTxs []string `json:"revealTxs"` CommitTxFee int64 `json:"commitTxFee"` RevealTxFees []int64 `json:"revealTxFees"` }
func Inscribe ¶
func Inscribe(network *chaincfg.Params, request *InscriptionRequest) (*InscribeTxs, error)
type InscriptionData ¶
type InscriptionRequest ¶
type InscriptionRequest struct { CommitTxPrevOutputList []*PrevOutput `json:"commitTxPrevOutputList"` CommitFeeRate int64 `json:"commitFeeRate"` RevealFeeRate int64 `json:"revealFeeRate"` InscriptionDataList []InscriptionData `json:"inscriptionDataList"` RevealOutValue int64 `json:"revealOutValue"` ChangeAddress string `json:"changeAddress"` }
type InscriptionTool ¶
type InscriptionTool struct { Network *chaincfg.Params CommitTxPrevOutputFetcher *txscript.MultiPrevOutFetcher CommitTxPrivateKeyList []*btcec.PrivateKey InscriptionTxCtxDataList []*inscriptionTxCtxData RevealTxPrevOutputFetcher *txscript.MultiPrevOutFetcher CommitTxPrevOutputList []*PrevOutput RevealTx []*wire.MsgTx CommitTx *wire.MsgTx MustCommitTxFee int64 MustRevealTxFees []int64 }
type PrevOutput ¶
Click to show internal directories.
Click to hide internal directories.