You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/n3/Advances/Oracles.md
+5-4Lines changed: 5 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ Neo Oracle Service is an out-of-chain data access service built into Neo N3. It
12
12
13
13
The commit-reveal mechanism is a sequential protocol that prevents data plagiarism for multiple Oracle nodes.
14
14
15
-
**Process**
15
+
#### Process
16
16
17
17
1. Oracle node submits ciphertext information (hash, signature, etc.) about data to other Oracle nodes and collects ciphertext information submitted by other Oracle nodes.
18
18
@@ -32,7 +32,7 @@ Neo Oracle Service adopts the request-response processing mechanism, which is an
32
32
33
33

34
34
35
-
**Process**
35
+
#### Process
36
36
37
37
1. The user writes the smart contract to call the `Request` method of the Oracle contract.
38
38
@@ -54,11 +54,11 @@ Oracle service currently supports two URL schemes, `https` and `neofs`. `https`
54
54
55
55
## Fees and rewards
56
56
57
-
-**Fees**
57
+
-### Fees
58
58
59
59
Neo Oracle Service charges the user by the number of requests, 0.5 GAS by default for each. Besides, the user has to pay additional fees for the callback function. All the fees will be paid when the Request is created.
60
60
61
-
-**Rewards**
61
+
-### Rewards
62
62
63
63
The fee paid by the user for the Request is distributed to the Oracle node in turn when executing the `PostPersist` logic.
64
64
@@ -240,3 +240,4 @@ The Code field defines the status Code for Oracle responses, including the follo
240
240
|`0x1a`|`ResponseTooLarge`| result size is out of limit |`byte`|
241
241
|`0x1c`|`InsufficientFunds`| the fee is insufficient |`byte`|
242
242
|`0xff`|`Error`| error occurs in the execution |`byte`|
0 commit comments