cashierd JSON-RPC API
deposit
Executes a deposit request given network
and token_id
.
Returns the address where the deposit shall be transferred to.
[src]
--> {"jsonrpc": "2.0", "method": "deposit", "params": ["network", "token", "publickey"], "id": 1}
<-- {"jsonrpc": "2.0", "result": "Ht5G1RhkcKnpLVLMhqJc5aqZ4wYUEbxbtZwGCVbgU7DL", "id": 1}
withdraw
Executes a withdraw request given network
, token_id
, publickey
and amount
. publickey
is supposed to correspond to network
.
Returns the transaction ID of the processed withdraw.
[src]
--> {"jsonrpc": "2.0", "method": "withdraw", "params": ["network", "token", "publickey", "amount"], "id": 1}
<-- {"jsonrpc": "2.0", "result": "txID", "id": 1}
features
Returns supported cashier features, like network, listening ports, etc.
[src]
--> {"jsonrpc": "2.0", "method": "features", "params": [], "id": 1}
<-- {"jsonrpc": "2.0", "result": {"network": ["btc", "sol"]}, "id": 1}