They can be used like ordinary blocknet rpc methods.
First two can be used only when Blocknet run in exchange node mode (--enable-exchange)
dxGetTransactionList - without params, return list of pending and active XBridge transactions
example:
curl --user user --data-binary '{ "jsonrpc": "1.0", "id":"1", "method": "dxGetCurrencyList", "params": [] }' -H 'content-type: text/plain;'
http://127.0.0.1:22358 dxGetCurrencyList - without params, return list of connected wallets with their currencies names
example:
curl --user user --data-binary '{ "jsonrpc": "1.0", "id":"1", "method": "dxGetCurrencyList", "params": [] }' -H 'content-type: text/plain;'
http://127.0.0.1:22358 dxCreateTransaction - create transaction for exchanging coins
example:
curl --user user --data-binary '{ "jsonrpc": "1.0", "id":"1", "method": "dxCreateTransaction ", "params": ["LTnoVFAnKSMj4v2eFXBJuMmyj000000000", "LTC", 0.0001, "00000000KSMj4v2eFXBJuMmyjqSQT9eXBy", "SYS", 0.0001,] }' -H 'content-type: text/plain;'
http://127.0.0.1:22358params:
address from - wallet address from which coins will be taken
currency from - currency name (BTC, SYS, LTC etc…)
amount from - amount of coins that will be taken
address to - wallet address that will receive coins
currency to - currency name (BTC, SYS, LTC etc…)
amount to - amount of coins that will be received
dxAcceptTransaction - accept exchanging transaction
example:
curl --user user --data-binary '{ "jsonrpc": "1.0", "id":"1", "method": "dxAcceptTransaction", "params": ["d02d1d63b31173e7e4cf958249d9c91ed257d5792031ba4eee49693a4cbdca82", "LTnoVFAnKSMj4v2eFXBJuMmyj000000000","00000000KSMj4v2eFXBJuMmyjqSQT9eXBy"] }' -H 'content-type: text/plain;'
http://127.0.0.1:22358params:
id - id of exchanging transaction
address from - from wallet address
address to - to wallet address
dxCancelTransaction - cancel exchanging transaction
example:
curl --user user --data-binary '{ "jsonrpc": "1.0", "id":"1", "method": "dxCancelTransaction", "params": ["d02d1d63b31173e7e4cf958249d9c91ed257d5792031ba4eee49693a4cbdca82"] }' -H 'content-type: text/plain;'
http://127.0.0.1:22358params:
id - id of exchanging transaction