How to check payment in Blockchain.info wallet?

0 votes

I am using Blockchain API v2 and i am trying to create bill for payment and send to my customer via telegram bot. Following is the code:

xpub='***'
keyk='02e57f1***'
url='https://api.blockchain.info/v2/receive?xpub='+str(xpub)+'&callback=https%3A%2F%2Fdoors03.ru&key='+keyk
x=requests.get(url)
r=x.json()
r=r['address']

When I am checking if the payment was received to the above address using this:

data={ "Content-Type": "text/plain","key":keyk,"addr":r,"callback":"https%3A%2F%2Fdoors03.ru","onNotification":"KEEP", "op":"RECEIVE"}
r = requests.post(url, data=data)

I get this error: {\n "message" : "Internal handlers error"\n}

Kindly help me wherever I am going wrong.

Aug 17, 2018 in Blockchain by sabby
• 4,370 points
120 views

1 answer to this question.

0 votes

The above error is probably occurring due to wrong interpretation of their API.

as post parameters, like in other methods they have provided in API. In those methods parameters are URL encoded like you did with callback link. The main reason of your error may be that you put "Content-Type: text/plain" in data object, and maybe encoded callback URL. 

answered Aug 20, 2018 by Perry
• 17,090 points

Related Questions In Blockchain

0 votes
1 answer

How to check history of blockchain.info wallet?

In the link you mentioned(https://blockchain.info/q), there are ...READ MORE

answered Jul 23, 2018 in Blockchain by slayer
• 29,240 points
66 views
0 votes
1 answer
+1 vote
3 answers
0 votes
1 answer

How to make sure transactions take no fee in a private Ethereum blockchain?

In a private ethereum network you have ...READ MORE

answered Mar 26, 2018 in Blockchain by Christine
• 15,810 points

edited Mar 26, 2018 by Christine 146 views
+1 vote
1 answer
0 votes
1 answer

Python request module for bitcoin json rpc

This should work: #!/usr/bin/env python import getpass import json import requests ...READ MORE

answered Aug 28, 2018 in Blockchain by digger
• 26,600 points
318 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,810 points
188 views
+1 vote
1 answer
0 votes
1 answer

How to check Bitcoin Wallet ?

This can be done using Extended Public ...READ MORE

answered Jul 13, 2018 in Blockchain by Perry
• 17,090 points
112 views
0 votes
1 answer

In a non-cryptocurrency implementation of Blockchain, how to successfully mine a node?

Difficulty is a property of the blockchain, ...READ MORE

answered Jul 13, 2018 in Blockchain by Perry
• 17,090 points
54 views