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
• 27,630 points
23 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,050 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 26, 2018 in Blockchain by Johnathon
• 9,070 points
61 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,330 points
38 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
83 views
0 votes
1 answer

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

yes all are over TCP/IP connections secured by TLS encryption in hashgraph architecture-hashgraph, ...READ MORE

answered Aug 6, 2018 in Blockchain by ariaholic
• 7,340 points
63 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
126 views
0 votes
1 answer
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,050 points
90 views