BSV.Contract.OpReturn (bsv_sdk v1.5.1)

Copy Markdown View Source

OP_RETURN output for placing arbitrary data on-chain.

Lock parameters

  • :data — a binary or list of binaries to push after OP_FALSE OP_RETURN

Summary

Functions

Create a locking contract with the given satoshis and parameters.

Create an unlocking contract with the given UTXO info and parameters.

Functions

lock(satoshis, params, opts \\ [])

@spec lock(non_neg_integer(), map(), keyword()) :: BSV.Contract.t()

Create a locking contract with the given satoshis and parameters.

unlock(utxo_info, params, opts \\ [])

@spec unlock(map(), map(), keyword()) :: BSV.Contract.t()

Create an unlocking contract with the given UTXO info and parameters.