fabric

package
v0.9.17 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2023 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
	TransientMap  map[string]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
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

Jump to

Keyboard shortcuts

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