Skip to main content

queue_oracle_request

Function queue_oracle_request 

Source
pub fn queue_oracle_request(
    url: String,
    method: String,
    body: Vec<u8>,
    response_format: UrlResponseFormat,
    schema_id: Option<[u8; 32]>,
    requesting_cell: [u8; 32],
    current_height: u64,
) -> OracleRequest
Expand description

Queue an oracle request from an Axiom host call. Called by the http_call host function when no finalized result is available. The request is added to State::pending_oracle_requests so validators fetch it next block.