Executing Secret contracts
Learn how to execute Secret Network smart contract on EVM with secret-network-ccl npm package
With executeSecretContract
you can execute any SecretPath-compatible smart contract on Secret Network.
Select the EVM chain that you want to use to execute the Secret Network smart contract and update your secretPathAddress with the correct gateway contract address. We are using Sepolia:
For this example, we are going to execute the key value store contract on Secret Network.
executeSecretContract
requires the Secret contractAddress
, codeHash
, network
, handle
(ie the function you want to execute in the Secret Network contract), and any parameters needed for the handle function, which in this case is data
and password
.
Call the function to execute a Secret Network smart contract on EVM:
Last updated