fabric

package
v0.9.4 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2021 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 LedgerQuery added in v0.9.4

type LedgerQuery struct {
	ChannelID string
	Signer    string
	TxId      string
}

func NewLedgerQuery added in v0.9.4

func NewLedgerQuery(msg *messages.GetTxById, signer string) *LedgerQuery

func (*LedgerQuery) Send added in v0.9.4

func (q *LedgerQuery) Send(ctx context.Context, rpc client.RPCClient) (map[string]interface{}, error)

Send sends an individual query

type Query added in v0.9.4

type Query struct {
	ChannelID     string
	ChaincodeName string
	Function      string
	Args          []string
	Signer        string
}

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

func NewQuery added in v0.9.4

func NewQuery(msg *messages.QueryChaincode, signer string) *Query

func (*Query) Send added in v0.9.4

func (tx *Query) Send(ctx context.Context, rpc client.RPCClient) ([]byte, error)

Send sends an individual query

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