Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateNFTOption ¶
type CreateNFTOption func(options *CreateNFTOptions) error
CreateNFTOption is a function that provides options.
func AccessManaPledgeID ¶
func AccessManaPledgeID(nodeID string) CreateNFTOption
AccessManaPledgeID is an option for SendFunds call that defines the nodeID to pledge access mana to.
func ConsensusManaPledgeID ¶
func ConsensusManaPledgeID(nodeID string) CreateNFTOption
ConsensusManaPledgeID is an option for SendFunds call that defines the nodeID to pledge consensus mana to.
func ImmutableData ¶
func ImmutableData(data []byte) CreateNFTOption
ImmutableData sets the immutable data field of the freshly created NFT.
func InitialBalance ¶
func InitialBalance(balance map[ledgerstate.Color]uint64) CreateNFTOption
InitialBalance sets the initial balance of the newly created NFT.
func WaitForConfirmation ¶
func WaitForConfirmation(wait bool) CreateNFTOption
WaitForConfirmation defines if the call should wait for confirmation before it returns.
type CreateNFTOptions ¶
type CreateNFTOptions struct { InitialBalance map[ledgerstate.Color]uint64 ImmutableData []byte AccessManaPledgeID string ConsensusManaPledgeID string WaitForConfirmation bool }
CreateNFTOptions is a struct that is used to aggregate the optional parameters in the CreateNFT call.
func Build ¶
func Build(options ...CreateNFTOption) (result *CreateNFTOptions, err error)
Build builds the options.
Click to show internal directories.
Click to hide internal directories.