[英]Invalid scope error
I'm trying to send bitcons using coinbase ruby gem but I'm having a hard time getting it to work. 我正在尝试使用coinbase红宝石宝石发送比特币,但是我很难让它工作。 I'm authenticating like this:
我这样验证:
c = Coinbase::Wallet::Client.new(api_key: ENV["COINBASE_KEY"], api_secret: ENV["COINBASE_SECRET"])
ca = c.account(User.last.account.account_id)
ca.send(to: ENV["BITCOIN_ADDRESS"], amount: '0.0001', currency: 'BTC')
This is the error I'm getting back. 这是我回来的错误。
Coinbase::Wallet::InvalidScopeError: Api::BaseController::InvalidScopeError
To be clear, the API key has the required permission set in the dashboard. 需要明确的是,API密钥已在仪表板中设置了必需的权限。 what could i be doing wrong?
我可能做错了什么?
The new Ruby gem uses API v2 which requires v2 scope, wallet:transactions:send
instead of v1's send
. 新的Ruby gem使用的API v2需要v2范围,
wallet:transactions:send
而不是v1的send
。 Can you check that you have this enabled? 您可以检查一下是否启用了此功能吗?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.