Skip to content

Instantly share code, notes, and snippets.

@jtremback
Forked from jaekwon/Cryptos api v0.0.2
Created December 22, 2013 20:10
Show Gist options
  • Save jtremback/8087785 to your computer and use it in GitHub Desktop.
Save jtremback/8087785 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