Estimate the fee required to deploy contract by template.
Represents the input for deploying a contract using a template.
The blockchain network that the resource is to be created on or is currently on. Required along with sourceAddress if you don't provide walletId. The blockchain and walletId fields are mutually exclusive.
The template's ID.
The source address of the transaction.
JSON object that contains the template deployment parameters used to initialize the contract(s) on-chain.
Unique identifier of the wallet that will deploy the contract.
1const response = await client.estimateContractTemplateDeploymentFee({
2 id: "cf930871-bc29-43f0-9abb-0af6e66bd8db",
3 blockchain: "MATIC-AMOY",
4 sourceAddress: "0xfea0e6a371a0eb204dbfae2ee38eeedeebe15ed7",
5 templateParameters: {},
6})
7console.log(response.data)