Create a Contract from an arkcontract string.
This requires a handler to be registered for the contract type.
The arkcontract string
Additional options for the contract
A Contract object
If the string is invalid or no handler exists for the type
const contract = contractFromArkContract( "arkcontract=vhtlc&sender=ab12...", { label: "Lightning Receive", }); Copy
const contract = contractFromArkContract( "arkcontract=vhtlc&sender=ab12...", { label: "Lightning Receive", });
Create a Contract from an arkcontract string.
This requires a handler to be registered for the contract type.