coinbase-pro-node icon indicating copy to clipboard operation
coinbase-pro-node copied to clipboard

Tx Hash through API?

Open LRonHubs opened this issue 9 years ago • 5 comments

Is it possible to get the txHash of a deposit, or txHash of a withdrawal, through the deposit and withdrawal history point of the API? This information is available on my GDAX account page but not through the API? That is sour

Transaction hash is different from deposit address. It is very very important (and standard, frankly) that both are included.

LRonHubs avatar Nov 16 '17 20:11 LRonHubs

+1

danielebuso avatar Nov 16 '17 21:11 danielebuso

I am doing this by adding to the gdax code.

Add following code @ ~/lib/clients/authenticated.js

getAccountTransfers(accountID, args = {}, callback) {
    if (!callback && typeof args === 'function') {
      callback = args;
      args = {};
    }
    return this.get(['accounts', accountID, 'transfers'], { qs: args }, callback);
  }

Call authedClient.getAccountTransfers(account_id, callback); this will return the list of transfers made in the account which can be used to search for txHash. Hope this helps.

adityamertia avatar Jan 06 '18 05:01 adityamertia

@adityamertia Would you mind opening a PR with this?

fb55 avatar Jan 08 '18 00:01 fb55

@fb55 created a PR with the same. This will also need changes to README file to add the function description.

adityamertia avatar Jan 10 '18 16:01 adityamertia

Closing. Support for this was added in #217.

rmm5t avatar Jun 25 '18 02:06 rmm5t