Bitcoin transaction amount is below the current minimum error

0 votes

I am trying to send bitcoin to another coinbase address. I am using the following code:


url = "https://coinbase.com/api/v1/transactions/send_money?access_token=XXX"

params = {

             "transaction": {

                 "to": "1G8f9pRvgprVMUymuQugZrhYSqBNXuwzNt",

                 "amount": "0.011",

                 "notes": "Testing transaction"

             }

         }


r = requests.post(url, data=json.dumps(params)

But I get this result with the error:


{

   "success":false,

   "errors":["You must enter a positive amount","This transaction amount is below the current minimum amount to be accepted by the bitcoin network. (0.00005430 BTC)"],

   "transaction":{"id":"XXX",

                  "created_at":null,

                  "hsh":null,

                  "notes":null,

                  "amount":{"amount":"0.00000000","currency":"BTC"},

                  "request":false,

                  "status":"pending",

                  "recipient_address":""

   }

}

How to solve this?

Aug 21, 2018 in Blockchain by digger
• 26,740 points
696 views

1 answer to this question.

0 votes

I went through the code and the only reason I think that’s causing this error is that you are missing the headers. Try this code:


url = "https://coinbase.com/api/v1/transactions/send_money?access_token=XXX"

headers = {'Content-type': 'application/json', 'Accept': 'text/plain'}

params = {

             "transaction": {

                 "to": "1G8f9pRvgprVMUymuQugZrhYSqBNXuwzNt",

                 "amount": "0.011",

                 "notes": "Testing transaction"

             }

         }


r = requests.post(url, data=json.dumps(postData), headers=headers)

Let me know if this works.

answered Aug 21, 2018 by slayer
• 29,370 points
Yes, it worked! Thanks

Related Questions In Blockchain

+1 vote
1 answer

How does a miner get to know that a transaction is verified by all the nodes?

Contrary to the popular belief, it is ...READ MORE

answered Mar 27, 2018 in Blockchain by Johnathon
• 9,090 points
2,871 views
0 votes
1 answer

Where are the transaction details of a smart contract is written in Ethereum?

First ques:where in the blockchain is a ...READ MORE

answered Jul 11, 2018 in Blockchain by Shashank
• 10,400 points
835 views
0 votes
1 answer

What is the difference between Blockchin and Bitcoin

Blockchain has potential beyond Bitcoin and cryptocurrency. ...READ MORE

answered Jul 13, 2018 in Blockchain by shweta
• 440 points
2,145 views
+1 vote
1 answer

Protocols used in a distributed/dlt system for the nodes to establish communication

yes all are over TCP/IP connections secured ...READ MORE

answered Aug 6, 2018 in Blockchain by aryya
• 7,460 points
1,460 views
0 votes
1 answer

Truffle tests not running after truffle init

This was a bug. They've fixed it. ...READ MORE

answered Sep 11, 2018 in Blockchain by Christine
• 15,790 points
1,945 views
0 votes
1 answer

Hyperledger Sawtooth vs Quorum in concurrency and speed Ask

Summary: Both should provide similar reliability of ...READ MORE

answered Sep 26, 2018 in IoT (Internet of Things) by Upasana
• 8,620 points
1,469 views
0 votes
1 answer

Where is the data stored in blockchain?

The smart contract is just the business ...READ MORE

answered Jun 29, 2018 in Blockchain by slayer
• 29,370 points
1,478 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP