subkey generate --scheme Sr25519
to generate account with Sr25519 scheme.Developer
and RPC calls
. Endpoint author
and insertKey
.KeyType
is “orac“, suri
is secret phrase from substrate account and publicKey
is public key from substrate account.hasKey
, providing your account public key and keyType
= "orac"Developer
and Chain state
, query whitelists
and whiteList
, providing substrate account id or SS58 Address.Developer
and RPC calls
. Endpoint offchain
and localStorageSet
. Kind is PERSISTENT
, key is “oracle::resource_type“
in hex representationoffchain
and localStorageGet
. Kind is PERSISTENT
, key is “oracle::resource_type“
in hex representationDeveloper
and RPC calls
. Endpoint offchain
and localStorageSet
. Kind is PERSISTENT
, key is “oracle::cryptocompare_api_key“
in hex representation (0x6f7261636c653a3a63727970746f636f6d706172655f6170695f6b6579) and value is cryptocompare_api_key
in hex representation.offchain
and localStorageGet
. Kind is PERSISTENT
, key is “oracle::cryptocompare_api_key“
in hex representation (0x6f7261636c653a3a63727970746f636f6d706172655f6170695f6b6579). The result is your cryptocompare api key in hex representation.“oracle::custom_query”
in hex representation (0x6f7261636c653a3a637573746f6d5f7175657279). Value Developer
and RPC calls
. Endpoint offchain
and localStorageSet
. Kind is PERSISTENT
, key is “oracle::custom_query”
in hex representation (0x6f7261636c653a3a637573746f6d5f7175657279) and value is query in hex representation.offchain
and localStorageGet
. Kind is PERSISTENT
, key is “oracle::custom_query”
in hex representation (0x6f7261636c653a3a637573746f6d5f7175657279). The result is your cryptocompare api key in hex representation.json(https://api.hitbtc.com/api/2/public/ticker/{$}USD).last
0x6a736f6e2868747470733a2f2f6170692e6869746274632e636f6d2f6170692f322f7075626c69632f7469636b65722f7b247d555344292e6c617374
json(https://api.binance.com/api/v3/ticker/price?symbol={$}USDT).price
0x6a736f6e2868747470733a2f2f6170692e62696e616e63652e636f6d2f6170692f76332f7469636b65722f70726963653f73796d626f6c3d7b247d55534454292e7072696365
json(https://api.pro.coinbase.com/products/{$}-USD/ticker).price
0x6a736f6e2868747470733a2f2f6170692e70726f2e636f696e626173652e636f6d2f70726f64756374732f7b247d2d5553442f7469636b6572292e7072696365
json(https://api.kraken.com/0/public/Ticker?pair={$}USD).result.{$}USD.c[0]
0x6a736f6e2868747470733a2f2f6170692e6b72616b656e2e636f6d2f302f7075626c69632f5469636b65723f706169723d7b247d555344292e726573756c742e7b247d5553442e635b305d
json(https://www.bitstamp.net/api/ticker/{$}usd).last
0x6a736f6e2868747470733a2f2f7777772e6269747374616d702e6e65742f6170692f7469636b65722f7b247d757364292e6c617374
json(https://api-pub.bitfinex.com/v2/ticker/t{$}USD).[6]
0x6a736f6e2868747470733a2f2f6170692d7075622e62697466696e65782e636f6d2f76322f7469636b65722f747b247d555344292e5b365d
json(https://api.huobi.pro/market/history/trade?symbol={$}usdt&size=1).data[0].data[0].price
0x6a736f6e2868747470733a2f2f6170692e68756f62692e70726f2f6d61726b65742f686973746f72792f74726164653f73796d626f6c3d7b247d757364742673697a653d31292e646174615b305d2e646174615b305d2e7072696365
Developer
and RPC calls
. Endpoint offchain
and localStorageSet
. Kind is PERSISTENT
, key is “oracle::price_periodicity”
in hex representation (0x6f7261636c653a3a70726963655f706572696f646963697479) and value is bloks amount in hex representation. Minimal value is 1. Example for peridoicity = 2 blocks.offchain
and localStorageGet
. Kind is PERSISTENT
, key is “oracle::price_periodicity”
in hex representation (0x6f7261636c653a3a70726963655f706572696f646963697479). The result is your price periodicity in blocks.Developer
and Chain state
, query oracle
and pricePoints
for any currency. In data_points
array there should be instance with your account address.