proposal

package
v0.0.0-...-ca45133 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckSuccessfulResponse

func CheckSuccessfulResponse(proposalResponse *peer.ProposalResponse) error

func New

func New(
	signingID identity.SigningIdentity,
	chaincodeName string,
	transactionName string,
	options ...Option,
) (*peer.Proposal, error)

Types

type Option

type Option = func(*builder) error

Option implements an option for a transaction proposal.

func WithArguments

func WithArguments(args ...string) Option

WithArguments appends to the transaction function arguments associated with a transaction proposal.

func WithBytesArguments

func WithBytesArguments(args ...[]byte) Option

WithBytesArguments appends to the transaction function arguments associated with a transaction proposal.

func WithChannel

func WithChannel(channelName string) Option

WithChannel specifies the name of the channel to which the transaction proposal is directed.

func WithTransient

func WithTransient(transient map[string][]byte) Option

WithTransient specifies the transient data associated with a transaction proposal. This is usually used in combination with WithEndorsingOrganizations for private data scenarios

Jump to

Keyboard shortcuts

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