MCPcopy Create free account
hub / github.com/ElementsProject/elements / build_request

Method build_request

contrib/linearize/linearize-hashes.py:52–60  ·  view source on GitHub ↗
(idx, method, params)

Source from the content-addressed store, hash-verified

50
51 @staticmethod
52 def build_request(idx, method, params):
53 obj = { 'version' : '1.1',
54 'method' : method,
55 'id' : idx }
56 if params is None:
57 obj['params'] = []
58 else:
59 obj['params'] = params
60 return obj
61
62 @staticmethod
63 def response_is_error(resp_obj):

Callers 1

get_block_hashesFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected