-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathapi_liststreamitems.go
More file actions
24 lines (23 loc) · 932 Bytes
/
Copy pathapi_liststreamitems.go
File metadata and controls
24 lines (23 loc) · 932 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package multichain
// Lists items in stream, passed as a stream name, ref or creation txid.
// Set verbose to true for additional information about each item’s transaction. Use count and start to retrieve
// part of the list only, with negative start values (like the default) indicating the most recent items.
// Set local-ordering to true to order items by when first seen by this node, rather than their order in the chain.
// If an item’s data is larger than the maxshowndata runtime parameter, it will be returned as an object whose
// fields can be used with gettxoutdata.
func (client *Client) ListStreamItems(stream string, start, count int, verbose, localOrdering bool) (Response, error) {
return client.Post(
map[string]interface{}{
"jsonrpc": "1.0",
"id": CONST_ID,
"method": "liststreamitems",
"params": []interface{}{
stream,
verbose,
count,
start,
localOrdering,
},
},
)
}