When a user purchases a token with BTC, swapbot will look for an OP_RETURN in the transaction. If it finds one, and the OP_RETURN begins with SWAPBOT and 0x00 (0x53574150424f5400), then the next 25 bytes will be interpreted as a new destination bitcoin address.
Each OP_RETURN should be exactly 33 bytes in length.
Here is an example OP_RETURN to specify that the swap should be sent to the bitcoin address 1JztLWos5K7LsqW5E78EASgiVBaCe6f7cD.
When a user purchases a token with BTC, swapbot will look for an OP_RETURN in the transaction. If it finds one, and the OP_RETURN begins with SWAPBOT and 0x00 (
0x53574150424f5400
), then the next 25 bytes will be interpreted as a new destination bitcoin address.Each OP_RETURN should be exactly 33 bytes in length.
Here is an example OP_RETURN to specify that the swap should be sent to the bitcoin address
1JztLWos5K7LsqW5E78EASgiVBaCe6f7cD
.