Quickstart

Access

  1. 1.
    Ask <delab at dedoco.com> for an API Key.
  2. 2.
    Use this as Bearer Auth in subsequent requests.

Create a namespace

Get a listing of all available contracts.
curl -XGET 'https://dte.dedoco.com/v1/contracts' \
-H 'Authorization Bearer <api_key>'
Create a namespace
curl -XPOST 'https://dte.dedoco.com/v1/namespaces' \
--user <api_key>:_ \
-H 'Authorization Bearer <api_key>' \
-d '{
"chain": "mumbai",
"name": "test/v1"
"type": "process/v2"
}'

Create a process

curl -XPOST 'https://dte.dedoco.com/v1/processes' \
-H 'Authorization Bearer <api_key>' \
-H 'Content-Type: application/json' \
-d '{
"contract": "test/v1",
"publicMeta": {
"k1": "v1"
},
"privateMeta": {
"k2": "v2"
}
}'

Sign the process

curl -XPOST 'https://dte.dedoco.com/v1/processes/${processId}/events' \
-H 'Authorization Bearer <api_key>' \
-H 'Content-Type: application/json' \
-d '{
"contract": "test/v1",
"publicMeta": {
"k3": "v3"
},
"privateMeta": {
"k4": "v4"
}
}'

Query

curl -XGET 'https://dte.dedoco.com/v1/processes/${processId}' \
-H 'Authorization Bearer <api_key>'
curl -XGET 'https://dte.dedoco.com/v1/query/process?process.k1=v1' \
-H 'Authorization Bearer <api_key>'
curl -XGET 'https://dte.dedoco.com/v1/query/process?signature.k3=v3' \
-H 'Authorization Bearer <api_key>'
You can also check whether your data has hit the blockchain by using Graph Protocol's GraphQL interface.
Last modified 5mo ago