API Reference
Public API specification from projects/Ouranoos_Cloud_App/docs/api_publica.md.
OuranoosService (empoorio_chain_sdk)
Dart SDK wrapping EmpoorioChain JSON-RPC and storage market extrinsics.
Read methods
getActiveProviders()
Returns registered active storage providers.
dart
class StorageProviderInfo {
final String accountId;
final int capacityGb;
final int usedGb;
final BigInt pricePerGbPerBlock;
final String cidEndpoint;
final double reputation;
final bool active;
}getMarketMedianPrices()
Historical median prices for storage and bandwidth proposals.
getAllowance(String accountAddress)
Pre-approved DMS credit in pallet-cloud-allowance.
Write methods (require KeyPair signer)
| Method | Purpose |
|---|---|
registerProvider(...) | Register device as storage provider |
createDeal(...) | Open storage deal with provider |
submitProof(...) | Submit periodic Merkle proof |
claimPayment(dealId) | Claim accumulated DMS payment |
Eoonia deep links
Outbound (eoonia://)
| Action | URL | Purpose |
|---|---|---|
| Link wallet | eoonia://connect?callback=ouranoos://eoonia-linked | Get user address |
| Top up allowance | eoonia://allowance?amount_usd=X&callback=ouranoos://allowance-result | Increase storage credit |
| Withdraw rewards | eoonia://withdraw?deal_id=Y&callback=ouranoos://withdraw-result | Claim provider payment |
Inbound (ouranoos://)
| Callback | Example |
|---|---|
| Wallet linked | ouranoos://eoonia-linked?address=5HGjWAeF... |
| Payment result | ouranoos://payment-result?status=ok&tx=0x...&amount_usd=0.006 |
| Allowance result | ouranoos://allowance-result?status=ok&tx=0x...&amount_usd=10.00 |
| Withdraw result | ouranoos://withdraw-result?status=ok&tx=0x...&amount_dms=1.45 |
Canonical callback: allowance-result (allowance-charged accepted as legacy alias).
Handled by DeepLinkService in the Ouranoos app.