Wallet

Everything connected with funds, withdrawals, deposits and fees

get
Get deposit endpoint

https://yomer.com/api/wallet/endpoint
Returns deposit address for given currency. OwnerID is your user ID.
Request
Response
Query Parameters
currency
required
string
Cryptocurrency
200: OK
Cake successfully retrieved.
{
"address": "0x1324",
"currency": "ETH",
"id": 5,
"ownerID": 4
}

get
Get balances

https://yomer.com/api/wallet/balances
Returns list of total balances for each cryptocurrency.
Request
Response
200: OK
[
{
"balance": {
"crypt": {
"amount": "5",
"currency": "ETH"
},
"local": {
"amount": "500",
"currency": "USD"
}
},
"currency": "ETH",
"pending": {
"crypt": {
"amount": "0",
"currency": "ETH"
},
"local": {
"amount": "0",
"currency": "USD"
}
}
}
]

get
Get deposit and withdraw fees

https://yomer.com/api/wallet/fees
This method returns fees settings for each currency, defined by Yomer.
Request
Response
200: OK
[
{
"currency": "ETH",
"depositFee": "0.01",
"minDeposit": "0.04",
"minWithdraw": "0.1",
"withdrawFee": "0.01"
}
]

post
Withdraw

https://yomer.com/api/wallet/withdraw
This method will withdraw funds from given currency for given amount to set address. If there is not enough funds in your account, method will fail.
Request
Response
Body Parameters
currency
optional
string
Currency to withdraw from
amount
optional
string
Amount to withdraw. Defined in scaled units - e.g. if you want to withdraw ETH, amount is defined in ETH, not in wei
address
optional
string
Address to withdraw to
200: OK
{
"address": "0x123",
"amount": "5",
"currency": "ETH",
"fee": "0.01",
"hash": "0xafsdfafdf",
"id": 5,
"status": "NEW",
"userID": 4
}

get
Get history

https://yomer.com/api/wallet/history
This method will return page of funds history. History is formed from transactions, deposits, withdrawals and payment results
Request
Response
Query Parameters
page
required
string
Page
limit
optional
string
Page size
sort
optional
string
Sort by field
sortOrder
optional
string
"ASC" or "DESC"
query
optional
string
Will query by hash, address or amount
200: OK
{
"content": [
{
"accountID": 0,
"amount": "6.43",
"confirmations": 4,
"createdAt": 132434343,
"currency": "ETH",
"specifiedFee": "0.01",
"txHash": "0xsadffaasfsdfsadfds",
"type": "string"
}
],
"page": 0,
"pageSize": 0,
"totalPages": 0
}