MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / send_json_rpc

Function send_json_rpc

test/functional/interface_rpc.py:67–69  ·  view source on GitHub ↗
(node, body: object)

Source from the content-addressed store, hash-verified

65
66
67def send_json_rpc(node, body: object) -> tuple[object, int]:
68 raw = json.dumps(body).encode("utf-8")
69 return send_raw_rpc(node, raw)
70
71
72def expect_http_rpc_status(expected_http_status, expected_rpc_error_code, node, method, params, version=1, notification=False):

Callers 3

expect_http_rpc_statusFunction · 0.85
test_batch_requestMethod · 0.85

Calls 2

send_raw_rpcFunction · 0.85
encodeMethod · 0.45

Tested by 2

test_batch_requestMethod · 0.68