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