Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/polkadot/api-derive/contracts/index.ts>fees

Package publishing for deno.land/x/polkadot
Go to Latest
function fees
import { fees } from "https://deno.land/x/polkadot@0.2.16/api-derive/contracts/index.ts";

Examples

api.derive.contracts.fees(([creationFee, transferFee]) => {
  console.log(`The fee for creating a new contract on this chain is ${creationFee} units. The fee required to call this contract is ${transferFee} units.`);
});

Parameters

instanceId: string

Returns

An object containing the combined results of the queries for all relevant contract fees as declared in the substrate chain spec.