service

package
v0.0.0-...-8538e32 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IssueCash

type IssueCash struct {
	// TokenType is the type of token to issue
	TokenType string
	// Quantity represent the number of units of a certain token type stored in the token
	Quantity uint64
	// Recipient is an identifier of the recipient identity
	Recipient string
	// RecipientNode is the identifier of the node of the recipient
	RecipientNode string
	// Message is the message that will be visible to the recipient and the auditor
	Message string
}

IssueCash contains the input information to issue a token

type IssueCashView

type IssueCashView struct {
	*IssueCash
}

func (*IssueCashView) Call

func (v *IssueCashView) Call(context view.Context) (interface{}, error)

type TokenService

type TokenService struct {
	FSC api.ServiceProvider
}

func (TokenService) Issue

func (s TokenService) Issue(tokenType string, quantity uint64, recipient string, recipientNode string, message string) (txID string, err error)

Issue issues an amount of tokens to a wallet. It connects to the other node, prepares the transaction, gets it approved by the auditor and sends it to the blockchain for endorsement and commit.

Jump to

Keyboard shortcuts

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