Skip to content

Latest commit

 

History

History
37 lines (26 loc) · 661 Bytes

JSON-RPC.md

File metadata and controls

37 lines (26 loc) · 661 Bytes
title
JSON-RPC

import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem';

rpc-call

<Tabs defaultValue="signature" values={[ {label: 'Signature', value: 'signature'}, {label: 'Example', value: 'example'}, ]}

(url String) | rpc-call(method String, args Any, ...) | (response Any)
"http://localhost:4040/" rpc-call("count", ["foo", 7]) get-member("result") => 2

Calls JSON-RPC method method on url with any number of args. The response is converted to an appropriate data type automatically.