ComputeQueryClient..::..QueryContract<(Of <(<'R>)>)> Method
Query a Secret Contract
Namespace:
SecretNET.QueryAssembly: SecretNET (in SecretNET.dll)
Syntax
public Task<SecretQueryContractResult<R>> QueryContract<R>( string contractAddress, Object queryMsg, string codeHash, Metadata metadata )
Type Parameters
- R
Parameters
- contractAddress
- Type: String
The contract address.
- queryMsg
- Type: Object
The query MSG.
- codeHash
- Type: String
codehash is optional but makes the first call way faster (after that the hash is cached in the client)
- metadata
- Type: Metadata
The metadata.