Transaction

Interface
Transactions are persisted to the blockchain and represent various functionality like transferring first class Assets or executing smart contracts. Smart contracts are executed within an InvocationTransaction.
export interface Transaction { 
  readonly hash: Hash256; 
  readonly version: number; 
  readonly nonce: number; 
  readonly sender: Address; 
  readonly systemFee: number; 
  readonly networkFee: number; 
  readonly validUntilBlock: number; 
  readonly height: number; 
  readonly script: Buffer; 
  readonly [OpaqueTagSymbol0]: unique symbol; 
} 

Properties

hash
Hash256
version
number
Neo protocol version.
nonce
number
Unique number in order to ensure the hash for this contract is unique.
sender
Address of the transaction sender.
systemFee
number
GAS execution fee for the transaction.
networkFee
number
GAS network priority fee for the transaction.
validUntilBlock
number
Block expiration time.
height
number
The index of the Transaction within the Block
script
Buffer
Code that was executed in the NeoVM.

Static Methods

for

(hash: Hash256) => Transaction 

Example

const transactionHash = Hash256.from('0xd6572a459b95d9136b7a713c5485ca709f9efa4f08f1c25dd792672d2bd75bfb'); 
const transaction = Transaction.for(transactionHash); 
  • @neo-one/client
  • @neo-one/smart-contract
DOCS
InstallationMain ConceptsAdvanced GuidesAPI ReferenceContributing
CHANNELS
GitHubStack OverflowDiscord ChatTwitterYouTube
COPYRIGHT © 2021 NEO•ONE