Bitcoin Forum

Bitcoin => Project Development => Topic started by: farnhamit on September 16, 2017, 10:39:02 PM



Title: Blockchain API generating invalid address?
Post by: farnhamit on September 16, 2017, 10:39:02 PM
Hey guys, I am trying to set up a payment deposit on my website with blockchain api,

I am using a paid script but its generating addresses that are not valid,

For example this is an address 1NU1T8RNRMSTWKRKXXNONWECDD3DUJZURN

Please help :(


Title: Re: Blockchain API generating invalid address?
Post by: achow101 on September 16, 2017, 11:15:23 PM
What is the code that you are using to generate an address?


Title: Re: Blockchain API generating invalid address?
Post by: farnhamit on September 17, 2017, 11:57:46 AM
What is the code that you are using to generate an address?

Have worked it out, Feel very stupid! Was a text-transformation to UPPERCASE in my css. :)


Title: Re: Blockchain API generating invalid address?
Post by: Joel_Jantsen on September 17, 2017, 12:04:05 PM
What is the code that you are using to generate an address?

Have worked it out, Feel very stupid! Was a text-transformation to UPPERCASE in my css. :)
Sorry to post the comment when your problem is resolve but I'm curious to know what was the exact issue ? How can a text-transformation in your css can affect your logic in JavaScript (hope your paid script is using that).I don't see the co-relation here unless you're exporting the div's or adding classes through JS
Do you mind posting function that gets the data from the API ? Please don't reveal if it's not safe on the security side for your app.Thanks!


Title: Re: Blockchain API generating invalid address?
Post by: farnhamit on September 17, 2017, 12:31:44 PM
What is the code that you are using to generate an address?

Have worked it out, Feel very stupid! Was a text-transformation to UPPERCASE in my css. :)
Sorry to post the comment when your problem is resolve but I'm curious to know what was the exact issue ? How can a text-transformation in your css can affect your logic in JavaScript (hope your paid script is using that).I don't see the co-relation here unless you're exporting the div's or adding classes through JS
Do you mind posting function that gets the data from the API ? Please don't reveal if it's not safe on the security side for your app.Thanks!

I will have a chat with my developer mate to get the snippet for you,

Basically, the output was a correct address but has lowercase & uppercase characters in the address but my stylesheet had some code which formatted the website to uppercase therefor the output address was all UPPERCASE rather than a mixture.

My developer is working with blockchain API i know that much  ::) sorry im not great with API work https://blockchain.info/api