Skip to content

Commit f007730

Browse files
Merge pull request #19 from meet-one/master
Add API: getTableByScope
2 parents 9b13789 + 583ec9b commit f007730

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

src/api/v1/chain.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,5 +223,25 @@
223223
"signed_transaction[]": "signed_transaction"
224224
},
225225
"results": "vector[push_transaction.results]"
226+
},
227+
"get_table_by_scope": {
228+
"brief": "Fetch smart contract data by scope.",
229+
"params": {
230+
"code": "name",
231+
"table": "name",
232+
"lower_bound": {"type": "string", "default": "0"},
233+
"upper_bound": {"type": "string", "default": "-1"},
234+
"limit": {"type": "uint32", "default": "10"}
235+
},
236+
"results": {
237+
"rows": {
238+
"type": "vector",
239+
"doc": "One row per item, either encoded as hex String or JSON object"
240+
},
241+
"more": {
242+
"type": "bool",
243+
"doc": "True if last element in data is not the end and sizeof data() < limit"
244+
}
245+
}
226246
}
227247
}

0 commit comments

Comments
 (0)