Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AssetTransferInput

An AssetTransferInput consists of the following:

  • An AssetOutPoint, which points to the asset to be spent.
  • A lock script and an unlock script, that prove ownership of the asset
  • The hashed value(blake160) of a lock script must be identical to that of the pointed asset's lock script hash.
  • The results of running the script must return successful in order for the Asset's input to be valid.

Hierarchy

  • AssetTransferInput

Index

Constructors

constructor

Properties

lockScript

lockScript: Buffer

prevOut

prevOut: AssetOutPoint

timelock

timelock: Timelock | null

unlockScript

unlockScript: Buffer

Methods

setLockScript

  • setLockScript(lockScript: Buffer): void

setUnlockScript

  • setUnlockScript(unlockScript: Buffer): void

toEncodeObject

  • toEncodeObject(): (Buffer | (string | number)[] | number[][])[]

toJSON

withoutScript

Static fromJSON

Generated using TypeDoc