GraphQL
Golang
$ go get -u github.com/spydra-tech/fabric-contract-go/spydracontracttype MyCustomContract struct {
spydracontract.BaseContract
}NodeJS
Last updated
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 GraphQL. For more details, refer to GraphQL
Run go get
$ go get -u github.com/spydra-tech/fabric-contract-go/spydracontractExtend your Smart Contract from the Spydra Base Contract
type MyCustomContract struct {
spydracontract.BaseContract
}Install spydra-fabric-contract-node
from npm
or using yarn:
Extend your Smart Contract from the Spydra Base Contract.
Last updated
$ npm install --save spydra-fabric-contract-node$ yarn add spydra-fabric-contract-nodeclass MyCustomContract extends SpydraContract {
}