Skip to main content

ResponseHeader

Every query receives a response containing the QueryResponseHeader. Either or both of the cost and stateProof fields may be blank, if the responseType didn’t ask for the cost or stateProof.
FieldTypeDescription
nodeTransactionPrecheckCodeResponseCodeEnumResult of fee transaction precheck, saying it passed, or why it failed
responseTypeResponseTypeThe requested response is repeated back here, for convenience
costuint64The fee that would be charged to get the requested information (if a cost was requested). Note: This cost only includes the query fee and does not include the transfer fee(which is required to execute the transfer transaction to debit the payer account and credit the node account with query fee)
stateProofbytesThe state proof for this information (if a state proof was requested, and is available)