The Spydra Hyperledger Fabric Base Contract has various utility methods which provide additional functionalities out of the box to any Chaincode that is deployed in a Spydra blockchain network. Simply extend your own Chaincode Smart Contract from the Spydra Base Contract to get these additional features.
Query the world state using Graph QL. For more details, refer to Spydra Graph QL.
Quick Start
Run go get.
$ go get -u github.com/spydra-tech/fabric-contract-go/spydracontract
Extend your Smart Contract from the Spydra Base Contract.
type MyCustomContract struct {
spydracontract.SpydraContract
}
Instatiate the Chaincode with the SpydraContract as one of the Smart contracts.