fabric

package
v0.9.19 Latest Latest
Warning

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

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

type Tx struct {
	ChannelID     string
	ChaincodeName string
	IsInit        bool
	Function      string
	Args          []string
	TransientMap  map[string]string
	Hash          string
	Receipt       *fabricClient.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 *messaging.SendTransaction, _ string) *Tx

func (*Tx) GetTXReceipt

func (tx *Tx) GetTXReceipt(_ context.Context, _ fabricClient.RPCClient) (bool, error)

GetTXReceipt gets the receipt for the transaction

func (*Tx) Send

func (tx *Tx) Send(_ context.Context, rpc fabricClient.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