• Public
  • Public/Protected
  • All

Interface ISponsorshipParams<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




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.


assetId: string

AssetID of sponsored token

Optional fee

fee: LONG

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


minSponsoredAssetFee: LONG

Minimal fee amount in sponsored asset. To disable sponsorship set it to 0

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