scryptlib
Advanced tools
Changelog
2.1.7
genLaunchConfig()
more independent, now it just generate a debugger launch configuration for the contract's last called public methodChangelog
2.1.6
TxContext
/**
* TxContext provides some context information of the current transaction,
* needed only if signature is checked inside the contract.
*/
export interface TxContext {
/** current transaction represented in bsv.Transaction object or hex string */
tx: bsv.Transaction | string;
/** input index */
inputIndex: number;
/** input amount in satoshis */
inputSatoshis: number;
/** contract state in ASM format */
opReturn?: string;
/** contract state in hex format */
opReturnHex?: string;
}
asm
field of ContractArtifact