tokenly / counterparty-op-return-builder
Composes counterparty and bitcoin transactions
Installs: 3 827
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 4
Forks: 1
Open Issues: 0
Requires
- php: >=5.6.0
- ext-gmp: *
- tokenly/crypto-quantity: ^2
Requires (Dev)
- phpunit/phpunit: ~4
This package is not auto-updated.
Last update: 2024-10-27 04:28:25 UTC
README
Composes OP_RETURN data for Counterparty sends
Installation
composer require tokenly/counterparty-op-return-builder
Usage
$op_return_builder = new OpReturnBuilder(); $destination = '1AAAA1111xxxxxxxxxxxxxxxxxxy43CZ9j'; $txid = 'deadbeef00000000000000000000000000000000000000000000000000001111'; // Send 100 of asset SOUP $op_return_hex = $op_return_builder->buildOpReturnForSend(100, 'SOUP', $destination, $txid); print $op_return_hex.PHP_EOL; // "95f8483a315279d12a7314a8e82019d7fa6ba1354f09c61480dedf76e038875f405090c08be78ef8c7a4b60bb4"