ComputeQueryClient..::..QueryContract<(Of <(<'R>)>)> Method

Query a Secret Contract

Namespace:  SecretNET.Query
Assembly:  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.

Return Value

SecretQueryContractResult<R>.