cURL Testing Commands
List all supported commands.
Create Deposit Addresses
For BNB, XLM, XRP or EOS wallet:
curl -X POST -H "Content-Type: application/json" -d '{"count":2,"memos":["001","002"]}' \
http://localhost:8889/v1/mock/wallets/{WALLET_ID}/addresses
For wallet excepts BNB, XLM, XRP and EOS:
curl -X POST -H "Content-Type: application/json" -d '{"count":2}' \
http://localhost:8889/v1/mock/wallets/{WALLET_ID}/addresses
Query Deposit Addresses
curl 'http://localhost:8889/v1/mock/wallets/{WALLET_ID}/addresses?start_index=0&request_number=1000'
Query Pool Address
curl 'http://localhost:8889/v1/mock/wallets/{WALLET_ID}/pooladdress'
Query Pool Address Balance
curl 'http://localhost:8889/v1/mock/wallets/{WALLET_ID}/pooladdress/balance'
Query Invalid Deposit Addresses
curl 'http://localhost:8889/v1/mock/wallets/{WALLET_ID}/addresses/invalid-deposit'
Query Deposit Callback Detail
curl 'http://localhost:8889/v1/mock/wallets/{WALLET_ID}/receiver/notifications/txid/{TX_ID}/{VOUT_INDEX}'
Resend Deposit Callbacks
curl -X POST -H "Content-Type: application/json" -d '{"notification_id":0}' \
http://localhost:8889/v1/mock/wallets/{WALLET_ID}/callback/resend
Query Deposit Wallet Balance
curl http://localhost:8889/v1/mock/wallets/{WALLET_ID}/receiver/balance
Withdraw Assets
curl -X POST -H "Content-Type: application/json" -d '{"requests":[{"order_id":"888888_1","address":"0x60589A749AAC632e9A830c8aBE042D1899d8Dd15","amount":"0.0001","memo":"memo-001","user_id":"USER01","message":"message-001"},{"order_id":"888888_2","address":"0xf16B7B8900F0d2f682e0FFe207a553F52B6C7015","amount":"0.0002","memo":"memo-002","user_id":"USER01","message":"message-002"}]}' \
http://localhost:8889/v1/mock/wallets/{WALLET_ID}/withdraw
Cancel Withdrawal
curl -X POST http://localhost:8889/v1/mock/wallets/{WALLET_ID}/sender/transactions/{ORDER_ID}/cancel
Query Latest Withdrawal Transaction State
curl http://localhost:8889/v1/mock/wallets/{WALLET_ID}/sender/transactions/{ORDER_ID}
Query All Withdrawal Transaction States
curl http://localhost:8889/v1/mock/wallets/{WALLET_ID}/sender/transactions/{ORDER_ID}/all
Query Withdrawal Wallet Balance
curl http://localhost:8889/v1/mock/wallets/{WALLET_ID}/sender/balance
Query Withdrawal Callback Detail
curl 'http://localhost:8889/v1/mock/wallets/{WALLET_ID}/sender/notifications/order_id/{ORDER_ID}'
Query Callback History
curl 'http://localhost:8889/v1/mock/wallets/{WALLET_ID}/notifications?from_time=1561651200&to_time=1562255999&type=2'
Query Callback Detail
curl -X POST -H "Content-Type: application/json" -d '{"ids":[90000000140,90000000139]}' \
http://localhost:8889/v1/mock/wallets/{WALLET_ID}/notifications/get_by_id
Query Wallet Synchronization Info
curl 'http://localhost:8889/v1/mock/wallets/{WALLET_ID}/blocks'
Query Transaction Average Fee
curl -X POST -H "Content-Type: application/json" -d '{"block_num":1}' \
http://localhost:8889/v1/mock/wallets/{WALLET_ID}/autofee
Query Vault Wallet Transaction History
curl 'http://localhost:8889/v1/mock/wallets/{WALLET_ID}/transactions?start_index=0&from_time=1559664000&to_time=1562255999&request_number=8'
Query Vault Wallet Balance
curl http://localhost:8889/v1/mock/wallets/{WALLET_ID}/vault/balance
Activate API Code
curl -X POST http://localhost:8889/v1/mock/wallets/{WALLET_ID}/apisecret/activate
Query API Code Status
curl http://localhost:8889/v1/mock/wallets/{WALLET_ID}/apisecret
Query Wallet Info
curl 'http://localhost:8889/v1/mock/wallets/{WALLET_ID}/info'
Verify Addresses
curl -X POST -H "Content-Type: application/json" -d '{"addresses":["0x635B4764D1939DfAcD3a8014726159abC277BecC","1CK6KHY6MHgYvmRQ4PAafKYDrg1ejbH1cE"]}' \
http://localhost:8889/v1/mock/wallets/{WALLET_ID}/addresses/verify