tokenly/counterparty-op-return-builder

Composes counterparty and bitcoin transactions

v1.0.0 2018-03-24 12:43 UTC

This package is not auto-updated.

Last update: 2024-11-10 04:48:15 UTC


README

Build Status

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"