ord

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 5, 2024 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultRevealOutValue = defaultRevealOutValue

	MaxStandardTxWeight = blockchain.MaxBlockWeight / 10
)

Variables

This section is empty.

Functions

This section is empty.

Types

type InscriptionData

type InscriptionData struct {
	ContentType string
	Body        []byte
	Destination string
}

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
	TransferList       []TransferData
	ChangePkScript     []byte
	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
}

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(svc *types.ServiceContext, net *chaincfg.Params, btcApiClient btcapi.BTCAPIClient, request *InscriptionRequest) (*InscriptionTool, error)

func (*InscriptionTool) BackupRecoveryKeyToRpcNode

func (tool *InscriptionTool) BackupRecoveryKeyToRpcNode() error

func (*InscriptionTool) GetCommitTxHex

func (tool *InscriptionTool) GetCommitTxHex() (string, string, error)

func (*InscriptionTool) GetRecoveryKeyWIFList

func (tool *InscriptionTool) GetRecoveryKeyWIFList() []string

func (*InscriptionTool) GetRevealTxHexList

func (tool *InscriptionTool) GetRevealTxHexList() ([]string, []string, error)

func (*InscriptionTool) Inscribe

func (tool *InscriptionTool) Inscribe() (commitTxHash *chainhash.Hash, revealTxHashList []*chainhash.Hash, inscriptions []string, fees int64, err error)

type TransferData

type TransferData struct {
	AddressPkScript []byte
	Amount          int64
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL