coinspark/php-OP_RETURN

Add a function to send OP_RETURN to more addresses

Opened this issue · 2 comments

I'ld like a function that allow to send a tx with custom OP_RETURN to more addresses like JSON-RPC sendmany.

Something like: op_return_sendmany(addresses/amount, metadata, testnet);

where,

Addresses/amount is an array(): 'o2i3hoi3': 0.0005, 'li920hiooi': 0.002, etc...

OK, noted. You should be able to modify the existing code to do this as well.

Yes, just add array element: addresses and amount in this line
$outputs=array($send_address => (float)$send_amount);

;)