interface Oracle {
    active: boolean;
    activeFrom: number;
    approximateExpireTime: Date;
    expireHeight: number;
    format: OracleFormat;
    oracle: `ok_${string}`;
    queryFee: bigint;
    register: OracleTx;
    registerTime: Date;
    registerTxHash: `th_${string}`;
}

Properties

active: boolean

The oracle active status

activeFrom: number

The block height when the oracle became active

approximateExpireTime: Date

The approximate time when the oracle expires

expireHeight: number

The block height when the oracle expires

format: OracleFormat

The oracle's query and response formats

oracle: `ok_${string}`

Oracle address

queryFee: bigint

The query fee

register: OracleTx
registerTime: Date

The block time in which the oracle was registered, use register.micro_time instead

registerTxHash: `th_${string}`

The transaction hash in which the oracle was registered, use register.hash instead