class
ContractInfoQuery
extendsQuery
<ContractInfo
>
Retrieve the latest state of a contract.
var info = new ContractInfoQuery()
.setContractId(contractId)
.setNodeAccountIds(Collections.singletonList(response.nodeId))
.execute(client);
let info = await new ContractInfoQuery()
.setNodeAccountIds([response.nodeId])
.setContractId(contract)
.setQueryPayment(new Hbar(1))
.execute(client);
info, err := hedera.NewContractInfoQuery().
SetContractID(contractID).
SetNodeAccountIDs([]AccountID{resp.NodeID}).
SetMaxQueryPayment(NewHbar(2)).
Execute(client)
if err != nil {
println(err.Error())
}
contractId
: ContractId
This is the contractc ID for which info will be queried for.