fabric

package
v0.9.7 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2022 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 Tx

type Tx struct {
	ChannelID     string
	ChaincodeName string
	IsInit        bool
	Function      string
	Args          []string
	Hash          string
	Receipt       *client.TxReceipt
	Signer        string
	// contains filtered or unexported fields
}

Txn wraps a Fabric transaction, along with the logic to send it over JSON/RPC to a node

func NewSendTx

func NewSendTx(msg *messages.SendTransaction, signer string) *Tx

func (*Tx) GetTXReceipt

func (tx *Tx) GetTXReceipt(ctx context.Context, rpc client.RPCClient) (bool, error)

GetTXReceipt gets the receipt for the transaction

func (*Tx) Send

func (tx *Tx) Send(ctx context.Context, rpc client.RPCClient) error

Send sends an individual transaction

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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