params: []
result: "helloworld"
params: []
result: true
params: []
result: true
params: []
result: "vdNS7oBj7KvsMWWmo9r96SV4SqATLrGsH2a3PGpCfJC"
params: []
result: "[vdNS7oBj7KvsMWWmo9r96SV4SqATLrGsH2a3PGpCfJC, ...]"
note: the first address in the returned vector is the default address
params: [path]
result: true
params: [path]
result: true
params: [vdNS7oBj7KvsMWWmo9r96SV4SqATLrGsH2a3PGpCfJC]
result: true
params: []
result: "[{"btc":(value, network)}, ...]"
params: [network, token]
result: "Ht5G1RhkcKnpLVLMhqJc5aqZ4wYUEbxbtZwGCVbgU7DL"
params: []
result: {"network":["btc", "sol"]}
params: [network, token, publickey]
result: "Ht5G1RhkcKnpLVLMhqJc5aqZ4wYUEbxbtZwGCVbgU7DL"
note: The publickey sent here is used so the cashier can know where to send tokens once the deposit is received.
params: [network, token, publickey, amount]
result: "txID"
note: The publickey sent here is the address where the caller wants to receive the tokens they plan to withdraw. On request, send request to cashier to get deposit address, and then transfer dark tokens to the cashier's wallet. Following that, the cashier should return a transaction ID of them sending the funds that are requested for withdrawal.
params: [network, dToken, address, amount]
result: "txID"