Token-Controlled Contracts on Radiant (Pay to Token)
Script Details
Token Input
OP_PUSHINPUTREFSINGLETON <tokenRef> OP_DROP <p2pkh>Token Output
OP_REQUIREINPUTREF <contractRef>
<contractScriptSigHash> OP_2DROP // Hash256 of contract's script sig
OP_STATESEPARATOR
OP_PUSHINPUTREFSINGLETON <tokenRef> OP_DROP <p2pkh> // Standard token scriptScript Sig
<hashIndex> // Position of ref + hash in token output
<refIndex> // Index of ref in token output data summary
<outputIndex> // Output index of tokenScript Pub Key
Advantages
Last updated