service-my-wallet-v3 icon indicating copy to clipboard operation
service-my-wallet-v3 copied to clipboard

ERR_BUILDTX No amounts set.

Open prinick96 opened this issue 6 years ago • 3 comments

Hello, i need use https://github.com/blockchain/service-my-wallet-v3#send-to-many , i have this:

            #Reemplazar todos los montos por satoshi
            $R = array();
            foreach ($recipients as $address => $amount) {
                $R[] = '"' . $address . '":"' . Conversor::BTC_float2int($amount) .'"';
            }
            $finalRecipients = urlencode('{' . implode(',', $R) . '}');      

            # Realizar la petición GET
            curl_setopt($this->ch, CURLOPT_POST, false);
            $query = http_build_query(array(
                'password' => $password,
                'from' => $from,
                'fee' => $fee_ocrend, # Satoshi
                'fee_per_byte' => $fee_per_byte, # Satoshi
                'api_code' => $this->api_code
            ));
            curl_setopt($this->ch, CURLOPT_URL, $this->serviceNode . 'merchant/'. $guid .'/sendmany?'. $query . '&recipients='. $finalRecipients);

And i see this: imagen

I check, i have the amounts in $finalRecipients.

%7B%221PzG2qRDTHUjKLzUYqCDwcNmk4Tmvg467e%22%3A%2220000%22%2C%2213dmG2irsMMdAXFMCPPLgTtdNQa345ZBtEz%22%3A%22600000%22%7D

The wallet origin is empty.

Service v0.26.0 Node v8.9.1

prinick96 avatar Dec 24 '17 21:12 prinick96

any solution for this

syrakozz avatar Oct 24 '19 22:10 syrakozz

Do Anyone have solution for the same?

kashyapvicky avatar Jun 02 '20 05:06 kashyapvicky

Hi guys, Please has anyone been able to solve this?

devpilot-official avatar Oct 22 '20 12:10 devpilot-official