除比特币账户外,Coinbase API列表地址的交易不适用于以太坊,莱特币等

时间:2019-06-20 19:58:08

标签: python-3.x coinbase-api

我正在使用coinbase api来进行地址交易,当我使用比特币地址时,它总是成功的,但是当分别提供具有正确帐户ID的莱特币和以太坊地址时,返回404。 这是我的代码:

from coinbase.wallet.client import Client

client = Client(API_KEY, API_SECRET)

#This works
response = client.get_address_transactions(btc_id,'bitcoin-address')
#returns correct response

#This doesn't work
response = client.get_address_transactions(ltc_id,'litecoin-address')
#returns coinbase.wallet.error.NotFoundError: APIError(id=not_found): Not found

#This doesn't work
response = client.get_address_transactions(eth_id,'ethereum-address')
#returns coinbase.wallet.error.NotFoundError: APIError(id=not_found): Not found

我直接使用了python请求并获得相同的响应。我在做什么错

0 个答案:

没有答案