去中心化预言机网络
智能合约的实时数据
Trustmura预言机提供安全、可靠、防篡改的数据馈送,驱动DeFi、保险、游戏和企业级区块链应用。
⚡
🔗
🛡️
📊
🌐
🔄
1
数据源
2
节点网络
3
链上传输
HTTP Header
X-API-Key: your_api_key_here
POST /api/oracle/events
Create Event
curl -X POST https://trustmura.com/api/oracle/events \
-H "Content-Type: application/json" \
-H "X-API-Key: your_api_key" \
-d '{
"title": "ETH/USD Price Feed",
"rules": "Update every 30 seconds",
"options": [
{"id": "1", "label": "Option A"},
{"id": "2", "label": "Option B"}
]
}'
PUT /api/oracle/events/:id
Resolve Event
curl -X PUT https://trustmura.com/api/oracle/events/42 \
-H "Content-Type: application/json" \
-H "X-API-Key: your_api_key" \
-d '{
"answer": "1"
}'
GET /api/oracle/events
Query Events
curl "https://trustmura.com/api/oracle/events?mid=1&page=1&limit=20"
title | string | Yes | |
rules | string | No | |
options | array | No | |
answer | string | No | |
mid | number | No | |
page | number | No | |
limit | number | No |