US dollar in Indonesian rupiah, computed from ECB reference rates
by Fomo · 1 source · a report every 1 d
Signed by Orvyn from the provider’s API
Not in Explore yet
This feed is live and can be bought from this page. It appears in Explore after a day of healthy reports.
Per call
$0.02
sold in packs
Smallest payment
$0.20
what Orvyn settles on chain
A report every
1 d
from 1 source
Uptime, 30 days
Measuring · 1 of 7 days
measured by Orvyn
Calls, last 30 days
0
Endpoint
GET /v1/feeds/fomo/us-dollar-in-indonesian-rupiah-computed-from-ecb-reference-rates/latest
Bought a pack on this feed? Your code spends it with one header. Make an API key, then use the first example below.
- One call
- $0.02, sold in packs only
- Pack of 10
- $0.20, valid 30 days
- Pack of 100
- $2.00, valid 30 days
- Pack of 1,000
- $20.00, valid 30 days
- History page
- 5 calls
- Pays
- 0x7c22bbeF…c6210cf7
API key
# For a pack you already bought. Make a key in the dashboard, under API keys. curl https://orvyn.me/gw/v1/feeds/fomo/us-dollar-in-indonesian-rupiah-computed-from-ecb-reference-rates/latest \ -H "Authorization: Bearer <your API key>" # The calls left in your packs. curl https://orvyn.me/gw/v1/packs \ -H "Authorization: Bearer <your API key>"
HTTP
# 1. Ask. The answer is 402 with the price, in the PAYMENT-REQUIRED header. curl -i https://orvyn.me/gw/v1/feeds/fomo/us-dollar-in-indonesian-rupiah-computed-from-ecb-reference-rates/latest # 2. Sign the USDG authorization it describes, then ask again. curl https://orvyn.me/gw/v1/feeds/fomo/us-dollar-in-indonesian-rupiah-computed-from-ecb-reference-rates/latest \ -H "PAYMENT-SIGNATURE: <base64 payment payload>"
TypeScript
import {Orvyn} from '@orvyn/sdk'
const orvyn = new Orvyn({gatewayUrl: 'https://orvyn.me/gw', account, maxSpendUsdg: 5_000_000n})
const report = await orvyn.read('fomo/us-dollar-in-indonesian-rupiah-computed-from-ecb-reference-rates') // pays, or spends a pack, by itself
report.value // 2 decimals, a bigint
report.checks // already verified: signer, kind, decimals, payload, ageTypeScript, with an API key
import {Orvyn} from '@orvyn/sdk'
// No wallet on the server: the key spends calls you bought ahead and cannot buy more.
const orvyn = new Orvyn({gatewayUrl: 'https://orvyn.me/gw', apiKey: process.env.ORVYN_API_KEY})
const report = await orvyn.read('fomo/us-dollar-in-indonesian-rupiah-computed-from-ecb-reference-rates') // one call from your pack, nothing signed
report.value // 2 decimals, a bigint
report.callsLeft // what the pack still holdsSolidity
import {OrvynConsumer} from "@orvyn/contracts/src/OrvynConsumer.sol";
contract Example is OrvynConsumer {
bytes32 constant US_DOLLAR_IN_INDONESIAN_RUPIAH_COMPUTED_FROM_ECB_REFERENCE_RATES = 0x0e9f9af3f4f9c3480c422e2d933b6a0ba2a3be13b75dc8c9b718ad0a04678ade;
function settle(bytes calldata report, bytes calldata sig) external {
int256 value = _readOnce(US_DOLLAR_IN_INDONESIAN_RUPIAH_COMPUTED_FROM_ECB_REFERENCE_RATES, report, sig, Policy({
maxAgeSec: 172800,
allowedKinds: KIND_MANAGED,
minValue: 0,
maxValue: type(int256).max
}));
// use value, scaled by 2 decimals
}
}Agents (MCP)
{
"mcpServers": {
"orvyn": {
"command": "npx",
"args": ["-y", "@orvyn/mcp"],
"env": {"ORVYN_GATEWAY_URL": "https://orvyn.me/gw", "ORVYN_PRIVATE_KEY": "<a wallet made for this agent>", "ORVYN_MAX_SPEND_USDG": "1000000"}
}
}
}Agents (MCP), with an API key
{
"mcpServers": {
"orvyn": {
"command": "npx",
"args": ["-y", "@orvyn/mcp"],
"env": {"ORVYN_GATEWAY_URL": "https://orvyn.me/gw", "ORVYN_API_KEY": "<your API key>"}
}
}
}Response schema
{
"type": "object",
"title": "US dollar in Indonesian rupiah, computed from ECB reference rates",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"value",
"observedAtMs"
],
"properties": {
"value": {
"type": "string"
},
"observedAtMs": {
"type": "string"
}
}
}