service-my-wallet-v3
service-my-wallet-v3 copied to clipboard
ERR_BUILDTX No amounts set.
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:
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
any solution for this
Do Anyone have solution for the same?
Hi guys, Please has anyone been able to solve this?