Documentation ¶
Index ¶
- Constants
- type BoardCastFunc
- type InscriptionData
- type InscriptionRequest
- type InscriptionTool
- func (tool *InscriptionTool) BackupRecoveryKeyToRpcNode() error
- func (tool *InscriptionTool) CreateRevealTx(hex string)
- 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) InscribeCommitTx() (commitTxHash *chainhash.Hash, err error)
- func (tool *InscriptionTool) InscribeRevealTxs(boardCastFunc BoardCastFunc)
- func (tool *InscriptionTool) MarkRevealTxAsSent(hex string)
- func (tool *InscriptionTool) ReadNextRevealTx() string
Constants ¶
View Source
const (
MaxStandardTxWeight = blockchain.MaxBlockWeight / 10
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BoardCastFunc ¶
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 ToAddressPrivateKey string }
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 btcapi.BTCAPIClient, request *InscriptionRequest) (*InscriptionTool, error)
func (*InscriptionTool) BackupRecoveryKeyToRpcNode ¶
func (tool *InscriptionTool) BackupRecoveryKeyToRpcNode() error
func (*InscriptionTool) CreateRevealTx ¶
func (tool *InscriptionTool) CreateRevealTx(hex string)
创建新的Reveal交易并追加到文件
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) InscribeCommitTx ¶
func (tool *InscriptionTool) InscribeCommitTx() (commitTxHash *chainhash.Hash, err error)
func (*InscriptionTool) InscribeRevealTxs ¶
func (tool *InscriptionTool) InscribeRevealTxs(boardCastFunc BoardCastFunc)
func (*InscriptionTool) MarkRevealTxAsSent ¶
func (tool *InscriptionTool) MarkRevealTxAsSent(hex string)
将特定的Reveal交易标记为已发送
func (*InscriptionTool) ReadNextRevealTx ¶
func (tool *InscriptionTool) ReadNextRevealTx() string
读取下一个未发送的Reveal交易
Click to show internal directories.
Click to hide internal directories.