Contract

Interface
Attributes of a deployed smart contract.
export interface Contract { 
  readonly version: number; 
  readonly address: AddressString; 
  readonly script: BufferString; 
  readonly parameters: readonly ContractParameterType[]; 
  readonly returnType: ContractParameterType; 
  readonly name: string; 
  readonly codeVersion: string; 
  readonly author: string; 
  readonly email: string; 
  readonly description: string; 
  readonly storage: boolean; 
  readonly dynamicInvoke: boolean; 
  readonly payable: boolean; 
} 

Properties

version
number
NEO protocol version.
address
AddressString
parameters
Expected parameters of this Contract
name
string
Name of this Contract. For informational purposes only.
codeVersion
string
Version of this Contract. For informational purposes only.
author
string
Author of this Contract. For informational purposes only.
email
string
Email of this Contract. For informational purposes only.
description
string
Description of this Contract. For informational purposes only.
storage
boolean
true if this Contract can use storage.
dynamicInvoke
boolean
true if this Contract can make dynamic invocations.
payable
boolean
true if this Contract accepts first-class Assets and/or tokens.
  • @neo-one/client
  • @neo-one/smart-contract
DOCS
InstallationMain ConceptsAdvanced GuidesAPI ReferenceContributing
CHANNELS
GitHubStack OverflowDiscord ChatTwitterYouTube
COPYRIGHT © 2021 NEO•ONE