Skip to content

Instantly share code, notes, and snippets.

@jaekwon
Forked from jtremback/Cryptos api v0.0.2.md
Last active January 1, 2016 03:48
Show Gist options
  • Save jaekwon/8087371 to your computer and use it in GitHub Desktop.
Save jaekwon/8087371 to your computer and use it in GitHub Desktop.
Create:
Serverside:
POST /api/v1/wallet/create
?id
&secret
&wallet
&coin
response: {
"status": "OK",
"data": {
"wallet": {
"name": "jehan",
"balance": {
"BTC": 0,
"DOG": 0,
},
"address": {
"BTC": "0a9sd...",
"DOG": "a90sd...",
},
}
}
}
View:
Serverside:
GET /api/v1/wallet/view
?id
&secret
&wallet
response: {
"status": "OK",
"data": {
"wallet": {
"name": "jehan",
"balance": {
"BTC": 0,
"DOG": 0,
},
"address": {
"BTC": "0a9sd...",
"DOG": "a90sd...",
},
}
}
}
Move:
Serverside:
POST /api/v1/wallet/move
?id
&secret
&from_wallet
&to_wallet
&coin
&amount
response: {
"status": "OK",
"data": {
"from_wallet": {
"name": "jae",
"balance": {
"BTC": 0,
"DOG": 0,
},
"address": {
"BTC": "0a9sd...",
"DOG": "a90sd...",
},
},
"to_wallet": {
"name": "jehan",
"balance": {
"BTC": 0,
"DOG": 0,
},
"address": {
"BTC": "0a9sd...",
"DOG": "a90sd...",
},
}
}
}
Withdraw:
Serverside:
POST /api/v1/wallet/withdraw
?id
&secret
&from_wallet
&to_address
&coin
&amount
response: {
"status": "OK",
"data": {
"wallet": {
"name": "jehan",
"balance": {
"BTC": 0,
"DOG": 0,
},
"address": {
"BTC": "0a9sd...",
"DOG": "a90sd...",
},
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment