Redeem
Create a redemption transaction
Token redemption refers to the process of converting the STAS token satoshis back into native BSV satoshis, which essentially destroys the STAS token. To perform this operation, a single STAS UTXO input is required, and the resulting output is in the form of a regular pay-to-public-key-hash output. By default, the unlocked satoshis are always sent to the issuer address of the token, which is known as the redemption address and can be found in the token script as the first element after the OP_RETURN. This function will take the typical arguments as follows:
After executing the function, you will receive a transaction hexadecimal representation that is now ready to be broadcasted to the miner.
Last updated