tokenly / swapbot-op-return
编码和解码用于触发自定义 Swapbot 动作的 OP_RETURN 数据
dev-master
2016-01-14 16:52 UTC
Requires
- php: >=5.6.0
Requires (Dev)
- phpunit/phpunit: ~4
This package is not auto-updated.
Last update: 2024-09-24 18:55:09 UTC
README
编码和解码用于触发自定义 Swapbot 动作的 OP_RETURN 数据。
用法
以下是一个如何创建 Swapbot OP_RETURN 数据以指定交换的自定义目的地的示例
$new_destination_address = '1JztLWos5K7LsqW5E78EASgiVBaCe6f7cD'; $encoder = new Tokenly\SwapbotOpReturn\Encoder(); $hex_string = $encoder->buildDestinationInstruction($new_destination_address); echo $hex_string.PHP_EOL; // 53574150424f540000c56cb39f9b289c0ec4ef6943fa107c904820fe0980df2772