Documentation ¶
Index ¶
- Constants
- func BatchIssuedImmediately(destinations, files []string, utxoPrivateKeyHex string, ...) (*chainhash.Hash, []*chainhash.Hash, []string, int64, error)
- func GenesisCard(num int32) string
- type InscriptionData
- type InscriptionRequest
- type InscriptionTool
- func (tool *InscriptionTool) BackupRecoveryKeyToRpcNode() error
- func (tool *InscriptionTool) CommitTx() *wire.MsgTx
- func (tool *InscriptionTool) GetCommitAddress(index int) (string, error)
- func (tool *InscriptionTool) GetCommitTxHex() (string, error)
- func (tool *InscriptionTool) GetRecoveryKeyWIFList() []string
- func (tool *InscriptionTool) GetRevealTxHexList() ([]string, error)
- func (tool *InscriptionTool) Inscribe() (commitTxHash *chainhash.Hash, revealTxHashList []*chainhash.Hash, ...)
- func (tool *InscriptionTool) RevealTxs() []*wire.MsgTx
- func (tool *InscriptionTool) TransmitAddress(index int) string
Constants ¶
View Source
const GENESIS_CARD_SVG_HEAD = `` /* 772-byte string literal not displayed */
View Source
const GENESIS_CARD_SVG_TAIL = `</text></g></svg>`
View Source
const (
MaxStandardTxWeight = blockchain.MaxBlockWeight / 10
)
Variables ¶
This section is empty.
Functions ¶
func BatchIssuedImmediately ¶
func GenesisCard ¶
Types ¶
type InscriptionData ¶
type InscriptionRequest ¶
type InscriptionRequest struct { CommitTxOutPointList []*wire.OutPoint CommitTxPrivateKeyList []*btcec.PrivateKey // If used without RPC, // a local signature is required for committing the commit tx. // Currently, CommitTxPrivateKeyList[i] sign CommitTxOutPointList[i] CommitFeeRate int64 FeeRate int64 DataList []InscriptionData SingleRevealTxOnly bool // Currently, the official Ordinal parser can only parse a single NFT per transaction. // When the official Ordinal parser supports parsing multiple NFTs in the future, we can consider using a single reveal transaction. RevealOutValue int64 ChangeAddress string //找零地址; 如果不设置,将使用第一个utxo的所对应的锁定脚本; EnableRBF bool //enable: nSequence number less than (0xffffffff - 1); defined in bip125 }
func PrepareBatchIssued ¶
type InscriptionTool ¶
type InscriptionTool struct {
// contains filtered or unexported fields
}
func NewInscriptionTool ¶
func NewInscriptionTool(net *chaincfg.Params, rpcclient *rpcclient.Client, request *InscriptionRequest) (*InscriptionTool, error)
func NewInscriptionToolWithBtcApiClient ¶
func NewInscriptionToolWithBtcApiClient(net *chaincfg.Params, btcApiClient memPool.BTCAPIClient, request *InscriptionRequest) (*InscriptionTool, error)
func (*InscriptionTool) BackupRecoveryKeyToRpcNode ¶
func (tool *InscriptionTool) BackupRecoveryKeyToRpcNode() error
func (*InscriptionTool) CommitTx ¶
func (tool *InscriptionTool) CommitTx() *wire.MsgTx
func (*InscriptionTool) GetCommitAddress ¶
func (tool *InscriptionTool) GetCommitAddress(index int) (string, error)
func (*InscriptionTool) GetCommitTxHex ¶
func (tool *InscriptionTool) GetCommitTxHex() (string, error)
func (*InscriptionTool) GetRecoveryKeyWIFList ¶
func (tool *InscriptionTool) GetRecoveryKeyWIFList() []string
func (*InscriptionTool) GetRevealTxHexList ¶
func (tool *InscriptionTool) GetRevealTxHexList() ([]string, error)
func (*InscriptionTool) RevealTxs ¶
func (tool *InscriptionTool) RevealTxs() []*wire.MsgTx
func (*InscriptionTool) TransmitAddress ¶
func (tool *InscriptionTool) TransmitAddress(index int) string
Click to show internal directories.
Click to hide internal directories.