FTChain Block Explorer

CBR rates on demand

A contract cannot reach the internet itself: every node must get the same result. So a rate arrives in two steps, and this page shows both.

  1. You call requestRate: the contract asks the supreme oracle whether it may use the relayer and creates a request (RelayerRequest event).
  2. The cbr-rates relayer sees the request, fetches the rate from cbr.ru and sends it to the contract in its own transaction (fulfill).
  3. The contract checks that the answer came from an operator of the relayer and stores the rate. This usually takes a few seconds.