@hashgraph/sdk
    Preparing search index...

    Class TransactionRecordQuery

    Get the record for a transaction.

    If the transaction requested a record, then the record lasts for one hour, and a state proof is available for it. If the transaction created an account, file, or smart contract instance, then the record will contain the ID for what it created. If the transaction called a smart contract function, then the record contains the result of that call. If the transaction was a cryptocurrency transfer, then the record includes the TransferList which gives the details of that transfer. If the transaction didn't return anything that should be in the record, then the results field will be set to nothing.

    Hierarchy (View Summary)

    • Query
      • TransactionRecordQuery
    Index

    Constructors

    Properties

    _duplicates: undefined | boolean
    _maxQueryPayment: null | Hbar

    The maximum query payment a user is willing to pay. Unlike Transaction.maxTransactionFee this field only exists in the SDK; there is no protobuf field equivalent. If and when we query the actual cost of the query and the cost is greater than the max query payment we'll throw a MaxQueryPaymentExceeded error.

    _paymentTransactionId: null | TransactionId

    The payment transaction ID

    _paymentTransactions: ITransaction[]

    The payment transactions list where each index points to a different node

    _queryPayment: null | Hbar

    The amount being paid to the node for this query. A user can set this field explicitly, or we'll query the value during execution.

    _timestamp: number

    This is strictly used for _getLogId() which requires a timestamp. The timestamp it typically uses comes from the payment transaction ID, but that field is not set if this query is free. For those occasions we use this timestamp field generated at query construction instead.

    _validateReceiptStatus: boolean

    Accessors

    • get grpcDeadline(): null | number

      Get the grpc deadline

      Returns null | number

    • get maxAttempts(): number

      Get the max attempts on the request

      Returns number

    • get maxBackoff(): number

      Get the max backoff

      Returns number

    • get maxRetries(): number

      Returns number

    • get minBackoff(): null | number

      Get the min backoff

      Returns null | number

    • get nodeAccountIds(): null | AccountId[]

      Get the list of node account IDs on the request. If no nodes are set, then null is returned. The reasoning for this is simply "legacy behavior".

      Returns null | AccountId[]

    Methods

    • Fetch the cost of this query from a consensus node

      Parameters

      • client: Client<Channel, any>

      Returns Promise<Hbar>

    • Serialize the query into bytes.

      NOTE: Does not preserve payment transactions

      Returns Uint8Array<ArrayBufferLike>

    • Deserialize a query from bytes. The bytes should be a proto.Query.

      Type Parameters

      • T

      Parameters

      • bytes: Uint8Array<ArrayBufferLike>

      Returns Query<T>