diff --git a/.eslintrc.cjs b/.eslintrc.cjs
index 32d9cc8d05..5c5e1b1db3 100644
--- a/.eslintrc.cjs
+++ b/.eslintrc.cjs
@@ -29,6 +29,7 @@ module.exports = {
{
files: ['*-mock.js', '*.test.js'],
rules: {
+ 'no-empty-function': 'off',
'no-unused-vars': 'off',
},
},
diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS
index f8ecbe5a4c..3dad05a1ab 100644
--- a/.github/CODEOWNERS
+++ b/.github/CODEOWNERS
@@ -1 +1 @@
-* @branarakic @djordjekovac @kotlarmilos @NZT48 @zeroxbt
+* @branarakic @djordjekovac @NZT48 @zeroxbt @u-hubar
diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml
index 64356fb2f4..f7dee6cf44 100644
--- a/.github/workflows/checks.yml
+++ b/.github/workflows/checks.yml
@@ -2,8 +2,7 @@ name: checks
on:
pull_request:
- branches:
- - v6/develop
+ types: [opened, reopened, synchronize]
env:
REPOSITORY_PASSWORD: password
diff --git a/README.md b/README.md
index 319b9d61cc..c4fd787499 100644
--- a/README.md
+++ b/README.md
@@ -1,33 +1,285 @@
-# OriginTrail Decentralized Knowledge Graph network node - OT-Node v6
+
+___
-OriginTrail technology is a set of tools and protocols evolving as the semantic layer for Web3, built on the OriginTrail Decentralized Knowledge Graph (DKG). Its function is to empower developers and system integrators utilizing decentralized knowledge exchange supported by emerging standards and DLT networks.
+
+
+
+
+
-Version 6 is the latest implementation of OriginTrail Decentralized Knowledge Graph. OriginTrail is currently in the launch procedure.
+
OT-Node
-The DKG v6 introduces various improvements to the existing OriginTrail DKG. Among others, it will introduce:
- - the Universal Asset Locator (UAL), akin to URLs in Web2
- - improved discoverability, performance and semantic powers with the expanding support for semantic technologies such as RDF, OWL, SPARQL, Triple Pattern Fragments, SHACL and others
- - numerous performance updates to the protocol & network implementation
+
+
+ OriginTrail Docs
+ Β·
+ Report Bug
+ Β·
+ Request Feature
+
+
-To learn more about OriginTrail v6, check out this blogpost.
+
-## Contribution
+
+
+ Table of Contents
+
+
+ -
+ π About The Project
+
+
+ -
+ π Getting Started
+
+
+ - π License
+ - π€ Contributing
+ - π° Social Media
+
+
-OriginTrail software is open source (Apache 2 licence) and open for contributions by anyone. We encourage the developer community to submit [issues](https://github.com/OriginTrail/ot-node/issues) and [pull requests](https://github.com/OriginTrail/ot-node/pulls) for DKG v6 on this repo. Please have the issue/PR name formatted like this for easy navigation: ``` [v6] Issue name goes here ```
+___
-For a live discussion you are welcome to join the OriginTrail tech community in our [Discord](https://discordapp.com/invite/FCgYk2S)!
+
-## Launch procedure
-The OriginTrail DKG v6 launch is performed in 3 stages:
- - Stage 1 which introduces the new network and data layer. The goal of Stage1 is to verify smooth operation of the v6 network and data layer in a public network environment.
- - Stage 2 which introduces the incentivisation layer (smart contracts and TRAC token). Stage 2 immediately kicks in once stage 1 KPIs are stable, which will introduce the incentivisation layer, implemented through smart contracts, opening the doors for token delegation, staking and improving several existing mechanisms
- - Stage 3 will be focused on performing the migration from v5 to the v6 mainnet.
+## π About The Project
-Throughout the stages the OriginTrail community is invited to participate by actively utilizing the v6 network. Each node will be capable of collecting granular network KPI and telemetry data and publishing it to the DKG itself, further utilized by the core developers to improve the DKG implementation and proceed through the launch stages. For that purpose, there will be a designated reward pool that node runners will be able to collect by submitting relevant network utilization data. All node runners will be motivated to test and utilize their nodes in various creative ways, in order to generate as much quality DKG utilization data to be able to collect rewards. The collected data will include performance metrics, collected error information from bugs occurrences and other. More details on the reward pool distribution among all node runners will be available shortly.
+
+
-## Node setup instructions
+### **What is the Decentralized Knowledge Graph?**
+
-Setup instructions are available in the [official documentation](https://docs.origintrail.io/).
+
+
+
+
+OriginTrail Decentralized Knowledge Graph (DKG), hosted on the OriginTrail Decentralized Network (ODN) as trusted knowledge infrastructure, is shared global Knowledge Graph of Knowledge Assets. Running on the basis of the permissionless multi-chain OriginTrail protocol, it combines blockchains and knowledge graph technology to enable trusted AI applications based on key W3C standards.
+
+
+
+
+
+### **The OriginTrail DKG Architecture**
+
+
+
+
+The OriginTrail tech stack is a three layer structure, consisting of the multi-chain consensus layer (OriginTrail layer 1, running on multiple blockchains), the Decentralized Knowledge Graph layer (OriginTrail Layer 2, hosted on the ODN) and Trusted Knowledge applications in the application layer.
+
+
+
+
+
+Further, the architecture differentiates between **the public, replicated knowledge graph** shared by all network nodes according to the protocol, and **private Knowledge graphs** hosted separately by each of the OriginTrail nodes.
+
+**Anyone can run an OriginTrail node and become part of the ODN, contributing to the network capacity and hosting the OriginTrail DKG. The OriginTrail node is the ultimate data service for data and knowledge intensive Web3 applications and is used as the key backbone for trusted AI applications (see https://chatdkg.ai)**
+
+
+
+
+
+### **What is a Knowledge Asset?**
+
+
+
+
+
+
+
+
+**Knowledge Asset is the new, AIβready resource for the Internet**
+
+Knowledge Assets are verifiable containers of structured knowledge that live on the OriginTrail DKG and provide:
+- **Discoverability - UAL is the new URL**. Uniform Asset Locators (UALs, based on the W3C Decentralized Identifiers) are a new Web3 knowledge identifier (extensions of the Uniform Resource Locators - URLs) which identify a specific piece of knowledge and make it easy to find and connect with other Knowledge Assets.
+- **Ownership - NFTs enable ownership**. Each Knowledge Asset contains an NFT token that enables ownership, knowledge asset administration and market mechanisms.
+- **Verifiability - On-chain information origin and verifiable trail**. The blockchain tech increases trust, security, transparency, and the traceability of information.
+
+By their nature, Knowledge Assets are semantic resources (following the W3C Semantic Web set of standards), and through their symbolic representations inherently AI ready. See more at https://chatdkg.ai
+
+
+**Discover Knowledge Assets with the DKG Explorer:**
+
+
+
+
+
+(back to top)
+
+
+## π Getting Started
+
+___
+
+### Prerequisites
+
+
+
+- **NodeJS** >= 16.0.0
+- **npm** >= 8.0.0
+
+___
+
+
+### Local Network Setup
+
+
+
+First, clone the repo:
+```bash
+git clone https://github.com/OriginTrail/ot-node.git
+cd ot-node
+```
+
+Install dependencies using `npm`:
+```bash
+npm install
+```
+
+Run the Triple Store.
+
+To use default Triple Store (`blazegraph`), download the exec file and run it with the following command in the separate process:
+```bash
+java -server -Xmx4g -jar blazegraph.jar
+```
+
+Then, depending on the OS, use one of the scripts in order to run the local network with provided number of nodes (minimal amount of nodes should be 12):
+
+**MacOS**
+```bash
+bash ./tools/local-network-setup/setup-macos-environment.sh --nodes=12
+```
+
+___
+
+
+### DKG Node Setup
+
+
+
+In order to run a DKG node on the **Testnet** or **Mainnet**, please read the official documentation: https://docs.origintrail.io/decentralized-knowledge-graph-layer-2/node-setup-instructions/setup-instructions-dockerless
+
+___
+
+
+### Build on DKG
+
+
+
+The OriginTrail SDKs are client libraries for your applications, used to interact and connect with the OriginTrail Decentralized Knowledge Graph.
+From an architectural standpoint, the SDK libraries are application interfaces into the DKG, enabling you to create and manage Knowledge Assets through your apps, as well as perform network queries (such as search, or SPARQL queries), as illustrated below.
+
+
+
+
+
+The OriginTrail SDK libraries are being built in various languages by the team and the community, as listed below:
+- dkg.js - JavaScript SDK implementation
+ - [Github repository](https://github.com/OriginTrail/dkg.js)
+ - [Documentation](https://docs.origintrail.io/decentralized-knowledge-graph-layer-2/dkg-sdk/dkg-v6-js-client)
+- dkg.py - Python SDK implementation
+ - [Github repository](https://github.com/OriginTrail/dkg.py)
+ - [Documentation](https://docs.origintrail.io/decentralized-knowledge-graph-layer-2/dkg-sdk/dkg-v6-py-client)
+___
+
+
+(back to top)
+
+## π License
+
+Distributed under the Apache-2.0 License. See `LICENSE` file for more information.
+
+
+(back to top)
+
+## π€ Contributing
+
+Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are **greatly appreciated**.
+
+If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement".
+Don't forget to give the project a star! Thanks again!
+
+1. Fork the Project
+2. Create your Feature Branch (`git checkout -b feature/AmazingFeature`)
+3. Commit your Changes (`git commit -m 'Add some AmazingFeature'`)
+4. Push to the Branch (`git push origin feature/AmazingFeature`)
+5. Open a Pull Request
+
+
+(back to top)
+
+## π° Social Media
+
+
+
+
+
+___
diff --git a/config/config.json b/config/config.json
index 8f3679f4c2..e16f1e509d 100644
--- a/config/config.json
+++ b/config/config.json
@@ -131,7 +131,10 @@
"config": {
"networkId": "otp::testnet",
"hubContractAddress": "0x707233a55bD035C6Bc732196CA4dbffa63CbA169",
- "rpcEndpoints": ["wss://lofar.origin-trail.network"],
+ "rpcEndpoints": [
+ "https://lofar-tm-rpc.origin-trail.network",
+ "https://lofar.origintrail.network/"
+ ],
"initialStakeAmount": 50000,
"initialAskAmount": 2
}
@@ -166,17 +169,25 @@
}
}
}
+ },
+ "telemetry": {
+ "enabled": true,
+ "implementation": {
+ "ot-telemetry": {
+ "enabled": true,
+ "package": "./telemetry/implementation/ot-telemetry.js",
+ "config": {
+ "sendTelemetryData": false,
+ "signalingServerUrl": "null"
+ }
+ }
+ }
}
},
"maximumAssertionSizeInKb": 2500,
"commandExecutorVerboseLoggingEnabled": false,
"appDataPath": "data",
"logLevel": "info",
- "telemetry": {
- "enabled": true,
- "sendTelemetryData": false,
- "signalingServerUrl": "null"
- },
"auth": {
"ipBasedAuthEnabled": true,
"tokenBasedAuthEnabled": false,
@@ -301,17 +312,25 @@
"config": {}
}
}
+ },
+ "telemetry": {
+ "enabled": true,
+ "implementation": {
+ "ot-telemetry": {
+ "enabled": true,
+ "package": "./telemetry/implementation/ot-telemetry.js",
+ "config": {
+ "sendTelemetryData": false,
+ "signalingServerUrl": "null"
+ }
+ }
+ }
}
},
"maximumAssertionSizeInKb": 2500,
"commandExecutorVerboseLoggingEnabled": false,
"appDataPath": "data",
"logLevel": "trace",
- "telemetry": {
- "enabled": true,
- "sendTelemetryData": false,
- "signalingServerUrl": "null"
- },
"auth": {
"ipBasedAuthEnabled": true,
"tokenBasedAuthEnabled": false,
@@ -413,8 +432,7 @@
"hubContractAddress": "0xBbfF7Ea6b2Addc1f38A0798329e12C08f03750A6",
"rpcEndpoints": [
"https://lofar-testnet.origin-trail.network",
- "https://lofar-testnet.origintrail.network",
- "wss://parachain-testnet-rpc.origin-trail.network"
+ "https://lofar-testnet.origintrail.network"
]
}
}
@@ -449,17 +467,25 @@
"config": {}
}
}
+ },
+ "telemetry": {
+ "enabled": true,
+ "implementation": {
+ "ot-telemetry": {
+ "enabled": true,
+ "package": "./telemetry/implementation/ot-telemetry.js",
+ "config": {
+ "sendTelemetryData": true,
+ "signalingServerUrl": "https://testnet-signaling.origin-trail.network/signal"
+ }
+ }
+ }
}
},
"maximumAssertionSizeInKb": 2500,
"commandExecutorVerboseLoggingEnabled": false,
"appDataPath": "data",
"logLevel": "trace",
- "telemetry": {
- "enabled": true,
- "sendTelemetryData": true,
- "signalingServerUrl": "https://testnet-signaling.origin-trail.network/signal"
- },
"auth": {
"ipBasedAuthEnabled": true,
"tokenBasedAuthEnabled": false,
@@ -563,7 +589,7 @@
"rpcEndpoints": [
"https://astrosat-parachain-rpc.origin-trail.network",
"https://astrosat.origintrail.network/",
- "wss://parachain-rpc.origin-trail.network"
+ "https://astrosat-2.origintrail.network/"
]
}
}
@@ -598,17 +624,25 @@
"config": {}
}
}
+ },
+ "telemetry": {
+ "enabled": true,
+ "implementation": {
+ "ot-telemetry": {
+ "enabled": true,
+ "package": "./telemetry/implementation/ot-telemetry.js",
+ "config": {
+ "sendTelemetryData": true,
+ "signalingServerUrl": "https://mainnet-signaling.origin-trail.network/signal"
+ }
+ }
+ }
}
},
"maximumAssertionSizeInKb": 2500,
"commandExecutorVerboseLoggingEnabled": false,
"appDataPath": "data",
"logLevel": "trace",
- "telemetry": {
- "enabled": true,
- "sendTelemetryData": true,
- "signalingServerUrl": "https://mainnet-signaling.origin-trail.network/signal"
- },
"auth": {
"ipBasedAuthEnabled": true,
"tokenBasedAuthEnabled": false,
diff --git a/docs/openapi/DKGv6.yaml b/docs/openapi/DKGv6.yaml
new file mode 100644
index 0000000000..5964ab8356
--- /dev/null
+++ b/docs/openapi/DKGv6.yaml
@@ -0,0 +1,1369 @@
+openapi: 3.0.3
+info:
+ title: DKGv6
+ description: DKG v6 API Collection.
+ version: 1.0.0
+ contact: {}
+servers:
+ - url: localhost
+paths:
+ /info:
+ get:
+ tags:
+ - old
+ summary: Node Info
+ description: Get the node information.
+ operationId: nodeInfo
+ responses:
+ '200':
+ description: Node Info
+ headers:
+ Access-Control-Allow-Origin:
+ schema:
+ type: string
+ example: '*'
+ Connection:
+ schema:
+ type: string
+ example: keep-alive
+ Content-Length:
+ schema:
+ type: string
+ example: '20'
+ Date:
+ schema:
+ type: string
+ example: Thu, 17 Aug 2023 12:43:07 GMT
+ ETag:
+ schema:
+ type: string
+ example: W/"14-Rq/28W5aGKCGXmXfM1+eW1LAbb4"
+ Keep-Alive:
+ schema:
+ type: string
+ example: timeout=5
+ X-Powered-By:
+ schema:
+ type: string
+ example: Express
+ content:
+ application/json:
+ schema:
+ type: object
+ properties:
+ version:
+ type: string
+ example: 6.0.13
+ examples:
+ Node Info:
+ value:
+ version: 6.0.13
+ /bid-suggestion:
+ get:
+ tags:
+ - old
+ summary: Get Bid Suggestion
+ description: Get bid suggestion based on provided parameters.
+ operationId: getBidSuggestion
+ parameters:
+ - name: blockchain
+ in: query
+ schema:
+ type: string
+ example: hardhat
+ - name: epochsNumber
+ in: query
+ schema:
+ type: string
+ example: '5'
+ - name: assertionSize
+ in: query
+ schema:
+ type: string
+ example: '299'
+ - name: contentAssetStorageAddress
+ in: query
+ schema:
+ type: string
+ example: '0xB0D4afd8879eD9F52b28595d31B441D079B2Ca07'
+ - name: firstAssertionId
+ in: query
+ schema:
+ type: string
+ example: '0xe3a6733d7b999ca6f0d141afe3e38ac59223a4dfde7a5458932d2094ed4193cf'
+ - name: hashFunctionId
+ in: query
+ schema:
+ type: string
+ example: '1'
+ requestBody:
+ content:
+ text/plain:
+ example: ''
+ responses:
+ '200':
+ description: Get Bid Suggestion
+ headers:
+ Access-Control-Allow-Origin:
+ schema:
+ type: string
+ example: '*'
+ Connection:
+ schema:
+ type: string
+ example: keep-alive
+ Content-Length:
+ schema:
+ type: string
+ example: '38'
+ Date:
+ schema:
+ type: string
+ example: Thu, 17 Aug 2023 12:42:31 GMT
+ ETag:
+ schema:
+ type: string
+ example: W/"26-UrjseieOcIBnowM9obJae/FG7xc"
+ Keep-Alive:
+ schema:
+ type: string
+ example: timeout=5
+ X-Powered-By:
+ schema:
+ type: string
+ example: Express
+ content:
+ application/json:
+ schema:
+ type: object
+ properties:
+ bidSuggestion:
+ type: string
+ example: '903051579928002449'
+ examples:
+ Get Bid Suggestion:
+ value:
+ bidSuggestion: '903051579928002449'
+ /local-store:
+ post:
+ tags:
+ - old
+ summary: Local Store
+ description: Store locally.
+ operationId: localStore
+ requestBody:
+ content:
+ application/json:
+ schema:
+ type: array
+ items:
+ type: object
+ properties:
+ assertion:
+ type: array
+ items:
+ type: string
+ example: .
+ example:
+ - .
+ - 'OT' .
+ - .
+ - >-
+ _:c14n0
+
+ '0xcfab2d364fe01757d7a83d3b32284395d87b1c379adabb1e28a16666e0a4fca9'
+ .
+ assertionId:
+ type: string
+ example: >-
+ 0xe3a6733d7b999ca6f0d141afe3e38ac59223a4dfde7a5458932d2094ed4193cf
+ blockchain:
+ type: string
+ example: hardhat
+ contract:
+ type: string
+ example: '0xB0D4afd8879eD9F52b28595d31B441D079B2Ca07'
+ storeType:
+ type: string
+ example: TRIPLE
+ tokenId:
+ type: number
+ example: 0
+ example:
+ - assertion:
+ - .
+ - 'OT' .
+ - .
+ - >-
+ _:c14n0
+
+ '0xcfab2d364fe01757d7a83d3b32284395d87b1c379adabb1e28a16666e0a4fca9'
+ .
+ assertionId: >-
+ 0xe3a6733d7b999ca6f0d141afe3e38ac59223a4dfde7a5458932d2094ed4193cf
+ blockchain: hardhat
+ contract: '0xB0D4afd8879eD9F52b28595d31B441D079B2Ca07'
+ storeType: TRIPLE
+ tokenId: 0
+ - assertion:
+ - '11000' .
+ - 'Belgrade' .
+ - 'Smith' .
+ - 'Adam' .
+ assertionId: >-
+ 0xcfab2d364fe01757d7a83d3b32284395d87b1c379adabb1e28a16666e0a4fca9
+ blockchain: hardhat
+ contract: '0xB0D4afd8879eD9F52b28595d31B441D079B2Ca07'
+ storeType: TRIPLE
+ tokenId: 0
+ example:
+ - assertion:
+ - .
+ - 'OT' .
+ - .
+ - >-
+ _:c14n0
+
+ '0xcfab2d364fe01757d7a83d3b32284395d87b1c379adabb1e28a16666e0a4fca9'
+ .
+ assertionId: >-
+ 0xe3a6733d7b999ca6f0d141afe3e38ac59223a4dfde7a5458932d2094ed4193cf
+ blockchain: hardhat
+ contract: '0xB0D4afd8879eD9F52b28595d31B441D079B2Ca07'
+ storeType: TRIPLE
+ tokenId: 0
+ - assertion:
+ - '11000' .
+ - 'Belgrade' .
+ - 'Smith' .
+ - 'Adam' .
+ assertionId: >-
+ 0xcfab2d364fe01757d7a83d3b32284395d87b1c379adabb1e28a16666e0a4fca9
+ blockchain: hardhat
+ contract: '0xB0D4afd8879eD9F52b28595d31B441D079B2Ca07'
+ storeType: TRIPLE
+ tokenId: 0
+ responses:
+ '202':
+ description: Local Store
+ headers:
+ Access-Control-Allow-Origin:
+ schema:
+ type: string
+ example: '*'
+ Connection:
+ schema:
+ type: string
+ example: keep-alive
+ Content-Length:
+ schema:
+ type: string
+ example: '54'
+ Date:
+ schema:
+ type: string
+ example: Thu, 17 Aug 2023 12:49:45 GMT
+ ETag:
+ schema:
+ type: string
+ example: W/"36-uF3l7SNXwSBVObRCAJxOmp8OJGc"
+ Keep-Alive:
+ schema:
+ type: string
+ example: timeout=5
+ X-Powered-By:
+ schema:
+ type: string
+ example: Express
+ content:
+ application/json:
+ schema:
+ type: object
+ properties:
+ operationId:
+ type: string
+ example: 7d499975-ce42-4d84-9092-0ac2a62f5151
+ examples:
+ Local Store:
+ value:
+ operationId: 7d499975-ce42-4d84-9092-0ac2a62f5151
+ /publish:
+ post:
+ tags:
+ - old
+ summary: Publish Knowledge Asset
+ description: Publish assertion.
+ operationId: publishKnowledgeAsset
+ requestBody:
+ content:
+ application/json:
+ schema:
+ type: object
+ properties:
+ assertion:
+ type: array
+ items:
+ type: string
+ example: .
+ example:
+ - .
+ - 'OT' .
+ - .
+ - >-
+ _:c14n0
+
+ '0xcfab2d364fe01757d7a83d3b32284395d87b1c379adabb1e28a16666e0a4fca9'
+ .
+ assertionId:
+ type: string
+ example: >-
+ 0xe3a6733d7b999ca6f0d141afe3e38ac59223a4dfde7a5458932d2094ed4193cf
+ blockchain:
+ type: string
+ example: hardhat
+ contract:
+ type: string
+ example: '0xB0D4afd8879eD9F52b28595d31B441D079B2Ca07'
+ hashFunctionId:
+ type: number
+ example: 1
+ tokenId:
+ type: number
+ example: 0
+ example:
+ assertion:
+ - .
+ - 'OT' .
+ - .
+ - >-
+ _:c14n0
+
+ '0xcfab2d364fe01757d7a83d3b32284395d87b1c379adabb1e28a16666e0a4fca9'
+ .
+ assertionId: >-
+ 0xe3a6733d7b999ca6f0d141afe3e38ac59223a4dfde7a5458932d2094ed4193cf
+ blockchain: hardhat
+ contract: '0xB0D4afd8879eD9F52b28595d31B441D079B2Ca07'
+ hashFunctionId: 1
+ tokenId: 0
+ responses:
+ '202':
+ description: Publish Knowledge Asset
+ headers:
+ Access-Control-Allow-Origin:
+ schema:
+ type: string
+ example: '*'
+ Connection:
+ schema:
+ type: string
+ example: keep-alive
+ Content-Length:
+ schema:
+ type: string
+ example: '54'
+ Date:
+ schema:
+ type: string
+ example: Thu, 17 Aug 2023 13:07:57 GMT
+ ETag:
+ schema:
+ type: string
+ example: W/"36-SQS1f7vf+HLSUHZ6wvE9UUwksSY"
+ Keep-Alive:
+ schema:
+ type: string
+ example: timeout=5
+ RateLimit-Limit:
+ schema:
+ type: string
+ example: '10'
+ RateLimit-Remaining:
+ schema:
+ type: string
+ example: '9'
+ RateLimit-Reset:
+ schema:
+ type: string
+ example: '22'
+ X-Powered-By:
+ schema:
+ type: string
+ example: Express
+ content:
+ application/json:
+ schema:
+ type: object
+ properties:
+ operationId:
+ type: string
+ example: 8270c131-91b8-4573-a69e-504ff388a8b6
+ examples:
+ Publish Knowledge Asset:
+ value:
+ operationId: 8270c131-91b8-4573-a69e-504ff388a8b6
+ /get:
+ post:
+ tags:
+ - old
+ summary: Get Knowledge Asset
+ description: Get an assertion.
+ operationId: getKnowledgeAsset
+ requestBody:
+ content:
+ application/json:
+ schema:
+ type: object
+ properties:
+ hashFunctionId:
+ type: number
+ example: 1
+ id:
+ type: string
+ example: did:dkg:hardhat/0xb0d4afd8879ed9f52b28595d31b441d079b2ca07/0
+ state:
+ type: string
+ example: LATEST
+ example:
+ hashFunctionId: 1
+ id: did:dkg:hardhat/0xb0d4afd8879ed9f52b28595d31b441d079b2ca07/0
+ state: LATEST
+ responses:
+ '202':
+ description: Get Knowledge Asset
+ headers:
+ Access-Control-Allow-Origin:
+ schema:
+ type: string
+ example: '*'
+ Connection:
+ schema:
+ type: string
+ example: keep-alive
+ Content-Length:
+ schema:
+ type: string
+ example: '54'
+ Date:
+ schema:
+ type: string
+ example: Thu, 17 Aug 2023 13:16:39 GMT
+ ETag:
+ schema:
+ type: string
+ example: W/"36-tXDgcL88Mx02VotKK9H3zPuWwf8"
+ Keep-Alive:
+ schema:
+ type: string
+ example: timeout=5
+ RateLimit-Limit:
+ schema:
+ type: string
+ example: '10'
+ RateLimit-Remaining:
+ schema:
+ type: string
+ example: '9'
+ RateLimit-Reset:
+ schema:
+ type: string
+ example: '12'
+ X-Powered-By:
+ schema:
+ type: string
+ example: Express
+ content:
+ application/json:
+ schema:
+ type: object
+ properties:
+ operationId:
+ type: string
+ example: 3a6df062-b3ce-4cac-aefa-77b1e8b9a4db
+ examples:
+ Get Knowledge Asset:
+ value:
+ operationId: 3a6df062-b3ce-4cac-aefa-77b1e8b9a4db
+ /update:
+ post:
+ tags:
+ - old
+ summary: Update Knowledge Asset
+ description: Update assertion.
+ operationId: updateKnowledgeAsset
+ requestBody:
+ content:
+ application/json:
+ schema:
+ type: object
+ properties:
+ assertion:
+ type: array
+ items:
+ type: string
+ example: .
+ example:
+ - .
+ - 'TL' .
+ - .
+ - >-
+ _:c14n0
+
+ '0xa3acb6d57097f316b973e9e33d303cf411b8d62d7d589576e348d0d7049e3b63'
+ .
+ assertionId:
+ type: string
+ example: >-
+ 0xef0adc464c3dcb1d353567db5972de8d47f44d6621326645324f9730f2c83cf0
+ blockchain:
+ type: string
+ example: hardhat
+ contract:
+ type: string
+ example: '0xB0D4afd8879eD9F52b28595d31B441D079B2Ca07'
+ hashFunctionId:
+ type: number
+ example: 1
+ tokenId:
+ type: number
+ example: 0
+ example:
+ assertion:
+ - .
+ - 'TL' .
+ - .
+ - >-
+ _:c14n0
+
+ '0xa3acb6d57097f316b973e9e33d303cf411b8d62d7d589576e348d0d7049e3b63'
+ .
+ assertionId: >-
+ 0xef0adc464c3dcb1d353567db5972de8d47f44d6621326645324f9730f2c83cf0
+ blockchain: hardhat
+ contract: '0xB0D4afd8879eD9F52b28595d31B441D079B2Ca07'
+ hashFunctionId: 1
+ tokenId: 0
+ responses:
+ '202':
+ description: Update Knowledge Asset
+ headers:
+ Access-Control-Allow-Origin:
+ schema:
+ type: string
+ example: '*'
+ Connection:
+ schema:
+ type: string
+ example: keep-alive
+ Content-Length:
+ schema:
+ type: string
+ example: '54'
+ Date:
+ schema:
+ type: string
+ example: Thu, 17 Aug 2023 13:17:54 GMT
+ ETag:
+ schema:
+ type: string
+ example: W/"36-CjvPRlFINYIIcvR2H5gFBcOkNH8"
+ Keep-Alive:
+ schema:
+ type: string
+ example: timeout=5
+ RateLimit-Limit:
+ schema:
+ type: string
+ example: '10'
+ RateLimit-Remaining:
+ schema:
+ type: string
+ example: '9'
+ RateLimit-Reset:
+ schema:
+ type: string
+ example: '57'
+ X-Powered-By:
+ schema:
+ type: string
+ example: Express
+ content:
+ application/json:
+ schema:
+ type: object
+ properties:
+ operationId:
+ type: string
+ example: 0d4c3efc-0f0b-435d-b9a3-402748dbbb2f
+ examples:
+ Update Knowledge Asset:
+ value:
+ operationId: 0d4c3efc-0f0b-435d-b9a3-402748dbbb2f
+ /query:
+ post:
+ tags:
+ - old
+ summary: Query DKG
+ description: Execute a query.
+ operationId: queryDkg
+ requestBody:
+ content:
+ application/json:
+ schema:
+ type: object
+ properties:
+ query:
+ type: string
+ example: >-
+ CONSTRUCT { ?s ?p ?o } WHERE {{GRAPH
+
+ { ?s ?p ?o . }}}
+ repository:
+ type: string
+ example: privateCurrent
+ type:
+ type: string
+ example: CONSTRUCT
+ example:
+ query: >-
+ CONSTRUCT { ?s ?p ?o } WHERE {{GRAPH
+
+ { ?s ?p ?o . }}}
+ repository: privateCurrent
+ type: CONSTRUCT
+ responses:
+ '202':
+ description: Query DKG
+ headers:
+ Access-Control-Allow-Origin:
+ schema:
+ type: string
+ example: '*'
+ Connection:
+ schema:
+ type: string
+ example: keep-alive
+ Content-Length:
+ schema:
+ type: string
+ example: '54'
+ Date:
+ schema:
+ type: string
+ example: Thu, 17 Aug 2023 13:20:16 GMT
+ ETag:
+ schema:
+ type: string
+ example: W/"36-WRBDN6AcKKCbVi3DGfI6FvESm5w"
+ Keep-Alive:
+ schema:
+ type: string
+ example: timeout=5
+ X-Powered-By:
+ schema:
+ type: string
+ example: Express
+ content:
+ application/json:
+ schema:
+ type: object
+ properties:
+ operationId:
+ type: string
+ example: 746992ba-e607-4858-8deb-5cffc2541859
+ examples:
+ Query DKG:
+ value:
+ operationId: 746992ba-e607-4858-8deb-5cffc2541859
+ /{operation}/{operationId}:
+ get:
+ tags:
+ - v0
+ summary: '[v0] Get Operation Result'
+ description: Get result of a specific operation by its ID.
+ operationId: v0GetOperationResult
+ responses:
+ '200':
+ description: ''
+ parameters:
+ - name: operation
+ in: path
+ required: true
+ schema:
+ type: string
+ - name: operationId
+ in: path
+ required: true
+ schema:
+ type: string
+ /v0/info:
+ get:
+ tags:
+ - v0
+ summary: '[v0] Node Info'
+ description: Get the node information.
+ operationId: v0NodeInfo
+ responses:
+ '200':
+ description: '[v0] Node Info'
+ headers:
+ Access-Control-Allow-Origin:
+ schema:
+ type: string
+ example: '*'
+ Connection:
+ schema:
+ type: string
+ example: keep-alive
+ Content-Length:
+ schema:
+ type: string
+ example: '20'
+ Date:
+ schema:
+ type: string
+ example: Thu, 17 Aug 2023 13:27:58 GMT
+ ETag:
+ schema:
+ type: string
+ example: W/"14-Rq/28W5aGKCGXmXfM1+eW1LAbb4"
+ Keep-Alive:
+ schema:
+ type: string
+ example: timeout=5
+ X-Powered-By:
+ schema:
+ type: string
+ example: Express
+ content:
+ application/json:
+ schema:
+ type: object
+ properties:
+ version:
+ type: string
+ example: 6.0.13
+ examples:
+ '[v0] Node Info':
+ value:
+ version: 6.0.13
+ /v0/bid-suggestion:
+ get:
+ tags:
+ - v0
+ summary: '[v0] Get Bid Suggestion'
+ description: Get bid suggestion based on provided parameters.
+ operationId: v0GetBidSuggestion
+ parameters:
+ - name: blockchain
+ in: query
+ schema:
+ type: string
+ example: hardhat
+ - name: epochsNumber
+ in: query
+ schema:
+ type: string
+ example: '5'
+ - name: assertionSize
+ in: query
+ schema:
+ type: string
+ example: '299'
+ - name: contentAssetStorageAddress
+ in: query
+ schema:
+ type: string
+ example: '0xB0D4afd8879eD9F52b28595d31B441D079B2Ca07'
+ - name: firstAssertionId
+ in: query
+ schema:
+ type: string
+ example: '0xe3a6733d7b999ca6f0d141afe3e38ac59223a4dfde7a5458932d2094ed4193cf'
+ - name: hashFunctionId
+ in: query
+ schema:
+ type: string
+ example: '1'
+ requestBody:
+ content:
+ text/plain:
+ example: ''
+ responses:
+ '200':
+ description: '[v0] Get Bid Suggestion'
+ headers:
+ Access-Control-Allow-Origin:
+ schema:
+ type: string
+ example: '*'
+ Connection:
+ schema:
+ type: string
+ example: keep-alive
+ Content-Length:
+ schema:
+ type: string
+ example: '39'
+ Date:
+ schema:
+ type: string
+ example: Thu, 17 Aug 2023 13:59:02 GMT
+ ETag:
+ schema:
+ type: string
+ example: W/"27-ieFm/6t4DZwm0kFCMq71s37uy/g"
+ Keep-Alive:
+ schema:
+ type: string
+ example: timeout=5
+ X-Powered-By:
+ schema:
+ type: string
+ example: Express
+ content:
+ application/json:
+ schema:
+ type: object
+ properties:
+ bidSuggestion:
+ type: string
+ example: '1122511549276000025'
+ examples:
+ '[v0] Get Bid Suggestion':
+ value:
+ bidSuggestion: '1122511549276000025'
+ /v0/local-store:
+ post:
+ tags:
+ - v0
+ summary: '[v0] Local Store'
+ description: Store locally.
+ operationId: v0LocalStore
+ requestBody:
+ content:
+ application/json:
+ schema:
+ type: array
+ items:
+ type: object
+ properties:
+ assertion:
+ type: array
+ items:
+ type: string
+ example: .
+ example:
+ - .
+ - 'OT' .
+ - .
+ - >-
+ _:c14n0
+
+ '0xcfab2d364fe01757d7a83d3b32284395d87b1c379adabb1e28a16666e0a4fca9'
+ .
+ assertionId:
+ type: string
+ example: >-
+ 0xe3a6733d7b999ca6f0d141afe3e38ac59223a4dfde7a5458932d2094ed4193cf
+ blockchain:
+ type: string
+ example: hardhat
+ contract:
+ type: string
+ example: '0xB0D4afd8879eD9F52b28595d31B441D079B2Ca07'
+ storeType:
+ type: string
+ example: TRIPLE
+ tokenId:
+ type: number
+ example: 0
+ example:
+ - assertion:
+ - .
+ - 'OT' .
+ - .
+ - >-
+ _:c14n0
+
+ '0xcfab2d364fe01757d7a83d3b32284395d87b1c379adabb1e28a16666e0a4fca9'
+ .
+ assertionId: >-
+ 0xe3a6733d7b999ca6f0d141afe3e38ac59223a4dfde7a5458932d2094ed4193cf
+ blockchain: hardhat
+ contract: '0xB0D4afd8879eD9F52b28595d31B441D079B2Ca07'
+ storeType: TRIPLE
+ tokenId: 0
+ - assertion:
+ - '11000' .
+ - 'Belgrade' .
+ - 'Smith' .
+ - 'Adam' .
+ assertionId: >-
+ 0xcfab2d364fe01757d7a83d3b32284395d87b1c379adabb1e28a16666e0a4fca9
+ blockchain: hardhat
+ contract: '0xB0D4afd8879eD9F52b28595d31B441D079B2Ca07'
+ storeType: TRIPLE
+ tokenId: 0
+ example:
+ - assertion:
+ - .
+ - 'OT' .
+ - .
+ - >-
+ _:c14n0
+
+ '0xcfab2d364fe01757d7a83d3b32284395d87b1c379adabb1e28a16666e0a4fca9'
+ .
+ assertionId: >-
+ 0xe3a6733d7b999ca6f0d141afe3e38ac59223a4dfde7a5458932d2094ed4193cf
+ blockchain: hardhat
+ contract: '0xB0D4afd8879eD9F52b28595d31B441D079B2Ca07'
+ storeType: TRIPLE
+ tokenId: 0
+ - assertion:
+ - '11000' .
+ - 'Belgrade' .
+ - 'Smith' .
+ - 'Adam' .
+ assertionId: >-
+ 0xcfab2d364fe01757d7a83d3b32284395d87b1c379adabb1e28a16666e0a4fca9
+ blockchain: hardhat
+ contract: '0xB0D4afd8879eD9F52b28595d31B441D079B2Ca07'
+ storeType: TRIPLE
+ tokenId: 0
+ responses:
+ '202':
+ description: '[v0] Local Store'
+ headers:
+ Access-Control-Allow-Origin:
+ schema:
+ type: string
+ example: '*'
+ Connection:
+ schema:
+ type: string
+ example: keep-alive
+ Content-Length:
+ schema:
+ type: string
+ example: '54'
+ Date:
+ schema:
+ type: string
+ example: Thu, 17 Aug 2023 13:59:11 GMT
+ ETag:
+ schema:
+ type: string
+ example: W/"36-fpQtTlhbbWO7tqbMGm3CkKmOqaI"
+ Keep-Alive:
+ schema:
+ type: string
+ example: timeout=5
+ X-Powered-By:
+ schema:
+ type: string
+ example: Express
+ content:
+ application/json:
+ schema:
+ type: object
+ properties:
+ operationId:
+ type: string
+ example: 0a4ee669-95bb-41cd-a2e8-3382361e80d9
+ examples:
+ '[v0] Local Store':
+ value:
+ operationId: 0a4ee669-95bb-41cd-a2e8-3382361e80d9
+ /v0/publish:
+ post:
+ tags:
+ - v0
+ summary: '[v0] Publish Knowledge Asset'
+ description: Publish assertion.
+ operationId: v0PublishKnowledgeAsset
+ requestBody:
+ content:
+ application/json:
+ schema:
+ type: object
+ properties:
+ assertion:
+ type: array
+ items:
+ type: string
+ example: .
+ example:
+ - .
+ - 'OT' .
+ - .
+ - >-
+ _:c14n0
+
+ '0xcfab2d364fe01757d7a83d3b32284395d87b1c379adabb1e28a16666e0a4fca9'
+ .
+ assertionId:
+ type: string
+ example: >-
+ 0xe3a6733d7b999ca6f0d141afe3e38ac59223a4dfde7a5458932d2094ed4193cf
+ blockchain:
+ type: string
+ example: hardhat
+ contract:
+ type: string
+ example: '0xB0D4afd8879eD9F52b28595d31B441D079B2Ca07'
+ hashFunctionId:
+ type: number
+ example: 1
+ tokenId:
+ type: number
+ example: 0
+ example:
+ assertion:
+ - .
+ - 'OT' .
+ - .
+ - >-
+ _:c14n0
+
+ '0xcfab2d364fe01757d7a83d3b32284395d87b1c379adabb1e28a16666e0a4fca9'
+ .
+ assertionId: >-
+ 0xe3a6733d7b999ca6f0d141afe3e38ac59223a4dfde7a5458932d2094ed4193cf
+ blockchain: hardhat
+ contract: '0xB0D4afd8879eD9F52b28595d31B441D079B2Ca07'
+ hashFunctionId: 1
+ tokenId: 0
+ responses:
+ '202':
+ description: '[v0] Publish Knowledge Asset'
+ headers:
+ Access-Control-Allow-Origin:
+ schema:
+ type: string
+ example: '*'
+ Connection:
+ schema:
+ type: string
+ example: keep-alive
+ Content-Length:
+ schema:
+ type: string
+ example: '54'
+ Date:
+ schema:
+ type: string
+ example: Thu, 17 Aug 2023 13:59:54 GMT
+ ETag:
+ schema:
+ type: string
+ example: W/"36-wKIhHpa0/tdVYh1Y8D2yINolruA"
+ Keep-Alive:
+ schema:
+ type: string
+ example: timeout=5
+ RateLimit-Limit:
+ schema:
+ type: string
+ example: '10'
+ RateLimit-Remaining:
+ schema:
+ type: string
+ example: '9'
+ RateLimit-Reset:
+ schema:
+ type: string
+ example: '52'
+ X-Powered-By:
+ schema:
+ type: string
+ example: Express
+ content:
+ application/json:
+ schema:
+ type: object
+ properties:
+ operationId:
+ type: string
+ example: 476fb996-db1a-47b8-8da4-80d71411feb3
+ examples:
+ '[v0] Publish Knowledge Asset':
+ value:
+ operationId: 476fb996-db1a-47b8-8da4-80d71411feb3
+ /v0/get:
+ post:
+ tags:
+ - v0
+ summary: '[v0] Get Knowledge Asset'
+ description: Get an assertion.
+ operationId: v0GetKnowledgeAsset
+ requestBody:
+ content:
+ application/json:
+ schema:
+ type: object
+ properties:
+ hashFunctionId:
+ type: number
+ example: 1
+ id:
+ type: string
+ example: did:dkg:hardhat/0xb0d4afd8879ed9f52b28595d31b441d079b2ca07/0
+ state:
+ type: string
+ example: LATEST
+ example:
+ hashFunctionId: 1
+ id: did:dkg:hardhat/0xb0d4afd8879ed9f52b28595d31b441d079b2ca07/0
+ state: LATEST
+ responses:
+ '202':
+ description: '[v0] Get Knowledge Asset'
+ headers:
+ Access-Control-Allow-Origin:
+ schema:
+ type: string
+ example: '*'
+ Connection:
+ schema:
+ type: string
+ example: keep-alive
+ Content-Length:
+ schema:
+ type: string
+ example: '54'
+ Date:
+ schema:
+ type: string
+ example: Thu, 17 Aug 2023 14:00:02 GMT
+ ETag:
+ schema:
+ type: string
+ example: W/"36-/27PH/ZH74wwVBrYDxWSzCk4yA0"
+ Keep-Alive:
+ schema:
+ type: string
+ example: timeout=5
+ RateLimit-Limit:
+ schema:
+ type: string
+ example: '10'
+ RateLimit-Remaining:
+ schema:
+ type: string
+ example: '9'
+ RateLimit-Reset:
+ schema:
+ type: string
+ example: '44'
+ X-Powered-By:
+ schema:
+ type: string
+ example: Express
+ content:
+ application/json:
+ schema:
+ type: object
+ properties:
+ operationId:
+ type: string
+ example: 5b34c048-2d08-4696-b3c4-c37c831b89ce
+ examples:
+ '[v0] Get Knowledge Asset':
+ value:
+ operationId: 5b34c048-2d08-4696-b3c4-c37c831b89ce
+ /v0/update:
+ post:
+ tags:
+ - v0
+ summary: '[v0] Update Knowledge Asset'
+ description: Update assertion.
+ operationId: v0UpdateKnowledgeAsset
+ requestBody:
+ content:
+ application/json:
+ schema:
+ type: object
+ properties:
+ assertion:
+ type: array
+ items:
+ type: string
+ example: .
+ example:
+ - .
+ - 'TL' .
+ - .
+ - >-
+ _:c14n0
+
+ '0xa3acb6d57097f316b973e9e33d303cf411b8d62d7d589576e348d0d7049e3b63'
+ .
+ assertionId:
+ type: string
+ example: >-
+ 0xef0adc464c3dcb1d353567db5972de8d47f44d6621326645324f9730f2c83cf0
+ blockchain:
+ type: string
+ example: hardhat
+ contract:
+ type: string
+ example: '0xB0D4afd8879eD9F52b28595d31B441D079B2Ca07'
+ hashFunctionId:
+ type: number
+ example: 1
+ tokenId:
+ type: number
+ example: 0
+ example:
+ assertion:
+ - .
+ - 'TL' .
+ - .
+ - >-
+ _:c14n0
+
+ '0xa3acb6d57097f316b973e9e33d303cf411b8d62d7d589576e348d0d7049e3b63'
+ .
+ assertionId: >-
+ 0xef0adc464c3dcb1d353567db5972de8d47f44d6621326645324f9730f2c83cf0
+ blockchain: hardhat
+ contract: '0xB0D4afd8879eD9F52b28595d31B441D079B2Ca07'
+ hashFunctionId: 1
+ tokenId: 0
+ responses:
+ '202':
+ description: '[v0] Update Knowledge Asset'
+ headers:
+ Access-Control-Allow-Origin:
+ schema:
+ type: string
+ example: '*'
+ Connection:
+ schema:
+ type: string
+ example: keep-alive
+ Content-Length:
+ schema:
+ type: string
+ example: '54'
+ Date:
+ schema:
+ type: string
+ example: Thu, 17 Aug 2023 14:00:09 GMT
+ ETag:
+ schema:
+ type: string
+ example: W/"36-77qAdgCc/SEN47aETAww86PM04w"
+ Keep-Alive:
+ schema:
+ type: string
+ example: timeout=5
+ RateLimit-Limit:
+ schema:
+ type: string
+ example: '10'
+ RateLimit-Remaining:
+ schema:
+ type: string
+ example: '9'
+ RateLimit-Reset:
+ schema:
+ type: string
+ example: '38'
+ X-Powered-By:
+ schema:
+ type: string
+ example: Express
+ content:
+ application/json:
+ schema:
+ type: object
+ properties:
+ operationId:
+ type: string
+ example: f0d34032-6910-49b4-a2a8-71c9f58feb58
+ examples:
+ '[v0] Update Knowledge Asset':
+ value:
+ operationId: f0d34032-6910-49b4-a2a8-71c9f58feb58
+ /v0/query:
+ post:
+ tags:
+ - v0
+ summary: '[v0] Query DKG'
+ description: Execute a query.
+ operationId: v0QueryDkg
+ requestBody:
+ content:
+ application/json:
+ schema:
+ type: object
+ properties:
+ query:
+ type: string
+ example: >-
+ CONSTRUCT { ?s ?p ?o } WHERE {{GRAPH
+
+ { ?s ?p ?o . }}}
+ repository:
+ type: string
+ example: privateCurrent
+ type:
+ type: string
+ example: CONSTRUCT
+ example:
+ query: >-
+ CONSTRUCT { ?s ?p ?o } WHERE {{GRAPH
+
+ { ?s ?p ?o . }}}
+ repository: privateCurrent
+ type: CONSTRUCT
+ responses:
+ '202':
+ description: '[v0] Query DKG'
+ headers:
+ Access-Control-Allow-Origin:
+ schema:
+ type: string
+ example: '*'
+ Connection:
+ schema:
+ type: string
+ example: keep-alive
+ Content-Length:
+ schema:
+ type: string
+ example: '54'
+ Date:
+ schema:
+ type: string
+ example: Thu, 17 Aug 2023 14:00:19 GMT
+ ETag:
+ schema:
+ type: string
+ example: W/"36-kqaRe64EoJygoEadXJWRekiCs4s"
+ Keep-Alive:
+ schema:
+ type: string
+ example: timeout=5
+ X-Powered-By:
+ schema:
+ type: string
+ example: Express
+ content:
+ application/json:
+ schema:
+ type: object
+ properties:
+ operationId:
+ type: string
+ example: 4d371ffb-a620-452f-8d16-3e427bafeae2
+ examples:
+ '[v0] Query DKG':
+ value:
+ operationId: 4d371ffb-a620-452f-8d16-3e427bafeae2
+tags:
+ - name: old
+ - name: v0
diff --git a/docs/postman/DKGv6.postman_collection.json b/docs/postman/DKGv6.postman_collection.json
new file mode 100644
index 0000000000..bd257955e4
--- /dev/null
+++ b/docs/postman/DKGv6.postman_collection.json
@@ -0,0 +1,1774 @@
+{
+ "info": {
+ "_postman_id": "550b0443-cd47-482a-9c56-2b1229422426",
+ "name": "DKGv6",
+ "description": "DKG v6 API Collection.",
+ "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
+ },
+ "item": [
+ {
+ "name": "old",
+ "item": [
+ {
+ "name": "Node Info",
+ "request": {
+ "method": "GET",
+ "header": [
+ {
+ "key": "Authorization",
+ "value": "Bearer {{authToken}}"
+ }
+ ],
+ "url": {
+ "raw": "{{host}}:{{port}}/info",
+ "host": [
+ "{{host}}"
+ ],
+ "port": "{{port}}",
+ "path": [
+ "info"
+ ]
+ },
+ "description": "Get the node information."
+ },
+ "response": [
+ {
+ "name": "Node Info",
+ "originalRequest": {
+ "method": "GET",
+ "header": [
+ {
+ "key": "Authorization",
+ "value": "Bearer {{authToken}}"
+ }
+ ],
+ "url": {
+ "raw": "{{host}}:{{port}}/info",
+ "host": [
+ "{{host}}"
+ ],
+ "port": "{{port}}",
+ "path": [
+ "info"
+ ]
+ }
+ },
+ "status": "OK",
+ "code": 200,
+ "_postman_previewlanguage": "json",
+ "header": [
+ {
+ "key": "X-Powered-By",
+ "value": "Express"
+ },
+ {
+ "key": "Access-Control-Allow-Origin",
+ "value": "*"
+ },
+ {
+ "key": "Content-Type",
+ "value": "application/json; charset=utf-8"
+ },
+ {
+ "key": "Content-Length",
+ "value": "20"
+ },
+ {
+ "key": "ETag",
+ "value": "W/\"14-Rq/28W5aGKCGXmXfM1+eW1LAbb4\""
+ },
+ {
+ "key": "Date",
+ "value": "Thu, 17 Aug 2023 12:43:07 GMT"
+ },
+ {
+ "key": "Connection",
+ "value": "keep-alive"
+ },
+ {
+ "key": "Keep-Alive",
+ "value": "timeout=5"
+ }
+ ],
+ "cookie": [],
+ "body": "{\n \"version\": \"6.0.13\"\n}"
+ }
+ ]
+ },
+ {
+ "name": "Get Bid Suggestion",
+ "protocolProfileBehavior": {
+ "disableBodyPruning": true
+ },
+ "request": {
+ "method": "GET",
+ "header": [
+ {
+ "key": "Authorization",
+ "value": "Bearer {{authToken}}"
+ }
+ ],
+ "body": {
+ "mode": "raw",
+ "raw": ""
+ },
+ "url": {
+ "raw": "{{host}}:{{port}}/bid-suggestion?blockchain={{blockchain}}&epochsNumber={{epochsNumber}}&assertionSize={{assertionSize}}&contentAssetStorageAddress={{contentAssetStorageAddress}}&firstAssertionId={{firstAssertionId}}&hashFunctionId={{hashFunctionId}}",
+ "host": [
+ "{{host}}"
+ ],
+ "port": "{{port}}",
+ "path": [
+ "bid-suggestion"
+ ],
+ "query": [
+ {
+ "key": "blockchain",
+ "value": "{{blockchain}}"
+ },
+ {
+ "key": "epochsNumber",
+ "value": "{{epochsNumber}}"
+ },
+ {
+ "key": "assertionSize",
+ "value": "{{assertionSize}}"
+ },
+ {
+ "key": "contentAssetStorageAddress",
+ "value": "{{contentAssetStorageAddress}}"
+ },
+ {
+ "key": "firstAssertionId",
+ "value": "{{firstAssertionId}}"
+ },
+ {
+ "key": "hashFunctionId",
+ "value": "{{hashFunctionId}}"
+ }
+ ]
+ },
+ "description": "Get bid suggestion based on provided parameters."
+ },
+ "response": [
+ {
+ "name": "Get Bid Suggestion",
+ "originalRequest": {
+ "method": "GET",
+ "header": [
+ {
+ "key": "Authorization",
+ "value": "Bearer {{authToken}}"
+ }
+ ],
+ "body": {
+ "mode": "raw",
+ "raw": ""
+ },
+ "url": {
+ "raw": "{{host}}:{{port}}/bid-suggestion?blockchain={{blockchain}}&epochsNumber={{epochsNumber}}&assertionSize={{assertionSize}}&contentAssetStorageAddress={{contentAssetStorageAddress}}&firstAssertionId={{firstAssertionId}}&hashFunctionId={{hashFunctionId}}",
+ "host": [
+ "{{host}}"
+ ],
+ "port": "{{port}}",
+ "path": [
+ "bid-suggestion"
+ ],
+ "query": [
+ {
+ "key": "blockchain",
+ "value": "{{blockchain}}"
+ },
+ {
+ "key": "epochsNumber",
+ "value": "{{epochsNumber}}"
+ },
+ {
+ "key": "assertionSize",
+ "value": "{{assertionSize}}"
+ },
+ {
+ "key": "contentAssetStorageAddress",
+ "value": "{{contentAssetStorageAddress}}"
+ },
+ {
+ "key": "firstAssertionId",
+ "value": "{{firstAssertionId}}"
+ },
+ {
+ "key": "hashFunctionId",
+ "value": "{{hashFunctionId}}"
+ }
+ ]
+ }
+ },
+ "status": "OK",
+ "code": 200,
+ "_postman_previewlanguage": "json",
+ "header": [
+ {
+ "key": "X-Powered-By",
+ "value": "Express"
+ },
+ {
+ "key": "Access-Control-Allow-Origin",
+ "value": "*"
+ },
+ {
+ "key": "Content-Type",
+ "value": "application/json; charset=utf-8"
+ },
+ {
+ "key": "Content-Length",
+ "value": "38"
+ },
+ {
+ "key": "ETag",
+ "value": "W/\"26-UrjseieOcIBnowM9obJae/FG7xc\""
+ },
+ {
+ "key": "Date",
+ "value": "Thu, 17 Aug 2023 12:42:31 GMT"
+ },
+ {
+ "key": "Connection",
+ "value": "keep-alive"
+ },
+ {
+ "key": "Keep-Alive",
+ "value": "timeout=5"
+ }
+ ],
+ "cookie": [],
+ "body": "{\n \"bidSuggestion\": \"903051579928002449\"\n}"
+ }
+ ]
+ },
+ {
+ "name": "Local Store",
+ "request": {
+ "method": "POST",
+ "header": [
+ {
+ "key": "Authorization",
+ "value": "Bearer {{authToken}}"
+ },
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "body": {
+ "mode": "raw",
+ "raw": "{{assertions}}"
+ },
+ "url": {
+ "raw": "{{host}}:{{port}}/local-store",
+ "host": [
+ "{{host}}"
+ ],
+ "port": "{{port}}",
+ "path": [
+ "local-store"
+ ]
+ },
+ "description": "Store locally."
+ },
+ "response": [
+ {
+ "name": "Local Store",
+ "originalRequest": {
+ "method": "POST",
+ "header": [
+ {
+ "key": "Authorization",
+ "value": "Bearer {{authToken}}"
+ },
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "body": {
+ "mode": "raw",
+ "raw": "{{assertions}}"
+ },
+ "url": {
+ "raw": "{{host}}:{{port}}/local-store",
+ "host": [
+ "{{host}}"
+ ],
+ "port": "{{port}}",
+ "path": [
+ "local-store"
+ ]
+ }
+ },
+ "status": "Accepted",
+ "code": 202,
+ "_postman_previewlanguage": "json",
+ "header": [
+ {
+ "key": "X-Powered-By",
+ "value": "Express"
+ },
+ {
+ "key": "Access-Control-Allow-Origin",
+ "value": "*"
+ },
+ {
+ "key": "Content-Type",
+ "value": "application/json; charset=utf-8"
+ },
+ {
+ "key": "Content-Length",
+ "value": "54"
+ },
+ {
+ "key": "ETag",
+ "value": "W/\"36-uF3l7SNXwSBVObRCAJxOmp8OJGc\""
+ },
+ {
+ "key": "Date",
+ "value": "Thu, 17 Aug 2023 12:49:45 GMT"
+ },
+ {
+ "key": "Connection",
+ "value": "keep-alive"
+ },
+ {
+ "key": "Keep-Alive",
+ "value": "timeout=5"
+ }
+ ],
+ "cookie": [],
+ "body": "{\n \"operationId\": \"7d499975-ce42-4d84-9092-0ac2a62f5151\"\n}"
+ }
+ ]
+ },
+ {
+ "name": "Publish Knowledge Asset",
+ "protocolProfileBehavior": {
+ "disabledSystemHeaders": {
+ "content-type": true
+ }
+ },
+ "request": {
+ "method": "POST",
+ "header": [
+ {
+ "key": "Authorization",
+ "value": "Bearer {{authToken}}"
+ },
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "body": {
+ "mode": "raw",
+ "raw": "{\n \"assertionId\": \"0xe3a6733d7b999ca6f0d141afe3e38ac59223a4dfde7a5458932d2094ed4193cf\",\n \"assertion\": [\n \" .\",\n \" 'OT' .\",\n \" .\",\n \"_:c14n0 '0xcfab2d364fe01757d7a83d3b32284395d87b1c379adabb1e28a16666e0a4fca9' .\"\n ],\n \"blockchain\": \"hardhat\",\n \"contract\": \"0xB0D4afd8879eD9F52b28595d31B441D079B2Ca07\",\n \"tokenId\": 0,\n \"hashFunctionId\": 1\n}"
+ },
+ "url": {
+ "raw": "{{host}}:{{port}}/publish",
+ "host": [
+ "{{host}}"
+ ],
+ "port": "{{port}}",
+ "path": [
+ "publish"
+ ]
+ },
+ "description": "Publish assertion."
+ },
+ "response": [
+ {
+ "name": "Publish Knowledge Asset",
+ "originalRequest": {
+ "method": "POST",
+ "header": [
+ {
+ "key": "Authorization",
+ "value": "Bearer {{authToken}}"
+ },
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "body": {
+ "mode": "raw",
+ "raw": "{\n \"assertionId\": \"0xe3a6733d7b999ca6f0d141afe3e38ac59223a4dfde7a5458932d2094ed4193cf\",\n \"assertion\": [\n \" .\",\n \" 'OT' .\",\n \" .\",\n \"_:c14n0 '0xcfab2d364fe01757d7a83d3b32284395d87b1c379adabb1e28a16666e0a4fca9' .\"\n ],\n \"blockchain\": \"hardhat\",\n \"contract\": \"0xB0D4afd8879eD9F52b28595d31B441D079B2Ca07\",\n \"tokenId\": 0,\n \"hashFunctionId\": 1\n}"
+ },
+ "url": {
+ "raw": "{{host}}:{{port}}/publish",
+ "host": [
+ "{{host}}"
+ ],
+ "port": "{{port}}",
+ "path": [
+ "publish"
+ ]
+ }
+ },
+ "status": "Accepted",
+ "code": 202,
+ "_postman_previewlanguage": "json",
+ "header": [
+ {
+ "key": "X-Powered-By",
+ "value": "Express"
+ },
+ {
+ "key": "Access-Control-Allow-Origin",
+ "value": "*"
+ },
+ {
+ "key": "RateLimit-Limit",
+ "value": "10"
+ },
+ {
+ "key": "RateLimit-Remaining",
+ "value": "9"
+ },
+ {
+ "key": "RateLimit-Reset",
+ "value": "22"
+ },
+ {
+ "key": "Content-Type",
+ "value": "application/json; charset=utf-8"
+ },
+ {
+ "key": "Content-Length",
+ "value": "54"
+ },
+ {
+ "key": "ETag",
+ "value": "W/\"36-SQS1f7vf+HLSUHZ6wvE9UUwksSY\""
+ },
+ {
+ "key": "Date",
+ "value": "Thu, 17 Aug 2023 13:07:57 GMT"
+ },
+ {
+ "key": "Connection",
+ "value": "keep-alive"
+ },
+ {
+ "key": "Keep-Alive",
+ "value": "timeout=5"
+ }
+ ],
+ "cookie": [],
+ "body": "{\n \"operationId\": \"8270c131-91b8-4573-a69e-504ff388a8b6\"\n}"
+ }
+ ]
+ },
+ {
+ "name": "Get Knowledge Asset",
+ "protocolProfileBehavior": {
+ "disabledSystemHeaders": {}
+ },
+ "request": {
+ "method": "POST",
+ "header": [
+ {
+ "key": "Authorization",
+ "value": "Bearer {{authToken}}"
+ },
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "body": {
+ "mode": "raw",
+ "raw": "{\n \"id\": \"did:dkg:hardhat/0xb0d4afd8879ed9f52b28595d31b441d079b2ca07/0\",\n \"state\": \"LATEST\",\n \"hashFunctionId\": 1\n}"
+ },
+ "url": {
+ "raw": "{{host}}:{{port}}/get",
+ "host": [
+ "{{host}}"
+ ],
+ "port": "{{port}}",
+ "path": [
+ "get"
+ ]
+ },
+ "description": "Get an assertion."
+ },
+ "response": [
+ {
+ "name": "Get Knowledge Asset",
+ "originalRequest": {
+ "method": "POST",
+ "header": [
+ {
+ "key": "Authorization",
+ "value": "Bearer {{authToken}}"
+ },
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "body": {
+ "mode": "raw",
+ "raw": "{\n \"id\": \"did:dkg:hardhat/0xb0d4afd8879ed9f52b28595d31b441d079b2ca07/0\",\n \"state\": \"LATEST\",\n \"hashFunctionId\": 1\n}"
+ },
+ "url": {
+ "raw": "{{host}}:{{port}}/get",
+ "host": [
+ "{{host}}"
+ ],
+ "port": "{{port}}",
+ "path": [
+ "get"
+ ]
+ }
+ },
+ "status": "Accepted",
+ "code": 202,
+ "_postman_previewlanguage": "json",
+ "header": [
+ {
+ "key": "X-Powered-By",
+ "value": "Express"
+ },
+ {
+ "key": "Access-Control-Allow-Origin",
+ "value": "*"
+ },
+ {
+ "key": "RateLimit-Limit",
+ "value": "10"
+ },
+ {
+ "key": "RateLimit-Remaining",
+ "value": "9"
+ },
+ {
+ "key": "RateLimit-Reset",
+ "value": "12"
+ },
+ {
+ "key": "Content-Type",
+ "value": "application/json; charset=utf-8"
+ },
+ {
+ "key": "Content-Length",
+ "value": "54"
+ },
+ {
+ "key": "ETag",
+ "value": "W/\"36-tXDgcL88Mx02VotKK9H3zPuWwf8\""
+ },
+ {
+ "key": "Date",
+ "value": "Thu, 17 Aug 2023 13:16:39 GMT"
+ },
+ {
+ "key": "Connection",
+ "value": "keep-alive"
+ },
+ {
+ "key": "Keep-Alive",
+ "value": "timeout=5"
+ }
+ ],
+ "cookie": [],
+ "body": "{\n \"operationId\": \"3a6df062-b3ce-4cac-aefa-77b1e8b9a4db\"\n}"
+ }
+ ]
+ },
+ {
+ "name": "Update Knowledge Asset",
+ "request": {
+ "method": "POST",
+ "header": [
+ {
+ "key": "Authorization",
+ "value": "Bearer {{authToken}}"
+ },
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "body": {
+ "mode": "raw",
+ "raw": "{\n \"assertionId\": \"0xef0adc464c3dcb1d353567db5972de8d47f44d6621326645324f9730f2c83cf0\",\n \"assertion\": [\n \" .\",\n \" 'TL' .\",\n \" .\",\n \"_:c14n0 '0xa3acb6d57097f316b973e9e33d303cf411b8d62d7d589576e348d0d7049e3b63' .\"\n ],\n \"blockchain\": \"hardhat\",\n \"contract\": \"0xB0D4afd8879eD9F52b28595d31B441D079B2Ca07\",\n \"tokenId\": 0,\n \"hashFunctionId\": 1\n}"
+ },
+ "url": {
+ "raw": "{{host}}:{{port}}/update",
+ "host": [
+ "{{host}}"
+ ],
+ "port": "{{port}}",
+ "path": [
+ "update"
+ ]
+ },
+ "description": "Update assertion."
+ },
+ "response": [
+ {
+ "name": "Update Knowledge Asset",
+ "originalRequest": {
+ "method": "POST",
+ "header": [
+ {
+ "key": "Authorization",
+ "value": "Bearer {{authToken}}"
+ },
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "body": {
+ "mode": "raw",
+ "raw": "{\n \"assertionId\": \"0xef0adc464c3dcb1d353567db5972de8d47f44d6621326645324f9730f2c83cf0\",\n \"assertion\": [\n \" .\",\n \" 'TL' .\",\n \" .\",\n \"_:c14n0 '0xa3acb6d57097f316b973e9e33d303cf411b8d62d7d589576e348d0d7049e3b63' .\"\n ],\n \"blockchain\": \"hardhat\",\n \"contract\": \"0xB0D4afd8879eD9F52b28595d31B441D079B2Ca07\",\n \"tokenId\": 0,\n \"hashFunctionId\": 1\n}"
+ },
+ "url": {
+ "raw": "{{host}}:{{port}}/update",
+ "host": [
+ "{{host}}"
+ ],
+ "port": "{{port}}",
+ "path": [
+ "update"
+ ]
+ }
+ },
+ "status": "Accepted",
+ "code": 202,
+ "_postman_previewlanguage": "json",
+ "header": [
+ {
+ "key": "X-Powered-By",
+ "value": "Express"
+ },
+ {
+ "key": "Access-Control-Allow-Origin",
+ "value": "*"
+ },
+ {
+ "key": "RateLimit-Limit",
+ "value": "10"
+ },
+ {
+ "key": "RateLimit-Remaining",
+ "value": "9"
+ },
+ {
+ "key": "RateLimit-Reset",
+ "value": "57"
+ },
+ {
+ "key": "Content-Type",
+ "value": "application/json; charset=utf-8"
+ },
+ {
+ "key": "Content-Length",
+ "value": "54"
+ },
+ {
+ "key": "ETag",
+ "value": "W/\"36-CjvPRlFINYIIcvR2H5gFBcOkNH8\""
+ },
+ {
+ "key": "Date",
+ "value": "Thu, 17 Aug 2023 13:17:54 GMT"
+ },
+ {
+ "key": "Connection",
+ "value": "keep-alive"
+ },
+ {
+ "key": "Keep-Alive",
+ "value": "timeout=5"
+ }
+ ],
+ "cookie": [],
+ "body": "{\n \"operationId\": \"0d4c3efc-0f0b-435d-b9a3-402748dbbb2f\"\n}"
+ }
+ ]
+ },
+ {
+ "name": "Query DKG",
+ "request": {
+ "method": "POST",
+ "header": [
+ {
+ "key": "Authorization",
+ "value": "Bearer {{authToken}}"
+ },
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "body": {
+ "mode": "raw",
+ "raw": "{\n \"query\": \"CONSTRUCT { ?s ?p ?o } WHERE {{GRAPH { ?s ?p ?o . }}}\",\n \"type\": \"CONSTRUCT\",\n \"repository\": \"privateCurrent\"\n}"
+ },
+ "url": {
+ "raw": "{{host}}:{{port}}/query",
+ "host": [
+ "{{host}}"
+ ],
+ "port": "{{port}}",
+ "path": [
+ "query"
+ ]
+ },
+ "description": "Execute a query."
+ },
+ "response": [
+ {
+ "name": "Query DKG",
+ "originalRequest": {
+ "method": "POST",
+ "header": [
+ {
+ "key": "Authorization",
+ "value": "Bearer {{authToken}}"
+ },
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "body": {
+ "mode": "raw",
+ "raw": "{\n \"query\": \"CONSTRUCT { ?s ?p ?o } WHERE {{GRAPH { ?s ?p ?o . }}}\",\n \"type\": \"CONSTRUCT\",\n \"repository\": \"privateCurrent\"\n}"
+ },
+ "url": {
+ "raw": "{{host}}:{{port}}/query",
+ "host": [
+ "{{host}}"
+ ],
+ "port": "{{port}}",
+ "path": [
+ "query"
+ ]
+ }
+ },
+ "status": "Accepted",
+ "code": 202,
+ "_postman_previewlanguage": "json",
+ "header": [
+ {
+ "key": "X-Powered-By",
+ "value": "Express"
+ },
+ {
+ "key": "Access-Control-Allow-Origin",
+ "value": "*"
+ },
+ {
+ "key": "Content-Type",
+ "value": "application/json; charset=utf-8"
+ },
+ {
+ "key": "Content-Length",
+ "value": "54"
+ },
+ {
+ "key": "ETag",
+ "value": "W/\"36-WRBDN6AcKKCbVi3DGfI6FvESm5w\""
+ },
+ {
+ "key": "Date",
+ "value": "Thu, 17 Aug 2023 13:20:16 GMT"
+ },
+ {
+ "key": "Connection",
+ "value": "keep-alive"
+ },
+ {
+ "key": "Keep-Alive",
+ "value": "timeout=5"
+ }
+ ],
+ "cookie": [],
+ "body": "{\n \"operationId\": \"746992ba-e607-4858-8deb-5cffc2541859\"\n}"
+ }
+ ]
+ },
+ {
+ "name": "Get Operation Result",
+ "request": {
+ "method": "GET",
+ "header": [
+ {
+ "key": "Authorization",
+ "value": "Bearer {{authToken}}"
+ }
+ ],
+ "url": {
+ "raw": "{{host}}:{{port}}/{{operation}}/{{operationId}}",
+ "host": [
+ "{{host}}"
+ ],
+ "port": "{{port}}",
+ "path": [
+ "{{operation}}",
+ "{{operationId}}"
+ ]
+ },
+ "description": "Get result of a specific operation by its ID."
+ },
+ "response": []
+ }
+ ]
+ },
+ {
+ "name": "v0",
+ "item": [
+ {
+ "name": "[v0] Node Info",
+ "request": {
+ "method": "GET",
+ "header": [
+ {
+ "key": "Authorization",
+ "value": "Bearer {{authToken}}"
+ }
+ ],
+ "url": {
+ "raw": "{{host}}:{{port}}/v0/info",
+ "host": [
+ "{{host}}"
+ ],
+ "port": "{{port}}",
+ "path": [
+ "v0",
+ "info"
+ ]
+ },
+ "description": "Get the node information."
+ },
+ "response": [
+ {
+ "name": "[v0] Node Info",
+ "originalRequest": {
+ "method": "GET",
+ "header": [
+ {
+ "key": "Authorization",
+ "value": "Bearer {{authToken}}"
+ }
+ ],
+ "url": {
+ "raw": "{{host}}:{{port}}/v0/info",
+ "host": [
+ "{{host}}"
+ ],
+ "port": "{{port}}",
+ "path": [
+ "v0",
+ "info"
+ ]
+ }
+ },
+ "status": "OK",
+ "code": 200,
+ "_postman_previewlanguage": "json",
+ "header": [
+ {
+ "key": "X-Powered-By",
+ "value": "Express"
+ },
+ {
+ "key": "Access-Control-Allow-Origin",
+ "value": "*"
+ },
+ {
+ "key": "Content-Type",
+ "value": "application/json; charset=utf-8"
+ },
+ {
+ "key": "Content-Length",
+ "value": "20"
+ },
+ {
+ "key": "ETag",
+ "value": "W/\"14-Rq/28W5aGKCGXmXfM1+eW1LAbb4\""
+ },
+ {
+ "key": "Date",
+ "value": "Thu, 17 Aug 2023 13:27:58 GMT"
+ },
+ {
+ "key": "Connection",
+ "value": "keep-alive"
+ },
+ {
+ "key": "Keep-Alive",
+ "value": "timeout=5"
+ }
+ ],
+ "cookie": [],
+ "body": "{\n \"version\": \"6.0.13\"\n}"
+ }
+ ]
+ },
+ {
+ "name": "[v0] Get Bid Suggestion",
+ "protocolProfileBehavior": {
+ "disableBodyPruning": true
+ },
+ "request": {
+ "method": "GET",
+ "header": [
+ {
+ "key": "Authorization",
+ "value": "Bearer {{authToken}}"
+ }
+ ],
+ "body": {
+ "mode": "raw",
+ "raw": ""
+ },
+ "url": {
+ "raw": "{{host}}:{{port}}/v0/bid-suggestion?blockchain={{blockchain}}&epochsNumber={{epochsNumber}}&assertionSize={{assertionSize}}&contentAssetStorageAddress={{contentAssetStorageAddress}}&firstAssertionId={{firstAssertionId}}&hashFunctionId={{hashFunctionId}}",
+ "host": [
+ "{{host}}"
+ ],
+ "port": "{{port}}",
+ "path": [
+ "v0",
+ "bid-suggestion"
+ ],
+ "query": [
+ {
+ "key": "blockchain",
+ "value": "{{blockchain}}"
+ },
+ {
+ "key": "epochsNumber",
+ "value": "{{epochsNumber}}"
+ },
+ {
+ "key": "assertionSize",
+ "value": "{{assertionSize}}"
+ },
+ {
+ "key": "contentAssetStorageAddress",
+ "value": "{{contentAssetStorageAddress}}"
+ },
+ {
+ "key": "firstAssertionId",
+ "value": "{{firstAssertionId}}"
+ },
+ {
+ "key": "hashFunctionId",
+ "value": "{{hashFunctionId}}"
+ }
+ ]
+ },
+ "description": "Get bid suggestion based on provided parameters."
+ },
+ "response": [
+ {
+ "name": "[v0] Get Bid Suggestion",
+ "originalRequest": {
+ "method": "GET",
+ "header": [
+ {
+ "key": "Authorization",
+ "value": "Bearer {{authToken}}"
+ }
+ ],
+ "body": {
+ "mode": "raw",
+ "raw": ""
+ },
+ "url": {
+ "raw": "{{host}}:{{port}}/v0/bid-suggestion?blockchain={{blockchain}}&epochsNumber={{epochsNumber}}&assertionSize={{assertionSize}}&contentAssetStorageAddress={{contentAssetStorageAddress}}&firstAssertionId={{firstAssertionId}}&hashFunctionId={{hashFunctionId}}",
+ "host": [
+ "{{host}}"
+ ],
+ "port": "{{port}}",
+ "path": [
+ "v0",
+ "bid-suggestion"
+ ],
+ "query": [
+ {
+ "key": "blockchain",
+ "value": "{{blockchain}}"
+ },
+ {
+ "key": "epochsNumber",
+ "value": "{{epochsNumber}}"
+ },
+ {
+ "key": "assertionSize",
+ "value": "{{assertionSize}}"
+ },
+ {
+ "key": "contentAssetStorageAddress",
+ "value": "{{contentAssetStorageAddress}}"
+ },
+ {
+ "key": "firstAssertionId",
+ "value": "{{firstAssertionId}}"
+ },
+ {
+ "key": "hashFunctionId",
+ "value": "{{hashFunctionId}}"
+ }
+ ]
+ }
+ },
+ "status": "OK",
+ "code": 200,
+ "_postman_previewlanguage": "json",
+ "header": [
+ {
+ "key": "X-Powered-By",
+ "value": "Express"
+ },
+ {
+ "key": "Access-Control-Allow-Origin",
+ "value": "*"
+ },
+ {
+ "key": "Content-Type",
+ "value": "application/json; charset=utf-8"
+ },
+ {
+ "key": "Content-Length",
+ "value": "39"
+ },
+ {
+ "key": "ETag",
+ "value": "W/\"27-ieFm/6t4DZwm0kFCMq71s37uy/g\""
+ },
+ {
+ "key": "Date",
+ "value": "Thu, 17 Aug 2023 13:59:02 GMT"
+ },
+ {
+ "key": "Connection",
+ "value": "keep-alive"
+ },
+ {
+ "key": "Keep-Alive",
+ "value": "timeout=5"
+ }
+ ],
+ "cookie": [],
+ "body": "{\n \"bidSuggestion\": \"1122511549276000025\"\n}"
+ }
+ ]
+ },
+ {
+ "name": "[v0] Local Store",
+ "request": {
+ "method": "POST",
+ "header": [
+ {
+ "key": "Authorization",
+ "value": "Bearer {{authToken}}"
+ },
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "body": {
+ "mode": "raw",
+ "raw": "{{assertions}}"
+ },
+ "url": {
+ "raw": "{{host}}:{{port}}/v0/local-store",
+ "host": [
+ "{{host}}"
+ ],
+ "port": "{{port}}",
+ "path": [
+ "v0",
+ "local-store"
+ ]
+ },
+ "description": "Store locally."
+ },
+ "response": [
+ {
+ "name": "[v0] Local Store",
+ "originalRequest": {
+ "method": "POST",
+ "header": [
+ {
+ "key": "Authorization",
+ "value": "Bearer {{authToken}}"
+ },
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "body": {
+ "mode": "raw",
+ "raw": "{{assertions}}"
+ },
+ "url": {
+ "raw": "{{host}}:{{port}}/v0/local-store",
+ "host": [
+ "{{host}}"
+ ],
+ "port": "{{port}}",
+ "path": [
+ "v0",
+ "local-store"
+ ]
+ }
+ },
+ "status": "Accepted",
+ "code": 202,
+ "_postman_previewlanguage": "json",
+ "header": [
+ {
+ "key": "X-Powered-By",
+ "value": "Express"
+ },
+ {
+ "key": "Access-Control-Allow-Origin",
+ "value": "*"
+ },
+ {
+ "key": "Content-Type",
+ "value": "application/json; charset=utf-8"
+ },
+ {
+ "key": "Content-Length",
+ "value": "54"
+ },
+ {
+ "key": "ETag",
+ "value": "W/\"36-fpQtTlhbbWO7tqbMGm3CkKmOqaI\""
+ },
+ {
+ "key": "Date",
+ "value": "Thu, 17 Aug 2023 13:59:11 GMT"
+ },
+ {
+ "key": "Connection",
+ "value": "keep-alive"
+ },
+ {
+ "key": "Keep-Alive",
+ "value": "timeout=5"
+ }
+ ],
+ "cookie": [],
+ "body": "{\n \"operationId\": \"0a4ee669-95bb-41cd-a2e8-3382361e80d9\"\n}"
+ }
+ ]
+ },
+ {
+ "name": "[v0] Publish Knowledge Asset",
+ "protocolProfileBehavior": {
+ "disabledSystemHeaders": {
+ "content-type": true
+ }
+ },
+ "request": {
+ "method": "POST",
+ "header": [
+ {
+ "key": "Authorization",
+ "value": "Bearer {{authToken}}"
+ },
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "body": {
+ "mode": "raw",
+ "raw": "{\n \"assertionId\": \"0xe3a6733d7b999ca6f0d141afe3e38ac59223a4dfde7a5458932d2094ed4193cf\",\n \"assertion\": [\n \" .\",\n \" 'OT' .\",\n \" .\",\n \"_:c14n0 '0xcfab2d364fe01757d7a83d3b32284395d87b1c379adabb1e28a16666e0a4fca9' .\"\n ],\n \"blockchain\": \"hardhat\",\n \"contract\": \"0xB0D4afd8879eD9F52b28595d31B441D079B2Ca07\",\n \"tokenId\": 0,\n \"hashFunctionId\": 1\n}"
+ },
+ "url": {
+ "raw": "{{host}}:{{port}}/v0/publish",
+ "host": [
+ "{{host}}"
+ ],
+ "port": "{{port}}",
+ "path": [
+ "v0",
+ "publish"
+ ]
+ },
+ "description": "Publish assertion."
+ },
+ "response": [
+ {
+ "name": "[v0] Publish Knowledge Asset",
+ "originalRequest": {
+ "method": "POST",
+ "header": [
+ {
+ "key": "Authorization",
+ "value": "Bearer {{authToken}}"
+ },
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "body": {
+ "mode": "raw",
+ "raw": "{\n \"assertionId\": \"0xe3a6733d7b999ca6f0d141afe3e38ac59223a4dfde7a5458932d2094ed4193cf\",\n \"assertion\": [\n \" .\",\n \" 'OT' .\",\n \" .\",\n \"_:c14n0 '0xcfab2d364fe01757d7a83d3b32284395d87b1c379adabb1e28a16666e0a4fca9' .\"\n ],\n \"blockchain\": \"hardhat\",\n \"contract\": \"0xB0D4afd8879eD9F52b28595d31B441D079B2Ca07\",\n \"tokenId\": 0,\n \"hashFunctionId\": 1\n}"
+ },
+ "url": {
+ "raw": "{{host}}:{{port}}/v0/publish",
+ "host": [
+ "{{host}}"
+ ],
+ "port": "{{port}}",
+ "path": [
+ "v0",
+ "publish"
+ ]
+ }
+ },
+ "status": "Accepted",
+ "code": 202,
+ "_postman_previewlanguage": "json",
+ "header": [
+ {
+ "key": "X-Powered-By",
+ "value": "Express"
+ },
+ {
+ "key": "Access-Control-Allow-Origin",
+ "value": "*"
+ },
+ {
+ "key": "RateLimit-Limit",
+ "value": "10"
+ },
+ {
+ "key": "RateLimit-Remaining",
+ "value": "9"
+ },
+ {
+ "key": "RateLimit-Reset",
+ "value": "52"
+ },
+ {
+ "key": "Content-Type",
+ "value": "application/json; charset=utf-8"
+ },
+ {
+ "key": "Content-Length",
+ "value": "54"
+ },
+ {
+ "key": "ETag",
+ "value": "W/\"36-wKIhHpa0/tdVYh1Y8D2yINolruA\""
+ },
+ {
+ "key": "Date",
+ "value": "Thu, 17 Aug 2023 13:59:54 GMT"
+ },
+ {
+ "key": "Connection",
+ "value": "keep-alive"
+ },
+ {
+ "key": "Keep-Alive",
+ "value": "timeout=5"
+ }
+ ],
+ "cookie": [],
+ "body": "{\n \"operationId\": \"476fb996-db1a-47b8-8da4-80d71411feb3\"\n}"
+ }
+ ]
+ },
+ {
+ "name": "[v0] Get Knowledge Asset",
+ "protocolProfileBehavior": {
+ "disabledSystemHeaders": {}
+ },
+ "request": {
+ "method": "POST",
+ "header": [
+ {
+ "key": "Authorization",
+ "value": "Bearer {{authToken}}"
+ },
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "body": {
+ "mode": "raw",
+ "raw": "{\n \"id\": \"did:dkg:hardhat/0xb0d4afd8879ed9f52b28595d31b441d079b2ca07/0\",\n \"state\": \"LATEST\",\n \"hashFunctionId\": 1\n}"
+ },
+ "url": {
+ "raw": "{{host}}:{{port}}/v0/get",
+ "host": [
+ "{{host}}"
+ ],
+ "port": "{{port}}",
+ "path": [
+ "v0",
+ "get"
+ ]
+ },
+ "description": "Get an assertion."
+ },
+ "response": [
+ {
+ "name": "[v0] Get Knowledge Asset",
+ "originalRequest": {
+ "method": "POST",
+ "header": [
+ {
+ "key": "Authorization",
+ "value": "Bearer {{authToken}}"
+ },
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "body": {
+ "mode": "raw",
+ "raw": "{\n \"id\": \"did:dkg:hardhat/0xb0d4afd8879ed9f52b28595d31b441d079b2ca07/0\",\n \"state\": \"LATEST\",\n \"hashFunctionId\": 1\n}"
+ },
+ "url": {
+ "raw": "{{host}}:{{port}}/v0/get",
+ "host": [
+ "{{host}}"
+ ],
+ "port": "{{port}}",
+ "path": [
+ "v0",
+ "get"
+ ]
+ }
+ },
+ "status": "Accepted",
+ "code": 202,
+ "_postman_previewlanguage": "json",
+ "header": [
+ {
+ "key": "X-Powered-By",
+ "value": "Express"
+ },
+ {
+ "key": "Access-Control-Allow-Origin",
+ "value": "*"
+ },
+ {
+ "key": "RateLimit-Limit",
+ "value": "10"
+ },
+ {
+ "key": "RateLimit-Remaining",
+ "value": "9"
+ },
+ {
+ "key": "RateLimit-Reset",
+ "value": "44"
+ },
+ {
+ "key": "Content-Type",
+ "value": "application/json; charset=utf-8"
+ },
+ {
+ "key": "Content-Length",
+ "value": "54"
+ },
+ {
+ "key": "ETag",
+ "value": "W/\"36-/27PH/ZH74wwVBrYDxWSzCk4yA0\""
+ },
+ {
+ "key": "Date",
+ "value": "Thu, 17 Aug 2023 14:00:02 GMT"
+ },
+ {
+ "key": "Connection",
+ "value": "keep-alive"
+ },
+ {
+ "key": "Keep-Alive",
+ "value": "timeout=5"
+ }
+ ],
+ "cookie": [],
+ "body": "{\n \"operationId\": \"5b34c048-2d08-4696-b3c4-c37c831b89ce\"\n}"
+ }
+ ]
+ },
+ {
+ "name": "[v0] Update Knowledge Asset",
+ "request": {
+ "method": "POST",
+ "header": [
+ {
+ "key": "Authorization",
+ "value": "Bearer {{authToken}}"
+ },
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "body": {
+ "mode": "raw",
+ "raw": "{\n \"assertionId\": \"0xef0adc464c3dcb1d353567db5972de8d47f44d6621326645324f9730f2c83cf0\",\n \"assertion\": [\n \" .\",\n \" 'TL' .\",\n \" .\",\n \"_:c14n0 '0xa3acb6d57097f316b973e9e33d303cf411b8d62d7d589576e348d0d7049e3b63' .\"\n ],\n \"blockchain\": \"hardhat\",\n \"contract\": \"0xB0D4afd8879eD9F52b28595d31B441D079B2Ca07\",\n \"tokenId\": 0,\n \"hashFunctionId\": 1\n}"
+ },
+ "url": {
+ "raw": "{{host}}:{{port}}/v0/update",
+ "host": [
+ "{{host}}"
+ ],
+ "port": "{{port}}",
+ "path": [
+ "v0",
+ "update"
+ ]
+ },
+ "description": "Update assertion."
+ },
+ "response": [
+ {
+ "name": "[v0] Update Knowledge Asset",
+ "originalRequest": {
+ "method": "POST",
+ "header": [
+ {
+ "key": "Authorization",
+ "value": "Bearer {{authToken}}"
+ },
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "body": {
+ "mode": "raw",
+ "raw": "{\n \"assertionId\": \"0xef0adc464c3dcb1d353567db5972de8d47f44d6621326645324f9730f2c83cf0\",\n \"assertion\": [\n \" .\",\n \" 'TL' .\",\n \" .\",\n \"_:c14n0