npm-kraken-api icon indicating copy to clipboard operation
npm-kraken-api copied to clipboard

DepositAddresses method not working

Open SandeshSarfare opened this issue 6 years ago • 2 comments

DepositAddresses throws an error

"EFunding:No funding method"

`kraken.api('DepositAddresses', { "new": 'true' }, function (error, data) {
    if (error) {
        console.log(error);
    }
    else {
        console.log(data.result);
        res.status(200).json({
            message: data.result
        });

    }
});`

How do I create a deposit address?

SandeshSarfare avatar Apr 08 '18 10:04 SandeshSarfare

Ran into this too, the solution is to include parameter asset:

kraken.api('DepositAddresses', { asset: 'BTC' }, ...)

and additionally we found out that also parameter method must be included:

kraken.api('DepositAddresses', { asset: 'BTC', method: 'Bitcoin' }, ...)

We didn't find documentation for which methods are supported for which coins. We had to manually fetch methods from DepositMethods endpoint (which must be done one by one for each asset). Here's our list to save you the pain:

const KRAKEN_DEPOSIT_METHODS = {
  BTC: 'Bitcoin',
  XRP: 'Ripple XRP',
  ETH: 'Ether (Hex)',
  BCH: 'Bitcoin Cash',
  XLM: 'Stellar XLM',
  EOS: 'EOS',
  LTC: 'Litecoin',
  ADA: 'ADA',
  XMR: 'Monero',
  DASH: 'Dash',
  // ETC: '', // not available
  XTZ: 'XTZ',
  ZEC: 'Zcash (Transparent)',
  QTUM: 'QTUM',
  REP: 'REP',
  GNO: 'GNO',
  BAT: 'BAT',
  ICX: 'Icon',
  WAVES: 'Waves',
  DAI: 'Dai',
  LINK: 'Link',
};

Lastly, the parameter new should have values 1 or 0, value false results in actually creating a new address. Not sure what "false" (as string) do, boolean value false doesn't behave like expected.

martin-cech avatar Oct 03 '19 16:10 martin-cech

I am also facing this issue. I tried much but its saying "EFunding:No funding method". So please help me for this if you can . @martin-cech

umair982 avatar Jan 14 '24 07:01 umair982