我正在尝试集成新的Coinbase python 库。我想让 send_money 工作。但无论我怎么尝试,它一直在说
transaction = account.send_money(address, bitcoins)
File "C:\Python27\lib\site-packages\coinbase\model.py", line 360, in send_money
'Failed to send money')
File "C:\Python27\lib\site-packages\coinbase\error.py", line 58, in build_api_error
raise error
APIError: Failed to send money
我的python代码:
bitcoins = 0.0001
# address = a bitcoin wallet address
client = Client(API_KEY, API_SECRET)
account = client.get_account()
transaction = account.send_money(address, str(bitcoins))
我可以检查我的余额,所以account
工作。此外,所有权限都在 Coinbase 网站的 API 设置中授予。