diff --git a/apis/database/README.md b/apis/database/README.md index 418b623..6754090 100644 --- a/apis/database/README.md +++ b/apis/database/README.md @@ -45,6 +45,7 @@ It is a bit confusing to see `set_` prefix. Needs research. | get_best_categories | DONE | | | get_active_categories | DONE | | | get_recent_categories | DONE | | +| get_ops_in_block | DONE | | ### Globals diff --git a/apis/database/api.go b/apis/database/api.go index ece1510..32e299e 100644 --- a/apis/database/api.go +++ b/apis/database/api.go @@ -359,3 +359,12 @@ func (api *API) GetRepliesByLastUpdateRaw( (get_active_witnesses) (get_miner_queue) */ + +// +// Some randomly added functions. +// + +func (api *API) GetOpsInBlockRaw(blockNum uint32, onlyVirtual bool) (*json.RawMessage, error) { + return call.Raw( + api.caller, "get_ops_in_block", []interface{}{blockNum, onlyVirtual}) +}