Some people have been looking for a way to list coins for an exchange.
- This method will allow exchanges to list Steem smart contract tokens.
- This script is released under an MIT license
This is the previous method for https://freedomex.io
This project will allow a single endpoint for exchanges using:
ssc-exchange-method
ssc-proxie-script
dsteem
and more.
Basic methods with out ssc-exchange-proxie
Deposit and withdraw history
curl -XPOST -H "Content-type: application/json" -d '{"method": "GET", "params": {"symbol": "TOKENNAME"}}' 'http://localhost:5000'
Withdraw method
curl -XPOST -H "Content-type: application/json" -d '{"method":"withdraw", "params": {"wif": "activekey", "symbol":"TOKENNAME", "to": "username", "quantity": "0.001", "memo": "Exchange Testing"}}' 'http://localhost:5000'
Advanced methods using ssc-exchange-proxie
Get balance for specific coin rpc method
curl -XPOST -H "Content-type: application/json" -d '{ "jsonrpc": "2.0", "method": "contracts.findOne", "params": { "contract": "tokens", "table": "balances", "query": { "account": "username", "symbol": "COINNAME" } }, "id": 1 }' 'http://localhost:3000/rpc'
Get all account balances
curl -XPOST -H "Content-type: application/json" -d '{ "jsonrpc": "2.0", "method": "contracts.find", "params": { "contract": "tokens", "table": "balances", "query": { "account": "username" } }, "id": 1 }' 'http://localhost:3000/rpc'
Account history by id rpc method
curl -XPOST -H "Content-type: application/json" -d '{ "jsonrpc": "2.0", "method": "blockchain.getTransactionInfo", "params": { "txid": “taxid” }, "id": 1 }' 'http://localhost:3000/rpc'
You can find out more on the GitHub:
https://github.com/steemdevelopment/ssc-exchange-method
Feel free to contribute if you have any good ideas