Documentation ¶
Index ¶
- type SimpleChaincode
- func (t *SimpleChaincode) Init(stub shim.ChaincodeStubInterface, function string, args []string) ([]byte, error)
- func (t *SimpleChaincode) Invoke(stub shim.ChaincodeStubInterface, function string, args []string) ([]byte, error)
- func (t *SimpleChaincode) Query(stub shim.ChaincodeStubInterface, function string, args []string) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SimpleChaincode ¶
type SimpleChaincode struct {
// contains filtered or unexported fields
}
SimpleChaincode example simple Chaincode implementation
func (*SimpleChaincode) Init ¶
func (t *SimpleChaincode) Init(stub shim.ChaincodeStubInterface, function string, args []string) ([]byte, error)
func (*SimpleChaincode) Invoke ¶
func (t *SimpleChaincode) Invoke(stub shim.ChaincodeStubInterface, function string, args []string) ([]byte, error)
Transaction makes payment of X units from A to B
func (*SimpleChaincode) Query ¶
func (t *SimpleChaincode) Query(stub shim.ChaincodeStubInterface, function string, args []string) ([]byte, error)
Query callback representing the query of a chaincode
Click to show internal directories.
Click to hide internal directories.