interface OracleResponse {
    blockHash: `mh_${string}`;
    blockTime: Date;
    fee: bigint;
    height: number;
    nonce: number;
    oracleId: `ok_${string}`;
    query: OracleResponse;
    queryId: `oq_${string}`;
    response: string;
    responseTtl: Record<string, unknown>;
    sourceTxHash: `th_${string}`;
    sourceTxType: string;
    ttl: number;
}

Properties

blockHash: `mh_${string}`

The hash of the block in which it ocurred

blockTime: Date

The time of the block

fee: bigint

The transaction fee

height: number

The block height

nonce: number

The nonce

oracleId: `ok_${string}`

The oracle ID of this response

queryId: `oq_${string}`

Oracle query ID

response: string

Base64 encoding of the response

responseTtl: Record<string, unknown>

Expiration of the response

sourceTxHash: `th_${string}`

The hash of the transaction in which the response was created

sourceTxType: string

The type of the transaction in which the response was created, it can be either via a contract call or a respond transaction

ttl: number

Transaction TTL