Class ArkNoteContract
public class ArkNoteContract : ArkContract
- Inheritance
-
ArkNoteContract
- Inherited Members
Constructors
ArkNoteContract(uint, byte[])
public ArkNoteContract(uint amount, byte[] preimage)
Parameters
Fields
ContractType
public const string ContractType = "arknote"
Field Value
Properties
Amount
public uint Amount { get; }
Property Value
DefaultScope
Arkade note funds live off-chain as a VTXO.
public override ContractScope DefaultScope { get; }
Property Value
Hash
public byte[] Hash { get; }
Property Value
- byte[]
Outpoint
public OutPoint Outpoint { get; }
Property Value
- OutPoint
Preimage
public byte[] Preimage { get; }
Property Value
- byte[]
Type
Contract type discriminator string (e.g. "vtxo", "boarding").
public override string Type { get; }
Property Value
Methods
CreateClaimScript()
public HashLockTapScript CreateClaimScript()
Returns
GetContractData()
Returns the key-value map of contract parameters used for serialization.
protected override Dictionary<string, string> GetContractData()
Returns
GetScriptBuilders()
Returns the script builders for each tapscript leaf in the tree.
protected override IEnumerable<ScriptBuilder> GetScriptBuilders()
Returns
GetTapScriptList()
Returns the compiled tapscript leaves that form this contract's script tree.
public override TapScript[] GetTapScriptList()
Returns
- TapScript[]
Parse(Dictionary<string, string>, Network)
public static ArkContract Parse(Dictionary<string, string> arg, Network network)
Parameters
argDictionary<string, string>networkNetwork
Returns
Parse(string)
public static ArkNoteContract Parse(string note)
Parameters
notestring