Skip to main content

Reference / Modules / node-api / FeesEstimator

Class: FeesEstimator

node-api.FeesEstimator

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new FeesEstimator(api): FeesEstimator

Parameters

NameType
apiApiPromise

Returns

FeesEstimator

Defined in

FeesEstimator.ts:100

Properties

api

Private Readonly api: ApiPromise

Defined in

FeesEstimator.ts:104

Methods

ensureEnoughFunds

ensureEnoughFunds(params): Promise<void>

Parameters

NameType
paramsObject
params.feesFees
params.originValidAccountId

Returns

Promise<void>

Defined in

FeesEstimator.ts:207


estimateAddCollectionItem

estimateAddCollectionItem(params): Promise<Fees>

Parameters

NameType
paramsObject
params.collectionItemFeeLgnt
params.numOfEntriesbigint
params.originValidAccountId
params.submittableSubmittableExtrinsic
params.tokenIssuanceundefined | bigint
params.totSizebigint

Returns

Promise<Fees>

Defined in

FeesEstimator.ts:169


estimateAddTokensRecord

estimateAddTokensRecord(params): Promise<Fees>

Parameters

NameType
paramsObject
params.numOfEntriesbigint
params.originValidAccountId
params.submittableSubmittableExtrinsic
params.tokensRecordFeeLgnt
params.totSizebigint

Returns

Promise<Fees>

Defined in

FeesEstimator.ts:190


estimateCertificateFee

estimateCertificateFee(params): Promise<Lgnt>

Parameters

NameType
paramsObject
params.tokenIssuancebigint

Returns

Promise<Lgnt>

Defined in

FeesEstimator.ts:163


estimateCreateLoc

estimateCreateLoc(params): Promise<Fees>

Parameters

NameType
paramsObject
params.legalFee?Lgnt
params.locTypeLocType
params.originValidAccountId
params.storageSize?bigint
params.submittableSubmittableExtrinsic
params.valueFee?Lgnt

Returns

Promise<Fees>

Defined in

FeesEstimator.ts:148


estimateInclusionFee

estimateInclusionFee(origin, submittable): Promise<Lgnt>

Parameters

NameType
originValidAccountId
submittableSubmittableExtrinsic

Returns

Promise<Lgnt>

Defined in

FeesEstimator.ts:119


estimateStorageFee

estimateStorageFee(params): Promise<Lgnt>

Parameters

NameType
paramsObject
params.numOfEntriesbigint
params.totSizebigint

Returns

Promise<Lgnt>

Defined in

FeesEstimator.ts:125


estimateWithStorage

estimateWithStorage(params): Promise<Fees>

Parameters

NameType
paramsObject
params.originValidAccountId
params.sizebigint
params.submittableSubmittableExtrinsic

Returns

Promise<Fees>

Defined in

FeesEstimator.ts:106


estimateWithoutStorage

estimateWithoutStorage(params): Promise<Fees>

Parameters

NameType
paramsObject
params.originValidAccountId
params.submittableSubmittableExtrinsic

Returns

Promise<Fees>

Defined in

FeesEstimator.ts:140


getDefaultLegalFee

getDefaultLegalFee(params): Lgnt

Parameters

NameType
paramsObject
params.locTypeLocType

Returns

Lgnt

Defined in

FeesEstimator.ts:131