Querying Secret contracts
Learn how to query Secret Network smart contract on EVM with secret-network-ccl npm package
With querySecretContract
you can query any SecretPath-compatible smart contract on Secret Network.
For this example, we are going to query the key value store contract on Secret Network.
querySecretContract
requires the Secret contractAddress
, codeHash
, network,
handle
(ie the name of the query function you want to query in the Secret Network contract), and any parameters needed for the query, which in this case is password
.
Call the function to execute a Secret Network smart contract on EVM. If you pass the correct password
, the Secret contract will return your data
:
Last updated