User Information

Get Wallet Balances

Wallet Balances

GET https://ethalend.com/api/users/balances?wallet=0x0ef017411cd16b7652e4F7365E1f2F5e61BdBB3b

This endpoint checks balances for ETH, USDT, USDC, and DAI for a given address.

Query Parameters

NameTypeDescription

wallet

string

0x0ef017411cd16b7652e4F7365E1f2F5e61BdBB3b ETHA wallet address or web3 wallet

{
  "success": true,
  "data": [
    {
      "address": "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
      "symbol": "ETH",
      "decimals": 18,
      "balance": "4219800000000000000"
    },
    {
      "address": "0x6B175474E89094C44Da98b954EedeAC495271d0F",
      "symbol": "DAI",
      "decimals": 18,
      "balance": "13910000000000000000"
    },
    {
      "address": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
      "symbol": "USDC",
      "decimals": 6,
      "balance": "100000000"
    },
    {
      "address": "0xdAC17F958D2ee523a2206206994597C13D831ec7",
      "symbol": "USDT",
      "decimals": 6,
      "balance": "0"
    }
  ]
}

Yield Earned

GET https://ethalend.com/api/users/interest?wallet=0x0ef017411cd16b7652e4F7365E1f2F5e61BdBB3b

Checks past and current data for a given ETHA wallet, and returns the investment and earnings information

Query Parameters

NameTypeDescription

wallet

string

0x0ef017411cd16b7652e4F7365E1f2F5e61BdBB3b ETHA wallet address or web3 wallet

{
  "success": true,
  "data": {
    "DAI": {
      "totalEarned": -35.980000000000004,
      "currentInvested": 35.980000000000004,
      "savings": 0
    },
    "USDC": {
      "totalEarned": 0,
      "currentInvested": 0,
      "savings": 0
    },
    "USDT": {
      "totalEarned": 9020000000000000000,
      "currentInvested": 0,
      "savings": 0
    },
    "ETH": {
      "totalEarned": 9.000000001500252,
      "currentInvested": 0,
      "savings": 0.2800000015002535
    },
    "totalSavingsUSD": 107.2568005746871,
    "currentInvestedUSD": 36.339800000000004,
    "totalEarnedUSD": 9020000000000003000,
    "userRates": {
      "DAI": 0,
      "USDC": 0,
      "ETH": 0.0032136228172330306,
      "USDT": 0
    }
  }
}

Activity

GET https://ethalend.com/api/users/activity?wallet=0x0ef017411cd16b7652e4F7365E1f2F5e61BdBB3b

Checks past and current data for a given ETHA wallet, and returns the investment and earnings information

Query Parameters

NameTypeDescription

wallet

string

0x0ef017411cd16b7652e4F7365E1f2F5e61BdBB3b ETHA wallet address or web3 wallet

{
  "success": true,
  "data": [
    {
      "symbol": "ETH",
      "amount": 0.5,
      "action": "Withdraw",
      "timestamp": 1599099512,
      "transactionHash": "0x5193671ffcf3f97543d264814f89941d8eeb671c7c9e5c198831827de6e7586c"
    },
    {
      "symbol": "DAI",
      "amount": 50,
      "action": "Withdraw",
      "timestamp": 1599099513,
      "transactionHash": "0xecb257adbb9e821cc6f1a8b51ebf41e7f77ced12b4dfb2d22a1f876607794dd0"
    },
    {
      "symbol": "DAI",
      "amount": 5,
      "action": "Lend",
      "timestamp": 1599099514,
      "transactionHash": "0x413e7f81712b355cb28f39c4aade023867dfb4d007f8ef1cd71b14ce26b4a118"
    },
    {
      "symbol": "DAI",
      "amount": 5,
      "action": "Lend",
      "timestamp": 1599099522,
      "transactionHash": "0xe13f5bb23435ef6269484c7361fb3528d66f547374d768b8c553d3c2892d8ce5"
    },
    {
      "symbol": "DAI",
      "amount": 5,
      "action": "Lend",
      "timestamp": 1599099527,
      "transactionHash": "0x0e77e9eedff7314aee3aff5d5d21de62cd0c179458f809d286ee32d80d5367f7"
    },
    {
      "symbol": "DAI",
      "amount": 30,
      "action": "Lend",
      "timestamp": 1599099531,
      "transactionHash": "0xdffc6e1875f6facf47ad317d6aba06adaa6a66e1bf9c71131d1a84dee520e9b0"
    },
    {
      "symbol": "ETH",
      "amount": 0.30000000000000004,
      "action": "Lend",
      "timestamp": 1599099533,
      "transactionHash": "0x492bcccf445d177b4491bf3bf4b7e0b78711938a7266a7f41ee4506f4379d678"
    },
    {
      "symbol": "ETH",
      "amount": 0.01,
      "action": "Redeem",
      "timestamp": 1599099542,
      "transactionHash": "0x01f865f94f951b69096bc03ae6937db9bf0a0e0b5f1d8d4db859c21d04578fa0"
    },
    {
      "symbol": "WETH",
      "amount": 0.01,
      "action": "Redeem",
      "timestamp": 1599099559,
      "transactionHash": "0x2feb0295c7cf73b3ed3ba249cfa3644ad49ef75162d048ea055408405602b342"
    },
    {
      "symbol": "DAI",
      "amount": 1,
      "action": "Redeem",
      "timestamp": 1599099560,
      "transactionHash": "0xf4ada47caea3fc545216fa25bf62632cb9411715558be34e1503a8b916e695aa"
    },
    {
      "symbol": "DAI",
      "amount": 1,
      "action": "Redeem",
      "timestamp": 1599099563,
      "transactionHash": "0xa299920d35b1789d6c60c68c5217947fd54c01382a7235f750ab8e31a4acf6c0"
    },
    {
      "symbol": "DAI",
      "amount": 1,
      "action": "Redeem",
      "timestamp": 1599099566,
      "transactionHash": "0xf91bd59d6bdd05b14dbc7419e3dcc15f7621c7711fd7b42ca550a2e6ff5c998c"
    },
    {
      "symbol": "DAI",
      "amount": 6,
      "action": "Redeem",
      "timestamp": 1599099567,
      "transactionHash": "0xcf1dc9655d279eeacc1870667c88244438ba00cd8d0071c86ec80a54a209591a"
    }
  ]
}

Last updated