witnetrequest2sheikahtemplate
Version:
CLI tool to convert a data request from [witnet's node](https://github.com/witnet/witnet-rust) format to a data request template readble for [Sheikah](https://github.com/witnet/sheikah).
97 lines (96 loc) • 2.96 kB
JSON
{
"jsonrpc": "2.0",
"method": "sendRequest",
"id": "1",
"params": {
"dro": {
"data_request": {
"time_lock": 1669852800,
"retrieve": [
{
"kind": "HTTP-GET",
"url": "https://blockchain.info/q/latesthash",
"script": [
128
]
},
{
"kind": "HTTP-GET",
"url": "https://api-r.bitcoinchain.com/v1/status",
"script": [
130,
24,
119,
130,
24,
103,
100,
104,
97,
115,
104
]
},
{
"kind": "HTTP-GET",
"url": "https://api.blockchair.com/bitcoin/stats",
"script": [
131,
24,
119,
130,
24,
102,
100,
100,
97,
116,
97,
130,
24,
103,
111,
98,
101,
115,
116,
95,
98,
108,
111,
99,
107,
95,
104,
97,
115,
104
]
}
],
"aggregate": {
"filters": [],
"reducer": 2
},
"tally": {
"filters": [
{
"op": 8,
"args": []
}
],
"reducer": 2
}
},
"witness_reward": 1000,
"witnesses": 3,
"backup_witnesses": 1,
"commit_fee": 10,
"reveal_fee": 10,
"tally_fee": 30,
"extra_reveal_rounds": 1,
"min_consensus_percentage": 51
},
"fee": 0
}
}