Welcome toVigges Developer Community-Open, Learning,Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
602 views
in Technique[技术] by (71.8m points)

curl - POST /withdrawals/crypto api request in Coinbase Pro responded with message: invalid scope

I am using Coinbase pro sandbox for testing purpose. I am using php curl method to all api requests. All works properly. But, just POST /withdrawal/crypto request responded with message: invalid scope.

I am using by default available Crypto addresses enlisted in address book in coinbase pro sandbox https://public.sandbox.pro.coinbase.com/profile/address-book.

 $arr = array("amount" => "0.011", "currency" => "BTC", "crypto_address" => 
"1JmYrFBLMSCLBwoL87gdQ5Qc9MLvb2egKk","no_desination_tag"=>true)

what should be the following body parameters:

amount = 0.01(string or float)
currency = "BTC"
crypto_address = "1JmYrFBLMSCLBwoL87gdQ5Qc9MLvb2egKk" (displayed crypto 
                  address in address book for BTC)
if destination_tag is null then "no_destination_tag" = true.
"add_network_fee_to_total" = 0.01 for eg. BTC address

Thanking you in advance


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to Vigges Developer Community for programmer and developer-Open, Learning and Share
...