i am using substrate pallet_contracts for wasm contract deployment how can i set the fees for contract deployment?

  • Can you elaborate a bit more? Commented May 5, 2023 at 8:39
  • 1
    @DaanvanderPlas i want to decrease the contract deployment fees on my chain,currently if i deploy an erc721 wasm contract it costs around (6 tokens) i want to decrease this amount how can i do that? Commented May 5, 2023 at 9:35

1 Answer 1


You can adjust DepositPerItem and DepositPerByte in the pallet-contracts configuration.

You can take a look at how this is configured in Substrate (do not use these values as they are likely unsuitable for something that has economic value). Here is the link to the configuration file: GitHub - Substrate runtime configuration.

If you are deploying to a solo chain that has different hardware specifications than Polkadot, you should probably run the weight benchmark against hardware that matches the specifications of your network. This thread might be helpful for that: Stack Exchange - How to generate WeightInfo for pallets.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.