Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ISetScriptParams<LONG>

Type parameters

  • LONG

    Generic type representing LONG type. Default to string | number. Since javascript number more than 2 ** 53 -1 cannot be precisely represented, generic type is used

Hierarchy

Index

Properties

Optional additionalFee

additionalFee: undefined | number

If fee is not set, this value will be added to automatically calculated fee. E.x.: Account is scripted and 400000 fee more is required.

Optional chainId

chainId: string | number

Network byte. Could be set as number or as char. If set as char(string), charCodeAt(0) will be used. E.g., 'A' will be converted to '65' If not set, 65 will be used as default

Optional fee

fee: LONG

Transaction fee. If not set, fee will be calculated automatically

script

script: string | null

Compiled script encoded as base64 string

Optional senderPublicKey

senderPublicKey: undefined | string

If not set, public key will be derived from seed phrase. You should provide senderPublicKey in two cases:

  1. Account, from which this tx should be sent, differs from tx signer. E.g., we have smart account that requires 2 signatures.
  2. You to create tx without proof. Therefore no seed is provided.

Optional timestamp

timestamp: undefined | number

Transaction timestamp. If not set current timestamp will be used. Date.now()

Generated using TypeDoc