destroynftoptions

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: May 19, 2021 License: Apache-2.0, BSD-2-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DestroyNFTOption

type DestroyNFTOption func(options *DestroyNFTOptions) error

DestroyNFTOption is a function that provides options.

func AccessManaPledgeID

func AccessManaPledgeID(nodeID string) DestroyNFTOption

AccessManaPledgeID is an option for DestroyNFT call that defines the nodeID to pledge access mana to.

func Alias

func Alias(aliasID string) DestroyNFTOption

Alias specifies which alias to destroy.

func ConsensusManaPledgeID

func ConsensusManaPledgeID(nodeID string) DestroyNFTOption

ConsensusManaPledgeID is an option for DestroyNFT call that defines the nodeID to pledge consensus mana to.

func RemainderAddress

func RemainderAddress(address string) DestroyNFTOption

RemainderAddress specifies the address where the funds of the destroyed NFT will be sent. (optional)

func WaitForConfirmation

func WaitForConfirmation(wait bool) DestroyNFTOption

WaitForConfirmation defines if the call should wait for confirmation before it returns.

type DestroyNFTOptions

type DestroyNFTOptions struct {
	AccessManaPledgeID    string
	ConsensusManaPledgeID string
	Alias                 *ledgerstate.AliasAddress
	RemainderAddress      ledgerstate.Address
	WaitForConfirmation   bool
}

DestroyNFTOptions is a struct that is used to aggregate the optional parameters in the DestroyNFT call.

func Build

func Build(options ...DestroyNFTOption) (result *DestroyNFTOptions, err error)

Build builds the options.

Jump to

Keyboard shortcuts

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