Skip to content

Instantly share code, notes, and snippets.

@jaekwon
Created January 25, 2014 00:11
Show Gist options
  • Save jaekwon/8609532 to your computer and use it in GitHub Desktop.
Save jaekwon/8609532 to your computer and use it in GitHub Desktop.
* tx_id is a random string nonce of 32 characters that identifies a single request.
You can send multiple requests with the same tx_id, and it will only go through once, so
you can do retries safely when there is a network problem.
NOTE: tx_id does not guarantee that a request will successfully go through,
it only guarantees that the server will only see it once. If the server crashes while
processing a request of a given tx_id, you may have to make another request with
a new tx_id.
* Make sure your wallet names are exactly 12 characters long.
* <coin> is ‘BTC’, ‘DOG’, etc.
* All requests must additionally include ‘user_id’ and ‘secret’ parameters.
/account/balance {wallet:<wallet>} -> {status:”OK”, data:{<wallet>:{<coin>:<amount_in_satoshis>}}}
/account/deposit_address {wallet:<wallet>, coin:<coin>} -> {status:”OK”, data:<address_string>}
/account/deposits {address:<address>} -> {status:”OK”, data:[<payment1>,…]}
/account/move {from_wallet, to_wallet, coin, amount, user_tx} {status:”OK”, data:{<from_wallet>:{<coin>:<amount_in_satoshis>},<to_wallet>:…}}
/account/withdraw {from_wallet, to_address, coin, amount, user_tx} {status:”OK”, data:{<from_wallet>:{<coin>:<amount_in_satoshis>}}}
/account/withdrawals {coin:<coin>} -> {status:”OK”, data:[<withdrawal1>,…]}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment