IntegerContractParameter

Interface
Invocation stack item for a BN. Note that unlike most of the client APIs, we use a BN instead of a BigNumber here to indicate that this is an integer value. For example, an IntegerContractParameter that represents a NEO value of 10 would be a new BN(10_00000000).
export interface IntegerContractParameter { 
  readonly type: 'Integer'; 
  readonly value: BN; 
} 

Properties

type
'Integer'
type distinguishes IntegerContractParameter from other ContractParameter object types.
value
BN
Always an integer. This value is processed using the ABI's decimals specification into a corresponding BigNumber.
  • @neo-one/client
  • @neo-one/smart-contract
DOCS
InstallationMain ConceptsAdvanced GuidesAPI ReferenceContributing
CHANNELS
GitHubStack OverflowDiscord ChatTwitterYouTube
COPYRIGHT © 2021 NEO•ONE