@odatano/core 2.0.0-rc.44 → 2.0.0-rc.46

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (168) hide show
  1. package/@cds-models/CardanoAgentService/index.d.ts +0 -46
  2. package/@cds-models/CardanoBackendService/index.d.ts +0 -10
  3. package/@cds-models/CardanoIndexerService/index.d.ts +5 -20
  4. package/@cds-models/CardanoODataService/index.d.ts +18 -47
  5. package/@cds-models/CardanoSignService/index.d.ts +3 -18
  6. package/@cds-models/CardanoTransactionService/index.d.ts +9 -31
  7. package/@cds-models/CardanoWorkerService/index.d.ts +3 -19
  8. package/@cds-models/index.d.ts +17 -0
  9. package/@cds-models/index.js +2 -0
  10. package/@cds-models/odatano/cardano/index.d.ts +0 -34
  11. package/README.md +20 -20
  12. package/db/schema.cds +25 -44
  13. package/db/types.cds +22 -5
  14. package/package.json +3 -1
  15. package/scripts/migrate-slot-leader.mjs +3 -11
  16. package/scripts/migrate-txseq.mjs +3 -12
  17. package/src/index.d.ts +0 -4
  18. package/src/index.js +3 -5
  19. package/src/plugin.js +4 -8
  20. package/srv/blockchain/asset-decimals.d.ts +0 -9
  21. package/srv/blockchain/asset-decimals.js +21 -16
  22. package/srv/blockchain/backends/blockfrost-backend.d.ts +2 -10
  23. package/srv/blockchain/backends/blockfrost-backend.js +15 -21
  24. package/srv/blockchain/backends/cardano-backend.d.ts +12 -71
  25. package/srv/blockchain/backends/koios-backend.d.ts +14 -147
  26. package/srv/blockchain/backends/koios-backend.js +43 -166
  27. package/srv/blockchain/backends/odatano-backend.d.ts +1 -11
  28. package/srv/blockchain/backends/odatano-backend.js +11 -12
  29. package/srv/blockchain/backends/ogmios-backend.d.ts +19 -160
  30. package/srv/blockchain/backends/ogmios-backend.js +96 -175
  31. package/srv/blockchain/backends/ogmios-frame-guard.d.ts +2 -18
  32. package/srv/blockchain/backends/ogmios-frame-guard.js +8 -20
  33. package/srv/blockchain/cardano-client.d.ts +12 -80
  34. package/srv/blockchain/cardano-client.js +36 -88
  35. package/srv/blockchain/cardano-indexer.d.ts +14 -192
  36. package/srv/blockchain/cardano-indexer.js +136 -222
  37. package/srv/blockchain/cardano-tx-builder.d.ts +1 -28
  38. package/srv/blockchain/cardano-tx-builder.js +17 -34
  39. package/srv/blockchain/circuit-breaker.d.ts +1 -13
  40. package/srv/blockchain/circuit-breaker.js +5 -15
  41. package/srv/blockchain/crawler/asset-decimals-backfill.d.ts +0 -5
  42. package/srv/blockchain/crawler/asset-decimals-backfill.js +2 -5
  43. package/srv/blockchain/crawler/certificate-backfill.d.ts +0 -17
  44. package/srv/blockchain/crawler/certificate-backfill.js +8 -22
  45. package/srv/blockchain/crawler/crawler.d.ts +16 -93
  46. package/srv/blockchain/crawler/crawler.js +85 -160
  47. package/srv/blockchain/crawler/credential-backfill.d.ts +0 -10
  48. package/srv/blockchain/crawler/credential-backfill.js +2 -4
  49. package/srv/blockchain/crawler/hooks.d.ts +1 -5
  50. package/srv/blockchain/crawler/index.d.ts +0 -12
  51. package/srv/blockchain/crawler/index.js +6 -20
  52. package/srv/blockchain/crawler/sync-state.d.ts +6 -44
  53. package/srv/blockchain/crawler/sync-state.js +18 -53
  54. package/srv/blockchain/crawler/transaction-backfill.d.ts +0 -11
  55. package/srv/blockchain/crawler/transaction-backfill.js +11 -30
  56. package/srv/blockchain/crawler/utxo-set-import.d.ts +1 -30
  57. package/srv/blockchain/crawler/utxo-set-import.js +27 -53
  58. package/srv/blockchain/ledger-state.d.ts +10 -54
  59. package/srv/blockchain/ledger-state.js +11 -27
  60. package/srv/blockchain/pending-spends.d.ts +0 -12
  61. package/srv/blockchain/pending-spends.js +4 -12
  62. package/srv/blockchain/request-coalescer.d.ts +2 -16
  63. package/srv/blockchain/request-coalescer.js +2 -16
  64. package/srv/blockchain/signing/cose-verifier.d.ts +0 -9
  65. package/srv/blockchain/signing/cose-verifier.js +4 -10
  66. package/srv/blockchain/signing/external-signer.d.ts +1 -4
  67. package/srv/blockchain/signing/external-signer.js +2 -8
  68. package/srv/blockchain/signing/hsm-signer.d.ts +6 -18
  69. package/srv/blockchain/signing/hsm-signer.js +16 -28
  70. package/srv/blockchain/signing/signature-verifier.d.ts +1 -8
  71. package/srv/blockchain/signing/signature-verifier.js +9 -19
  72. package/srv/blockchain/signing/submission-finalizer.d.ts +10 -16
  73. package/srv/blockchain/signing/submission-finalizer.js +53 -19
  74. package/srv/blockchain/stored-chain.d.ts +1 -14
  75. package/srv/blockchain/stored-chain.js +3 -8
  76. package/srv/blockchain/transaction-building/buildooor-fee-patch.d.ts +0 -4
  77. package/srv/blockchain/transaction-building/buildooor-fee-patch.js +4 -9
  78. package/srv/blockchain/transaction-building/buildooor-tx.d.ts +7 -150
  79. package/srv/blockchain/transaction-building/buildooor-tx.js +91 -196
  80. package/srv/blockchain/transaction-building/caller-datums.d.ts +0 -14
  81. package/srv/blockchain/transaction-building/caller-datums.js +3 -9
  82. package/srv/blockchain/transaction-building/cardano-tx.d.ts +1 -4
  83. package/srv/blockchain/wallet-worker/build-request.d.ts +0 -5
  84. package/srv/blockchain/wallet-worker/build-request.js +6 -9
  85. package/srv/blockchain/wallet-worker/confirmation-tracker.d.ts +5 -23
  86. package/srv/blockchain/wallet-worker/confirmation-tracker.js +16 -20
  87. package/srv/blockchain/wallet-worker/index.d.ts +1 -1
  88. package/srv/blockchain/wallet-worker/index.js +3 -5
  89. package/srv/blockchain/wallet-worker/job-store.d.ts +15 -65
  90. package/srv/blockchain/wallet-worker/job-store.js +0 -0
  91. package/srv/blockchain/wallet-worker/lease-heartbeat.d.ts +2 -10
  92. package/srv/blockchain/wallet-worker/lease-heartbeat.js +6 -12
  93. package/srv/blockchain/wallet-worker/signers.d.ts +3 -11
  94. package/srv/blockchain/wallet-worker/signers.js +3 -6
  95. package/srv/blockchain/wallet-worker/wallet-worker.d.ts +3 -21
  96. package/srv/blockchain/wallet-worker/wallet-worker.js +47 -54
  97. package/srv/cardano-agent-service.cds +123 -146
  98. package/srv/cardano-agent-service.js +2 -5
  99. package/srv/cardano-backend-service.cds +10 -17
  100. package/srv/cardano-backend-service.js +7 -12
  101. package/srv/cardano-indexer-service.cds +16 -37
  102. package/srv/cardano-indexer-service.d.ts +5 -1
  103. package/srv/cardano-indexer-service.js +44 -35
  104. package/srv/cardano-service.cds +56 -40
  105. package/srv/cardano-service.js +42 -69
  106. package/srv/cardano-sign-service.cds +14 -23
  107. package/srv/cardano-sign-service.js +18 -24
  108. package/srv/cardano-tx-service.cds +27 -29
  109. package/srv/cardano-tx-service.js +60 -122
  110. package/srv/cardano-worker-service.cds +109 -125
  111. package/srv/cardano-worker-service.js +21 -31
  112. package/srv/cbor/cip68.d.ts +0 -4
  113. package/srv/cbor/cip68.js +2 -4
  114. package/srv/cbor/parse.d.ts +3 -18
  115. package/srv/cbor/parse.js +2 -7
  116. package/srv/cbor/plutus-data-json.d.ts +0 -4
  117. package/srv/server.d.ts +5 -36
  118. package/srv/server.js +30 -51
  119. package/srv/utils/agent-grants-config.d.ts +0 -18
  120. package/srv/utils/agent-grants-config.js +6 -13
  121. package/srv/utils/agent-grants.d.ts +14 -68
  122. package/srv/utils/agent-grants.js +42 -60
  123. package/srv/utils/agent-token-auth.d.ts +0 -5
  124. package/srv/utils/agent-token-auth.js +2 -5
  125. package/srv/utils/backend-request-handler.d.ts +1 -1
  126. package/srv/utils/collections.d.ts +1 -4
  127. package/srv/utils/collections.js +1 -4
  128. package/srv/utils/const.d.ts +0 -18
  129. package/srv/utils/const.js +7 -18
  130. package/srv/utils/crypto.js +3 -5
  131. package/srv/utils/db-indexes.d.ts +2 -0
  132. package/srv/utils/db-indexes.js +22 -9
  133. package/srv/utils/db-sanitize.d.ts +1 -8
  134. package/srv/utils/db-sanitize.js +3 -8
  135. package/srv/utils/epoch-slots.d.ts +1 -8
  136. package/srv/utils/epoch-slots.js +3 -8
  137. package/srv/utils/error-codes.d.ts +0 -4
  138. package/srv/utils/error-codes.js +2 -4
  139. package/srv/utils/errors.d.ts +2 -22
  140. package/srv/utils/errors.js +13 -27
  141. package/srv/utils/liveness.d.ts +0 -4
  142. package/srv/utils/liveness.js +2 -4
  143. package/srv/utils/mappers.d.ts +0 -37
  144. package/srv/utils/mappers.js +19 -39
  145. package/srv/utils/network-context.js +2 -4
  146. package/srv/utils/paging.d.ts +31 -0
  147. package/srv/utils/paging.js +43 -0
  148. package/srv/utils/pg-inline-json.js +3 -7
  149. package/srv/utils/pg-order-nulls.js +2 -5
  150. package/srv/utils/plutus-placeholders.d.ts +0 -13
  151. package/srv/utils/plutus-placeholders.js +6 -13
  152. package/srv/utils/rate-limiter.d.ts +0 -8
  153. package/srv/utils/rate-limiter.js +2 -4
  154. package/srv/utils/reference-script.d.ts +0 -18
  155. package/srv/utils/reference-script.js +8 -19
  156. package/srv/utils/service-events.d.ts +0 -4
  157. package/srv/utils/service-events.js +2 -4
  158. package/srv/utils/signing-helper.d.ts +1 -8
  159. package/srv/utils/signing-helper.js +3 -8
  160. package/srv/utils/tx-build-helper.d.ts +2 -32
  161. package/srv/utils/tx-build-helper.js +26 -40
  162. package/srv/utils/tx-request-parsers.d.ts +1 -25
  163. package/srv/utils/tx-request-parsers.js +10 -25
  164. package/srv/utils/tx-utils.d.ts +0 -8
  165. package/srv/utils/tx-utils.js +10 -13
  166. package/srv/utils/types.d.ts +2 -37
  167. package/srv/utils/validators.d.ts +0 -4
  168. package/srv/utils/validators.js +2 -4
@@ -1,32 +1,6 @@
1
1
  // This is an automatically generated file. Please do not change its contents manually!
2
2
  import * as __ from './../_';
3
3
 
4
- /**
5
- * Cardano Agent Service (v2.0)
6
- *
7
- * Agent grants: scoped, budgeted bearer capabilities an Admin hands to an agent
8
- * instead of a full user.
9
- *
10
- * - CreateAgentGrant / UpdateAgentGrant / RotateAgentGrantToken / RevokeAgentGrant:
11
- * Admin-only administration, rate limited per principal per hour
12
- * (AGENT_GRANT_ADMIN_RATE_LIMIT, default 10). The token is returned ONCE from
13
- * CreateAgentGrant and RotateAgentGrantToken and stored as SHA-256 only.
14
- * - AgentGrants: Admin-only projection (no token hash). A request carrying a token
15
- * runs as the principal `agent:<grantId>` with the role `agent-grant` and sees
16
- * exactly its own row through the row-level restriction below.
17
- * - GetGrantStatus: token self-service — what am I allowed to do, how much budget
18
- * is left, when do I expire. What an MCP tool needs to describe itself honestly.
19
- * - GetGrantUsage: admitted calls per service and action over a window — an Admin
20
- * for any grant, a token for its own (a partner usage view, ledger reconciliation).
21
- *
22
- * A token request never inherits the operator's roles: `@requires: 'Admin'` on the
23
- * four actions, on PauseWorker / ResumeWorker / pauseCrawler / resumeCrawler and on
24
- * every other Admin surface therefore refuses it by construction. The allow list,
25
- * wallet pinning and daily budget are enforced by a before('*') hook on all six
26
- * ODATANO services (srv/utils/agent-grants.ts). The `x-agent-token` header only
27
- * reaches the services when cds.requires.odatano-core.agentGrants.enabled is set
28
- * (srv/utils/agent-token-auth.ts).
29
- */
30
4
  export default class {
31
5
  static readonly GetGrantStatus: typeof GetGrantStatus;
32
6
  static readonly CreateAgentGrant: typeof CreateAgentGrant;
@@ -59,28 +33,8 @@ export declare function _AgentGrantAspect<TBase extends new (...args: any[]) =>
59
33
  readonly elements: __.ElementsOf<AgentGrant>;
60
34
  readonly actions: globalThis.Record<never, never>;
61
35
  };
62
- /**
63
- * Agent grants (v2.0): scoped bearer capabilities an Admin hands to an agent
64
- * instead of a full user. The token is a capability, not an identity — it is
65
- * stored as SHA-256 only, and a request carrying it runs as the principal
66
- * `agent:<ID>` with the role `agent-grant`, never as the operator. Enforcement
67
- * (allow list, wallet pinning, daily budget) lives in srv/utils/agent-grants.ts;
68
- * the transport lane that admits `x-agent-token` in srv/utils/agent-token-auth.ts.
69
- * Admin-only table: creation and revocation happen through CardanoAgentService
70
- * actions, a token request may read its own row only.
71
- */
72
36
  export class AgentGrant extends _AgentGrantAspect(__.Entity) {
73
37
  }
74
- /**
75
- * Agent grants (v2.0): scoped bearer capabilities an Admin hands to an agent
76
- * instead of a full user. The token is a capability, not an identity — it is
77
- * stored as SHA-256 only, and a request carrying it runs as the principal
78
- * `agent:<ID>` with the role `agent-grant`, never as the operator. Enforcement
79
- * (allow list, wallet pinning, daily budget) lives in srv/utils/agent-grants.ts;
80
- * the transport lane that admits `x-agent-token` in srv/utils/agent-token-auth.ts.
81
- * Admin-only table: creation and revocation happen through CardanoAgentService
82
- * actions, a token request may read its own row only.
83
- */
84
38
  export class AgentGrants extends Array<AgentGrant> {
85
39
  $count?: number
86
40
  }
@@ -1,16 +1,6 @@
1
1
  // This is an automatically generated file. Please do not change its contents manually!
2
2
  import * as __ from './../_';
3
3
 
4
- /**
5
- * Cardano Backend Service
6
- *
7
- * The data a CardanoBackend needs, for another ODATANO instance that uses this one as its
8
- * backend (`backends: ["odatano"]`). Every operation answers the provider shape as a JSON
9
- * string (`value`), so the caller maps it exactly like a Koios or Blockfrost answer.
10
- * Stored blocks and transactions come from this instance's index; everything else goes
11
- * through its own backends and crawled data, as the read service does. Nothing is persisted
12
- * for the caller.
13
- */
14
4
  export default class {
15
5
  static readonly GetTransaction: typeof GetTransaction;
16
6
  static readonly GetTransactionsBatch: typeof GetTransactionsBatch;
@@ -2,23 +2,6 @@
2
2
  import * as _ from './..';
3
3
  import * as __ from './../_';
4
4
 
5
- /**
6
- * Cardano Indexer Service (v2.0)
7
- *
8
- * Control + observability surface for the chain crawler / pre-sync engine:
9
- * - read-only projections of the sync cursor and reorg audit log
10
- * - status function + pause/resume actions delegating to the crawler singleton
11
- *
12
- * Security note: see CardanoODataService (cardano-service.cds) for the rationale on
13
- * auth. pause/resume are operational actions — gate behind a dedicated Admin scope.
14
- * Read-only status and audit data remain available to authenticated users.
15
- *
16
- * Deliberately NO service-level @requires: CAP checks a service-level requirement
17
- * on every request BEFORE the operation's own annotation, so an operation-level
18
- * `@requires: 'any'` can never open a single function on an otherwise
19
- * authenticated service (anonymous callers get the 401 challenge first). The
20
- * requirement therefore sits on each element, and getLiveness() alone is 'any'.
21
- */
22
5
  export default class {
23
6
  static readonly getStatus: typeof getStatus;
24
7
  static readonly getLiveness: typeof getLiveness;
@@ -103,6 +86,8 @@ export declare function _CrawlerStatusAspect<TBase extends new (...args: any[])
103
86
  tipHeight?: string | null
104
87
  syncProgress?: string | null
105
88
  consecutiveErrors?: number | null
89
+ lastIndexedAt?: __.CdsTimestamp | null
90
+ stalled?: boolean | null
106
91
  utxoSet?: UtxoSetStatus | null
107
92
  certificateBackfill?: CertificateBackfillStatus | null
108
93
  transactionBackfill?: TransactionBackfillStatus | null
@@ -363,11 +348,11 @@ export declare const resumeCrawler: {
363
348
 
364
349
  export declare const importUtxoSet: {
365
350
  // positional
366
- (source: string | null, filePath: string | null, anchorSlot: number | null, anchorHash: string | null): globalThis.Promise<UtxoSetImportResult | null> | UtxoSetImportResult | null
351
+ (source: _.UtxoSetImportSource | null, filePath: string | null, anchorSlot: number | null, anchorHash: string | null): globalThis.Promise<UtxoSetImportResult | null> | UtxoSetImportResult | null
367
352
  // named
368
- ({source, filePath, anchorSlot, anchorHash}: {source?: string | null, filePath?: string | null, anchorSlot?: number | null, anchorHash?: string | null}): globalThis.Promise<UtxoSetImportResult | null> | UtxoSetImportResult | null
353
+ ({source, filePath, anchorSlot, anchorHash}: {source?: _.UtxoSetImportSource | null, filePath?: string | null, anchorSlot?: number | null, anchorHash?: string | null}): globalThis.Promise<UtxoSetImportResult | null> | UtxoSetImportResult | null
369
354
  // metadata (do not use)
370
- __parameters: {source?: string | null, filePath?: string | null, anchorSlot?: number | null, anchorHash?: string | null}, __returns: globalThis.Promise<UtxoSetImportResult | null> | UtxoSetImportResult | null, __self: never
355
+ __parameters: {source?: _.UtxoSetImportSource | null, filePath?: string | null, anchorSlot?: number | null, anchorHash?: string | null}, __returns: globalThis.Promise<UtxoSetImportResult | null> | UtxoSetImportResult | null, __self: never
371
356
  kind: 'action'
372
357
  }
373
358
 
@@ -2,35 +2,6 @@
2
2
  import * as _ from './..';
3
3
  import * as __ from './../_';
4
4
 
5
- /**
6
- * Cardano OData Service
7
- *
8
- * Handles external read-only queries for Cardano blockchain data, including:
9
- * - Retrieving network information, blocks, epochs, pools, dreps, transactions, accounts, addresses, UTxOs, assets, and metadata
10
- * - Providing actions for fetching specific data by identifiers (hashes, addresses, etc.) and for retrieving the latest blockchain state (latest block, epoch, protocol parameters)
11
- *
12
- * ## Security: Authentication & Authorization
13
- *
14
- * All services use `@requires: 'authenticated-user'` (service-level gate).
15
- * The XSUAA scopes defined in xs-security.json (Read, Transact, Sign) are available
16
- * for consumer-level role assignment but are NOT enforced per-action in ODATANO itself.
17
- *
18
- * This is intentional — ODATANO is a blockchain bridge, not a multi-tenant application.
19
- * Per-resource ownership checks (IDOR prevention) are deliberately omitted because:
20
- *
21
- * 1. **Blockchain security model**: Unsigned transaction CBOR is not exploitable without
22
- * the corresponding private key. Viewing a build/signing request does not enable
23
- * fund theft — only the key holder can sign and submit.
24
- *
25
- * 2. **Cross-address operations are legitimate**: Smart contract interactions routinely
26
- * require building transactions for addresses the caller does not own — e.g. script
27
- * redemptions, multi-party Plutus workflows, or DApp backends building on behalf of users.
28
- * Enforcing sender == authenticated user would break these use cases.
29
- *
30
- * 3. **Consumer responsibility**: Consumers deploying ODATANO in multi-user environments
31
- * should add their own authorization layer (e.g. `@restrict` annotations, custom
32
- * middleware) that maps JWT claims to allowed wallet addresses if needed.
33
- */
34
5
  export default class {
35
6
  static readonly GetNetworkInformation: typeof GetNetworkInformation;
36
7
  static readonly GetBlockByHash: typeof GetBlockByHash;
@@ -991,11 +962,11 @@ export declare const GetAssetInfo: {
991
962
 
992
963
  export declare const GetAssetHistory: {
993
964
  // positional
994
- (unit: _.AssetUnit | null, limit: number | null): globalThis.Promise<Array<AssetHistory>> | Array<AssetHistory>
965
+ (unit: _.AssetUnit | null, limit: number | null, skip: number | null): globalThis.Promise<Array<AssetHistory>> | Array<AssetHistory>
995
966
  // named
996
- ({unit, limit}: {unit?: _.AssetUnit | null, limit?: number | null}): globalThis.Promise<Array<AssetHistory>> | Array<AssetHistory>
967
+ ({unit, limit, skip}: {unit?: _.AssetUnit | null, limit?: number | null, skip?: number | null}): globalThis.Promise<Array<AssetHistory>> | Array<AssetHistory>
997
968
  // metadata (do not use)
998
- __parameters: {unit?: _.AssetUnit | null, limit?: number | null}, __returns: globalThis.Promise<Array<AssetHistory>> | Array<AssetHistory>, __self: never
969
+ __parameters: {unit?: _.AssetUnit | null, limit?: number | null, skip?: number | null}, __returns: globalThis.Promise<Array<AssetHistory>> | Array<AssetHistory>, __self: never
999
970
  kind: 'action'
1000
971
  }
1001
972
 
@@ -1031,11 +1002,11 @@ export declare const GetTransactionConfirmations: {
1031
1002
 
1032
1003
  export declare const GetMetadataByTxHash: {
1033
1004
  // positional
1034
- (txHash: _.Blake2b256 | null): globalThis.Promise<Array<TransactionMetadata>> | Array<TransactionMetadata>
1005
+ (txHash: _.Blake2b256 | null, limit: number | null, skip: number | null): globalThis.Promise<Array<TransactionMetadata>> | Array<TransactionMetadata>
1035
1006
  // named
1036
- ({txHash}: {txHash?: _.Blake2b256 | null}): globalThis.Promise<Array<TransactionMetadata>> | Array<TransactionMetadata>
1007
+ ({txHash, limit, skip}: {txHash?: _.Blake2b256 | null, limit?: number | null, skip?: number | null}): globalThis.Promise<Array<TransactionMetadata>> | Array<TransactionMetadata>
1037
1008
  // metadata (do not use)
1038
- __parameters: {txHash?: _.Blake2b256 | null}, __returns: globalThis.Promise<Array<TransactionMetadata>> | Array<TransactionMetadata>, __self: never
1009
+ __parameters: {txHash?: _.Blake2b256 | null, limit?: number | null, skip?: number | null}, __returns: globalThis.Promise<Array<TransactionMetadata>> | Array<TransactionMetadata>, __self: never
1039
1010
  kind: 'action'
1040
1011
  }
1041
1012
 
@@ -1051,41 +1022,41 @@ export declare const GetAddressByBech32: {
1051
1022
 
1052
1023
  export declare const GetUTxOsByAddress: {
1053
1024
  // positional
1054
- (address: _.Bech32 | null): globalThis.Promise<Array<AddressUTxO>> | Array<AddressUTxO>
1025
+ (address: _.Bech32 | null, limit: number | null, skip: number | null): globalThis.Promise<Array<AddressUTxO>> | Array<AddressUTxO>
1055
1026
  // named
1056
- ({address}: {address?: _.Bech32 | null}): globalThis.Promise<Array<AddressUTxO>> | Array<AddressUTxO>
1027
+ ({address, limit, skip}: {address?: _.Bech32 | null, limit?: number | null, skip?: number | null}): globalThis.Promise<Array<AddressUTxO>> | Array<AddressUTxO>
1057
1028
  // metadata (do not use)
1058
- __parameters: {address?: _.Bech32 | null}, __returns: globalThis.Promise<Array<AddressUTxO>> | Array<AddressUTxO>, __self: never
1029
+ __parameters: {address?: _.Bech32 | null, limit?: number | null, skip?: number | null}, __returns: globalThis.Promise<Array<AddressUTxO>> | Array<AddressUTxO>, __self: never
1059
1030
  kind: 'action'
1060
1031
  }
1061
1032
 
1062
1033
  export declare const GetUTxOsByCredential: {
1063
1034
  // positional
1064
- (credential: string | null): globalThis.Promise<Array<AddressUTxO>> | Array<AddressUTxO>
1035
+ (credential: string | null, limit: number | null, skip: number | null): globalThis.Promise<Array<AddressUTxO>> | Array<AddressUTxO>
1065
1036
  // named
1066
- ({credential}: {credential?: string | null}): globalThis.Promise<Array<AddressUTxO>> | Array<AddressUTxO>
1037
+ ({credential, limit, skip}: {credential?: string | null, limit?: number | null, skip?: number | null}): globalThis.Promise<Array<AddressUTxO>> | Array<AddressUTxO>
1067
1038
  // metadata (do not use)
1068
- __parameters: {credential?: string | null}, __returns: globalThis.Promise<Array<AddressUTxO>> | Array<AddressUTxO>, __self: never
1039
+ __parameters: {credential?: string | null, limit?: number | null, skip?: number | null}, __returns: globalThis.Promise<Array<AddressUTxO>> | Array<AddressUTxO>, __self: never
1069
1040
  kind: 'action'
1070
1041
  }
1071
1042
 
1072
1043
  export declare const GetAssetsByAddress: {
1073
1044
  // positional
1074
- (address: _.Bech32 | null): globalThis.Promise<Array<AddressAsset>> | Array<AddressAsset>
1045
+ (address: _.Bech32 | null, limit: number | null, skip: number | null): globalThis.Promise<Array<AddressAsset>> | Array<AddressAsset>
1075
1046
  // named
1076
- ({address}: {address?: _.Bech32 | null}): globalThis.Promise<Array<AddressAsset>> | Array<AddressAsset>
1047
+ ({address, limit, skip}: {address?: _.Bech32 | null, limit?: number | null, skip?: number | null}): globalThis.Promise<Array<AddressAsset>> | Array<AddressAsset>
1077
1048
  // metadata (do not use)
1078
- __parameters: {address?: _.Bech32 | null}, __returns: globalThis.Promise<Array<AddressAsset>> | Array<AddressAsset>, __self: never
1049
+ __parameters: {address?: _.Bech32 | null, limit?: number | null, skip?: number | null}, __returns: globalThis.Promise<Array<AddressAsset>> | Array<AddressAsset>, __self: never
1079
1050
  kind: 'action'
1080
1051
  }
1081
1052
 
1082
1053
  export declare const GetLatestTransactionsByAddress: {
1083
1054
  // positional
1084
- (address: _.Bech32 | null, limit: number | null): globalThis.Promise<Array<AddressTransaction>> | Array<AddressTransaction>
1055
+ (address: _.Bech32 | null, limit: number | null, skip: number | null): globalThis.Promise<Array<AddressTransaction>> | Array<AddressTransaction>
1085
1056
  // named
1086
- ({address, limit}: {address?: _.Bech32 | null, limit?: number | null}): globalThis.Promise<Array<AddressTransaction>> | Array<AddressTransaction>
1057
+ ({address, limit, skip}: {address?: _.Bech32 | null, limit?: number | null, skip?: number | null}): globalThis.Promise<Array<AddressTransaction>> | Array<AddressTransaction>
1087
1058
  // metadata (do not use)
1088
- __parameters: {address?: _.Bech32 | null, limit?: number | null}, __returns: globalThis.Promise<Array<AddressTransaction>> | Array<AddressTransaction>, __self: never
1059
+ __parameters: {address?: _.Bech32 | null, limit?: number | null, skip?: number | null}, __returns: globalThis.Promise<Array<AddressTransaction>> | Array<AddressTransaction>, __self: never
1089
1060
  kind: 'action'
1090
1061
  }
1091
1062
 
@@ -3,21 +3,6 @@ import * as __ from './../_';
3
3
  import * as _ from './..';
4
4
  import * as _odatano_cardano from './../odatano/cardano';
5
5
 
6
- /**
7
- * Cardano Sign Service
8
- *
9
- * Handles the external signing workflow for Cardano transactions, including:
10
- * - Creating signing requests with transaction details and signing instructions
11
- * - Verifying signatures of signed transactions and storing verification results
12
- * - Submitting verified transactions to the blockchain and tracking submission status
13
- * - Providing actions for signing with a Hardware Security Module (HSM) and retrieving HSM status
14
- *
15
- * Security note: see CardanoODataService (cardano-service.cds) for the rationale on auth
16
- * without per-resource ownership enforcement. Deliberately NO service-level @requires:
17
- * CAP checks it on every request BEFORE the operation annotation, which silenced the
18
- * `any` on VerifyDataSignature (anonymous callers got the 401 challenge first). The
19
- * requirement therefore sits on each element; VerifyDataSignature alone is public.
20
- */
21
6
  export default class {
22
7
  static readonly VerifySignature: typeof VerifySignature;
23
8
  static readonly SubmitVerifiedTransaction: typeof SubmitVerifiedTransaction;
@@ -507,11 +492,11 @@ export declare const GetSigningRequest: {
507
492
 
508
493
  export declare const GetSigningRequestsByAddress: {
509
494
  // positional
510
- (address: _.Bech32 | null): globalThis.Promise<Array<AddressSigningRequest>> | Array<AddressSigningRequest>
495
+ (address: _.Bech32 | null, limit: number | null, skip: number | null): globalThis.Promise<Array<AddressSigningRequest>> | Array<AddressSigningRequest>
511
496
  // named
512
- ({address}: {address?: _.Bech32 | null}): globalThis.Promise<Array<AddressSigningRequest>> | Array<AddressSigningRequest>
497
+ ({address, limit, skip}: {address?: _.Bech32 | null, limit?: number | null, skip?: number | null}): globalThis.Promise<Array<AddressSigningRequest>> | Array<AddressSigningRequest>
513
498
  // metadata (do not use)
514
- __parameters: {address?: _.Bech32 | null}, __returns: globalThis.Promise<Array<AddressSigningRequest>> | Array<AddressSigningRequest>, __self: never
499
+ __parameters: {address?: _.Bech32 | null, limit?: number | null, skip?: number | null}, __returns: globalThis.Promise<Array<AddressSigningRequest>> | Array<AddressSigningRequest>, __self: never
515
500
  kind: 'action'
516
501
  }
517
502
 
@@ -3,16 +3,6 @@ import * as _ from './..';
3
3
  import * as __ from './../_';
4
4
  import * as _odatano_cardano from './../odatano/cardano';
5
5
 
6
- /**
7
- * Cardano Transaction Service
8
- *
9
- * Handles transaction building and submission operations.
10
- * Separate from the read-only CardanoODataService to provide
11
- * clear separation between general query and command operations.
12
- *
13
- * Security note: see CardanoODataService (cardano-service.cds) for the rationale
14
- * on service-level auth without per-resource ownership enforcement.
15
- */
16
6
  export default class {
17
7
  static readonly BuildSimpleAdaTransaction: typeof BuildSimpleAdaTransaction;
18
8
  static readonly BuildTransactionWithMetadata: typeof BuildTransactionWithMetadata;
@@ -217,20 +207,8 @@ export declare function _TransactionSubmissionAspect<TBase extends new (...args:
217
207
  }
218
208
  };
219
209
  };
220
- /**
221
- * TransactionSubmissions status flow:
222
- * pending -> [submit to chain] -> submitted (internal, in SubmitTransaction handler)
223
- * submitted -> [CheckSubmissionStatus] confirmed | stays submitted (conditional)
224
- * pending | submitted -> failed (blockchain error)
225
- */
226
210
  export class TransactionSubmission extends _TransactionSubmissionAspect(__.Entity) {
227
211
  }
228
- /**
229
- * TransactionSubmissions status flow:
230
- * pending -> [submit to chain] -> submitted (internal, in SubmitTransaction handler)
231
- * submitted -> [CheckSubmissionStatus] confirmed | stays submitted (conditional)
232
- * pending | submitted -> failed (blockchain error)
233
- */
234
212
  export class TransactionSubmissions extends Array<TransactionSubmission> {
235
213
  $count?: number
236
214
  }
@@ -476,11 +454,11 @@ export declare const SubmitTransaction: {
476
454
 
477
455
  export declare const SubmitSignedTransaction: {
478
456
  // positional
479
- (signedTxCbor: string | null, network: string | null): globalThis.Promise<TransactionSubmission | null> | TransactionSubmission | null
457
+ (signedTxCbor: string | null, network: _.CardanoNetwork | null): globalThis.Promise<TransactionSubmission | null> | TransactionSubmission | null
480
458
  // named
481
- ({signedTxCbor, network}: {signedTxCbor?: string | null, network?: string | null}): globalThis.Promise<TransactionSubmission | null> | TransactionSubmission | null
459
+ ({signedTxCbor, network}: {signedTxCbor?: string | null, network?: _.CardanoNetwork | null}): globalThis.Promise<TransactionSubmission | null> | TransactionSubmission | null
482
460
  // metadata (do not use)
483
- __parameters: {signedTxCbor?: string | null, network?: string | null}, __returns: globalThis.Promise<TransactionSubmission | null> | TransactionSubmission | null, __self: never
461
+ __parameters: {signedTxCbor?: string | null, network?: _.CardanoNetwork | null}, __returns: globalThis.Promise<TransactionSubmission | null> | TransactionSubmission | null, __self: never
484
462
  kind: 'action'
485
463
  }
486
464
 
@@ -516,21 +494,21 @@ export declare const SetCollateral: {
516
494
 
517
495
  export declare const GetTransactionBuildsByAddress: {
518
496
  // positional
519
- (address: _.Bech32 | null): globalThis.Promise<Array<AddressTransactionBuild>> | Array<AddressTransactionBuild>
497
+ (address: _.Bech32 | null, limit: number | null, skip: number | null): globalThis.Promise<Array<AddressTransactionBuild>> | Array<AddressTransactionBuild>
520
498
  // named
521
- ({address}: {address?: _.Bech32 | null}): globalThis.Promise<Array<AddressTransactionBuild>> | Array<AddressTransactionBuild>
499
+ ({address, limit, skip}: {address?: _.Bech32 | null, limit?: number | null, skip?: number | null}): globalThis.Promise<Array<AddressTransactionBuild>> | Array<AddressTransactionBuild>
522
500
  // metadata (do not use)
523
- __parameters: {address?: _.Bech32 | null}, __returns: globalThis.Promise<Array<AddressTransactionBuild>> | Array<AddressTransactionBuild>, __self: never
501
+ __parameters: {address?: _.Bech32 | null, limit?: number | null, skip?: number | null}, __returns: globalThis.Promise<Array<AddressTransactionBuild>> | Array<AddressTransactionBuild>, __self: never
524
502
  kind: 'action'
525
503
  }
526
504
 
527
505
  export declare const DeriveScriptAddress: {
528
506
  // positional
529
- (validatorScript: string | null, scriptParamsJson: string | null, network: string | null): globalThis.Promise<{ scriptAddress?: string | null, scriptHash?: string | null, } | null> | { scriptAddress?: string | null, scriptHash?: string | null, } | null
507
+ (validatorScript: string | null, scriptParamsJson: string | null, network: _.CardanoNetwork | null): globalThis.Promise<{ scriptAddress?: string | null, scriptHash?: string | null, } | null> | { scriptAddress?: string | null, scriptHash?: string | null, } | null
530
508
  // named
531
- ({validatorScript, scriptParamsJson, network}: {validatorScript?: string | null, scriptParamsJson?: string | null, network?: string | null}): globalThis.Promise<{ scriptAddress?: string | null, scriptHash?: string | null, } | null> | { scriptAddress?: string | null, scriptHash?: string | null, } | null
509
+ ({validatorScript, scriptParamsJson, network}: {validatorScript?: string | null, scriptParamsJson?: string | null, network?: _.CardanoNetwork | null}): globalThis.Promise<{ scriptAddress?: string | null, scriptHash?: string | null, } | null> | { scriptAddress?: string | null, scriptHash?: string | null, } | null
532
510
  // metadata (do not use)
533
- __parameters: {validatorScript?: string | null, scriptParamsJson?: string | null, network?: string | null}, __returns: globalThis.Promise<{ scriptAddress?: string | null, scriptHash?: string | null, } | null> | { scriptAddress?: string | null, scriptHash?: string | null, } | null, __self: never
511
+ __parameters: {validatorScript?: string | null, scriptParamsJson?: string | null, network?: _.CardanoNetwork | null}, __returns: globalThis.Promise<{ scriptAddress?: string | null, scriptHash?: string | null, } | null> | { scriptAddress?: string | null, scriptHash?: string | null, } | null, __self: never
534
512
  kind: 'action'
535
513
  }
536
514
 
@@ -2,22 +2,6 @@
2
2
  import * as _ from './..';
3
3
  import * as __ from './../_';
4
4
 
5
- /**
6
- * Cardano Wallet Worker Service (v2.0)
7
- *
8
- * Control + observability surface for the wallet worker / job engine:
9
- * - job submission (async build → sign → submit → confirm from server-side wallets)
10
- * - job status polling + cancellation
11
- * - read-only projections of jobs and registered worker wallets
12
- * - pause/resume of the local worker instance (admin)
13
- *
14
- * Security note: SubmitWalletJob executes value transfers with server-held keys —
15
- * the service requires authentication throughout; control actions and foreign-job
16
- * visibility are gated behind the Admin role. Jobs on HSM-backed wallets addition-
17
- * ally require the configured hsm.requiresRole (HSM_REQUIRES_ROLE), the same gate
18
- * the synchronous SignWithHsm path enforces. Keys are NEVER accepted or exposed
19
- * through this surface.
20
- */
21
5
  export default class {
22
6
  static readonly SubmitWalletJob: typeof SubmitWalletJob;
23
7
  static readonly CancelJob: typeof CancelJob;
@@ -165,11 +149,11 @@ export declare class jobFailed {
165
149
 
166
150
  export declare const SubmitWalletJob: {
167
151
  // positional
168
- (walletId: string | null, kind: string | null, requestJson: string | null, idempotencyKey: string | null, priority: number | null, notBefore: __.CdsTimestamp | null): globalThis.Promise<JobSubmissionResult | null> | JobSubmissionResult | null
152
+ (walletId: string | null, kind: _.WalletJobKind | null, requestJson: string | null, idempotencyKey: string | null, priority: number | null, notBefore: __.CdsTimestamp | null): globalThis.Promise<JobSubmissionResult | null> | JobSubmissionResult | null
169
153
  // named
170
- ({walletId, kind, requestJson, idempotencyKey, priority, notBefore}: {walletId?: string | null, kind?: string | null, requestJson?: string | null, idempotencyKey?: string | null, priority?: number | null, notBefore?: __.CdsTimestamp | null}): globalThis.Promise<JobSubmissionResult | null> | JobSubmissionResult | null
154
+ ({walletId, kind, requestJson, idempotencyKey, priority, notBefore}: {walletId?: string | null, kind?: _.WalletJobKind | null, requestJson?: string | null, idempotencyKey?: string | null, priority?: number | null, notBefore?: __.CdsTimestamp | null}): globalThis.Promise<JobSubmissionResult | null> | JobSubmissionResult | null
171
155
  // metadata (do not use)
172
- __parameters: {walletId?: string | null, kind?: string | null, requestJson?: string | null, idempotencyKey?: string | null, priority?: number | null, notBefore?: __.CdsTimestamp | null}, __returns: globalThis.Promise<JobSubmissionResult | null> | JobSubmissionResult | null, __self: never
156
+ __parameters: {walletId?: string | null, kind?: _.WalletJobKind | null, requestJson?: string | null, idempotencyKey?: string | null, priority?: number | null, notBefore?: __.CdsTimestamp | null}, __returns: globalThis.Promise<JobSubmissionResult | null> | JobSubmissionResult | null, __self: never
173
157
  kind: 'action'
174
158
  }
175
159
 
@@ -84,6 +84,23 @@ export const WorkerSignerType: {
84
84
  }
85
85
  export type WorkerSignerType = "hsm" | "software"
86
86
 
87
+ // enum
88
+ export const CardanoNetwork: {
89
+ mainnet: "mainnet",
90
+ preview: "preview",
91
+ preprod: "preprod",
92
+ }
93
+ export type CardanoNetwork = "mainnet" | "preview" | "preprod"
94
+
95
+ // enum
96
+ export const UtxoSetImportSource: {
97
+ ogmios: "ogmios",
98
+ file: "file",
99
+ aggregates: "aggregates",
100
+ scripts: "scripts",
101
+ }
102
+ export type UtxoSetImportSource = "ogmios" | "file" | "aggregates" | "scripts"
103
+
87
104
  // the following represents the CDS aspect 'cuid'
88
105
  export declare function _cuidAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
89
106
  new (...args: any[]): {
@@ -46,3 +46,5 @@ module.exports.ReorgStatus ??= { detected: "detected", rolling_back: "rolling_ba
46
46
  module.exports.WalletJobStatus ??= { pending: "pending", building: "building", submitting: "submitting", submitted: "submitted", confirmed: "confirmed", failed: "failed", cancelled: "cancelled" }
47
47
  module.exports.WalletJobKind ??= { simpleAda: "simpleAda", metadata: "metadata", multiAsset: "multiAsset", mint: "mint", plutusSpend: "plutusSpend", submitSigned: "submitSigned" }
48
48
  module.exports.WorkerSignerType ??= { hsm: "hsm", software: "software" }
49
+ module.exports.CardanoNetwork ??= { mainnet: "mainnet", preview: "preview", preprod: "preprod" }
50
+ module.exports.UtxoSetImportSource ??= { ogmios: "ogmios", file: "file", aggregates: "aggregates", scripts: "scripts" }
@@ -1332,28 +1332,8 @@ export declare function _CardanoAgentGrantAspect<TBase extends new (...args: any
1332
1332
  readonly elements: __.ElementsOf<CardanoAgentGrant>;
1333
1333
  readonly actions: globalThis.Record<never, never>;
1334
1334
  };
1335
- /**
1336
- * Agent grants (v2.0): scoped bearer capabilities an Admin hands to an agent
1337
- * instead of a full user. The token is a capability, not an identity — it is
1338
- * stored as SHA-256 only, and a request carrying it runs as the principal
1339
- * `agent:<ID>` with the role `agent-grant`, never as the operator. Enforcement
1340
- * (allow list, wallet pinning, daily budget) lives in srv/utils/agent-grants.ts;
1341
- * the transport lane that admits `x-agent-token` in srv/utils/agent-token-auth.ts.
1342
- * Admin-only table: creation and revocation happen through CardanoAgentService
1343
- * actions, a token request may read its own row only.
1344
- */
1345
1335
  export class CardanoAgentGrant extends _CardanoAgentGrantAspect(__.Entity) {
1346
1336
  }
1347
- /**
1348
- * Agent grants (v2.0): scoped bearer capabilities an Admin hands to an agent
1349
- * instead of a full user. The token is a capability, not an identity — it is
1350
- * stored as SHA-256 only, and a request carrying it runs as the principal
1351
- * `agent:<ID>` with the role `agent-grant`, never as the operator. Enforcement
1352
- * (allow list, wallet pinning, daily budget) lives in srv/utils/agent-grants.ts;
1353
- * the transport lane that admits `x-agent-token` in srv/utils/agent-token-auth.ts.
1354
- * Admin-only table: creation and revocation happen through CardanoAgentService
1355
- * actions, a token request may read its own row only.
1356
- */
1357
1337
  export class CardanoAgentGrants extends Array<CardanoAgentGrant> {
1358
1338
  $count?: number
1359
1339
  }
@@ -1374,22 +1354,8 @@ export declare function _CardanoAgentGrantUsageAspect<TBase extends new (...args
1374
1354
  readonly elements: __.ElementsOf<CardanoAgentGrantUsage>;
1375
1355
  readonly actions: globalThis.Record<never, never>;
1376
1356
  };
1377
- /**
1378
- * Daily per-action counters of admitted calls under a grant (feeds
1379
- * CardanoAgentService.GetGrantUsage). Written by the enforcement hook next to
1380
- * the daily budget: `calls + 1` when a call is admitted, `refunded + 1` when the
1381
- * handler then refuses its input. Not exposed as an entity — the function is
1382
- * the contract. A few dozen rows per grant and day at most; no retention job yet.
1383
- */
1384
1357
  export class CardanoAgentGrantUsage extends _CardanoAgentGrantUsageAspect(__.Entity) {
1385
1358
  }
1386
- /**
1387
- * Daily per-action counters of admitted calls under a grant (feeds
1388
- * CardanoAgentService.GetGrantUsage). Written by the enforcement hook next to
1389
- * the daily budget: `calls + 1` when a call is admitted, `refunded + 1` when the
1390
- * handler then refuses its input. Not exposed as an entity — the function is
1391
- * the contract. A few dozen rows per grant and day at most; no retention job yet.
1392
- */
1393
1359
  export class CardanoAgentGrantUsage_ extends Array<CardanoAgentGrantUsage> {
1394
1360
  $count?: number
1395
1361
  }
package/README.md CHANGED
@@ -35,31 +35,31 @@ npm install @odatano/core @cap-js/sqlite
35
35
  "db": { "kind": "sqlite" },
36
36
  "odatano-core": {
37
37
  "network": "preview",
38
- "backends": ["blockfrost"]
38
+ "backends": ["koios"]
39
39
  }
40
40
  }
41
41
  }
42
42
  }
43
43
  ```
44
44
 
45
- Put your API key in a `.env` file in the project root (loaded automatically by `cds serve` / `cds watch`) — don't commit it to `package.json`:
46
-
47
45
  ```bash
48
- # .env
49
- BLOCKFROST_API_KEY=preview_your_api_key_here
46
+ cds deploy --to sqlite
47
+ cds serve
50
48
  ```
51
49
 
50
+ Koios works without an account on its public tier. A [Koios token](https://koios.rest) is optional and raises the rate limit. Put it in a `.env` file in the project root (loaded automatically by `cds serve` / `cds watch`), not in `package.json`:
51
+
52
52
  ```bash
53
- cds deploy --to sqlite
54
- cds serve
53
+ # .env (optional)
54
+ KOIOS_API_KEY=your_koios_token
55
55
  ```
56
56
 
57
57
  > Config in `cds.requires.odatano-core` takes precedence over environment
58
- > variables; a `blockfrostApiKey` set there would override the `.env` value.
58
+ > variables; a `koiosApiKey` set there would override the `.env` value.
59
59
 
60
- > **Self-hosted Blockfrost-compatible node?** (Dolos MiniBF, Demeter Self-Hosted)
61
- > Set `blockfrostCustomBackend` to the node's base URL (e.g. `http://localhost:3010/api/v0`).
62
- > When set, `blockfrostApiKey` becomes optional. See the [Backend Configuration Guide](docs/guides/BACKEND_CONFIGURATION.md#self-hosted-blockfrost-compatible-backends).
60
+ Other backends are optional and can be combined, for example `["ogmios", "koios"]` with a local node, or
61
+ `blockfrost` with a Blockfrost key or a self-hosted Blockfrost-compatible node. See the
62
+ [Backend Configuration Guide](docs/guides/BACKEND_CONFIGURATION.md).
63
63
 
64
64
  ### Standalone
65
65
 
@@ -68,7 +68,7 @@ Run ODATANO as a self-contained service (no host CAP project needed):
68
68
  ```bash
69
69
  git clone https://github.com/ODATANO/ODATANO && cd ODATANO
70
70
  npm ci
71
- cp .env.example .env # set BLOCKFROST_API_KEY, NETWORK, BACKENDS
71
+ cp .env.example .env # set NETWORK, BACKENDS (default koios), optional KOIOS_API_KEY
72
72
  cds deploy --to sqlite
73
73
  cds serve
74
74
  ```
@@ -83,8 +83,8 @@ docker compose logs -f ogmios # watch sync (/health: 202 syncing, 20
83
83
  ```
84
84
 
85
85
  > First sync from genesis takes hours; the node DB persists in a Docker volume so
86
- > restarts resume. Until Ogmios catches up, historical queries fall back to
87
- > Blockfrost (set `BLOCKFROST_API_KEY`).
86
+ > restarts resume. Until Ogmios catches up, queries fall back to Koios
87
+ > (optional `KOIOS_API_KEY`).
88
88
 
89
89
  Service available at `http://localhost:4004`. See the [Quick Start Guide](docs/QUICK_START.md#local-ogmios--cardano-node-docker) for the local Ogmios stack and full details.
90
90
 
@@ -103,13 +103,13 @@ Service available at `http://localhost:4004`. See the [Quick Start Guide](docs/Q
103
103
  | Service | Path | Purpose |
104
104
  |---|---|---|
105
105
  | CardanoODataService | `/odata/v4/cardano/` | Read blockchain data (32 entities, 21 actions) |
106
- | CardanoTransactionService | `/odata/v4/cardano-transaction/` | Build & submit transactions (13 actions) |
106
+ | CardanoTransactionService | `/odata/v4/cardano-transaction/` | Build & submit transactions (14 actions) |
107
107
  | CardanoSignService | `/odata/v4/cardano-sign/` | External signing + HSM (9 actions) |
108
- | CardanoIndexerService | `/odata/v4/cardano-indexer/` | Chain crawler / pre-sync control (v2.0, off by default) |
109
- | CardanoWorkerService | `/odata/v4/cardano-worker/` | Asynchronous wallet jobs (v2.0, off by default) |
110
- | CardanoAgentService | `/odata/v4/cardano-agent/` | Agent grants: scoped bearer tokens for agents (v2.0, off by default) |
108
+ | CardanoIndexerService | `/odata/v4/cardano-indexer/` | Chain crawler / pre-sync control (off by default) |
109
+ | CardanoWorkerService | `/odata/v4/cardano-worker/` | Asynchronous wallet jobs (off by default) |
110
+ | CardanoAgentService | `/odata/v4/cardano-agent/` | Agent grants: scoped bearer tokens for agents (off by default) |
111
111
 
112
- Both v2.0 services also publish **CAP events**, so a consumer can subscribe instead of polling —
112
+ Both services also publish **CAP events**, so a consumer can subscribe instead of polling —
113
113
  in-process, no broker required:
114
114
 
115
115
  ```js
@@ -117,7 +117,7 @@ in-process, no broker required:
117
117
  (await cds.connect.to('CardanoIndexerService')).on('blockIndexed', ({ data }) => …)
118
118
  ```
119
119
 
120
- ## Agent grants (v2.0, off by default)
120
+ ## Agent grants (off by default)
121
121
 
122
122
  Hand an agent a **scoped, budgeted token** instead of a user.
123
123