https://github.com/spydra-tech/fabric-contract-node
Spydra Node.js Base Contract for Hyperledger Fabric that provides advanced functionalities for any Chaincode
https://github.com/spydra-tech/fabric-contract-node
blockchain chaincode chaincode-node distributed-ledger distributed-ledger-technology fabric hyperledger hyperledger-fabric smart-contracts
Last synced: 2 months ago
JSON representation
Spydra Node.js Base Contract for Hyperledger Fabric that provides advanced functionalities for any Chaincode
- Host: GitHub
- URL: https://github.com/spydra-tech/fabric-contract-node
- Owner: spydra-tech
- License: apache-2.0
- Created: 2023-06-20T21:54:45.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-06-21T10:29:03.000Z (almost 2 years ago)
- Last Synced: 2024-03-25T05:42:57.440Z (about 1 year ago)
- Topics: blockchain, chaincode, chaincode-node, distributed-ledger, distributed-ledger-technology, fabric, hyperledger, hyperledger-fabric, smart-contracts
- Language: TypeScript
- Homepage:
- Size: 38.1 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Security: SECURITY.md
Awesome Lists containing this project
README
[](https://www.spydra.app/?utm_source=github&utm_medium=fabric_contract)
[](https://badge.fury.io/js/spydra-fabric-contract-node)
# Spydra Hyperledger Fabric Base ContractThe 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](https://www.spydra.app/?utm_source=github&utm_medium=fabric_contract) 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](https://docs.spydra.app/products-overview/graphql).
## Quick Start
1. Install spydra-fabric-contract-node from npm.With npm:
```sh
$ npm install --save spydra-fabric-contract-node
```or using yarn:
```sh
$ yarn add spydra-fabric-contract-node
```
2. Extend your Smart Contract from the Spydra Base Contract.
```javascript
class MyCustomContract extends SpydraContract {
}
```
3. Export the SpydraContract as one of the Smart contracts in index.js.
```javascript
module.exports.contracts = [MyCustomContract, SpydraContract];
```4. [Deploy](https://docs.spydra.app/how-to/apps/deploy-app) the Chaincode on a Spydra Blockchain network and start querying on any attribute using [Graph QL](https://docs.spydra.app/products-overview/graphql).