ruby on rails - Invalid scope error -


i'm trying send bitcons using coinbase ruby gem i'm having hard time getting work. i'm authenticating 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 error i'm getting back.

coinbase::wallet::invalidscopeerror: api::basecontroller::invalidscopeerror 

to clear, api key has required permission set in dashboard. doing wrong?

the new ruby gem uses api v2 requires v2 scope, wallet:transactions:send instead of v1's send. can check have enabled?


Comments

Popular posts from this blog

java - Andrioid studio start fail: Fatal error initializing 'null' -

android - Gradle sync Error:Configuration with name 'default' not found -

StringGrid issue in Delphi XE8 firemonkey mobile app -