Oracle3
Oracle3: 예측시장 거래 엔진·MCP 서버
Automated multi-chain asset deposits and account credit settlement
저장소 README에서 가져옴
README 전체를 불러오는 중입니다. 아래는 저장된 발췌입니다.
Self-hosted, non-custodial crypto payments API for merchants: quotes, deposit addresses, signed
webhooks, and refunds, running in an attested confidential VM.README 전문 보기 ↗Self-hosted, non-custodial crypto payments API for merchants: quotes, deposit addresses, signed webhooks, and refunds, running in an attested confidential VM.
deposit.credited webhooks.Pick the path that matches your role:
To see it running, pay.phala.com has a live demo: a cloud console's
billing page that takes the test tokens of Phala's staging routes
on Sepolia and Base Sepolia. The site is static, on Cloudflare Workers; its demo calls an API-only
reference merchant backend at pay-demo-api.phala.com, an ordinary merchant account of Phala's
staging instance (staging reference product).
(window_start, expires_at]. One window is open per customer and route; a new quote
closes the previous window. Late, partial, or extra payments are still credited, at spot.deposit.reversed if a reorganization proves
the payment replaced; one whose transaction leaves the chain with its nonce unspent stays
credited and not final, within the account's cap on such credit, and raises an operator alert.A merchant's backend creates a quote or a customer's deposit address with its API key; the payer
pays a CREATE2 forwarder that can only pay the merchant's treasury; the service, in an attested
CVM, watches the chain with two RPC providers and sends a signed deposit.credited webhook; the
merchant sweeps forwarders to its treasury with its own wallet or Safe.
How Phala Pay works has the diagram, the payment lifecycle, and who owns what.
| I want to… | Read |
|---|---|
| Understand the model | How Phala Pay works |
| Integrate as a merchant | Integration guide, API reference |
| Run my own instance | Self-hosting guide, releases, deployment reference, runbooks |
| Configure the service | Service configuration |
| Read the specification | Architecture, design record |
The documentation index lists every document.
| Package | Install | For |
|---|---|---|
@phala/pay | npm install @phala/pay viem | Framework-free browser checkout, retrieval, wallet, payment URI, icons, formatting, and public types |
@phala/pay-react | npm install @phala/pay-react react react-dom | React checkout components, hooks, icons, and @phala/pay-react/styles.css |
@phala/pay-server | npm install @phala/pay-server | Merchant client and API types; offline webhook, pins, address/ledger helpers, and sweep builders at @phala/pay-server/helpers |
phala-pay | pip install phala-pay | The Python backend client, webhook verification, and address pinning |
The SDKs share the service's version: pin the one equal to your operator's service version (compatibility). The Python SDK's low-level client is generated from crates/topup/openapi.json, the API's OpenAPI document.
Phala Pay is pre-1.0 and has had no third-party security audit. Phala's production instance,
https://pay-api.phala.com, runs v0.13.1 for RedPill with live Ethereum USDC/USDT and Base USDC.
Staging (https://pay-api-staging.phala.com) serves test routes on Sepolia and Base Sepolia.
Post-launch status records the remaining onboarding and pilot gates.
Contributions are welcome. CONTRIBUTING.md covers the development setup, tests, and pull request conventions, and everyone taking part follows the code of conduct.
Report vulnerabilities privately, as described in SECURITY.md. Do not open public issues for them.