Author

Topic: Blockchain API sendmany PLS HELP! (Read 2744 times)

hero member
Activity: 683
Merit: 500
November 07, 2014, 12:27:42 PM
#5
Remove the quotation marks " " around the amount sent. Only the address should be within their own "".

EDIT: Think you need to cast the $row["payment_in_satoshi"] to int, intval() i believe is the function.

The quotations didn't matter, intval() nailed it. Thank you!
newbie
Activity: 8
Merit: 0
November 07, 2014, 11:19:53 AM
#4
Remove the quotation marks " " around the amount sent. Only the address should be within their own "".

EDIT: Think you need to cast the $row["payment_in_satoshi"] to int, intval() i believe is the function.
hero member
Activity: 683
Merit: 500
November 07, 2014, 09:10:38 AM
#3
The urlencoded output of the array is: (i just manually threw some spaces in there to improve readability)

%7B%22 1CagL2pgL73cs4LBCq82RYUunXJUw4yXBz %22%3A%22 5500 %22%2C%22 19rbySNBMmYvhmUgpBLGbqHXzJDBotchSy %22%3A%22 5500 %22%7D

So it's two different addresses. Encoding looks correct..
7B = {
3A = :
2C = , and
7D = }

Any other thoughts?
newbie
Activity: 8
Merit: 0
November 07, 2014, 07:46:03 AM
#2
First I believe that the mysql statements that you are using are deprecated.

http://php.net/manual/en/function.mysql-select-db.php

You should look into PDO's. As for what you are doing with the array, if you are already looping through it you may as well build a JSON string right off the bat - i mean I wouldn't do it personally but it gets the job done and there is really nothing wrong with it.

Using the sendmany example here:

https://blockchain.info/api/blockchain_wallet_api

Then just call URL encode.

One thing that comes to the top of my head, this being from experience using qt, do you have an address listed twice in the send many data? I know that qt does not allow this when using rpc.
hero member
Activity: 683
Merit: 500
November 07, 2014, 12:12:52 AM
#1
Jump to: