فهرست منبع

Update PIP-0033.md

Added start/max parameters to `finddataoperations`, added missing `s` in find signature
Benjamin Ansbach 6 سال پیش
والد
کامیت
e069037e69
1فایلهای تغییر یافته به همراه8 افزوده شده و 1 حذف شده
  1. 8 1
      PIP/PIP-0033.md

+ 8 - 1
PIP/PIP-0033.md

@@ -175,7 +175,7 @@ Array<Operation> signdata({
 
 The given `rawoperations`  altered by the new operation(s).
 
-### finddataoperation
+### finddataoperations
 
 This method will help to retrieve one or more DATA operations. DATA operations are special and will be heavily used, but the `getaccountoperations` method is already overloaded with parameters. Thats why we will introduce a new method that only searches for DATA operations.
 
@@ -186,6 +186,8 @@ Array<Operation> finddataoperations({
     [GUID guid = null, ] 
     [UINT16 data_type = null ,]
     [UINT16 data_sequence = null ,]
+    [UINT32 start = 0 ,]
+    [UINT16 max = 100 ,]
 })
 ```
 
@@ -201,6 +203,10 @@ Array<Operation> finddataoperations({
   The data sequence of the operation to search for. Optional.
 - `data_type [UINT16]`    
   The data type of the operation to search for.
+- `start [UINT32]`    
+  The start index to provide paging.
+- `max [UINT16]`    
+  The maximum returned values.
 
 While all parameters are optional, the method cannot handle a call to the method without any parameter.
 
@@ -208,6 +214,7 @@ While all parameters are optional, the method cannot handle a call to the method
 
 - Either `sender` or `target` must be set
 - If `data_sequence` is set, the `guid` must be provided.
+- Data is returned in descending order (latest block first).
 
 ## Rationale