Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DepositAddresses method not working #53

Open
SandeshSarfare opened this issue Apr 8, 2018 · 2 comments
Open

DepositAddresses method not working #53

SandeshSarfare opened this issue Apr 8, 2018 · 2 comments

Comments

@SandeshSarfare
Copy link

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?

@martin-cech
Copy link

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.

@umair982
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants