TransactionOptions

Interface
Common options for all methods in the client APIs that create transactions.
export interface TransactionOptions { 
  from?: UserAccountID; 
  attributes?: readonly Attribute[]; 
  networkFee?: BigNumber; 
  systemFee?: BigNumber; 
  skipSysFeeCheck?: boolean; 
} 

Properties

from
UserAccountID
The UserAccount that the transaction is 'from', i.e. the one that will be used for native asset transfers, claims, and signing the transaction. If unspecified, the currently selected UserAccount is used as the from address. DApp developers will typically want to leave this unspecified.
attributes
readonly Attribute[]
Additional attributes to include with the transaction.
networkFee
BigNumber
An optional network fee to include with the transaction.
systemFee
BigNumber
A maximum system fee to include with the transaction. Note that this is a maximum, the client APIs will automatically calculate and add a system fee to the transaction up to the value specified here. Leaving systemFee undefined is equivalent to new BigNumber(0), i.e. no system fee. A systemFee of -1, i.e. new BigNumber(-1) indicates no limit on the fee. This is typically used only during development.
skipSysFeeCheck
boolean
Boolean which determines whether or not to skip the sysFee check before submitting an invocation transaction. Used for working with contracts where the sysFee is known to be less than the 10 free GAS, i.e. NEP5 transactions.
  • @neo-one/client
  • @neo-one/smart-contract
DOCS
InstallationMain ConceptsAdvanced GuidesAPI ReferenceContributing
CHANNELS
GitHubStack OverflowDiscord ChatTwitterYouTube
COPYRIGHT © 2021 NEO•ONE