2017 © Pedro Peláez
 

library swapbot-op-return

Encodes and Decodes OP_RETURN data used to trigger custom Swapbot actions

image

tokenly/swapbot-op-return

Encodes and Decodes OP_RETURN data used to trigger custom Swapbot actions

  • Thursday, January 14, 2016
  • by dweller
  • Repository
  • 4 Watchers
  • 1 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Summary

Encodes and Decodes OP_RETURN data used to trigger custom Swapbot actions., (*1)

Usage

Here is an example of how to create Swapbot OP_RETURN data to specify a custom destination for a swap:, (*2)


$new_destination_address = '1JztLWos5K7LsqW5E78EASgiVBaCe6f7cD'; $encoder = new Tokenly\SwapbotOpReturn\Encoder(); $hex_string = $encoder->buildDestinationInstruction($new_destination_address); echo $hex_string.PHP_EOL; // 53574150424f540000c56cb39f9b289c0ec4ef6943fa107c904820fe0980df2772

The Versions

14/01 2016

dev-master

9999999-dev

Encodes and Decodes OP_RETURN data used to trigger custom Swapbot actions

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

The Development Requires