예제 #1
0
 /**
  * Static function to send a transaction to multiple recipients in the same transaction.
  *
  * @param string $wallet_id Wallet Identifier used to Login
  * @param string $main_password Your Main My wallet password
  * @param string $from Send from a specific Bitcoin Address
  * @param array $recipients Bitcoin Addresses as keys and the amounts to send as values
  * @param float $amount Amount to send in satoshi
  * @param bool $shared "true" or "false" indicating whether the transaction should be sent through a shared wallet. Fees apply.
  * @param string $fee Transaction fee value in satoshi (Must be greater than default fee)
  * @param string $note A public note to include with the transaction (Optional)
  * @param string $second_password Your second My Wallet password if double encryption is enabled
  * @return string
  */
 public static function PayToMany($wallet_id, $main_password, $from, array $recipients, $amount, $shared = false, $fee = "", $note = "", $second_password = "")
 {
     $instance = new Payments($wallet_id, $main_password);
     return $instance->send($from, $recipients, $amount, $shared, $fee, $note, $second_password);
 }