Skip to main content

TxContext

scrypt-ts / TxContext

Interface: TxContext

TxContext provides some context information of the current transaction, needed only if signature is checked inside the contract.

Table of contents

Properties

Properties

inputIndex

inputIndex: number

input index

Defined in

node_modules/scryptlib/dist/contract.d.ts:13


inputSatoshis

inputSatoshis: number

input amount in satoshis

Defined in

node_modules/scryptlib/dist/contract.d.ts:15


opReturn

Optional opReturn: string

contract state in ASM format

Defined in

node_modules/scryptlib/dist/contract.d.ts:17


opReturnHex

Optional opReturnHex: string

contract state in hex format

Defined in

node_modules/scryptlib/dist/contract.d.ts:19


tx

tx: string | Transaction

current transaction represented in bsv.Transaction object or hex string

Defined in

node_modules/scryptlib/dist/contract.d.ts:11