@t3foundry/tasra-sdk 0.0.0-stage → 0.3.1-next.1

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 (322) hide show
  1. package/CHANGELOG.md +148 -0
  2. package/LICENSE +202 -0
  3. package/NOTICE +94 -0
  4. package/README.md +137 -2
  5. package/SECURITY.md +115 -0
  6. package/dist/app/approvals.d.ts +50 -0
  7. package/dist/app/approvals.js +90 -0
  8. package/dist/app/authorization.d.ts +19 -0
  9. package/dist/app/authorization.js +20 -0
  10. package/dist/app/client.d.ts +231 -0
  11. package/dist/app/client.js +272 -0
  12. package/dist/app/creation.d.ts +73 -0
  13. package/dist/app/creation.js +77 -0
  14. package/dist/app/deployment.d.ts +36 -0
  15. package/dist/app/deployment.js +18 -0
  16. package/dist/app/identity.d.ts +211 -0
  17. package/dist/app/identity.js +287 -0
  18. package/dist/app/index.d.ts +22 -0
  19. package/dist/app/index.js +12 -0
  20. package/dist/app/manifest.d.ts +74 -0
  21. package/dist/app/manifest.js +120 -0
  22. package/dist/app/node.d.ts +30 -0
  23. package/dist/app/node.js +159 -0
  24. package/dist/app/ready-slot.d.ts +157 -0
  25. package/dist/app/ready-slot.js +199 -0
  26. package/dist/app/tasra-client.d.ts +125 -0
  27. package/dist/app/tasra-client.js +79 -0
  28. package/dist/app/viem.d.ts +10 -0
  29. package/dist/app/viem.js +32 -0
  30. package/dist/app/wallet.d.ts +126 -0
  31. package/dist/app/wallet.js +137 -0
  32. package/dist/auth/dpop.d.ts +86 -0
  33. package/dist/auth/dpop.js +142 -0
  34. package/dist/auth/holderProof.d.ts +102 -0
  35. package/dist/auth/holderProof.js +161 -0
  36. package/dist/auth/identityScope.d.ts +19 -0
  37. package/dist/auth/identityScope.js +82 -0
  38. package/dist/auth/index.d.ts +11 -0
  39. package/dist/auth/index.js +13 -0
  40. package/dist/auth/oid4vp.d.ts +230 -0
  41. package/dist/auth/oid4vp.js +780 -0
  42. package/dist/auth/rego/wasm/PINS.json +11 -0
  43. package/dist/auth/rego/wasm/keykeeper_rego_wasm.d.ts +76 -0
  44. package/dist/auth/rego/wasm/keykeeper_rego_wasm.js +379 -0
  45. package/dist/auth/rego/wasm/keykeeper_rego_wasm_bg.wasm +0 -0
  46. package/dist/auth/rego.d.ts +192 -0
  47. package/dist/auth/rego.js +492 -0
  48. package/dist/auth/verifier.d.ts +166 -0
  49. package/dist/auth/verifier.js +211 -0
  50. package/dist/chain/abis/accountantSetRegistry.d.ts +441 -0
  51. package/dist/chain/abis/accountantSetRegistry.js +574 -0
  52. package/dist/chain/abis/accountantSlashing.d.ts +2071 -0
  53. package/dist/chain/abis/accountantSlashing.js +2670 -0
  54. package/dist/chain/abis/bondingCurve.d.ts +398 -0
  55. package/dist/chain/abis/bondingCurve.js +521 -0
  56. package/dist/chain/abis/equivocationSlasher.d.ts +292 -0
  57. package/dist/chain/abis/equivocationSlasher.js +379 -0
  58. package/dist/chain/abis/fixedTasraPriceOracle.d.ts +52 -0
  59. package/dist/chain/abis/fixedTasraPriceOracle.js +72 -0
  60. package/dist/chain/abis/index.d.ts +12801 -0
  61. package/dist/chain/abis/index.js +64 -0
  62. package/dist/chain/abis/keeperShareRegistry.d.ts +519 -0
  63. package/dist/chain/abis/keeperShareRegistry.js +675 -0
  64. package/dist/chain/abis/keyRegistry.d.ts +2421 -0
  65. package/dist/chain/abis/keyRegistry.js +3114 -0
  66. package/dist/chain/abis/livenessRegistry.d.ts +402 -0
  67. package/dist/chain/abis/livenessRegistry.js +524 -0
  68. package/dist/chain/abis/mockEurc.d.ts +210 -0
  69. package/dist/chain/abis/mockEurc.js +276 -0
  70. package/dist/chain/abis/nodeRegistry.d.ts +1630 -0
  71. package/dist/chain/abis/nodeRegistry.js +2113 -0
  72. package/dist/chain/abis/platformExecutor.d.ts +328 -0
  73. package/dist/chain/abis/platformExecutor.js +429 -0
  74. package/dist/chain/abis/prevrandaoSaltBeacon.d.ts +16 -0
  75. package/dist/chain/abis/prevrandaoSaltBeacon.js +24 -0
  76. package/dist/chain/abis/serviceRegistry.d.ts +556 -0
  77. package/dist/chain/abis/serviceRegistry.js +719 -0
  78. package/dist/chain/abis/settlement.d.ts +1624 -0
  79. package/dist/chain/abis/settlement.js +2096 -0
  80. package/dist/chain/abis/tasraSwapRouter.d.ts +92 -0
  81. package/dist/chain/abis/tasraSwapRouter.js +122 -0
  82. package/dist/chain/abis/tasraToken.d.ts +455 -0
  83. package/dist/chain/abis/tasraToken.js +599 -0
  84. package/dist/chain/abis/tasraVestingVault.d.ts +165 -0
  85. package/dist/chain/abis/tasraVestingVault.js +215 -0
  86. package/dist/chain/abis/thresholdRandomBeacon.d.ts +378 -0
  87. package/dist/chain/abis/thresholdRandomBeacon.js +494 -0
  88. package/dist/chain/abis/treasury.d.ts +301 -0
  89. package/dist/chain/abis/treasury.js +390 -0
  90. package/dist/chain/abis/verifierSetRegistry.d.ts +445 -0
  91. package/dist/chain/abis/verifierSetRegistry.js +579 -0
  92. package/dist/chain/client.d.ts +212 -0
  93. package/dist/chain/client.js +576 -0
  94. package/dist/chain/commitmentRecovery.d.ts +21 -0
  95. package/dist/chain/commitmentRecovery.js +44 -0
  96. package/dist/chain/committeeClient.d.ts +102 -0
  97. package/dist/chain/committeeClient.js +137 -0
  98. package/dist/chain/deployments.d.ts +56 -0
  99. package/dist/chain/deployments.js +269 -0
  100. package/dist/chain/discovery.d.ts +49 -0
  101. package/dist/chain/discovery.js +107 -0
  102. package/dist/chain/events.d.ts +58 -0
  103. package/dist/chain/events.js +125 -0
  104. package/dist/chain/format.d.ts +25 -0
  105. package/dist/chain/format.js +51 -0
  106. package/dist/chain/index.d.ts +41 -0
  107. package/dist/chain/index.js +56 -0
  108. package/dist/chain/manifest.d.ts +165 -0
  109. package/dist/chain/manifest.js +132 -0
  110. package/dist/chain/network-profiles.json +75 -0
  111. package/dist/chain/networks.d.ts +73 -0
  112. package/dist/chain/networks.js +62 -0
  113. package/dist/chain/node.d.ts +44 -0
  114. package/dist/chain/node.js +176 -0
  115. package/dist/chain/offchain.d.ts +149 -0
  116. package/dist/chain/offchain.js +73 -0
  117. package/dist/chain/provisionRule.d.ts +164 -0
  118. package/dist/chain/provisionRule.js +212 -0
  119. package/dist/chain/registeredAgent.d.ts +64 -0
  120. package/dist/chain/registeredAgent.js +140 -0
  121. package/dist/chain/registeredOperation.d.ts +49 -0
  122. package/dist/chain/registeredOperation.js +136 -0
  123. package/dist/chain/registeredRelay.d.ts +206 -0
  124. package/dist/chain/registeredRelay.js +312 -0
  125. package/dist/chain/revertReason.d.ts +14 -0
  126. package/dist/chain/revertReason.js +62 -0
  127. package/dist/chain/ruleAmendment.d.ts +80 -0
  128. package/dist/chain/ruleAmendment.js +195 -0
  129. package/dist/chain/ruleAmendmentCore.d.ts +129 -0
  130. package/dist/chain/ruleAmendmentCore.js +152 -0
  131. package/dist/chain/ruleInput.d.ts +10 -0
  132. package/dist/chain/ruleInput.js +13 -0
  133. package/dist/chain/serviceIdentity.d.ts +176 -0
  134. package/dist/chain/serviceIdentity.js +237 -0
  135. package/dist/chain/serviceProfiles.d.ts +39 -0
  136. package/dist/chain/serviceProfiles.js +74 -0
  137. package/dist/chain/services.d.ts +141 -0
  138. package/dist/chain/services.js +79 -0
  139. package/dist/chain/slotClient.d.ts +55 -0
  140. package/dist/chain/slotClient.js +62 -0
  141. package/dist/chain/slotSeed.d.ts +31 -0
  142. package/dist/chain/slotSeed.js +98 -0
  143. package/dist/chain/write.d.ts +431 -0
  144. package/dist/chain/write.js +958 -0
  145. package/dist/client/client.d.ts +112 -0
  146. package/dist/client/client.js +111 -0
  147. package/dist/client/index.d.ts +3 -0
  148. package/dist/client/index.js +2 -0
  149. package/dist/client/session.d.ts +67 -0
  150. package/dist/client/session.js +238 -0
  151. package/dist/committee/client.d.ts +284 -0
  152. package/dist/committee/client.js +351 -0
  153. package/dist/committee/dual-sign.d.ts +110 -0
  154. package/dist/committee/dual-sign.js +202 -0
  155. package/dist/committee/ecdsa.d.ts +36 -0
  156. package/dist/committee/ecdsa.js +45 -0
  157. package/dist/committee/extraction.d.ts +82 -0
  158. package/dist/committee/extraction.js +96 -0
  159. package/dist/committee/index.d.ts +19 -0
  160. package/dist/committee/index.js +13 -0
  161. package/dist/committee/oauth.d.ts +51 -0
  162. package/dist/committee/oauth.js +90 -0
  163. package/dist/committee/receipts.d.ts +51 -0
  164. package/dist/committee/receipts.js +59 -0
  165. package/dist/committee/request.d.ts +264 -0
  166. package/dist/committee/request.js +305 -0
  167. package/dist/committee/token.d.ts +274 -0
  168. package/dist/committee/token.js +418 -0
  169. package/dist/crypto/constants.d.ts +10 -0
  170. package/dist/crypto/constants.js +32 -0
  171. package/dist/crypto/detect.d.ts +20 -0
  172. package/dist/crypto/detect.js +44 -0
  173. package/dist/crypto/envelope.d.ts +60 -0
  174. package/dist/crypto/envelope.js +243 -0
  175. package/dist/crypto/frost.d.ts +49 -0
  176. package/dist/crypto/frost.js +152 -0
  177. package/dist/crypto/hex.d.ts +7 -0
  178. package/dist/crypto/hex.js +24 -0
  179. package/dist/crypto/ibe-blob.d.ts +114 -0
  180. package/dist/crypto/ibe-blob.js +208 -0
  181. package/dist/crypto/ibe.d.ts +88 -0
  182. package/dist/crypto/ibe.js +262 -0
  183. package/dist/crypto/index.d.ts +12 -0
  184. package/dist/crypto/index.js +12 -0
  185. package/dist/crypto/kem.d.ts +55 -0
  186. package/dist/crypto/kem.js +241 -0
  187. package/dist/decryption/client.d.ts +64 -0
  188. package/dist/decryption/client.js +82 -0
  189. package/dist/decryption/index.d.ts +2 -0
  190. package/dist/decryption/index.js +2 -0
  191. package/dist/errors.d.ts +124 -0
  192. package/dist/errors.js +167 -0
  193. package/dist/index.d.ts +43 -0
  194. package/dist/index.js +98 -0
  195. package/dist/keys/index.d.ts +1 -0
  196. package/dist/keys/index.js +4 -0
  197. package/dist/keys/node-client.d.ts +27 -0
  198. package/dist/keys/node-client.js +97 -0
  199. package/dist/oid4vp/binding.d.ts +76 -0
  200. package/dist/oid4vp/binding.js +118 -0
  201. package/dist/oid4vp/did-web.d.ts +49 -0
  202. package/dist/oid4vp/did-web.js +57 -0
  203. package/dist/oid4vp/index.d.ts +9 -0
  204. package/dist/oid4vp/index.js +10 -0
  205. package/dist/oid4vp/jose.d.ts +166 -0
  206. package/dist/oid4vp/jose.js +242 -0
  207. package/dist/oid4vp/jwe.d.ts +30 -0
  208. package/dist/oid4vp/jwe.js +93 -0
  209. package/dist/oid4vp/oid4vci.d.ts +84 -0
  210. package/dist/oid4vp/oid4vci.js +85 -0
  211. package/dist/oid4vp/request-object.d.ts +109 -0
  212. package/dist/oid4vp/request-object.js +96 -0
  213. package/dist/oid4vp/sd-jwt.d.ts +177 -0
  214. package/dist/oid4vp/sd-jwt.js +208 -0
  215. package/dist/oid4vp/verifier-agent.d.ts +161 -0
  216. package/dist/oid4vp/verifier-agent.js +132 -0
  217. package/dist/oid4vp/wallet.d.ts +116 -0
  218. package/dist/oid4vp/wallet.js +108 -0
  219. package/dist/recipient/store.d.ts +67 -0
  220. package/dist/recipient/store.js +98 -0
  221. package/dist/signing/ecdsa.d.ts +49 -0
  222. package/dist/signing/ecdsa.js +79 -0
  223. package/dist/signing/frost.d.ts +88 -0
  224. package/dist/signing/frost.js +145 -0
  225. package/dist/signing/index.d.ts +4 -0
  226. package/dist/signing/index.js +3 -0
  227. package/dist/slots/faucet.d.ts +23 -0
  228. package/dist/slots/faucet.js +35 -0
  229. package/dist/slots/index.d.ts +2 -0
  230. package/dist/slots/index.js +4 -0
  231. package/dist/verifier-agent/index.d.ts +241 -0
  232. package/dist/verifier-agent/index.js +411 -0
  233. package/docs/DEVELOPER-EXPERIENCE.md +62 -0
  234. package/docs/README.md +33 -0
  235. package/docs/access-control.md +76 -0
  236. package/docs/ai-development.md +292 -0
  237. package/docs/api.md +338 -0
  238. package/docs/application-api.md +335 -0
  239. package/docs/architecture.md +65 -0
  240. package/docs/basics.md +48 -0
  241. package/docs/capabilities.md +86 -0
  242. package/docs/chain.md +153 -0
  243. package/docs/compatibility.md +36 -0
  244. package/docs/consumer-migrations.md +80 -0
  245. package/docs/create-slot.md +104 -0
  246. package/docs/document-signing.md +243 -0
  247. package/docs/encrypted-notes.md +129 -0
  248. package/docs/encryption.md +100 -0
  249. package/docs/errors.md +76 -0
  250. package/docs/flows.md +289 -0
  251. package/docs/fuji.md +127 -0
  252. package/docs/funding.md +126 -0
  253. package/docs/getting-started.md +94 -0
  254. package/docs/glossary.md +44 -0
  255. package/docs/installation.md +132 -0
  256. package/docs/manage-slot.md +95 -0
  257. package/docs/native-approvals.md +124 -0
  258. package/docs/prerequisites.md +137 -0
  259. package/docs/read-slot.md +41 -0
  260. package/docs/reference/README.md +30 -0
  261. package/docs/reference/app-node.md +102 -0
  262. package/docs/reference/app.md +1737 -0
  263. package/docs/reference/chain-node.md +159 -0
  264. package/docs/reference/chain.md +3609 -0
  265. package/docs/reference/committee.md +2176 -0
  266. package/docs/reference/main.md +4068 -0
  267. package/docs/reference/oid4vp.md +2547 -0
  268. package/docs/reference/verifier-agent.md +498 -0
  269. package/docs/shared-account.md +168 -0
  270. package/docs/signing-and-encryption.md +52 -0
  271. package/docs/signing.md +172 -0
  272. package/examples/committee-slot.ts +16 -0
  273. package/examples/connect-fuji.ts +41 -0
  274. package/examples/connect-network.ts +14 -0
  275. package/examples/credential-approvals.ts +46 -0
  276. package/examples/document-signing/README.md +59 -0
  277. package/examples/document-signing/backend.ts +132 -0
  278. package/examples/document-signing/build.mjs +19 -0
  279. package/examples/document-signing/config.ts +34 -0
  280. package/examples/document-signing/gitignore.template +9 -0
  281. package/examples/document-signing/model.ts +140 -0
  282. package/examples/document-signing/network.ts +58 -0
  283. package/examples/document-signing/package.json +25 -0
  284. package/examples/document-signing/public/index.html +27 -0
  285. package/examples/document-signing/public/sample.pdf +31 -0
  286. package/examples/document-signing/public/styles.css +531 -0
  287. package/examples/document-signing/server.ts +358 -0
  288. package/examples/document-signing/setup.ts +111 -0
  289. package/examples/document-signing/store.ts +105 -0
  290. package/examples/document-signing/tsconfig.json +24 -0
  291. package/examples/document-signing/verify.ts +24 -0
  292. package/examples/document-signing/web/app.ts +312 -0
  293. package/examples/document-signing/web/preview.ts +67 -0
  294. package/examples/document-signing/web/wallet.ts +146 -0
  295. package/examples/document-signing/workflow.test.ts +228 -0
  296. package/examples/document-signing/workflow.ts +241 -0
  297. package/examples/document-signing.ts +96 -0
  298. package/examples/encrypted-notes.ts +86 -0
  299. package/examples/ethers-signer.ts +204 -0
  300. package/examples/fund-slot.ts +73 -0
  301. package/examples/getting-started.ts +25 -0
  302. package/examples/learning-authorize.ts +23 -0
  303. package/examples/learning-cancel-slot.ts +11 -0
  304. package/examples/learning-context.ts +28 -0
  305. package/examples/learning-create-slot.ts +25 -0
  306. package/examples/learning-read-slot.ts +8 -0
  307. package/examples/learning-renew-slot.ts +12 -0
  308. package/examples/learning-sign.ts +8 -0
  309. package/examples/live-config.ts +71 -0
  310. package/examples/minimal.ts +6 -0
  311. package/examples/native-approvals.ts +57 -0
  312. package/examples/network.ts +58 -0
  313. package/examples/offline.ts +16 -0
  314. package/examples/personal-vault.ts +20 -0
  315. package/examples/provision-slot.ts +47 -0
  316. package/examples/shared-account.ts +46 -0
  317. package/examples/slot-address.ts +13 -0
  318. package/examples/slot-creation.ts +9 -0
  319. package/examples/tutorial-negative.ts +26 -0
  320. package/examples/tutorial-support.ts +76 -0
  321. package/examples/viem-account.ts +203 -0
  322. package/package.json +303 -4
@@ -0,0 +1,3609 @@
1
+ # @t3foundry/tasra-sdk/chain
2
+
3
+ Generated from public TypeScript exports.
4
+
5
+ [SDK reference](README.md) · [Task guides](../README.md) · [Errors](../errors.md)
6
+
7
+ ## Classes
8
+
9
+ Clients, adapters and error classes.
10
+
11
+ <details>
12
+ <summary>Browse 4 classes</summary>
13
+
14
+ - [AgentSessionCreationUnknownError](#agentsessioncreationunknownerror)
15
+ - [RelayOutcomeUnknownError](#relayoutcomeunknownerror)
16
+ - [RuleAmendmentError](#ruleamendmenterror)
17
+ - [SlotCommitmentExpiredError](#slotcommitmentexpirederror)
18
+
19
+ </details>
20
+
21
+ ### AgentSessionCreationUnknownError
22
+
23
+ Session creation may have reached the provider, so automatic retry is unsafe.
24
+
25
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/registeredAgent.ts#L45)
26
+
27
+ Import: `import {AgentSessionCreationUnknownError} from '@t3foundry/tasra-sdk/chain'`
28
+
29
+ ```ts
30
+ declare class AgentSessionCreationUnknownError {
31
+ constructor(profile: Readonly<ApprovedAgentProfile>);
32
+ }
33
+ ```
34
+
35
+ - ` readonly profile: Readonly<ApprovedAgentProfile>; ` — Approved verifier-agent profile whose session creation outcome is unknown.
36
+
37
+ - ` name: string; `
38
+
39
+ - ` message: string; `
40
+
41
+ - ` stack?: string; `
42
+
43
+ - ` cause?: unknown; `
44
+
45
+ ### RelayOutcomeUnknownError
46
+
47
+ A relay request has no verified terminal result and must be reconciled before replacement.
48
+
49
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/registeredRelay.ts#L111)
50
+
51
+ Import: `import {RelayOutcomeUnknownError} from '@t3foundry/tasra-sdk/chain'`
52
+
53
+ ```ts
54
+ declare class RelayOutcomeUnknownError {
55
+ constructor(attempt: RelayAttempt, reason?: string);
56
+ }
57
+ ```
58
+
59
+ - ` readonly attempt: RelayAttempt; ` — Persisted signed relay attempt whose execution outcome remains unknown.
60
+
61
+ - ` name: string; `
62
+
63
+ - ` message: string; `
64
+
65
+ - ` stack?: string; `
66
+
67
+ - ` cause?: unknown; `
68
+
69
+ ### RuleAmendmentError
70
+
71
+ A rule-amendment call refused before signing, or an amendment that did not reach the state the
72
+ caller asked for. Retryable only for `timelock`, `below-threshold` and `timeout`.
73
+
74
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/ruleAmendmentCore.ts#L70)
75
+
76
+ Import: `import {RuleAmendmentError} from '@t3foundry/tasra-sdk/chain'`
77
+
78
+ ```ts
79
+ declare class RuleAmendmentError {
80
+ constructor(code: RuleAmendmentErrorCode, slotId: Hex, message: string, details?: RuleAmendmentErrorDetails);
81
+ }
82
+ ```
83
+
84
+ - ` readonly code: RuleAmendmentErrorCode; ` — Refusal category; never infer it from the message.
85
+
86
+ - ` readonly slotId: Hex; ` — Slot the refused call targeted.
87
+
88
+ - ` readonly pendingVersion?: number; ` — Version of the amendment already pending on chain.
89
+
90
+ - ` readonly pendingCommitment?: Hex; ` — Salted commitment of the amendment already pending on chain.
91
+
92
+ - ` readonly hasGuardian?: boolean; ` — Whether the slot has a guardian that could veto the pending amendment.
93
+
94
+ - ` readonly notBefore?: number; ` — Chain time (Unix seconds) from which the pending amendment may activate.
95
+
96
+ - ` readonly chainTime?: number; ` — Latest block timestamp (Unix seconds) the check was made against.
97
+
98
+ - ` readonly have?: number; ` — Keeper adoption votes recorded for the pending amendment.
99
+
100
+ - ` readonly need?: number; ` — Keeper adoption votes activation needs.
101
+
102
+ - ` readonly results?: readonly KeeperProvisionResult[]; ` — Per-keeper delivery outcomes, when the refusal came from rule delivery.
103
+
104
+ - ` readonly phase?: string; ` — Orchestrator phase that was running when the refusal was raised.
105
+
106
+ - ` readonly retryable: boolean; ` — `false` when retrying the identical request cannot succeed.
107
+
108
+ - ` name: string; `
109
+
110
+ - ` message: string; `
111
+
112
+ - ` stack?: string; `
113
+
114
+ - ` cause?: unknown; `
115
+
116
+ ### SlotCommitmentExpiredError
117
+
118
+ A creation may keep its slot/rule inputs, but needs a durably saved new commit salt.
119
+
120
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/commitmentRecovery.ts#L7)
121
+
122
+ Import: `import {SlotCommitmentExpiredError} from '@t3foundry/tasra-sdk/chain'`
123
+
124
+ ```ts
125
+ declare class SlotCommitmentExpiredError {
126
+ constructor(chainId: number, keyRegistry: Address, slotId: Hex, commitment: Hex, creator: Address, salt: Hex);
127
+ }
128
+ ```
129
+
130
+ - ` readonly chainId: number; ` — Chain containing the expired creation commitment.
131
+
132
+ - ` readonly keyRegistry: Address; ` — KeyRegistry contract that stores the commitment.
133
+
134
+ - ` readonly slotId: Hex; ` — Slot identifier reserved by the original creation intent.
135
+
136
+ - ` readonly commitment: Hex; ` — Expired commit-reveal commitment hash.
137
+
138
+ - ` readonly creator: Address; ` — Account that submitted the original commitment.
139
+
140
+ - ` readonly salt: Hex; ` — Original private commit salt; preserve it until outstanding requests are reconciled.
141
+
142
+ - ` name: string; `
143
+
144
+ - ` message: string; `
145
+
146
+ - ` stack?: string; `
147
+
148
+ - ` cause?: unknown; `
149
+
150
+ ## Functions
151
+
152
+ Operations you can import and call.
153
+
154
+ <details>
155
+ <summary>Browse 59 functions</summary>
156
+
157
+ - [addressBookFromBroadcast](#addressbookfrombroadcast)
158
+ - [addressBookFromEnv](#addressbookfromenv)
159
+ - [addressBookFromManifest](#addressbookfrommanifest)
160
+ - [addressBookFromObject](#addressbookfromobject)
161
+ - [amendSlotRule](#amendslotrule)
162
+ - [applicationServiceProfilesDocument](#applicationserviceprofilesdocument)
163
+ - [assertEurcFaucetAllowed](#asserteurcfaucetallowed)
164
+ - [assertExpiredSlotCommitment](#assertexpiredslotcommitment)
165
+ - [assertRegisteredWalletRequest](#assertregisteredwalletrequest)
166
+ - [authenticateApprovedService](#authenticateapprovedservice)
167
+ - [awaitRegisteredVerifierAgentResult](#awaitregisteredverifieragentresult)
168
+ - [categoryFor](#categoryfor)
169
+ - [createCommitteeSlotClient](#createcommitteeslotclient)
170
+ - [createRegisteredAgentClient](#createregisteredagentclient)
171
+ - [createRegisteredRelaySubmitter](#createregisteredrelaysubmitter)
172
+ - [createTasraChainClient](#createtasrachainclient)
173
+ - [createTasraSlotClient](#createtasraslotclient)
174
+ - [createTasraWriteClient](#createtasrawriteclient)
175
+ - [decodeContractLogs](#decodecontractlogs)
176
+ - [deriveServiceId](#deriveserviceid)
177
+ - [encodeServiceChallenge](#encodeservicechallenge)
178
+ - [encodeServiceManifest](#encodeservicemanifest)
179
+ - [eventNamesOf](#eventnamesof)
180
+ - [formatBps](#formatbps)
181
+ - [formatUnits](#formatunits)
182
+ - [formatWad](#formatwad)
183
+ - [generateClientKey](#generateclientkey)
184
+ - [hashServiceManifest](#hashservicemanifest)
185
+ - [jsonSafe](#jsonsafe)
186
+ - [networkNameForChain](#networknameforchain)
187
+ - [observeNetworkManifest](#observenetworkmanifest)
188
+ - [openRegisteredVerifierAgentSession](#openregisteredverifieragentsession)
189
+ - [parseApplicationServiceProfiles](#parseapplicationserviceprofiles)
190
+ - [parseNetworkManifest](#parsenetworkmanifest)
191
+ - [parsePinnedNetworkManifest](#parsepinnednetworkmanifest)
192
+ - [parsePrometheus](#parseprometheus)
193
+ - [parseServiceChallenge](#parseservicechallenge)
194
+ - [provisionRule](#provisionrule)
195
+ - [provisionRuleTypedData](#provisionruletypeddata)
196
+ - [readApprovedServiceRecord](#readapprovedservicerecord)
197
+ - [readRuleAmendment](#readruleamendment)
198
+ - [reconcileRelayAttempt](#reconcilerelayattempt)
199
+ - [requestSlotSeed](#requestslotseed)
200
+ - [requireAddress](#requireaddress)
201
+ - [requireVaultAddress](#requirevaultaddress)
202
+ - [resolveAccountantUrls](#resolveaccountanturls)
203
+ - [resolveNetworkProfile](#resolvenetworkprofile)
204
+ - [resolveSlotGroupKey](#resolveslotgroupkey)
205
+ - [resolveSlotKeeperUrls](#resolveslotkeeperurls)
206
+ - [resolveVerifierDirectory](#resolveverifierdirectory)
207
+ - [ruleCommitment](#rulecommitment)
208
+ - [serviceChallengeTypedData](#servicechallengetypeddata)
209
+ - [truncateHex](#truncatehex)
210
+ - [validateServiceChallenge](#validateservicechallenge)
211
+ - [validateServiceEndpoint](#validateserviceendpoint)
212
+ - [vaultKey](#vaultkey)
213
+ - [verifyRuleCommitment](#verifyrulecommitment)
214
+ - [verifyServiceIdentity](#verifyserviceidentity)
215
+ - [verifyServiceManifest](#verifyservicemanifest)
216
+
217
+ </details>
218
+
219
+ ### addressBookFromBroadcast
220
+
221
+ Build an AddressBook from a parsed Foundry broadcast run JSON. The last
222
+ deployment of a given contract name wins (re-deploys later in the run
223
+ override). Proxied contracts resolve to the proxy, which is the address
224
+ callers must actually talk to.
225
+
226
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/deployments.ts#L160)
227
+
228
+ Import: `import {addressBookFromBroadcast} from '@t3foundry/tasra-sdk/chain'`
229
+
230
+ ```ts
231
+ declare function addressBookFromBroadcast(json: unknown): AddressBook;
232
+ ```
233
+
234
+ | Parameter | Type | Description |
235
+ |---|---|---|
236
+ | ` json ` | ` unknown ` | Parsed Foundry broadcast artifact containing deployment transactions. |
237
+
238
+ Returns: ` AddressBook `.
239
+
240
+ ### addressBookFromEnv
241
+
242
+ Parse supported deployment environment keys or a KEY=VALUE text blob into contract addresses. Empty values and entries that are not valid addresses are ignored. Prefer deployment addresses from a tasra-releases network manifest.
243
+
244
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/deployments.ts#L266)
245
+
246
+ Import: `import {addressBookFromEnv} from '@t3foundry/tasra-sdk/chain'`
247
+
248
+ ```ts
249
+ declare function addressBookFromEnv(src: string | Record<string, string | undefined>): AddressBook;
250
+ ```
251
+
252
+ | Parameter | Type | Description |
253
+ |---|---|---|
254
+ | ` src ` | ` string \| Record<string, string \| undefined> ` | Environment key-value object or serialized environment text. |
255
+
256
+ Returns: ` AddressBook `.
257
+
258
+ Return details: Address book keyed by canonical contract names.
259
+
260
+ ### addressBookFromManifest
261
+
262
+ Planned and retired records can be displayed, but cannot configure a live client.
263
+
264
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/manifest.ts#L159)
265
+
266
+ Import: `import {addressBookFromManifest} from '@t3foundry/tasra-sdk/chain'`
267
+
268
+ ```ts
269
+ declare function addressBookFromManifest(manifest: NetworkManifest): AddressBook;
270
+ ```
271
+
272
+ | Parameter | Type | Description |
273
+ |---|---|---|
274
+ | ` manifest ` | ` NetworkManifest ` | Network manifest whose lifecycle status must be active. |
275
+
276
+ Returns: ` AddressBook `.
277
+
278
+ ### addressBookFromObject
279
+
280
+ Normalise an explicit object into an AddressBook (validates addresses).
281
+
282
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/deployments.ts#L290)
283
+
284
+ Import: `import {addressBookFromObject} from '@t3foundry/tasra-sdk/chain'`
285
+
286
+ ```ts
287
+ declare function addressBookFromObject(obj: Record<string, string>): AddressBook;
288
+ ```
289
+
290
+ | Parameter | Type | Description |
291
+ |---|---|---|
292
+ | ` obj ` | ` Record<string, string> ` | Object containing canonical contract names or supported environment aliases. |
293
+
294
+ Returns: ` AddressBook `.
295
+
296
+ ### amendSlotRule
297
+
298
+ Amend a slot's rule end to end: propose (as the rule admin), deliver the rule to the keepers,
299
+ wait for their adoption votes, endorse when a guardian client is given, wait for chain time to
300
+ pass `notBefore`, activate, and confirm the active commitment on chain.
301
+
302
+ Resumable: a proposal already pending with this rule is not proposed again, and a rule already
303
+ active returns at once. Every refusal it can know in advance is raised before anything is signed.
304
+ It never activates on a timer alone: activation needs the observed votes AND chain time.
305
+
306
+ An amendable rule means whoever holds the admin key can change who may sign with this key,
307
+ without changing the key. Keep the admin key as safe as the slot itself. The guardian can veto
308
+ during the delay; without a guardian nobody can. Slots created without a rule admin can never
309
+ become amendable.
310
+
311
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/ruleAmendment.ts#L131)
312
+
313
+ Import: `import {amendSlotRule} from '@t3foundry/tasra-sdk/chain'`
314
+
315
+ ```ts
316
+ declare function amendSlotRule(writer: TasraWriteClient, chain: TasraChainClient, a: AmendSlotRuleArgs): Promise<AmendSlotRuleResult>;
317
+ ```
318
+
319
+ | Parameter | Type | Description |
320
+ |---|---|---|
321
+ | ` writer ` | ` TasraWriteClient ` | Write client of the slot's rule admin; it proposes and activates. |
322
+ | ` chain ` | ` TasraChainClient ` | Reader for the deployment that owns the slot. |
323
+ | ` a ` | ` AmendSlotRuleArgs ` | The amendment, its deliverer, an optional guardian client and wait controls. |
324
+
325
+ Returns: ` Promise<AmendSlotRuleResult> `.
326
+
327
+ ### applicationServiceProfilesDocument
328
+
329
+ Publish only public approvals, with no runtime transport or private key material.
330
+
331
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/serviceProfiles.ts#L86)
332
+
333
+ Import: `import {applicationServiceProfilesDocument} from '@t3foundry/tasra-sdk/chain'`
334
+
335
+ ```ts
336
+ declare function applicationServiceProfilesDocument(profiles: ApplicationServiceProfiles): Record<string, unknown>;
337
+ ```
338
+
339
+ | Parameter | Type | Description |
340
+ |---|---|---|
341
+ | ` profiles ` | ` ApplicationServiceProfiles ` | Application-approved service profiles to serialize without private runtime data. |
342
+
343
+ Returns: ` Record<string, unknown> `.
344
+
345
+ ### assertEurcFaucetAllowed
346
+
347
+ Recheck the actual RPC chain immediately before any faucet transaction.
348
+
349
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/networks.ts#L89)
350
+
351
+ Import: `import {assertEurcFaucetAllowed} from '@t3foundry/tasra-sdk/chain'`
352
+
353
+ ```ts
354
+ declare function assertEurcFaucetAllowed(profile: ResolvedNetworkProfile, actualChainId: number, actualEurcAddress: string): void;
355
+ ```
356
+
357
+ | Parameter | Type | Description |
358
+ |---|---|---|
359
+ | ` profile ` | ` ResolvedNetworkProfile ` | Approved network profile and its mock-token faucet policy. |
360
+ | ` actualChainId ` | ` number ` | Chain ID read from the RPC immediately before the transaction. |
361
+ | ` actualEurcAddress ` | ` string ` | EURC contract address targeted by the mint transaction. |
362
+
363
+ Returns: ` void `.
364
+
365
+ ### assertExpiredSlotCommitment
366
+
367
+ Read-only recovery gate. The caller must also reconcile every outstanding signed request.
368
+
369
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/commitmentRecovery.ts#L21)
370
+
371
+ Import: `import {assertExpiredSlotCommitment} from '@t3foundry/tasra-sdk/chain'`
372
+
373
+ ```ts
374
+ declare function assertExpiredSlotCommitment(chain: TasraChainClient, error: SlotCommitmentExpiredError): Promise<void>;
375
+ ```
376
+
377
+ | Parameter | Type | Description |
378
+ |---|---|---|
379
+ | ` chain ` | ` TasraChainClient ` | Reader for the deployment owning the expired commitment. |
380
+ | ` error ` | ` SlotCommitmentExpiredError ` | Saved commitment context to check before replacing its commit salt. |
381
+
382
+ Returns: ` Promise<void> `.
383
+
384
+ ### assertRegisteredWalletRequest
385
+
386
+ Bind the wallet's signed request to the operation and authenticated session before disclosure.
387
+
388
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/registeredOperation.ts#L105)
389
+
390
+ Import: `import {assertRegisteredWalletRequest} from '@t3foundry/tasra-sdk/chain'`
391
+
392
+ ```ts
393
+ declare function assertRegisteredWalletRequest(session: RegisteredVerifierAgentSession, ro: VerifiedRequestObject, status: SessionStatusResult): void;
394
+ ```
395
+
396
+ | Parameter | Type | Description |
397
+ |---|---|---|
398
+ | ` session ` | ` RegisteredVerifierAgentSession ` | Authenticated session bound to the creator-authorized operation. |
399
+ | ` ro ` | ` VerifiedRequestObject ` | Verified wallet request object whose claims will be presented. |
400
+ | ` status ` | ` SessionStatusResult ` | Session status carrying the operation binding preimage. |
401
+
402
+ Returns: ` void `.
403
+
404
+ ### authenticateApprovedService
405
+
406
+ Uncached, bounded discovery only. A result is a short-lived observation, not verifier-agent or gas authorization.
407
+
408
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/serviceIdentity.ts#L260)
409
+
410
+ Import: `import {authenticateApprovedService} from '@t3foundry/tasra-sdk/chain'`
411
+
412
+ ```ts
413
+ declare function authenticateApprovedService(chain: TasraChainClient, approved: ServiceApproval, transport: ServiceDiscoveryTransport): Promise<AuthenticatedService>;
414
+ ```
415
+
416
+ | Parameter | Type | Description |
417
+ |---|---|---|
418
+ | ` chain ` | ` TasraChainClient ` | Trusted chain reader for the service registry. |
419
+ | ` approved ` | ` ServiceApproval ` | Application-approved service identity, revision and manifest hash. |
420
+ | ` transport ` | ` ServiceDiscoveryTransport ` | Guarded HTTPS transport for manifest and identity requests. |
421
+
422
+ Returns: ` Promise<AuthenticatedService> `.
423
+
424
+ ### awaitRegisteredVerifierAgentResult
425
+
426
+ Poll the original authenticated session only; no URL reconstruction or provider failover.
427
+
428
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/registeredOperation.ts#L54)
429
+
430
+ Import: `import {awaitRegisteredVerifierAgentResult} from '@t3foundry/tasra-sdk/chain'`
431
+
432
+ ```ts
433
+ declare function awaitRegisteredVerifierAgentResult(session: RegisteredVerifierAgentSession, opts?: {
434
+ intervalMs?: number;
435
+ timeoutMs?: number;
436
+ } & WaitOpts): Promise<VerifierAgentResult>;
437
+ ```
438
+
439
+ | Parameter | Type | Description |
440
+ |---|---|---|
441
+ | ` session ` | ` RegisteredVerifierAgentSession ` | Previously opened authenticated session. |
442
+ | ` opts? ` | ` { intervalMs?: number; timeoutMs?: number; } & WaitOpts ` | Polling cadence, deadline, cancellation and phase notifications. |
443
+
444
+ Returns: ` Promise<VerifierAgentResult> `.
445
+
446
+ ### categoryFor
447
+
448
+ Choose the event category, including event-specific overrides for a contract.
449
+
450
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/events.ts#L70)
451
+
452
+ Import: `import {categoryFor} from '@t3foundry/tasra-sdk/chain'`
453
+
454
+ ```ts
455
+ declare function categoryFor(contract: ContractName, eventName: string): EventCategory;
456
+ ```
457
+
458
+ | Parameter | Type | Description |
459
+ |---|---|---|
460
+ | ` contract ` | ` ContractName ` | Contract that emitted the event. |
461
+ | ` eventName ` | ` string ` | Decoded event name used for category overrides. |
462
+
463
+ Returns: ` EventCategory `.
464
+
465
+ ### createCommitteeSlotClient
466
+
467
+ Create registry-discovered threshold signing, encryption and decryption operations. Signing and decryption require holder credentials and proofs against an anchored verifier snapshot. Encryption needs only the public group key read from the chain. The master key is not reconstructed by these threshold operations.
468
+
469
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/committeeClient.ts#L141)
470
+
471
+ Import: `import {createCommitteeSlotClient} from '@t3foundry/tasra-sdk/chain'`
472
+
473
+ ```ts
474
+ declare function createCommitteeSlotClient(cfg: CommitteeSlotClientConfig): CommitteeSlotClient;
475
+ ```
476
+
477
+ | Parameter | Type | Description |
478
+ |---|---|---|
479
+ | ` cfg ` | ` CommitteeSlotClientConfig ` | Chain reader and optional holder credentials and proof callbacks. |
480
+
481
+ Returns: ` CommitteeSlotClient `.
482
+
483
+ Return details: Committee client whose operations each take a slot ID.
484
+
485
+ ### createRegisteredAgentClient
486
+
487
+ Selection authenticates public metadata first. Once POSTed, never silently switch providers.
488
+
489
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/registeredAgent.ts#L90)
490
+
491
+ Import: `import {createRegisteredAgentClient} from '@t3foundry/tasra-sdk/chain'`
492
+
493
+ ```ts
494
+ declare function createRegisteredAgentClient(chain: TasraChainClient, config: {
495
+ profiles: readonly ApprovedAgentProfile[];
496
+ transport: AgentTransport;
497
+ }): {
498
+ createSession(params: CreateSessionParams, options?: {
499
+ profileIndex?: number;
500
+ signal?: AbortSignal;
501
+ }): Promise<RegisteredAgentSession>;
502
+ };
503
+ ```
504
+
505
+ | Parameter | Type | Description |
506
+ |---|---|---|
507
+ | ` chain ` | ` TasraChainClient ` | Reader for the approved service registry. |
508
+ | ` config ` | ` { profiles: readonly ApprovedAgentProfile[]; transport: AgentTransport; } ` | Independently approved provider profiles and guarded HTTP transport. |
509
+
510
+ Returns:
511
+
512
+ ```ts
513
+ {
514
+ createSession(params: CreateSessionParams, options?: {
515
+ profileIndex?: number;
516
+ signal?: AbortSignal;
517
+ }): Promise<RegisteredAgentSession>;
518
+ }
519
+ ```
520
+
521
+ ### createRegisteredRelaySubmitter
522
+
523
+ One signer per instance. Serializes nonces and blocks new signatures after an uncertain result.
524
+
525
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/registeredRelay.ts#L229)
526
+
527
+ Import: `import {createRegisteredRelaySubmitter} from '@t3foundry/tasra-sdk/chain'`
528
+
529
+ ```ts
530
+ declare function createRegisteredRelaySubmitter(chain: TasraChainClient, config: RegisteredRelayConfig, wallet: WalletClient<Transport, Chain, Account>, options?: {
531
+ persistAttempt?: (attempt: RelayAttempt) => Promise<void>;
532
+ }): {
533
+ submit: (to: Address, data: Hex, label?: string) => Promise<RelayReceipt>;
534
+ pendingAttempt: () => RelayAttempt | undefined;
535
+ reconcile(): Promise<RelayReconciliation | undefined>;
536
+ };
537
+ ```
538
+
539
+ | Parameter | Type | Description |
540
+ |---|---|---|
541
+ | ` chain ` | ` TasraChainClient ` | Trusted chain reader used for nonce and receipt verification. |
542
+ | ` config ` | ` RegisteredRelayConfig ` | Approved relay providers, pinned forwarder and recovery controls. |
543
+ | ` wallet ` | ` WalletClient<Transport, Chain, Account> ` | Account-bound and chain-bound wallet that signs forward requests. |
544
+ | ` options? ` | ` { persistAttempt?: (attempt: RelayAttempt) => Promise<void>; } ` | Optional durable callback invoked before submitting a signed request. |
545
+
546
+ Returns:
547
+
548
+ ```ts
549
+ {
550
+ submit: (to: Address, data: Hex, label?: string) => Promise<RelayReceipt>;
551
+ pendingAttempt: () => RelayAttempt | undefined;
552
+ reconcile(): Promise<RelayReconciliation | undefined>;
553
+ }
554
+ ```
555
+
556
+ ### createTasraChainClient
557
+
558
+ Create a read-only chain client with typed contract readers and windowed event queries. Configure addresses and the chain ID from a network manifest downloaded from tasra-releases.
559
+
560
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/client.ts#L281)
561
+
562
+ Import: `import {createTasraChainClient} from '@t3foundry/tasra-sdk/chain'`
563
+
564
+ ```ts
565
+ declare function createTasraChainClient(cfg: ChainClientConfig): TasraChainClient;
566
+ ```
567
+
568
+ | Parameter | Type | Description |
569
+ |---|---|---|
570
+ | ` cfg ` | ` ChainClientConfig ` | RPC endpoint, deployed addresses, chain ID and optional batching limits. |
571
+
572
+ Returns: ` TasraChainClient `.
573
+
574
+ Return details: Client exposing the viem public client, readers, event queries and address book.
575
+
576
+ ### createTasraSlotClient
577
+
578
+ Create managed JWT sessions using keeper endpoints and a randomly selected verifier discovered from the chain. The verifier authenticates the holder and issues the session token. Session key operations may reconstruct private key material in the client; use threshold committee operations when that custody model is unsuitable.
579
+
580
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/slotClient.ts#L78)
581
+
582
+ Import: `import {createTasraSlotClient} from '@t3foundry/tasra-sdk/chain'`
583
+
584
+ ```ts
585
+ declare function createTasraSlotClient(cfg: TasraSlotClientConfig): TasraSlotClient;
586
+ ```
587
+
588
+ | Parameter | Type | Description |
589
+ |---|---|---|
590
+ | ` cfg ` | ` TasraSlotClientConfig ` | Chain reader, holder identity and optional endpoint routing or discovery callback. |
591
+
592
+ Returns: ` TasraSlotClient `.
593
+
594
+ Return details: Client that opens and tracks managed slot sessions.
595
+
596
+ ### createTasraWriteClient
597
+
598
+ Create an account-bound client for slot lifecycle, settlement and token transactions. Use deployed addresses and the chain ID from a tasra-releases network manifest.
599
+
600
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/write.ts#L508)
601
+
602
+ Import: `import {createTasraWriteClient} from '@t3foundry/tasra-sdk/chain'`
603
+
604
+ ```ts
605
+ declare function createTasraWriteClient(cfg: WriteClientConfig): TasraWriteClient;
606
+ ```
607
+
608
+ | Parameter | Type | Description |
609
+ |---|---|---|
610
+ | ` cfg ` | ` WriteClientConfig ` | RPC, manifest contract addresses, chain ID and an explicit signing account. |
611
+
612
+ Returns: ` TasraWriteClient `.
613
+
614
+ ### decodeContractLogs
615
+
616
+ Decode raw logs (already filtered to `address`) against `contract`'s ABI.
617
+ Non-matching / anonymous logs are skipped. `strict:false` tolerates logs
618
+ whose indexed topics can't be fully decoded.
619
+
620
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/events.ts#L132)
621
+
622
+ Import: `import {decodeContractLogs} from '@t3foundry/tasra-sdk/chain'`
623
+
624
+ ```ts
625
+ declare function decodeContractLogs(contract: ContractName, address: Address, logs: Log[]): DecodedEvent[];
626
+ ```
627
+
628
+ | Parameter | Type | Description |
629
+ |---|---|---|
630
+ | ` contract ` | ` ContractName ` | Contract ABI used to decode each log. |
631
+ | ` address ` | ` Address ` | Deployed emitting contract address. |
632
+ | ` logs ` | ` Log[] ` | Raw logs carrying topics, data and optional block metadata. |
633
+
634
+ Returns: ` DecodedEvent[] `.
635
+
636
+ ### deriveServiceId
637
+
638
+ Matches serviceIdFor on the proxy. Provider transfer does not change this ID.
639
+
640
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/services.ts#L95)
641
+
642
+ Import: `import {deriveServiceId} from '@t3foundry/tasra-sdk/chain'`
643
+
644
+ ```ts
645
+ declare function deriveServiceId(chainId: bigint, registry: Address, creator: Address, salt: Hex): Hex;
646
+ ```
647
+
648
+ | Parameter | Type | Description |
649
+ |---|---|---|
650
+ | ` chainId ` | ` bigint ` | EVM chain ID used in the registry identifier domain. |
651
+ | ` registry ` | ` Address ` | Deployed ServiceRegistry address. |
652
+ | ` creator ` | ` Address ` | Original provider address that registered the service. |
653
+ | ` salt ` | ` Hex ` | Provider-chosen 32-byte registration salt. |
654
+
655
+ Returns: ` Hex `.
656
+
657
+ ### encodeServiceChallenge
658
+
659
+ Canonical wire encoding accepted by both responder implementations.
660
+
661
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/serviceIdentity.ts#L175)
662
+
663
+ Import: `import {encodeServiceChallenge} from '@t3foundry/tasra-sdk/chain'`
664
+
665
+ ```ts
666
+ declare function encodeServiceChallenge(challenge: ServiceChallenge): Uint8Array;
667
+ ```
668
+
669
+ | Parameter | Type | Description |
670
+ |---|---|---|
671
+ | ` challenge ` | ` ServiceChallenge ` | Validated challenge to encode in the protocol wire format. |
672
+
673
+ Returns: ` Uint8Array `.
674
+
675
+ ### encodeServiceManifest
676
+
677
+ Canonical v1 bytes: fixed field order, compact ASCII JSON, one LF. No optional/unknown fields.
678
+
679
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/serviceIdentity.ts#L106)
680
+
681
+ Import: `import {encodeServiceManifest} from '@t3foundry/tasra-sdk/chain'`
682
+
683
+ ```ts
684
+ declare function encodeServiceManifest(manifest: ServiceManifest): Uint8Array;
685
+ ```
686
+
687
+ | Parameter | Type | Description |
688
+ |---|---|---|
689
+ | ` manifest ` | ` ServiceManifest ` | Versioned service metadata to validate and encode canonically. |
690
+
691
+ Returns: ` Uint8Array `.
692
+
693
+ ### eventNamesOf
694
+
695
+ The set of event names declared by a contract's ABI.
696
+
697
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/events.ts#L84)
698
+
699
+ Import: `import {eventNamesOf} from '@t3foundry/tasra-sdk/chain'`
700
+
701
+ ```ts
702
+ declare function eventNamesOf(contract: ContractName): string[];
703
+ ```
704
+
705
+ | Parameter | Type | Description |
706
+ |---|---|---|
707
+ | ` contract ` | ` ContractName ` | Contract whose vendored ABI supplies the event definitions. |
708
+
709
+ Returns: ` string[] `.
710
+
711
+ ### formatBps
712
+
713
+ Format a basis-points integer (e.g. 1000) as a percentage string ("10%").
714
+
715
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/format.ts#L45)
716
+
717
+ Import: `import {formatBps} from '@t3foundry/tasra-sdk/chain'`
718
+
719
+ ```ts
720
+ declare function formatBps(bps: number | bigint): string;
721
+ ```
722
+
723
+ | Parameter | Type | Description |
724
+ |---|---|---|
725
+ | ` bps ` | ` number \| bigint ` | Rate in basis points, where 100 basis points is one percent. |
726
+
727
+ Returns: ` string `.
728
+
729
+ ### formatUnits
730
+
731
+ Format a token amount with thousands separators and truncated fractional digits.
732
+
733
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/format.ts#L22)
734
+
735
+ Import: `import {formatUnits} from '@t3foundry/tasra-sdk/chain'`
736
+
737
+ ```ts
738
+ declare function formatUnits(value: bigint, decimals?: number, maxFractionDigits?: number): string;
739
+ ```
740
+
741
+ | Parameter | Type | Description |
742
+ |---|---|---|
743
+ | ` value ` | ` bigint ` | Signed integer amount in token base units. |
744
+ | ` decimals? ` | ` number ` | Number of decimal places used by the token. |
745
+ | ` maxFractionDigits? ` | ` number ` | Maximum fractional digits retained without rounding. |
746
+
747
+ Returns: ` string `.
748
+
749
+ ### formatWad
750
+
751
+ WAD (1e18 fixed-point) value to a decimal string, e.g. a price.
752
+
753
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/format.ts#L55)
754
+
755
+ Import: `import {formatWad} from '@t3foundry/tasra-sdk/chain'`
756
+
757
+ ```ts
758
+ declare function formatWad(wad: bigint, maxFractionDigits?: number): string;
759
+ ```
760
+
761
+ | Parameter | Type | Description |
762
+ |---|---|---|
763
+ | ` wad ` | ` bigint ` | Signed integer value scaled by 10 to the power of 18. |
764
+ | ` maxFractionDigits? ` | ` number ` | Maximum fractional digits retained without rounding. |
765
+
766
+ Returns: ` string `.
767
+
768
+ ### generateClientKey
769
+
770
+ Fresh 0x-prefixed 32-byte private key for a new sovereign client account.
771
+
772
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/write.ts#L475)
773
+
774
+ Import: `import {generateClientKey} from '@t3foundry/tasra-sdk/chain'`
775
+
776
+ ```ts
777
+ declare function generateClientKey(): Hex;
778
+ ```
779
+
780
+ Returns: ` Hex `.
781
+
782
+ ### hashServiceManifest
783
+
784
+ Hash the exact downloaded/published bytes; never parse and re-serialize before checking.
785
+
786
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/services.ts#L120)
787
+
788
+ Import: `import {hashServiceManifest} from '@t3foundry/tasra-sdk/chain'`
789
+
790
+ ```ts
791
+ declare function hashServiceManifest(bytes: Uint8Array): Hex;
792
+ ```
793
+
794
+ | Parameter | Type | Description |
795
+ |---|---|---|
796
+ | ` bytes ` | ` Uint8Array ` | Exact canonical manifest bytes; do not parse and reserialize before hashing. |
797
+
798
+ Returns: ` Hex `.
799
+
800
+ ### jsonSafe
801
+
802
+ Recursively convert bigints to strings so a decoded event can be JSON
803
+ serialized / stored. Leaves everything else intact.
804
+
805
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/events.ts#L168)
806
+
807
+ Import: `import {jsonSafe} from '@t3foundry/tasra-sdk/chain'`
808
+
809
+ ```ts
810
+ declare function jsonSafe<T>(value: T): unknown;
811
+ ```
812
+
813
+ | Parameter | Type | Description |
814
+ |---|---|---|
815
+ | ` value ` | ` T ` | Value to convert recursively, including bigint and byte arrays. |
816
+
817
+ Returns: ` unknown `.
818
+
819
+ ### networkNameForChain
820
+
821
+ Map a supported EVM chain ID to its network profile; reject unknown chains.
822
+
823
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/networks.ts#L49)
824
+
825
+ Import: `import {networkNameForChain} from '@t3foundry/tasra-sdk/chain'`
826
+
827
+ ```ts
828
+ declare function networkNameForChain(chainId: number): NetworkName;
829
+ ```
830
+
831
+ | Parameter | Type | Description |
832
+ |---|---|---|
833
+ | ` chainId ` | ` number ` | EVM chain ID to resolve to a supported profile. |
834
+
835
+ Returns: ` NetworkName `.
836
+
837
+ ### observeNetworkManifest
838
+
839
+ Observe a single finalized block. This verifies code identity, not business wiring or audit quality.
840
+
841
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/manifest.ts#L208)
842
+
843
+ Import: `import {observeNetworkManifest} from '@t3foundry/tasra-sdk/chain'`
844
+
845
+ ```ts
846
+ declare function observeNetworkManifest(manifest: NetworkManifest, rpcUrl: string): Promise<{
847
+ chainId: number;
848
+ blockNumber: string;
849
+ blockHash: `0x${string}`;
850
+ observedAt: string;
851
+ contracts: ContractObservation[];
852
+ matches: boolean;
853
+ }>;
854
+ ```
855
+
856
+ | Parameter | Type | Description |
857
+ |---|---|---|
858
+ | ` manifest ` | ` NetworkManifest ` | Manifest containing expected deployment addresses and code hashes. |
859
+ | ` rpcUrl ` | ` string ` | RPC endpoint for the same chain as the manifest. |
860
+
861
+ Returns:
862
+
863
+ ```ts
864
+ Promise<{
865
+ chainId: number;
866
+ blockNumber: string;
867
+ blockHash: `0x${string}`;
868
+ observedAt: string;
869
+ contracts: ContractObservation[];
870
+ matches: boolean;
871
+ }>
872
+ ```
873
+
874
+ ### openRegisteredVerifierAgentSession
875
+
876
+ Sign once, authenticate an explicitly approved provider, and retain its pinned poll closure.
877
+
878
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/registeredOperation.ts#L33)
879
+
880
+ Import: `import {openRegisteredVerifierAgentSession} from '@t3foundry/tasra-sdk/chain'`
881
+
882
+ ```ts
883
+ declare function openRegisteredVerifierAgentSession(client: ReturnType<typeof createRegisteredAgentClient>, opts: OperationInput & {
884
+ signer: TypedDataSigner;
885
+ delegation?: PresentationDelegation;
886
+ profileIndex?: number;
887
+ signal?: AbortSignal;
888
+ }): Promise<RegisteredVerifierAgentSession>;
889
+ ```
890
+
891
+ | Parameter | Type | Description |
892
+ |---|---|---|
893
+ | ` client ` | ` ReturnType<typeof createRegisteredAgentClient> ` | Registered agent client with independently approved providers. |
894
+ | ` opts ` | ` OperationInput & { signer: TypedDataSigner; delegation?: PresentationDelegation; profileIndex?: number; signal?: AbortSignal; } ` | Exact operation, authorizing signer and optional delegation or cancellation. |
895
+
896
+ Returns: ` Promise<RegisteredVerifierAgentSession> `.
897
+
898
+ ### parseApplicationServiceProfiles
899
+
900
+ Parse the public, JSON-safe deployment approval file. Decimal revisions preserve uint64.
901
+
902
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/serviceProfiles.ts#L50)
903
+
904
+ Import: `import {parseApplicationServiceProfiles} from '@t3foundry/tasra-sdk/chain'`
905
+
906
+ ```ts
907
+ declare function parseApplicationServiceProfiles(value: unknown): ApplicationServiceProfiles;
908
+ ```
909
+
910
+ | Parameter | Type | Description |
911
+ |---|---|---|
912
+ | ` value ` | ` unknown ` | Parsed approval object or its JSON text. |
913
+
914
+ Returns: ` ApplicationServiceProfiles `.
915
+
916
+ ### parseNetworkManifest
917
+
918
+ Validate data only. Authenticity requires a trusted digest or signature separately.
919
+
920
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/manifest.ts#L104)
921
+
922
+ Import: `import {parseNetworkManifest} from '@t3foundry/tasra-sdk/chain'`
923
+
924
+ ```ts
925
+ declare function parseNetworkManifest(value: unknown): NetworkManifest;
926
+ ```
927
+
928
+ | Parameter | Type | Description |
929
+ |---|---|---|
930
+ | ` value ` | ` unknown ` | Untrusted parsed JSON to validate against the supported manifest schema. |
931
+
932
+ Returns: ` NetworkManifest `.
933
+
934
+ ### parsePinnedNetworkManifest
935
+
936
+ The digest must come from a verified release checksum file or application pin.
937
+
938
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/manifest.ts#L148)
939
+
940
+ Import: `import {parsePinnedNetworkManifest} from '@t3foundry/tasra-sdk/chain'`
941
+
942
+ ```ts
943
+ declare function parsePinnedNetworkManifest(text: string, expectedSha256: string): NetworkManifest;
944
+ ```
945
+
946
+ | Parameter | Type | Description |
947
+ |---|---|---|
948
+ | ` text ` | ` string ` | Exact UTF-8 manifest text downloaded from tasra-releases. |
949
+ | ` expectedSha256 ` | ` string ` | Independently trusted lowercase SHA-256 digest of that text. |
950
+
951
+ Returns: ` NetworkManifest `.
952
+
953
+ ### parsePrometheus
954
+
955
+ Parse finite numeric Prometheus samples into a map keyed by metric name and labels. Ignore comment lines and nonnumeric values; histogram buckets remain separate samples.
956
+
957
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/offchain.ts#L200)
958
+
959
+ Import: `import {parsePrometheus} from '@t3foundry/tasra-sdk/chain'`
960
+
961
+ ```ts
962
+ declare function parsePrometheus(text: string): Record<string, number>;
963
+ ```
964
+
965
+ | Parameter | Type | Description |
966
+ |---|---|---|
967
+ | ` text ` | ` string ` | Prometheus text exposition returned by a metrics endpoint. |
968
+
969
+ Returns: ` Record<string, number> `.
970
+
971
+ ### parseServiceChallenge
972
+
973
+ Call only after enforcing the same limit while receiving the HTTP body.
974
+
975
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/serviceIdentity.ts#L190)
976
+
977
+ Import: `import {parseServiceChallenge} from '@t3foundry/tasra-sdk/chain'`
978
+
979
+ ```ts
980
+ declare function parseServiceChallenge(bytes: Uint8Array): ServiceChallenge;
981
+ ```
982
+
983
+ | Parameter | Type | Description |
984
+ |---|---|---|
985
+ | ` bytes ` | ` Uint8Array ` | UTF-8 challenge JSON bytes to decode and validate. |
986
+
987
+ Returns: ` ServiceChallenge `.
988
+
989
+ ### provisionRule
990
+
991
+ Deliver the clear rule and its salt to every assigned keeper using creator authorization. Throws if any delivery fails; inspect cause.results for individual outcomes.
992
+
993
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/provisionRule.ts#L207)
994
+
995
+ Import: `import {provisionRule} from '@t3foundry/tasra-sdk/chain'`
996
+
997
+ ```ts
998
+ declare function provisionRule(chain: TasraChainClient, args: ProvisionRuleArgs): Promise<ProvisionRuleResult>;
999
+ ```
1000
+
1001
+ | Parameter | Type | Description |
1002
+ |---|---|---|
1003
+ | ` chain ` | ` TasraChainClient ` | Reader for the deployment that owns the slot. |
1004
+ | ` args ` | ` ProvisionRuleArgs ` | Rule, saved salt, creator signer and optional transport controls. |
1005
+
1006
+ Returns: ` Promise<ProvisionRuleResult> `.
1007
+
1008
+ Return details: Commitment and successful delivery results for every selected keeper.
1009
+
1010
+ ### provisionRuleTypedData
1011
+
1012
+ Build the EIP-712 authorization a keeper verifies against the slot creator. The payload digest is the salted rule commitment.
1013
+
1014
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/provisionRule.ts#L144)
1015
+
1016
+ Import: `import {provisionRuleTypedData} from '@t3foundry/tasra-sdk/chain'`
1017
+
1018
+ ```ts
1019
+ declare function provisionRuleTypedData(input: {
1020
+ chainId: number;
1021
+ keyRegistry: Address;
1022
+ slotId: Hex;
1023
+ commitment: Hex;
1024
+ description: string;
1025
+ exp: number;
1026
+ }): {
1027
+ domain: {
1028
+ name: string;
1029
+ version: string;
1030
+ chainId: number;
1031
+ verifyingContract: `0x${string}`;
1032
+ };
1033
+ types: {
1034
+ readonly PresentationOperation: readonly [
1035
+ {
1036
+ readonly name: "chainId";
1037
+ readonly type: "uint256";
1038
+ },
1039
+ {
1040
+ readonly name: "slotId";
1041
+ readonly type: "bytes32";
1042
+ },
1043
+ {
1044
+ readonly name: "action";
1045
+ readonly type: "string";
1046
+ },
1047
+ {
1048
+ readonly name: "payloadDigest";
1049
+ readonly type: "bytes32";
1050
+ },
1051
+ {
1052
+ readonly name: "description";
1053
+ readonly type: "string";
1054
+ },
1055
+ {
1056
+ readonly name: "exp";
1057
+ readonly type: "uint256";
1058
+ }
1059
+ ];
1060
+ };
1061
+ primaryType: "PresentationOperation";
1062
+ message: {
1063
+ chainId: bigint;
1064
+ slotId: `0x${string}`;
1065
+ action: string;
1066
+ payloadDigest: `0x${string}`;
1067
+ description: string;
1068
+ exp: bigint;
1069
+ };
1070
+ };
1071
+ ```
1072
+
1073
+ | Parameter | Type | Description |
1074
+ |---|---|---|
1075
+ | ` input ` | ` { chainId: number; keyRegistry: Address; slotId: Hex; commitment: Hex; description: string; exp: number; } ` | Chain, registry, slot, commitment, consent description and expiry in Unix seconds. |
1076
+
1077
+ Returns:
1078
+
1079
+ ```ts
1080
+ {
1081
+ domain: {
1082
+ name: string;
1083
+ version: string;
1084
+ chainId: number;
1085
+ verifyingContract: `0x${string}`;
1086
+ };
1087
+ types: {
1088
+ readonly PresentationOperation: readonly [
1089
+ {
1090
+ readonly name: "chainId";
1091
+ readonly type: "uint256";
1092
+ },
1093
+ {
1094
+ readonly name: "slotId";
1095
+ readonly type: "bytes32";
1096
+ },
1097
+ {
1098
+ readonly name: "action";
1099
+ readonly type: "string";
1100
+ },
1101
+ {
1102
+ readonly name: "payloadDigest";
1103
+ readonly type: "bytes32";
1104
+ },
1105
+ {
1106
+ readonly name: "description";
1107
+ readonly type: "string";
1108
+ },
1109
+ {
1110
+ readonly name: "exp";
1111
+ readonly type: "uint256";
1112
+ }
1113
+ ];
1114
+ };
1115
+ primaryType: "PresentationOperation";
1116
+ message: {
1117
+ chainId: bigint;
1118
+ slotId: `0x${string}`;
1119
+ action: string;
1120
+ payloadDigest: `0x${string}`;
1121
+ description: string;
1122
+ exp: bigint;
1123
+ };
1124
+ }
1125
+ ```
1126
+
1127
+ Return details: Typed data ready for the creator wallet to sign.
1128
+
1129
+ ### readApprovedServiceRecord
1130
+
1131
+ Read metadata only after matching an explicit application approval. Never contacts the service.
1132
+ This does not authenticate its endpoint, verify its manifest or authorize a verifier-agent
1133
+ origin. Those checks must precede sending any credentials, session secrets or transactions.
1134
+
1135
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/services.ts#L165)
1136
+
1137
+ Import: `import {readApprovedServiceRecord} from '@t3foundry/tasra-sdk/chain'`
1138
+
1139
+ ```ts
1140
+ declare function readApprovedServiceRecord(chain: ServiceRegistryChainReader, approval: ServiceApproval): Promise<{
1141
+ record: ServiceRecord;
1142
+ blockNumber: bigint;
1143
+ }>;
1144
+ ```
1145
+
1146
+ | Parameter | Type | Description |
1147
+ |---|---|---|
1148
+ | ` chain ` | ` ServiceRegistryChainReader ` | Trusted chain reader with ServiceRegistry access. |
1149
+ | ` approval ` | ` ServiceApproval ` | Independently approved identity, owner, revision and manifest hash. |
1150
+
1151
+ Returns:
1152
+
1153
+ ```ts
1154
+ Promise<{
1155
+ record: ServiceRecord;
1156
+ blockNumber: bigint;
1157
+ }>
1158
+ ```
1159
+
1160
+ ### readRuleAmendment
1161
+
1162
+ Read a slot's active rule commitment, amendment policy and pending amendment, including the
1163
+ keeper adoption votes and the votes activation needs.
1164
+
1165
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/ruleAmendment.ts#L61)
1166
+
1167
+ Import: `import {readRuleAmendment} from '@t3foundry/tasra-sdk/chain'`
1168
+
1169
+ ```ts
1170
+ declare function readRuleAmendment(chain: TasraChainClient, slotId: Hex): Promise<RuleAmendmentStatus>;
1171
+ ```
1172
+
1173
+ | Parameter | Type | Description |
1174
+ |---|---|---|
1175
+ | ` chain ` | ` TasraChainClient ` | Reader for the deployment that owns the slot. |
1176
+ | ` slotId ` | ` Hex ` | Slot to read; a missing or cancelled slot throws `RuleAmendmentError` code `no-slot`. |
1177
+
1178
+ Returns: ` Promise<RuleAmendmentStatus> `.
1179
+
1180
+ ### reconcileRelayAttempt
1181
+
1182
+ Recover from a lost HTTP response or process restart using the trusted RPC, without broadcasting.
1183
+
1184
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/registeredRelay.ts#L216)
1185
+
1186
+ Import: `import {reconcileRelayAttempt} from '@t3foundry/tasra-sdk/chain'`
1187
+
1188
+ ```ts
1189
+ declare function reconcileRelayAttempt(chain: TasraChainClient, attempt: RelayAttempt, timeoutMs?: number): Promise<RelayReconciliation>;
1190
+ ```
1191
+
1192
+ | Parameter | Type | Description |
1193
+ |---|---|---|
1194
+ | ` chain ` | ` TasraChainClient ` | Trusted reader for the chain on which the forward request may have executed. |
1195
+ | ` attempt ` | ` RelayAttempt ` | Persisted signed request and original log-scan start block. |
1196
+ | ` timeoutMs? ` | ` number ` | Maximum reconciliation duration in milliseconds; defaults to 30000. |
1197
+
1198
+ Returns: ` Promise<RelayReconciliation> `.
1199
+
1200
+ ### requestSlotSeed
1201
+
1202
+ Request a committee draw seed and compare its digest with the registry. Checks signature encoding and rejects the point at infinity; signature cryptography is verified during the on-chain reveal.
1203
+
1204
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/slotSeed.ts#L87)
1205
+
1206
+ Import: `import {requestSlotSeed} from '@t3foundry/tasra-sdk/chain'`
1207
+
1208
+ ```ts
1209
+ declare function requestSlotSeed(chain: TasraChainClient, keyRegistry: `0x${string}`, commitment: Hex, opts?: SlotSeedOptions): Promise<SlotSeed | null>;
1210
+ ```
1211
+
1212
+ | Parameter | Type | Description |
1213
+ |---|---|---|
1214
+ | ` chain ` | ` TasraChainClient ` | Reader for the deployment owning the commitment. |
1215
+ | ` keyRegistry ` | `` `0x${string}` `` | Registry that will receive the reveal transaction. |
1216
+ | ` commitment ` | ` Hex ` | Previously submitted creation commitment. |
1217
+ | ` opts? ` | ` SlotSeedOptions ` | Accountant endpoints and request timeout. |
1218
+
1219
+ Returns: ` Promise<SlotSeed | null> `.
1220
+
1221
+ Return details: A seed response, or null when no accountant returns an acceptable response.
1222
+
1223
+ ### requireAddress
1224
+
1225
+ Resolve a contract address, throwing a clear error if missing.
1226
+
1227
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/deployments.ts#L327)
1228
+
1229
+ Import: `import {requireAddress} from '@t3foundry/tasra-sdk/chain'`
1230
+
1231
+ ```ts
1232
+ declare function requireAddress(book: AddressBook, name: ContractName): Address;
1233
+ ```
1234
+
1235
+ | Parameter | Type | Description |
1236
+ |---|---|---|
1237
+ | ` book ` | ` AddressBook ` | Resolved deployment addresses. |
1238
+ | ` name ` | ` ContractName ` | Canonical contract name or supported address-book key. |
1239
+
1240
+ Returns: ` Address `.
1241
+
1242
+ ### requireVaultAddress
1243
+
1244
+ Resolve the named vesting allocation. The unqualified vault address is accepted as a fallback; callers aggregating allocations must deduplicate resolved addresses.
1245
+
1246
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/deployments.ts#L307)
1247
+
1248
+ Import: `import {requireVaultAddress} from '@t3foundry/tasra-sdk/chain'`
1249
+
1250
+ ```ts
1251
+ declare function requireVaultAddress(book: AddressBook, tranche: VaultTranche): Address;
1252
+ ```
1253
+
1254
+ | Parameter | Type | Description |
1255
+ |---|---|---|
1256
+ | ` book ` | ` AddressBook ` | Deployment contract addresses. |
1257
+ | ` tranche ` | ` VaultTranche ` | Vesting allocation to resolve. |
1258
+
1259
+ Returns: ` Address `.
1260
+
1261
+ Return details: Address of the allocation vault; throws when missing.
1262
+
1263
+ ### resolveAccountantUrls
1264
+
1265
+ Read active accountant HTTP endpoints through the registry role index, preserving registry order.
1266
+
1267
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/discovery.ts#L146)
1268
+
1269
+ Import: `import {resolveAccountantUrls} from '@t3foundry/tasra-sdk/chain'`
1270
+
1271
+ ```ts
1272
+ declare function resolveAccountantUrls(chain: TasraChainClient): Promise<string[]>;
1273
+ ```
1274
+
1275
+ | Parameter | Type | Description |
1276
+ |---|---|---|
1277
+ | ` chain ` | ` TasraChainClient ` | Reader for the registry containing accountant role registrations. |
1278
+
1279
+ Returns: ` Promise<string[]> `.
1280
+
1281
+ ### resolveNetworkProfile
1282
+
1283
+ Validate network overrides and resolve the required EURC token address.
1284
+
1285
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/networks.ts#L61)
1286
+
1287
+ Import: `import {resolveNetworkProfile} from '@t3foundry/tasra-sdk/chain'`
1288
+
1289
+ ```ts
1290
+ declare function resolveNetworkProfile(environment: NetworkName, options?: {
1291
+ chainId?: number;
1292
+ rpcUrl?: string;
1293
+ eurcAddress?: string;
1294
+ }): ResolvedNetworkProfile;
1295
+ ```
1296
+
1297
+ | Parameter | Type | Description |
1298
+ |---|---|---|
1299
+ | ` environment ` | ` NetworkName ` | Supported network profile identifier. |
1300
+ | ` options? ` | ` { chainId?: number; rpcUrl?: string; eurcAddress?: string; } ` | Explicit chain, RPC and EURC address overrides from approved configuration. |
1301
+
1302
+ Returns: ` ResolvedNetworkProfile `.
1303
+
1304
+ ### resolveSlotGroupKey
1305
+
1306
+ Read the slot's group public key + epoch straight from `KeyRegistry.getKeySlot` - so
1307
+ `encrypt` needs no verifier, no JWT, and no node round-trip (it's local + offline once
1308
+ you hold the key).
1309
+
1310
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/discovery.ts#L124)
1311
+
1312
+ Import: `import {resolveSlotGroupKey} from '@t3foundry/tasra-sdk/chain'`
1313
+
1314
+ ```ts
1315
+ declare function resolveSlotGroupKey(chain: TasraChainClient, slotId: `0x${string}`): Promise<SlotGroupKey>;
1316
+ ```
1317
+
1318
+ | Parameter | Type | Description |
1319
+ |---|---|---|
1320
+ | ` chain ` | ` TasraChainClient ` | Reader for the deployment owning the slot. |
1321
+ | ` slotId ` | `` `0x${string}` `` | Slot whose anchored public key and epoch are required. |
1322
+
1323
+ Returns: ` Promise<SlotGroupKey> `.
1324
+
1325
+ ### resolveSlotKeeperUrls
1326
+
1327
+ The slot's assigned keeper nodes, resolved to their HTTP base URLs. These are the
1328
+ nodes any `/v1/committee/{sign,decrypt}` request for this slot must target. Order
1329
+ follows `assignedNodes`; url-less operators are skipped.
1330
+
1331
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/discovery.ts#L47)
1332
+
1333
+ Import: `import {resolveSlotKeeperUrls} from '@t3foundry/tasra-sdk/chain'`
1334
+
1335
+ ```ts
1336
+ declare function resolveSlotKeeperUrls(chain: TasraChainClient, slotId: `0x${string}`): Promise<string[]>;
1337
+ ```
1338
+
1339
+ | Parameter | Type | Description |
1340
+ |---|---|---|
1341
+ | ` chain ` | ` TasraChainClient ` | Reader configured from the approved network manifest. |
1342
+ | ` slotId ` | `` `0x${string}` `` | Slot whose assigned keeper endpoints are required. |
1343
+
1344
+ Returns: ` Promise<string[]> `.
1345
+
1346
+ ### resolveVerifierDirectory
1347
+
1348
+ Read active verifier records in ascending operator-address order. Stable indices must match the anchored verifier snapshot; unreadable records reject discovery rather than silently renumbering the committee.
1349
+
1350
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/discovery.ts#L68)
1351
+
1352
+ Import: `import {resolveVerifierDirectory} from '@t3foundry/tasra-sdk/chain'`
1353
+
1354
+ ```ts
1355
+ declare function resolveVerifierDirectory(chain: TasraChainClient): Promise<CommitteeVerifier[]>;
1356
+ ```
1357
+
1358
+ | Parameter | Type | Description |
1359
+ |---|---|---|
1360
+ | ` chain ` | ` TasraChainClient ` | Reader for the deployment registry. |
1361
+
1362
+ Returns: ` Promise<CommitteeVerifier[]> `.
1363
+
1364
+ Return details: Verifier endpoints, public keys and snapshot indices.
1365
+
1366
+ ### ruleCommitment
1367
+
1368
+ Compute the salted rule commitment. OID4VP queries and `kk_oauth` policy envelopes use canonical JSON; other rule formats retain their exact bytes.
1369
+
1370
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/write.ts#L449)
1371
+
1372
+ Import: `import {ruleCommitment} from '@t3foundry/tasra-sdk/chain'`
1373
+
1374
+ ```ts
1375
+ declare function ruleCommitment(ruleSalt: Hex, rule: string): Hex;
1376
+ ```
1377
+
1378
+ | Parameter | Type | Description |
1379
+ |---|---|---|
1380
+ | ` ruleSalt ` | ` Hex ` | Private 32-byte salt saved with the slot creation intent. |
1381
+ | ` rule ` | ` string ` | Clear authorization rule; OID4VP queries and policy envelopes are canonicalized before hashing. |
1382
+
1383
+ Returns: ` Hex `.
1384
+
1385
+ ### serviceChallengeTypedData
1386
+
1387
+ Build validated EIP-712 data binding a challenge to the approved service revision and endpoint.
1388
+
1389
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/serviceIdentity.ts#L149)
1390
+
1391
+ Import: `import {serviceChallengeTypedData} from '@t3foundry/tasra-sdk/chain'`
1392
+
1393
+ ```ts
1394
+ declare function serviceChallengeTypedData(challenge: ServiceChallenge): {
1395
+ domain: {
1396
+ name: string;
1397
+ version: string;
1398
+ chainId: number;
1399
+ verifyingContract: `0x${string}`;
1400
+ };
1401
+ primaryType: "ServiceIdentity";
1402
+ types: {
1403
+ ServiceIdentity: {
1404
+ name: string;
1405
+ type: string;
1406
+ }[];
1407
+ };
1408
+ message: {
1409
+ serviceId: `0x${string}`;
1410
+ revision: bigint;
1411
+ endpoint: string;
1412
+ manifestHash: `0x${string}`;
1413
+ nonce: `0x${string}`;
1414
+ expiresAt: bigint;
1415
+ };
1416
+ };
1417
+ ```
1418
+
1419
+ | Parameter | Type | Description |
1420
+ |---|---|---|
1421
+ | ` challenge ` | ` ServiceChallenge ` | Challenge binding the service revision, endpoint, nonce and expiry. |
1422
+
1423
+ Returns:
1424
+
1425
+ ```ts
1426
+ {
1427
+ domain: {
1428
+ name: string;
1429
+ version: string;
1430
+ chainId: number;
1431
+ verifyingContract: `0x${string}`;
1432
+ };
1433
+ primaryType: "ServiceIdentity";
1434
+ types: {
1435
+ ServiceIdentity: {
1436
+ name: string;
1437
+ type: string;
1438
+ }[];
1439
+ };
1440
+ message: {
1441
+ serviceId: `0x${string}`;
1442
+ revision: bigint;
1443
+ endpoint: string;
1444
+ manifestHash: `0x${string}`;
1445
+ nonce: `0x${string}`;
1446
+ expiresAt: bigint;
1447
+ };
1448
+ }
1449
+ ```
1450
+
1451
+ ### truncateHex
1452
+
1453
+ Abbreviate an address or hash by retaining its leading and trailing digits.
1454
+
1455
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/format.ts#L9)
1456
+
1457
+ Import: `import {truncateHex} from '@t3foundry/tasra-sdk/chain'`
1458
+
1459
+ ```ts
1460
+ declare function truncateHex(hex: string, lead?: number, tail?: number): string;
1461
+ ```
1462
+
1463
+ | Parameter | Type | Description |
1464
+ |---|---|---|
1465
+ | ` hex ` | ` string ` | Address or hash, with or without a hexadecimal prefix. |
1466
+ | ` lead? ` | ` number ` | Number of leading hexadecimal digits to retain. |
1467
+ | ` tail? ` | ` number ` | Number of trailing hexadecimal digits to retain. |
1468
+
1469
+ Returns: ` string `.
1470
+
1471
+ ### validateServiceChallenge
1472
+
1473
+ Responder must validate against its own configured profile before asking its dedicated key to sign.
1474
+
1475
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/serviceIdentity.ts#L206)
1476
+
1477
+ Import: `import {validateServiceChallenge} from '@t3foundry/tasra-sdk/chain'`
1478
+
1479
+ ```ts
1480
+ declare function validateServiceChallenge(challenge: ServiceChallenge, approval: ServiceApproval, endpoint: string, now: number): void;
1481
+ ```
1482
+
1483
+ | Parameter | Type | Description |
1484
+ |---|---|---|
1485
+ | ` challenge ` | ` ServiceChallenge ` | Parsed challenge received from the client. |
1486
+ | ` approval ` | ` ServiceApproval ` | Approved service identity and revision. |
1487
+ | ` endpoint ` | ` string ` | Expected canonical service endpoint. |
1488
+ | ` now ` | ` number ` | Current Unix time in seconds used to validate the expiry. |
1489
+
1490
+ Returns: ` void `.
1491
+
1492
+ ### validateServiceEndpoint
1493
+
1494
+ Reject aliases instead of signing a URL which another implementation normalizes differently.
1495
+
1496
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/serviceIdentity.ts#L90)
1497
+
1498
+ Import: `import {validateServiceEndpoint} from '@t3foundry/tasra-sdk/chain'`
1499
+
1500
+ ```ts
1501
+ declare function validateServiceEndpoint(endpoint: string): URL;
1502
+ ```
1503
+
1504
+ | Parameter | Type | Description |
1505
+ |---|---|---|
1506
+ | ` endpoint ` | ` string ` | Canonical HTTPS base URL without credentials, query or fragment. |
1507
+
1508
+ Returns: ` URL `.
1509
+
1510
+ ### vaultKey
1511
+
1512
+ Address-book key for one vesting tranche, e.g. TasraVestingVault_team.
1513
+
1514
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/deployments.ts#L77)
1515
+
1516
+ Import: `import {vaultKey} from '@t3foundry/tasra-sdk/chain'`
1517
+
1518
+ ```ts
1519
+ declare function vaultKey(tranche: VaultTranche): string;
1520
+ ```
1521
+
1522
+ | Parameter | Type | Description |
1523
+ |---|---|---|
1524
+ | ` tranche ` | ` VaultTranche ` | Vesting allocation name. |
1525
+
1526
+ Returns: ` string `.
1527
+
1528
+ ### verifyRuleCommitment
1529
+
1530
+ Return whether the disclosed rule and salt reproduce the on-chain commitment. Invalid inputs and mismatches return false.
1531
+
1532
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/write.ts#L462)
1533
+
1534
+ Import: `import {verifyRuleCommitment} from '@t3foundry/tasra-sdk/chain'`
1535
+
1536
+ ```ts
1537
+ declare function verifyRuleCommitment(rule: string, ruleSalt: Hex, onChainRuleCommitment: Hex): boolean;
1538
+ ```
1539
+
1540
+ | Parameter | Type | Description |
1541
+ |---|---|---|
1542
+ | ` rule ` | ` string ` | Clear rule received for the slot. |
1543
+ | ` ruleSalt ` | ` Hex ` | Private salt associated with that rule commitment. |
1544
+ | ` onChainRuleCommitment ` | ` Hex ` | Commitment read from the on-chain slot. |
1545
+
1546
+ Returns: ` boolean `.
1547
+
1548
+ ### verifyServiceIdentity
1549
+
1550
+ Verify the challenge response against the registry authentication key and expected request digest.
1551
+
1552
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/serviceIdentity.ts#L221)
1553
+
1554
+ Import: `import {verifyServiceIdentity} from '@t3foundry/tasra-sdk/chain'`
1555
+
1556
+ ```ts
1557
+ declare function verifyServiceIdentity(challenge: ServiceChallenge, signature: Hex, authKey: Address, now: number): Promise<void>;
1558
+ ```
1559
+
1560
+ | Parameter | Type | Description |
1561
+ |---|---|---|
1562
+ | ` challenge ` | ` ServiceChallenge ` | Expected challenge whose digest must be signed. |
1563
+ | ` signature ` | ` Hex ` | Hex-encoded EIP-712 signature returned by the service. |
1564
+ | ` authKey ` | ` Address ` | Authentication address pinned by the registry record. |
1565
+ | ` now ` | ` number ` | Current Unix time in seconds used to validate the expiry. |
1566
+
1567
+ Returns: ` Promise<void> `.
1568
+
1569
+ ### verifyServiceManifest
1570
+
1571
+ Verify exact manifest bytes against the approved hash, canonical encoding and registry record.
1572
+
1573
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/serviceIdentity.ts#L131)
1574
+
1575
+ Import: `import {verifyServiceManifest} from '@t3foundry/tasra-sdk/chain'`
1576
+
1577
+ ```ts
1578
+ declare function verifyServiceManifest(bytes: Uint8Array, approval: ServiceApproval, record: ServiceRecord): ServiceManifest;
1579
+ ```
1580
+
1581
+ | Parameter | Type | Description |
1582
+ |---|---|---|
1583
+ | ` bytes ` | ` Uint8Array ` | Exact downloaded service manifest bytes. |
1584
+ | ` approval ` | ` ServiceApproval ` | Application-approved service identity and pinned manifest hash. |
1585
+ | ` record ` | ` ServiceRecord ` | Registry record whose endpoint and hash must match the manifest. |
1586
+
1587
+ Returns: ` ServiceManifest `.
1588
+
1589
+ ## Types
1590
+
1591
+ Options, data structures and return types.
1592
+
1593
+ <details>
1594
+ <summary>Browse 75 types</summary>
1595
+
1596
+ - [Address](#address)
1597
+ - [AddressBook](#addressbook)
1598
+ - [AgentTransport](#agenttransport)
1599
+ - [AmendmentPhase](#amendmentphase)
1600
+ - [AmendSlotRuleArgs](#amendslotruleargs)
1601
+ - [AmendSlotRuleResult](#amendslotruleresult)
1602
+ - [ApplicationServiceProfiles](#applicationserviceprofiles)
1603
+ - [ApprovedAgentProfile](#approvedagentprofile)
1604
+ - [ApprovedServiceProfile](#approvedserviceprofile)
1605
+ - [AuthenticatedService](#authenticatedservice)
1606
+ - [ChainClientConfig](#chainclientconfig)
1607
+ - [CommitRevealOptions](#commitrevealoptions)
1608
+ - [CommitteeDecryptOptions](#committeedecryptoptions)
1609
+ - [CommitteeSignOptions](#committeesignoptions)
1610
+ - [CommitteeSlotClient](#committeeslotclient)
1611
+ - [CommitteeSlotClientConfig](#committeeslotclientconfig)
1612
+ - [ContractName](#contractname)
1613
+ - [ContractObservation](#contractobservation)
1614
+ - [ContractRecord](#contractrecord)
1615
+ - [CreateSlotArgs](#createslotargs)
1616
+ - [CreateSlotFromPolicyArgs](#createslotfrompolicyargs)
1617
+ - [DecodedEvent](#decodedevent)
1618
+ - [EventCategory](#eventcategory)
1619
+ - [FetchOpts](#fetchopts)
1620
+ - [GetLogsWindowedOpts](#getlogswindowedopts)
1621
+ - [KeeperProvisionResult](#keeperprovisionresult)
1622
+ - [KeyListReply](#keylistreply)
1623
+ - [KeySlotSummary](#keyslotsummary)
1624
+ - [MeteringReply](#meteringreply)
1625
+ - [NetworkManifest](#networkmanifest)
1626
+ - [NetworkName](#networkname)
1627
+ - [NetworkPreset](#networkpreset)
1628
+ - [NodeInfo](#nodeinfo)
1629
+ - [ProposeRuleArgs](#proposeruleargs)
1630
+ - [ProposeRuleResult](#proposeruleresult)
1631
+ - [ProvisionRuleArgs](#provisionruleargs)
1632
+ - [ProvisionRuleResult](#provisionruleresult)
1633
+ - [RegisteredAgentSession](#registeredagentsession)
1634
+ - [RegisteredRelayConfig](#registeredrelayconfig)
1635
+ - [RegisteredVerifierAgentSession](#registeredverifieragentsession)
1636
+ - [RelayAttempt](#relayattempt)
1637
+ - [RelayConfig](#relayconfig)
1638
+ - [RelayIntent](#relayintent)
1639
+ - [RelayReceipt](#relayreceipt)
1640
+ - [RelayReconciliation](#relayreconciliation)
1641
+ - [RelayTransport](#relaytransport)
1642
+ - [ResolvedEndpoints](#resolvedendpoints)
1643
+ - [ResolvedNetworkProfile](#resolvednetworkprofile)
1644
+ - [RuleAmendmentErrorCode](#ruleamendmenterrorcode)
1645
+ - [RuleAmendmentStatus](#ruleamendmentstatus)
1646
+ - [RuleInput](#ruleinput)
1647
+ - [ServiceApproval](#serviceapproval)
1648
+ - [ServiceChallenge](#servicechallenge)
1649
+ - [ServiceDiscoveryTransport](#servicediscoverytransport)
1650
+ - [ServiceManifest](#servicemanifest)
1651
+ - [ServiceRecord](#servicerecord)
1652
+ - [ServiceStatus](#servicestatus)
1653
+ - [ServiceType](#servicetype)
1654
+ - [SignedHeartbeat](#signedheartbeat)
1655
+ - [SlotAuthType](#slotauthtype)
1656
+ - [SlotCommitteeDecryptOptions](#slotcommitteedecryptoptions)
1657
+ - [SlotCommitteeSignOptions](#slotcommitteesignoptions)
1658
+ - [SlotGroupKey](#slotgroupkey)
1659
+ - [SlotMode](#slotmode)
1660
+ - [SlotSeed](#slotseed)
1661
+ - [SlotSeedOptions](#slotseedoptions)
1662
+ - [TasraChainClient](#tasrachainclient)
1663
+ - [TasraSlotClient](#tasraslotclient)
1664
+ - [TasraSlotClientConfig](#tasraslotclientconfig)
1665
+ - [TasraWriteClient](#tasrawriteclient)
1666
+ - [VaultTranche](#vaulttranche)
1667
+ - [VerifierInfo](#verifierinfo)
1668
+ - [WriteClientConfig](#writeclientconfig)
1669
+ - [WriteClientKeyConfig](#writeclientkeyconfig)
1670
+ - [WriteClientWalletConfig](#writeclientwalletconfig)
1671
+
1672
+ </details>
1673
+
1674
+ ### Address
1675
+
1676
+ Hex-encoded EVM contract or account address.
1677
+
1678
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/deployments.ts#L23)
1679
+
1680
+ ```ts
1681
+ export type Address = `0x${string}`;
1682
+ ```
1683
+
1684
+ ### AddressBook
1685
+
1686
+ Canonical contract name to deployed address (lowercased keys allowed too).
1687
+
1688
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/deployments.ts#L26)
1689
+
1690
+ ```ts
1691
+ export type AddressBook = Partial<Record<ContractName, Address>> & {
1692
+ [k: string]: Address | undefined;
1693
+ };
1694
+ ```
1695
+
1696
+ ### AgentTransport
1697
+
1698
+ Guarded HTTPS transport for service discovery and verifier-agent sessions.
1699
+
1700
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/registeredAgent.ts#L9)
1701
+
1702
+ ```ts
1703
+ export interface AgentTransport extends ServiceDiscoveryTransport {
1704
+ agentRequest(url: string, options: {
1705
+ body?: Uint8Array;
1706
+ bearer?: string;
1707
+ maxBytes: number;
1708
+ signal: AbortSignal;
1709
+ }): Promise<Uint8Array>;
1710
+ }
1711
+ ```
1712
+
1713
+ Fields:
1714
+
1715
+ - **` agentRequest `**: Same socket/TLS policy as discovery; bearer is allowed only on a session GET.
1716
+ - **` request `**: Perform a bounded request using the required destination, TLS and cancellation policy; return response bytes.
1717
+
1718
+ ### AmendmentPhase
1719
+
1720
+ Progress points `amendSlotRule` reports, in order.
1721
+
1722
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/ruleAmendment.ts#L83)
1723
+
1724
+ ```ts
1725
+ export type AmendmentPhase = 'proposed' | 'delivered' | 'adopted' | 'endorsed' | 'activated';
1726
+ ```
1727
+
1728
+ ### AmendSlotRuleArgs
1729
+
1730
+ Arguments of [amendSlotRule](#amendslotrule): the amendment, who delivers it, and optional guardian endorsement.
1731
+
1732
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/ruleAmendment.ts#L86)
1733
+
1734
+ ```ts
1735
+ export type AmendSlotRuleArgs = ProposeRuleArgs & {
1736
+ deliverer: TypedDataSigner;
1737
+ guardian?: TasraWriteClient;
1738
+ onPhase?: (p: AmendmentPhase, d?: unknown) => void;
1739
+ maxWaitMs?: number;
1740
+ signal?: AbortSignal;
1741
+ };
1742
+ ```
1743
+
1744
+ Fields:
1745
+
1746
+ - **` slotId `**: 32-byte identifier of the slot whose rule changes.
1747
+ - **` ruleSalt `**: The slot's rule salt (from creation). Amendments reuse it; it is never minted here.
1748
+ - **` deliverer `**: Signs the rule delivery to the keepers: the slot creator or the rule admin.
1749
+ - **` guardian `**: The guardian's write client; when given, it endorses the amendment to waive the remaining delay.
1750
+ - **` onPhase `**: Called at each completed phase with that phase's result.
1751
+ - **` maxWaitMs `**: Milliseconds allowed from delivery to activation (default: the slot's timelock plus 10 minutes).
1752
+ - **` signal `**: Cancels waiting and keeper requests.
1753
+
1754
+ ### AmendSlotRuleResult
1755
+
1756
+ Outcome of [amendSlotRule](#amendslotrule).
1757
+
1758
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/ruleAmendment.ts#L100)
1759
+
1760
+ ```ts
1761
+ export interface AmendSlotRuleResult {
1762
+ version: number;
1763
+ ruleCommitment: Hex;
1764
+ proposeTx?: Hex;
1765
+ activateTx?: Hex;
1766
+ }
1767
+ ```
1768
+
1769
+ Fields:
1770
+
1771
+ - **` version `**: Rule version now active.
1772
+ - **` ruleCommitment `**: Salted commitment of the rule now active.
1773
+ - **` proposeTx `**: Proposal transaction; absent when the proposal already existed (a resumed run).
1774
+ - **` activateTx `**: Activation transaction; absent when the rule was already active or another party activated it.
1775
+
1776
+ ### ApplicationServiceProfiles
1777
+
1778
+ Reviewed application configuration, never a list downloaded from a service registry.
1779
+
1780
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/serviceProfiles.ts#L21)
1781
+
1782
+ ```ts
1783
+ export interface ApplicationServiceProfiles {
1784
+ chainId: number;
1785
+ registry: Address;
1786
+ relayers: ApprovedServiceProfile[];
1787
+ verifierAgents: ApprovedAgentProfile[];
1788
+ vaultServices: ApprovedServiceProfile[];
1789
+ }
1790
+ ```
1791
+
1792
+ Fields:
1793
+
1794
+ - **` chainId `**: Chain shared by all approved service profiles.
1795
+ - **` registry `**: ServiceRegistry contract shared by the approved profiles.
1796
+ - **` relayers `**: Independently approved relay providers in application preference order.
1797
+ - **` verifierAgents `**: Independently approved verifier agents and their pinned audiences.
1798
+ - **` vaultServices `**: Independently approved vault-service identities and endpoints.
1799
+
1800
+ ### ApprovedAgentProfile
1801
+
1802
+ Both the application and committee verifiers must independently approve this verifier-agent identity.
1803
+
1804
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/registeredAgent.ts#L15)
1805
+
1806
+ ```ts
1807
+ export interface ApprovedAgentProfile {
1808
+ approval: ServiceApproval;
1809
+ endpoint: string;
1810
+ clientId: string;
1811
+ }
1812
+ ```
1813
+
1814
+ Fields:
1815
+
1816
+ - **` approval `**: Independently approved service registry identity and revision.
1817
+ - **` endpoint `**: Expected canonical verifier-agent endpoint.
1818
+ - **` clientId `**: Approved OID4VP client identifier derived from the agent DID.
1819
+
1820
+ ### ApprovedServiceProfile
1821
+
1822
+ Application-approved service identity and its expected endpoint.
1823
+
1824
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/serviceProfiles.ts#L9)
1825
+
1826
+ ```ts
1827
+ export interface ApprovedServiceProfile {
1828
+ approval: ServiceApproval;
1829
+ endpoint: string;
1830
+ }
1831
+ ```
1832
+
1833
+ Fields:
1834
+
1835
+ - **` approval `**: Independently reviewed registry identity and metadata pins.
1836
+ - **` endpoint `**: Expected canonical service endpoint.
1837
+
1838
+ ### AuthenticatedService
1839
+
1840
+ Approved registry record and canonical manifest authenticated by a fresh endpoint challenge.
1841
+
1842
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/serviceIdentity.ts#L241)
1843
+
1844
+ ```ts
1845
+ export interface AuthenticatedService {
1846
+ approval: ServiceApproval;
1847
+ record: ServiceRecord;
1848
+ manifest: ServiceManifest;
1849
+ blockNumber: bigint;
1850
+ expiresAt: number;
1851
+ }
1852
+ ```
1853
+
1854
+ Fields:
1855
+
1856
+ - **` approval `**: Application-supplied service identity and metadata pins that were checked.
1857
+ - **` record `**: Registry record checked during endpoint authentication.
1858
+ - **` manifest `**: Canonical service manifest matching the approved hash and registry record.
1859
+ - **` blockNumber `**: Chain block used for the final registry record check.
1860
+ - **` expiresAt `**: Expiration of the endpoint authentication challenge in Unix seconds.
1861
+
1862
+ ### ChainClientConfig
1863
+
1864
+ RPC and contract configuration for read-only network access.
1865
+
1866
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/client.ts#L61)
1867
+
1868
+ ```ts
1869
+ export interface ChainClientConfig {
1870
+ rpcUrl: string;
1871
+ addresses: AddressBook;
1872
+ chainId?: number;
1873
+ logWindow?: number;
1874
+ multicall3?: Address | false;
1875
+ }
1876
+ ```
1877
+
1878
+ Fields:
1879
+
1880
+ - **` rpcUrl `**: JSON-RPC HTTP endpoint of the chain.
1881
+ - **` addresses `**: Resolved deployment addresses.
1882
+ - **` chainId `**: Chain id; defaults to DEFAULT_CHAIN_ID (the RPC is never consulted).
1883
+ - **` logWindow `**: getLogs block-window size; keep <= the RPC's range cap (anvil/besu: large; public: ~2k).
1884
+ - **` multicall3 `**: Multicall3 address for batching. Omit to probe the canonical address, supply an explicit address to probe that deployment, or set false to disable batching. Unavailable batching falls back to individual reads.
1885
+
1886
+ ### CommitRevealOptions
1887
+
1888
+ Recovery and timing controls for commit-reveal creation. Accountant seed discovery is attempted first; unavailable seeds fall back to a beacon epoch wait.
1889
+
1890
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/write.ts#L186)
1891
+
1892
+ ```ts
1893
+ export interface CommitRevealOptions {
1894
+ recovery?: {
1895
+ commitTx?: Hex;
1896
+ revealTx?: Hex;
1897
+ seeded?: boolean;
1898
+ onTransaction: (event: {
1899
+ step: 'commit' | 'reveal';
1900
+ phase: 'submitting' | 'submitted' | 'confirmed';
1901
+ hash?: Hex;
1902
+ seeded?: boolean;
1903
+ }) => Promise<void>;
1904
+ };
1905
+ signal?: AbortSignal;
1906
+ maxWaitMs?: number;
1907
+ onEpoch?: (cur: number, target: number) => void;
1908
+ slotSeed?: boolean;
1909
+ accountantUrls?: string[];
1910
+ slotSeedTimeoutMs?: number;
1911
+ onSeed?: (seed: SlotSeed | null) => void;
1912
+ }
1913
+ ```
1914
+
1915
+ Fields:
1916
+
1917
+ - **` recovery `**: Durable creation flow. Awaited before submission and after receiving each hash. Enabling recovery disables automatic transaction resubmission and chain-time nudges. Only supply hashes from the same persisted intent; never reconstruct lost salts.
1918
+ - **` signal `**: Cancel cooperative creation waits; already submitted transactions remain on chain.
1919
+ - **` maxWaitMs `**: Maximum beacon-epoch wait in milliseconds when no accountant seed is available.
1920
+ - **` onEpoch `**: Progress during that wait. Not called on the seeded path - there is no wait to report.
1921
+ - **` slotSeed `**: Attempt accountant seed discovery by default. Set false to wait for the beacon epoch instead; both paths bind the draw to the committed creation intent.
1922
+ - **` accountantUrls `**: Accountant base URLs for the seed request. Resolved from `NodeRegistry` when omitted.
1923
+ - **` slotSeedTimeoutMs `**: Per-accountant HTTP timeout for the seed request.
1924
+ - **` onSeed `**: The seed that was obtained, or `null` when the epoch wait is being used instead.
1925
+
1926
+ ### CommitteeDecryptOptions
1927
+
1928
+ Decryption options for a registry-discovered committee slot.
1929
+
1930
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/committeeClient.ts#L111)
1931
+
1932
+ ```ts
1933
+ export type CommitteeDecryptOptions = SlotCommitteeDecryptOptions;
1934
+ ```
1935
+
1936
+ Fields:
1937
+
1938
+ - **` ciphertext `**: Group ciphertext to decrypt through committee authorization.
1939
+ - **` identity `**: Original associated data used when encrypting the group ciphertext.
1940
+ - **` decryptingSet `**: BLS identifiers (k..n, distinct) to run the ceremony with.
1941
+ - **` blsPeers `**: The libp2p peers for those identifiers.
1942
+ - **` userSignature `**: Optional Ed25519 slot-owner signature required by the keeper policy.
1943
+ - **` ciphertextEpoch `**: Expected slot key epoch for detecting ciphertext-key rotation.
1944
+ - **` targetKeykeeper `**: Pin the keeper this request targets (anti-Sybil); an on-chain assigned operator.
1945
+
1946
+ ### CommitteeSignOptions
1947
+
1948
+ Signing options for a registry-discovered committee slot.
1949
+
1950
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/committeeClient.ts#L107)
1951
+
1952
+ ```ts
1953
+ export type CommitteeSignOptions = SlotCommitteeSignOptions;
1954
+ ```
1955
+
1956
+ Fields:
1957
+
1958
+ - **` signingSet `**: Optional FROST participant identifiers selected for signing.
1959
+ - **` userSignature `**: Optional Ed25519 slot-owner approval signature for the signing request.
1960
+ - **` targetKeykeeper `**: Pin the keeper this request targets (anti-Sybil). Must be one of the slot's on-chain assigned operators; there is no way to point at an off-chain node.
1961
+
1962
+ ### CommitteeSlotClient
1963
+
1964
+ Slot-based committee operations that discover keepers and verifiers from the chain.
1965
+
1966
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/committeeClient.ts#L116)
1967
+
1968
+ ```ts
1969
+ export interface CommitteeSlotClient {
1970
+ sign(slotId: string, message: Uint8Array, opts?: SlotCommitteeSignOptions): Promise<FrostSignResult>;
1971
+ encrypt(slotId: string, plaintext: Uint8Array, opts?: {
1972
+ identity?: Uint8Array;
1973
+ epoch?: bigint | null;
1974
+ }): Promise<Uint8Array>;
1975
+ decrypt(slotId: string, opts: SlotCommitteeDecryptOptions): Promise<Uint8Array>;
1976
+ verifierDirectory(): Promise<CommitteeVerifier[]>;
1977
+ }
1978
+ ```
1979
+
1980
+ Fields:
1981
+
1982
+ - **` sign `**: Committee-authorized threshold FROST signature over `message`.
1983
+ - **` encrypt `**: Encrypt to the slot's group key. Local - reads the public key from chain, then does the crypto in-process: no verifier, no JWT, no keeper node, and **no credentials** (a client built with only `{chain}` can call this). BLS (encryption) slots only.
1984
+ - **` decrypt `**: Committee-authorized threshold decrypt.
1985
+ - **` verifierDirectory `**: The resolved active verifier directory (discovered once, then cached).
1986
+
1987
+ ### CommitteeSlotClientConfig
1988
+
1989
+ Chain discovery and holder-proof configuration for threshold signing and identity decryption.
1990
+
1991
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/committeeClient.ts#L35)
1992
+
1993
+ ```ts
1994
+ export interface CommitteeSlotClientConfig {
1995
+ chain: TasraChainClient;
1996
+ holder?: string;
1997
+ credentials?: string[];
1998
+ dcqlRule?: string;
1999
+ holderProof?: string | HolderProofPerVerifier;
2000
+ clientSigner?: ClientSigner;
2001
+ ttlSecs?: number;
2002
+ }
2003
+ ```
2004
+
2005
+ Fields:
2006
+
2007
+ - **` chain `**: Read client for the deployment (RPC + address book).
2008
+ - **` holder `**: Holder DID (the credentials' subject). Required for ` CommitteeSlotClient.sign ` and ` CommitteeSlotClient.decrypt `, which must present credentials to the verifier committee. Not needed for ` CommitteeSlotClient.encrypt `, which only reads the slot's public group key from chain.
2009
+ - **` credentials `**: Compact-JWS verifiable credentials presented to the committee. Required for sign/decrypt.
2010
+ - **` dcqlRule `**: Ignored compatibility field. Verifiers fetch the committed rule from a keeper; supplying this field does not change authorization.
2011
+ - **` holderProof `**: Holder proof-of-possession for the holder DID authentication key. Required for sign/decrypt. One string serves one verifier: the proof names its audience and burns a nonce that lives in that verifier, so on any deployment whose policy draws a committee the others answer 401 ("aud does not include this verifier"). Pass `holderProofPerVerifier({signer, audience, credentials, slotId})` there - it mints a fresh proof per drawn verifier, on every request.
2012
+ - **` clientSigner `**: sign the request bundle so keeper + audit can verify you authorized it.
2013
+ - **` ttlSecs `**: Compound-token TTL in seconds (default 300).
2014
+
2015
+ ### ContractName
2016
+
2017
+ Canonical contract names supported by the bundled ABI registry.
2018
+
2019
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/abis/index.ts#L70)
2020
+
2021
+ ```ts
2022
+ export type ContractName = keyof typeof CONTRACT_ABIS;
2023
+ ```
2024
+
2025
+ ### ContractObservation
2026
+
2027
+ Observed contract code and proxy implementation compared with a manifest record.
2028
+
2029
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/manifest.ts#L172)
2030
+
2031
+ ```ts
2032
+ export interface ContractObservation {
2033
+ name: string;
2034
+ address: Address;
2035
+ expectedCodeHash: Hex | null;
2036
+ observedCodeHash: Hex | null;
2037
+ implementation: Address | null;
2038
+ implementationCodeHash: Hex | null;
2039
+ matches: boolean;
2040
+ }
2041
+ ```
2042
+
2043
+ Fields:
2044
+
2045
+ - **` name `**: Contract name from the manifest.
2046
+ - **` address `**: Address read at the finalized block.
2047
+ - **` expectedCodeHash `**: Runtime hash pinned by the manifest.
2048
+ - **` observedCodeHash `**: Observed runtime hash, or null when no code exists.
2049
+ - **` implementation `**: Observed proxy implementation address, if present.
2050
+ - **` implementationCodeHash `**: Observed implementation runtime hash, if present.
2051
+ - **` matches `**: Whether deployed code and any proxy implementation match the manifest.
2052
+
2053
+ ### ContractRecord
2054
+
2055
+ Manifest record of one deployed contract and its code, transaction and proxy evidence.
2056
+
2057
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/manifest.ts#L10)
2058
+
2059
+ ```ts
2060
+ export interface ContractRecord {
2061
+ name: string;
2062
+ address: Address;
2063
+ abi: string;
2064
+ runtimeCodeHash: Hex | null;
2065
+ deployment: {
2066
+ transactionHash: Hex;
2067
+ blockNumber: string;
2068
+ } | null;
2069
+ create2: {
2070
+ factory: Address;
2071
+ salt: Hex;
2072
+ initCodeHash: Hex;
2073
+ } | null;
2074
+ proxy: {
2075
+ implementation: Address;
2076
+ runtimeCodeHash: Hex;
2077
+ upgradeAuthority: Address | null;
2078
+ } | null;
2079
+ }
2080
+ ```
2081
+
2082
+ Fields:
2083
+
2084
+ - **` name `**: Canonical contract name used as the address-book key.
2085
+ - **` address `**: Deployed contract address.
2086
+ - **` abi `**: Relative ABI artifact path in the release repository.
2087
+ - **` runtimeCodeHash `**: Expected runtime-bytecode hash, or null before deployment evidence exists.
2088
+ - **` deployment `**: Deployment transaction and decimal block number, or null when unavailable.
2089
+ - **` create2 `**: Deterministic deployment inputs, or null for other deployment methods.
2090
+ - **` proxy `**: Expected implementation, code hash and upgrade authority for a proxy.
2091
+
2092
+ ### CreateSlotArgs
2093
+
2094
+ Slot key mode, keeper threshold, private authorization rule and creation policies.
2095
+
2096
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/write.ts#L220)
2097
+
2098
+ ```ts
2099
+ export interface CreateSlotArgs extends RuleInput {
2100
+ ruleSalt?: Hex;
2101
+ k: number;
2102
+ n: number;
2103
+ mode: SlotMode;
2104
+ authType?: SlotAuthType;
2105
+ tags?: string[];
2106
+ slotId?: Hex;
2107
+ salt?: Hex;
2108
+ rulePolicy?: RulePolicyArgs;
2109
+ exportable?: boolean;
2110
+ }
2111
+ ```
2112
+
2113
+ Fields:
2114
+
2115
+ - **` ruleSalt `**: Private 32-byte authorization-rule salt, generated when omitted. Distinct from the committee-selection salt.
2116
+ - **` k `**: Minimum participating keeper shares required for an operation.
2117
+ - **` n `**: Total keeper shares assigned to the slot.
2118
+ - **` mode `**: Key algorithm and threshold operation family.
2119
+ - **` authType `**: `KeyRegistry.AuthType` for this slot - how a holder authorises against the rule. Defaults to `'unspecified'` (ordinal 0), which declares nothing and is what every slot predating the field reads as. Set it when the rule is an OID4VP-DCQL query (`'oid4vp'`) or an OAuth/OIDC token rule (`'oauth'`).
2120
+ - **` tags `**: Committee-draw filter tags; default `["keykeeper"]`.
2121
+ - **` slotId `**: Explicit 32-byte slot identifier, generated when omitted.
2122
+ - **` salt `**: 32-byte committee-selection salt, generated when omitted.
2123
+ - **` rulePolicy `**: Install amendment authority in the creation transaction. Omission makes the rule immutable. A later policy transaction can lose the race with key generation.
2124
+ - **` exportable `**: Allow raw share export, permitting a holder with enough shares to retain the reconstructed key permanently. Revocation cannot remove an exported key. Disabled by default and incompatible with rulePolicy.
2125
+ - **` rule `**: Clear rule. OAuth and wallet policies share the DCQL grammar.
2126
+
2127
+ ### CreateSlotFromPolicyArgs
2128
+
2129
+ Slot creation from an authored Rego policy instead of a rule string. The SDK packs
2130
+ `oauthPolicy` into the canonical `kk_oauth` envelope with the network's own engine, refuses
2131
+ it when a keeper would not store it, and commits the envelope. Requires `authType: 'oauth'`.
2132
+ The packed envelope is returned as `rule`: provision exactly that string.
2133
+
2134
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/write.ts#L270)
2135
+
2136
+ ```ts
2137
+ export type CreateSlotFromPolicyArgs = Omit<CreateSlotArgs, 'rule'> & {
2138
+ rule?: undefined;
2139
+ oauthPolicy: OauthPolicyInput;
2140
+ };
2141
+ ```
2142
+
2143
+ Fields:
2144
+
2145
+ - **` tags `**: Committee-draw filter tags; default `["keykeeper"]`.
2146
+ - **` n `**: Total keeper shares assigned to the slot.
2147
+ - **` slotId `**: Explicit 32-byte slot identifier, generated when omitted.
2148
+ - **` k `**: Minimum participating keeper shares required for an operation.
2149
+ - **` mode `**: Key algorithm and threshold operation family.
2150
+ - **` salt `**: 32-byte committee-selection salt, generated when omitted.
2151
+ - **` rulePolicy `**: Install amendment authority in the creation transaction. Omission makes the rule immutable. A later policy transaction can lose the race with key generation.
2152
+ - **` ruleSalt `**: Private 32-byte authorization-rule salt, generated when omitted. Distinct from the committee-selection salt.
2153
+ - **` authType `**: `KeyRegistry.AuthType` for this slot - how a holder authorises against the rule. Defaults to `'unspecified'` (ordinal 0), which declares nothing and is what every slot predating the field reads as. Set it when the rule is an OID4VP-DCQL query (`'oid4vp'`) or an OAuth/OIDC token rule (`'oauth'`).
2154
+ - **` exportable `**: Allow raw share export, permitting a holder with enough shares to retain the reconstructed key permanently. Revocation cannot remove an exported key. Disabled by default and incompatible with rulePolicy.
2155
+ - **` rule `**: Must be omitted: the rule is the packed envelope.
2156
+ - **` oauthPolicy `**: Rego policy source, token specifications and optional entrypoint.
2157
+
2158
+ ### DecodedEvent
2159
+
2160
+ A normalized, storage-ready decoded log.
2161
+
2162
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/events.ts#L91)
2163
+
2164
+ ```ts
2165
+ export interface DecodedEvent {
2166
+ category: EventCategory;
2167
+ contract: ContractName;
2168
+ address: Address;
2169
+ eventName: string;
2170
+ args: Record<string, unknown>;
2171
+ blockNumber: bigint;
2172
+ blockHash: string | null;
2173
+ txHash: string;
2174
+ txIndex: number | null;
2175
+ logIndex: number;
2176
+ }
2177
+ ```
2178
+
2179
+ Fields:
2180
+
2181
+ - **` category `**: Display category derived from the contract and event name.
2182
+ - **` contract `**: Contract ABI used to decode this event.
2183
+ - **` address `**: Contract address that emitted the log.
2184
+ - **` eventName `**: Decoded event name from the contract ABI.
2185
+ - **` args `**: Decoded args (bigints preserved; use `jsonSafe` before persisting).
2186
+ - **` blockNumber `**: Block containing the log.
2187
+ - **` blockHash `**: Block hash reported by the RPC, or null when unavailable.
2188
+ - **` txHash `**: Hash of the transaction that emitted the log.
2189
+ - **` txIndex `**: Transaction position within the block, or null when unavailable.
2190
+ - **` logIndex `**: Log position within the block.
2191
+
2192
+ ### EventCategory
2193
+
2194
+ Display category assigned to decoded contract events.
2195
+
2196
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/events.ts#L13)
2197
+
2198
+ ```ts
2199
+ export type EventCategory = 'node' | 'slot' | 'slashing' | 'tasra' | 'settlement' | 'beacon' | 'governance';
2200
+ ```
2201
+
2202
+ ### FetchOpts
2203
+
2204
+ Timeout and optional bearer authorization for direct service reads.
2205
+
2206
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/offchain.ts#L12)
2207
+
2208
+ ```ts
2209
+ export interface FetchOpts {
2210
+ timeoutMs?: number;
2211
+ jwt?: string;
2212
+ }
2213
+ ```
2214
+
2215
+ Fields:
2216
+
2217
+ - **` timeoutMs `**: Per-request timeout in ms (default 4000).
2218
+ - **` jwt `**: Bearer JWT, for the few authenticated reads (metering/audit).
2219
+
2220
+ ### GetLogsWindowedOpts
2221
+
2222
+ Inclusive block range, contract filter and progress callback for event scanning.
2223
+
2224
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/client.ts#L95)
2225
+
2226
+ ```ts
2227
+ export interface GetLogsWindowedOpts {
2228
+ fromBlock: bigint;
2229
+ toBlock: bigint;
2230
+ contracts?: ContractName[];
2231
+ windowSize?: number;
2232
+ onWindow?: (toBlock: bigint, events: DecodedEvent[]) => void;
2233
+ }
2234
+ ```
2235
+
2236
+ Fields:
2237
+
2238
+ - **` fromBlock `**: First block to scan, inclusive.
2239
+ - **` toBlock `**: Last block to scan, inclusive.
2240
+ - **` contracts `**: Restrict to these contracts (default: all present in the AddressBook).
2241
+ - **` windowSize `**: Number of blocks per query; defaults to the client logWindow setting.
2242
+ - **` onWindow `**: Called after each window with the last block scanned (progress).
2243
+
2244
+ ### KeeperProvisionResult
2245
+
2246
+ One keeper's answer. `pending` marks a rule stored against a PENDING amendment.
2247
+
2248
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/provisionRule.ts#L90)
2249
+
2250
+ ```ts
2251
+ export interface KeeperProvisionResult {
2252
+ url: string;
2253
+ ok: boolean;
2254
+ provisioned?: boolean;
2255
+ pending?: boolean;
2256
+ pendingVersion?: number;
2257
+ status?: number;
2258
+ error?: string;
2259
+ authorizedBy?: 'creator' | 'delegate' | 'rule_admin';
2260
+ }
2261
+ ```
2262
+
2263
+ Fields:
2264
+
2265
+ - **` url `**: Keeper endpoint contacted by this attempt.
2266
+ - **` ok `**: Whether the keeper accepted the HTTP request.
2267
+ - **` provisioned `**: The active rule was filled in by THIS call (false when it was already present).
2268
+ - **` pending `**: Whether the keeper stored the rule for a pending amendment.
2269
+ - **` pendingVersion `**: Pending amendment version reported by the keeper.
2270
+ - **` status `**: HTTP status when a response was received.
2271
+ - **` error `**: Bounded response text or transport error for a failed delivery.
2272
+ - **` authorizedBy `**: Which authority the keeper accepted the signature as, when it says.
2273
+
2274
+ ### KeyListReply
2275
+
2276
+ Slot summaries returned by a keeper key-list endpoint.
2277
+
2278
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/offchain.ts#L100)
2279
+
2280
+ ```ts
2281
+ export interface KeyListReply {
2282
+ slots: KeySlotSummary[];
2283
+ [k: string]: unknown;
2284
+ }
2285
+ ```
2286
+
2287
+ Fields:
2288
+
2289
+ - **` slots `**: Slot summaries included in the keeper response.
2290
+
2291
+ ### KeySlotSummary
2292
+
2293
+ Keeper-reported slot threshold, key epoch and optional rule or activity metadata.
2294
+
2295
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/offchain.ts#L75)
2296
+
2297
+ ```ts
2298
+ export interface KeySlotSummary {
2299
+ key_slot_id: string;
2300
+ threshold_k: number;
2301
+ threshold_n: number;
2302
+ epoch: number;
2303
+ group_public_key?: string | null;
2304
+ dcql_rule?: string | null;
2305
+ mode?: string;
2306
+ created_at?: string;
2307
+ last_signed_at?: string | null;
2308
+ [k: string]: unknown;
2309
+ }
2310
+ ```
2311
+
2312
+ Fields:
2313
+
2314
+ - **` key_slot_id `**: Slot identifier returned by the keeper.
2315
+ - **` threshold_k `**: Required threshold shares reported for the slot.
2316
+ - **` threshold_n `**: Total assigned participants reported for the slot.
2317
+ - **` epoch `**: Slot key epoch reported by the keeper.
2318
+ - **` group_public_key `**: Encoded group public key, or null when the service has no ready key.
2319
+ - **` dcql_rule `**: Disclosed authorization rule text, when included by the service.
2320
+ - **` mode `**: Slot key mode reported by the keeper.
2321
+ - **` created_at `**: Creation timestamp string reported by the service.
2322
+ - **` last_signed_at `**: Most recent signing timestamp reported by the service, or null when absent.
2323
+
2324
+ ### MeteringReply
2325
+
2326
+ Keeper-reported operation counts for a slot and optional subject breakdown.
2327
+
2328
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/offchain.ts#L124)
2329
+
2330
+ ```ts
2331
+ export interface MeteringReply {
2332
+ key_slot_id: string;
2333
+ since?: string;
2334
+ until?: string;
2335
+ total: number;
2336
+ by_subject?: Array<{
2337
+ subject: string;
2338
+ count: number;
2339
+ }>;
2340
+ attestation?: unknown;
2341
+ [k: string]: unknown;
2342
+ }
2343
+ ```
2344
+
2345
+ Fields:
2346
+
2347
+ - **` key_slot_id `**: Slot identifier whose operation counts were requested.
2348
+ - **` since `**: Start of the reporting interval, when supplied by the service.
2349
+ - **` until `**: End of the reporting interval, when supplied by the service.
2350
+ - **` total `**: Total operations counted by the service.
2351
+ - **` by_subject `**: Optional operation counts grouped by subject.
2352
+ - **` attestation `**: Optional service-provided attestation; this read helper does not verify it.
2353
+
2354
+ ### NetworkManifest
2355
+
2356
+ Versioned network deployment record published in tasra-releases.
2357
+
2358
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/manifest.ts#L43)
2359
+
2360
+ ```ts
2361
+ export interface NetworkManifest {
2362
+ schemaVersion: 1;
2363
+ network: NetworkName;
2364
+ chainId: number;
2365
+ deploymentId: string;
2366
+ revision: number;
2367
+ status: 'planned' | 'active' | 'retired';
2368
+ protocolVersion: string;
2369
+ verifiedAt: {
2370
+ blockNumber: string;
2371
+ blockHash: Hex;
2372
+ timestamp: string;
2373
+ } | null;
2374
+ contracts: ContractRecord[];
2375
+ services: {
2376
+ kind: string;
2377
+ url: string;
2378
+ }[];
2379
+ }
2380
+ ```
2381
+
2382
+ Fields:
2383
+
2384
+ - **` schemaVersion `**: Network manifest schema version.
2385
+ - **` network `**: Network profile associated with this deployment.
2386
+ - **` chainId `**: EVM chain ID matching the selected network profile.
2387
+ - **` deploymentId `**: Stable deployment identifier.
2388
+ - **` revision `**: Positive revision number of this deployment record.
2389
+ - **` status `**: Lifecycle state; only active records can configure live clients.
2390
+ - **` protocolVersion `**: Network protocol compatibility version.
2391
+ - **` verifiedAt `**: Canonical block and timestamp recorded when deployment evidence was collected.
2392
+ - **` contracts `**: Contract addresses and deployment evidence.
2393
+ - **` services `**: Public service endpoints advertised by this network.
2394
+
2395
+ ### NetworkName
2396
+
2397
+ Supported network profile identifier.
2398
+
2399
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/networks.ts#L7)
2400
+
2401
+ ```ts
2402
+ export type NetworkName = 'local' | 'testnet' | 'mainnet';
2403
+ ```
2404
+
2405
+ ### NetworkPreset
2406
+
2407
+ Default network currency, RPC, governance and token configuration.
2408
+
2409
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/networks.ts#L11)
2410
+
2411
+ ```ts
2412
+ export interface NetworkPreset {
2413
+ readonly chainId: number;
2414
+ readonly rpcUrl: string;
2415
+ readonly nativeCurrency: Readonly<{
2416
+ name: string;
2417
+ symbol: string;
2418
+ decimals: number;
2419
+ }>;
2420
+ readonly eurc: Readonly<{
2421
+ kind: 'mock' | 'circle';
2422
+ address: string | null;
2423
+ name: string;
2424
+ symbol: string;
2425
+ decimals: number;
2426
+ faucet: boolean;
2427
+ }>;
2428
+ readonly governance: Readonly<{
2429
+ delaySecs: number;
2430
+ floorSecs: number;
2431
+ }>;
2432
+ readonly productionPosture: boolean;
2433
+ }
2434
+ ```
2435
+
2436
+ Fields:
2437
+
2438
+ - **` chainId `**: Default EVM chain identifier for this network profile.
2439
+ - **` rpcUrl `**: Default JSON-RPC endpoint; deployed configuration may supply an explicit override.
2440
+ - **` nativeCurrency `**: Native gas-token name, symbol and decimal precision.
2441
+ - **` eurc `**: EURC token policy, metadata and faucet eligibility; address may require deployment resolution.
2442
+ - **` governance `**: Configured governance delay and minimum delay, both in seconds.
2443
+ - **` productionPosture `**: Deployment-policy flag carried by the profile; the SDK does not use it to establish network readiness.
2444
+
2445
+ ### NodeInfo
2446
+
2447
+ Keeper-reported runtime and connectivity metadata; fields depend on the server response.
2448
+
2449
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/offchain.ts#L52)
2450
+
2451
+ ```ts
2452
+ export interface NodeInfo {
2453
+ peer_id?: string;
2454
+ node_identifier?: number;
2455
+ version?: string;
2456
+ build_profile?: string;
2457
+ uptime_secs?: number;
2458
+ connected_peers?: number | null;
2459
+ rate_limit_enabled?: boolean;
2460
+ admin_scope_enabled?: boolean;
2461
+ [k: string]: unknown;
2462
+ }
2463
+ ```
2464
+
2465
+ Fields:
2466
+
2467
+ - **` peer_id `**: Keeper-reported network peer identifier.
2468
+ - **` node_identifier `**: Keeper-reported node identifier.
2469
+ - **` version `**: Keeper software version reported by the service.
2470
+ - **` build_profile `**: Build profile reported by the keeper.
2471
+ - **` uptime_secs `**: Keeper process uptime in seconds, as reported by the service.
2472
+ - **` connected_peers `**: Reported connected-peer count, or null when unavailable.
2473
+ - **` rate_limit_enabled `**: Whether the keeper reports rate limiting as enabled.
2474
+ - **` admin_scope_enabled `**: Whether the keeper reports administrative scope checks as enabled.
2475
+
2476
+ ### ProposeRuleArgs
2477
+
2478
+ A rule amendment: the new rule (a clear rule string, or an authored Rego policy the SDK packs
2479
+ into a `kk_oauth` envelope) for an existing slot, committed with the slot's saved rule salt.
2480
+
2481
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/write.ts#L323)
2482
+
2483
+ ```ts
2484
+ export type ProposeRuleArgs = ({
2485
+ rule: string;
2486
+ } | {
2487
+ oauthPolicy: OauthPolicyInput;
2488
+ }) & {
2489
+ slotId: Hex;
2490
+ ruleSalt: Hex;
2491
+ };
2492
+ ```
2493
+
2494
+ Fields:
2495
+
2496
+ - **` slotId `**: 32-byte identifier of the slot whose rule changes.
2497
+ - **` ruleSalt `**: The slot's rule salt (from creation). Amendments reuse it; it is never minted here.
2498
+
2499
+ ### ProposeRuleResult
2500
+
2501
+ A confirmed `proposeRuleUpdate`, decoded from its `RuleUpdateProposed` event.
2502
+
2503
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/write.ts#L331)
2504
+
2505
+ ```ts
2506
+ export interface ProposeRuleResult {
2507
+ slotId: Hex;
2508
+ txHash: Hex;
2509
+ version: number;
2510
+ notBefore: number;
2511
+ ruleCommitment: Hex;
2512
+ ruleSalt: Hex;
2513
+ rule: string;
2514
+ relay?: RelayReceipt;
2515
+ }
2516
+ ```
2517
+
2518
+ Fields:
2519
+
2520
+ - **` slotId `**: Slot whose rule amendment was proposed.
2521
+ - **` txHash `**: Transaction that carried the proposal.
2522
+ - **` version `**: Amendment version the contract assigned.
2523
+ - **` notBefore `**: Chain time (Unix seconds) from which the amendment may activate.
2524
+ - **` ruleCommitment `**: Salted commitment of the proposed rule.
2525
+ - **` ruleSalt `**: Rule salt the commitment was computed with.
2526
+ - **` rule `**: Exact rule string committed; deliver exactly this to the keepers.
2527
+ - **` relay `**: Relay receipt, when the proposal was gas-sponsored.
2528
+
2529
+ ### ProvisionRuleArgs
2530
+
2531
+ Creator-signed rule delivery request with the private salt used at slot creation.
2532
+
2533
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/provisionRule.ts#L41)
2534
+
2535
+ ```ts
2536
+ export interface ProvisionRuleArgs extends RuleInput {
2537
+ slotId: Hex;
2538
+ ruleSalt: Hex;
2539
+ signer: TypedDataSigner;
2540
+ ttlSecs?: number;
2541
+ nowSecs?: number;
2542
+ description?: string;
2543
+ signal?: AbortSignal;
2544
+ keeperUrls?: string[];
2545
+ fetchImpl?: typeof fetch;
2546
+ expect?: 'active' | 'pending';
2547
+ retryConflictMs?: number;
2548
+ delegation?: PresentationDelegation;
2549
+ }
2550
+ ```
2551
+
2552
+ Fields:
2553
+
2554
+ - **` slotId `**: 32-byte identifier of the slot to provision.
2555
+ - **` ruleSalt `**: The 32-byte rule salt `createSlot` returned. It exists NOWHERE else.
2556
+ - **` signer `**: The slot's creator key (or a key it delegated to).
2557
+ - **` ttlSecs `**: Seconds the authorisation stays valid (default 600; the keeper caps at 3600).
2558
+ - **` nowSecs `**: Authorization issue time in Unix seconds; defaults to the current clock.
2559
+ - **` description `**: Consent description included in the creator signature.
2560
+ - **` signal `**: Cancel pending keeper HTTP requests.
2561
+ - **` keeperUrls `**: Overrides the on-chain committee; for tests and for a topology chain cannot see.
2562
+ - **` fetchImpl `**: HTTP implementation used for rule delivery.
2563
+ - **` expect `**: Which rule the keepers must store. `'active'` (default) is the slot's current rule, delivered once per keeper exactly as before. `'pending'` is a proposed amendment: a keeper that has not yet ingested the proposal is retried, and a keeper that stores it as the ACTIVE rule is an error.
2564
+ - **` retryConflictMs `**: Milliseconds to keep retrying a keeper that has not yet ingested the proposal, every 3 s (default 120000). Used only with `expect: 'pending'`, and must not exceed `ttlSecs`, because one signature serves every retry.
2565
+ - **` delegation `**: A creator delegation authorizing `signer` to deliver for the creator. A rule admin delivering a pending amendment signs without one; keepers do not accept an admin delegation.
2566
+ - **` rule `**: Clear rule. OAuth and wallet policies share the DCQL grammar.
2567
+
2568
+ ### ProvisionRuleResult
2569
+
2570
+ Committed rule hash and per-keeper delivery outcomes.
2571
+
2572
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/provisionRule.ts#L124)
2573
+
2574
+ ```ts
2575
+ export interface ProvisionRuleResult {
2576
+ slotId: Hex;
2577
+ ruleCommitment: Hex;
2578
+ results: KeeperProvisionResult[];
2579
+ }
2580
+ ```
2581
+
2582
+ Fields:
2583
+
2584
+ - **` slotId `**: Slot whose authorization rule was delivered.
2585
+ - **` ruleCommitment `**: Salted commitment computed from the submitted rule and saved salt.
2586
+ - **` results `**: Delivery result for each selected keeper.
2587
+
2588
+ ### RegisteredAgentSession
2589
+
2590
+ Session pinned to its authenticated provider, with a closure for polling that provider.
2591
+
2592
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/registeredAgent.ts#L33)
2593
+
2594
+ ```ts
2595
+ export interface RegisteredAgentSession extends Readonly<CreateSessionResult> {
2596
+ readonly profile: Readonly<ApprovedAgentProfile>;
2597
+ poll(signal?: AbortSignal): Promise<SessionStatusResult>;
2598
+ }
2599
+ ```
2600
+
2601
+ Fields:
2602
+
2603
+ - **` profile `**: Provider identity and endpoint pinned when the session was opened.
2604
+ - **` poll `**: Poll only the original endpoint/profile. A provider change requires a fresh wallet session.
2605
+ - **` sessionId `**: Opened authorization session identifier.
2606
+ - **` pollSecret `**: Bearer token for polling - treat as a secret
2607
+ - **` qrPayload `**: OpenID4VP deep link for a wallet or QR code.
2608
+ - **` requestUri `**: URL from which the wallet retrieves the signed request.
2609
+
2610
+ ### RegisteredRelayConfig
2611
+
2612
+ Approved relay providers, pinned forwarder and durable recovery callbacks.
2613
+
2614
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/registeredRelay.ts#L36)
2615
+
2616
+ ```ts
2617
+ export interface RegisteredRelayConfig {
2618
+ approvals: readonly ServiceApproval[];
2619
+ transport: RelayTransport;
2620
+ forwarder: Address;
2621
+ label?: string;
2622
+ persistAttempt?: (attempt: RelayAttempt) => Promise<void>;
2623
+ resumeAttempt?: (intent: RelayIntent) => Promise<RelayAttempt | undefined>;
2624
+ pollMs?: number;
2625
+ timeoutMs?: number;
2626
+ maxAttempts?: number;
2627
+ attemptMs?: number;
2628
+ }
2629
+ ```
2630
+
2631
+ Fields:
2632
+
2633
+ - **` approvals `**: Application approvals, in preference order. Registry membership alone never selects a service.
2634
+ - **` transport `**: Guarded HTTP transport for service authentication and relay submission.
2635
+ - **` forwarder `**: Independently pinned deployment forwarder; never supplied by a relayer manifest.
2636
+ - **` label `**: Default operation label used when persisting or resuming relay attempts.
2637
+ - **` persistAttempt `**: Persist the signed reconciliation handle before its first POST.
2638
+ - **` resumeAttempt `**: Load this durable operation's previous attempt before signing, including after a restart.
2639
+ - **` pollMs `**: Relay status polling interval in milliseconds; defaults to 1500.
2640
+ - **` timeoutMs `**: Deadline in milliseconds after a submission leaves the serialization queue; defaults to 120000 and cannot exceed it.
2641
+ - **` maxAttempts `**: At most three authenticated providers receive the identical signed request.
2642
+ - **` attemptMs `**: Status polling budget per provider in milliseconds; defaults to 10000 and cannot exceed 30000.
2643
+
2644
+ ### RegisteredVerifierAgentSession
2645
+
2646
+ Authenticated provider session bound to one signed operation and request hash.
2647
+
2648
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/registeredOperation.ts#L13)
2649
+
2650
+ ```ts
2651
+ export interface RegisteredVerifierAgentSession extends RegisteredAgentSession {
2652
+ readonly operation: PresentationOperation;
2653
+ readonly requestHash: Uint8Array;
2654
+ readonly verifierAgentUrl: string;
2655
+ }
2656
+ ```
2657
+
2658
+ Fields:
2659
+
2660
+ - **` operation `**: Creator-signed operation associated with this session.
2661
+ - **` requestHash `**: Defensive copy of the operation request hash.
2662
+ - **` verifierAgentUrl `**: Authenticated provider endpoint retained for this session.
2663
+ - **` profile `**: Provider identity and endpoint pinned when the session was opened.
2664
+ - **` poll `**: Poll only the original endpoint/profile. A provider change requires a fresh wallet session.
2665
+ - **` sessionId `**: Opened authorization session identifier.
2666
+ - **` pollSecret `**: Bearer token for polling - treat as a secret
2667
+ - **` qrPayload `**: OpenID4VP deep link for a wallet or QR code.
2668
+ - **` requestUri `**: URL from which the wallet retrieves the signed request.
2669
+
2670
+ ### RelayAttempt
2671
+
2672
+ JSON-safe reconciliation handle. Persist before POST to resume safely after a client restart.
2673
+
2674
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/registeredRelay.ts#L95)
2675
+
2676
+ ```ts
2677
+ export interface RelayAttempt {
2678
+ chainId: number;
2679
+ forwarder: Address;
2680
+ fromBlock: string;
2681
+ id: Hex;
2682
+ request: {
2683
+ from: Address;
2684
+ to: Address;
2685
+ value: '0';
2686
+ gas: number;
2687
+ nonce: number;
2688
+ deadline: number;
2689
+ data: Hex;
2690
+ signature: Hex;
2691
+ label: string;
2692
+ };
2693
+ }
2694
+ ```
2695
+
2696
+ Fields:
2697
+
2698
+ - **` chainId `**: Chain bound into the signed forward request.
2699
+ - **` forwarder `**: Pinned forwarder contract expected to execute the request.
2700
+ - **` fromBlock `**: Decimal block number from which reconciliation scans execution logs.
2701
+ - **` id `**: EIP-712 hash identifying the exact signed forward request.
2702
+ - **` request `**: Signed sender, target, calldata, gas, nonce and deadline used for submission and reconciliation.
2703
+
2704
+ ### RelayConfig
2705
+
2706
+ Approved relay configuration for gas-sponsored sender-bound contract calls. The creator signs the forward request; the relayer pays gas. ERC-20 approvals still require direct transactions.
2707
+
2708
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/write.ts#L145)
2709
+
2710
+ ```ts
2711
+ export type RelayConfig = RegisteredRelayConfig;
2712
+ ```
2713
+
2714
+ Fields:
2715
+
2716
+ - **` approvals `**: Application approvals, in preference order. Registry membership alone never selects a service.
2717
+ - **` transport `**: Guarded HTTP transport for service authentication and relay submission.
2718
+ - **` forwarder `**: Independently pinned deployment forwarder; never supplied by a relayer manifest.
2719
+ - **` label `**: Default operation label used when persisting or resuming relay attempts.
2720
+ - **` persistAttempt `**: Persist the signed reconciliation handle before its first POST.
2721
+ - **` resumeAttempt `**: Load this durable operation's previous attempt before signing, including after a restart.
2722
+ - **` pollMs `**: Relay status polling interval in milliseconds; defaults to 1500.
2723
+ - **` timeoutMs `**: Deadline in milliseconds after a submission leaves the serialization queue; defaults to 120000 and cannot exceed it.
2724
+ - **` maxAttempts `**: At most three authenticated providers receive the identical signed request.
2725
+ - **` attemptMs `**: Status polling budget per provider in milliseconds; defaults to 10000 and cannot exceed 30000.
2726
+
2727
+ ### RelayIntent
2728
+
2729
+ Chain, forwarder, signer and exact calldata identifying a relay operation.
2730
+
2731
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/registeredRelay.ts#L18)
2732
+
2733
+ ```ts
2734
+ export interface RelayIntent {
2735
+ chainId: number;
2736
+ forwarder: Address;
2737
+ from: Address;
2738
+ to: Address;
2739
+ data: Hex;
2740
+ label: string;
2741
+ }
2742
+ ```
2743
+
2744
+ Fields:
2745
+
2746
+ - **` chainId `**: Chain on which the forwarded call is intended to execute.
2747
+ - **` forwarder `**: Independently pinned forwarding contract.
2748
+ - **` from `**: Account authorizing the forwarded operation.
2749
+ - **` to `**: Target contract of the forwarded operation.
2750
+ - **` data `**: Exact encoded calldata to execute.
2751
+ - **` label `**: Application label used to locate the operation recovery record.
2752
+
2753
+ ### RelayReceipt
2754
+
2755
+ Verified forwarded transaction result with optional gas and native-token cost.
2756
+
2757
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/registeredRelay.ts#L62)
2758
+
2759
+ ```ts
2760
+ export interface RelayReceipt {
2761
+ id: string;
2762
+ txHash: Hex;
2763
+ gasUsed?: number;
2764
+ costWei?: string;
2765
+ }
2766
+ ```
2767
+
2768
+ Fields:
2769
+
2770
+ - **` id `**: Signed relay-request identifier.
2771
+ - **` txHash `**: Verified forwarded transaction hash.
2772
+ - **` gasUsed `**: Gas consumed by the forwarded transaction, when reported.
2773
+ - **` costWei `**: Native-token transaction cost in base units, encoded as decimal text.
2774
+
2775
+ ### RelayReconciliation
2776
+
2777
+ Reconciled relay outcome. A receipt proves execution. Expired means the deadline passed with the nonce unused. Unresolvable means the nonce was consumed beyond the available log window; execution remains unknown and must not be retried as a new operation.
2778
+
2779
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/registeredRelay.ts#L167)
2780
+
2781
+ ```ts
2782
+ export interface RelayReconciliation {
2783
+ receipt?: RelayReceipt;
2784
+ expired: boolean;
2785
+ unresolvable?: boolean;
2786
+ }
2787
+ ```
2788
+
2789
+ Fields:
2790
+
2791
+ - **` receipt `**: Verified successful execution receipt, when found.
2792
+ - **` expired `**: Whether the deadline passed while the request nonce remained unused.
2793
+ - **` unresolvable `**: Whether the consumed nonce predates the available log scan, leaving execution unknown.
2794
+
2795
+ ### RelayTransport
2796
+
2797
+ Guarded discovery and transaction relay transport with bounded response bodies.
2798
+
2799
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/registeredRelay.ts#L10)
2800
+
2801
+ ```ts
2802
+ export interface RelayTransport extends ServiceDiscoveryTransport {
2803
+ relayRequest(url: string, options: {
2804
+ body?: Uint8Array;
2805
+ maxBytes: number;
2806
+ signal: AbortSignal;
2807
+ }): Promise<Uint8Array>;
2808
+ }
2809
+ ```
2810
+
2811
+ Fields:
2812
+
2813
+ - **` relayRequest `**: Guard the socket just like discovery. Accept bounded JSON status bodies for 200/202/422.
2814
+ - **` request `**: Perform a bounded request using the required destination, TLS and cancellation policy; return response bytes.
2815
+
2816
+ ### ResolvedEndpoints
2817
+
2818
+ How the session's endpoints were resolved from chain - surfaced so callers can see
2819
+ which verifier was chosen and which keeper committee the slot is bound to.
2820
+
2821
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/slotClient.ts#L26)
2822
+
2823
+ ```ts
2824
+ export interface ResolvedEndpoints {
2825
+ slotId: string;
2826
+ nodes: string[];
2827
+ verifier: string;
2828
+ verifierCount: number;
2829
+ }
2830
+ ```
2831
+
2832
+ Fields:
2833
+
2834
+ - **` slotId `**: Slot identifier used to resolve the assigned service endpoints.
2835
+ - **` nodes `**: The slot's on-chain assigned keeper node URLs.
2836
+ - **` verifier `**: The verifier chosen (at random) from the on-chain set - it issued the JWT.
2837
+ - **` verifierCount `**: Size of the on-chain verifier set the choice was drawn from.
2838
+
2839
+ ### ResolvedNetworkProfile
2840
+
2841
+ Validated network profile with a concrete EURC contract address.
2842
+
2843
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/networks.ts#L28)
2844
+
2845
+ ```ts
2846
+ export interface ResolvedNetworkProfile extends NetworkPreset {
2847
+ readonly environment: NetworkName;
2848
+ readonly eurc: NetworkPreset['eurc'] & {
2849
+ readonly address: Address;
2850
+ };
2851
+ }
2852
+ ```
2853
+
2854
+ Fields:
2855
+
2856
+ - **` environment `**: Network profile selected when validating the chain and token address.
2857
+ - **` eurc `**: Validated EURC policy with a concrete nonzero token contract address.
2858
+ - **` chainId `**: Default EVM chain identifier for this network profile.
2859
+ - **` rpcUrl `**: Default JSON-RPC endpoint; deployed configuration may supply an explicit override.
2860
+ - **` nativeCurrency `**: Native gas-token name, symbol and decimal precision.
2861
+ - **` governance `**: Configured governance delay and minimum delay, both in seconds.
2862
+ - **` productionPosture `**: Deployment-policy flag carried by the profile; the SDK does not use it to establish network readiness.
2863
+
2864
+ ### RuleAmendmentErrorCode
2865
+
2866
+ Stable refusal categories of the rule-amendment API; branch on `code`, never on the message.
2867
+ `timelock`, `below-threshold` and `timeout` may succeed later; every other code needs a change first.
2868
+
2869
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/ruleAmendmentCore.ts#L21)
2870
+
2871
+ ```ts
2872
+ export type RuleAmendmentErrorCode =
2873
+ | 'no-slot'
2874
+ | 'immutable'
2875
+ | 'not-admin'
2876
+ | 'pending'
2877
+ | 'same-rule'
2878
+ | 'wrong-auth-type'
2879
+ | 'not-admissible'
2880
+ | 'no-pending'
2881
+ | 'timelock'
2882
+ | 'below-threshold'
2883
+ | 'not-guardian'
2884
+ | 'not-deliverer'
2885
+ | 'not-pending'
2886
+ | 'pending-changed'
2887
+ | 'timeout'
2888
+ | 'not-activated';
2889
+ ```
2890
+
2891
+ ### RuleAmendmentStatus
2892
+
2893
+ A slot's rule and amendment state as the chain records it.
2894
+
2895
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/ruleAmendment.ts#L42)
2896
+
2897
+ ```ts
2898
+ export interface RuleAmendmentStatus {
2899
+ ruleCommitment: Hex;
2900
+ ruleVersion: number;
2901
+ authType: SlotAuthType;
2902
+ policy: {
2903
+ admin: Address;
2904
+ guardian?: Address;
2905
+ timelockSecs: number;
2906
+ } | null;
2907
+ pending: {
2908
+ version: number;
2909
+ ruleCommitment: Hex;
2910
+ notBefore: number;
2911
+ adoptions: number;
2912
+ needed: number;
2913
+ } | null;
2914
+ }
2915
+ ```
2916
+
2917
+ Fields:
2918
+
2919
+ - **` ruleCommitment `**: Salted commitment of the ACTIVE rule.
2920
+ - **` ruleVersion `**: Version of the active rule.
2921
+ - **` authType `**: Authorization family recorded at creation.
2922
+ - **` policy `**: Who may amend the rule and how slowly; `null` means the rule is immutable.
2923
+ - **` pending `**: The pending amendment with its keeper adoption votes, or `null` when none is pending.
2924
+
2925
+ ### RuleInput
2926
+
2927
+ Clear authorization policy, not its salted on-chain commitment.
2928
+
2929
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/ruleInput.ts#L2)
2930
+
2931
+ ```ts
2932
+ export interface RuleInput {
2933
+ rule: string;
2934
+ }
2935
+ ```
2936
+
2937
+ Fields:
2938
+
2939
+ - **` rule `**: Clear rule. OAuth and wallet policies share the DCQL grammar.
2940
+
2941
+ ### ServiceApproval
2942
+
2943
+ Pin the approved revision so an endpoint, key or provider change requires a new decision.
2944
+
2945
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/services.ts#L57)
2946
+
2947
+ ```ts
2948
+ export interface ServiceApproval {
2949
+ chainId: number;
2950
+ registry: Address;
2951
+ serviceId: Hex;
2952
+ serviceType: ServiceType;
2953
+ owner: Address;
2954
+ revision: bigint;
2955
+ manifestHash: Hex;
2956
+ }
2957
+ ```
2958
+
2959
+ Fields:
2960
+
2961
+ - **` chainId `**: Approved EVM chain ID.
2962
+ - **` registry `**: Approved ServiceRegistry address.
2963
+ - **` serviceId `**: Stable identifier of the approved service.
2964
+ - **` serviceType `**: Expected service capability family.
2965
+ - **` owner `**: Approved provider owner address.
2966
+ - **` revision `**: Exact approved registry revision.
2967
+ - **` manifestHash `**: Approved hash of the canonical service manifest.
2968
+
2969
+ ### ServiceChallenge
2970
+
2971
+ JSON wire shape. Revision is decimal text to preserve all uint64 values in JavaScript.
2972
+
2973
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/serviceIdentity.ts#L58)
2974
+
2975
+ ```ts
2976
+ export interface ServiceChallenge {
2977
+ version: 1;
2978
+ chainId: number;
2979
+ registry: Address;
2980
+ serviceId: Hex;
2981
+ revision: string;
2982
+ endpoint: string;
2983
+ manifestHash: Hex;
2984
+ nonce: Hex;
2985
+ expiresAt: number;
2986
+ }
2987
+ ```
2988
+
2989
+ Fields:
2990
+
2991
+ - **` version `**: Service challenge format version; currently 1.
2992
+ - **` chainId `**: Chain containing the approved service identity.
2993
+ - **` registry `**: ServiceRegistry contract for the challenge.
2994
+ - **` serviceId `**: Registered service identity that must answer the challenge.
2995
+ - **` revision `**: Approved uint64 registry revision represented as decimal text.
2996
+ - **` endpoint `**: Canonical HTTPS endpoint bound into the challenge.
2997
+ - **` manifestHash `**: Approved hash of the canonical service manifest bytes.
2998
+ - **` nonce `**: Fresh 32-byte challenge nonce encoded as lowercase hexadecimal.
2999
+ - **` expiresAt `**: Challenge expiration time in Unix seconds.
3000
+
3001
+ ### ServiceDiscoveryTransport
3002
+
3003
+ Trusted transport boundary. Implementations must enforce destination policy at connection time,
3004
+ verified TLS, no redirects/proxies/credentials, body limits and cancellation. Use chain/node in Node.
3005
+ Native browser fetch cannot enforce DNS policy; it is intentionally not a default implementation.
3006
+
3007
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/serviceIdentity.ts#L234)
3008
+
3009
+ ```ts
3010
+ export interface ServiceDiscoveryTransport {
3011
+ request(url: string, options: {
3012
+ body?: Uint8Array;
3013
+ maxBytes: number;
3014
+ signal: AbortSignal;
3015
+ }): Promise<Uint8Array>;
3016
+ }
3017
+ ```
3018
+
3019
+ Fields:
3020
+
3021
+ - **` request `**: Perform a bounded request using the required destination, TLS and cancellation policy; return response bytes.
3022
+
3023
+ ### ServiceManifest
3024
+
3025
+ Canonical public metadata binding a service endpoint to its registry identity.
3026
+
3027
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/serviceIdentity.ts#L38)
3028
+
3029
+ ```ts
3030
+ export interface ServiceManifest {
3031
+ schemaVersion: 1;
3032
+ chainId: number;
3033
+ registry: Address;
3034
+ serviceId: Hex;
3035
+ serviceType: ServiceType;
3036
+ endpoint: string;
3037
+ protocol: typeof SERVICE_IDENTITY_PROTOCOL;
3038
+ capabilities: string[];
3039
+ }
3040
+ ```
3041
+
3042
+ Fields:
3043
+
3044
+ - **` schemaVersion `**: Service manifest encoding version; currently 1.
3045
+ - **` chainId `**: Chain on which the service identity is registered.
3046
+ - **` registry `**: ServiceRegistry contract holding the approved identity.
3047
+ - **` serviceId `**: 32-byte registered service identifier.
3048
+ - **` serviceType `**: Registered service category: relayer, verifier agent or vault service.
3049
+ - **` endpoint `**: Canonical HTTPS service base URL pinned by the manifest.
3050
+ - **` protocol `**: Required service identity protocol identifier.
3051
+ - **` capabilities `**: Unique capability names committed in the service manifest.
3052
+
3053
+ ### ServiceRecord
3054
+
3055
+ Provider claims, not authenticated endpoints or platform endorsements.
3056
+
3057
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/services.ts#L21)
3058
+
3059
+ ```ts
3060
+ export interface ServiceRecord {
3061
+ owner: Address;
3062
+ pendingOwner: Address;
3063
+ authKey: Address;
3064
+ serviceType: ServiceType;
3065
+ status: ServiceStatus;
3066
+ revision: bigint;
3067
+ manifestHash: Hex;
3068
+ endpoint: string;
3069
+ }
3070
+ ```
3071
+
3072
+ Fields:
3073
+
3074
+ - **` owner `**: Current provider account controlling the registration.
3075
+ - **` pendingOwner `**: Account nominated for ownership transfer; zero when none is pending.
3076
+ - **` authKey `**: Address whose key must sign endpoint identity challenges.
3077
+ - **` serviceType `**: Registered capability family.
3078
+ - **` status `**: Provider lifecycle state.
3079
+ - **` revision `**: Registry revision used to detect changed provider metadata.
3080
+ - **` manifestHash `**: Keccak-256 digest of the exact published manifest bytes.
3081
+ - **` endpoint `**: Registered canonical HTTPS service base URL.
3082
+
3083
+ ### ServiceStatus
3084
+
3085
+ Registry lifecycle status indicating whether a service accepts new work.
3086
+
3087
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/services.ts#L18)
3088
+
3089
+ ```ts
3090
+ export type ServiceStatus = (typeof SERVICE_STATUSES)[keyof typeof SERVICE_STATUSES];
3091
+ ```
3092
+
3093
+ ### ServiceType
3094
+
3095
+ Registry ordinal identifying a gas relay, verifier agent or vault service.
3096
+
3097
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/services.ts#L14)
3098
+
3099
+ ```ts
3100
+ export type ServiceType = (typeof SERVICE_TYPES)[keyof typeof SERVICE_TYPES];
3101
+ ```
3102
+
3103
+ ### SignedHeartbeat
3104
+
3105
+ Operator heartbeat carrying an epoch, public key and signature; reading it does not verify it.
3106
+
3107
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/offchain.ts#L109)
3108
+
3109
+ ```ts
3110
+ export interface SignedHeartbeat {
3111
+ operator: string;
3112
+ epoch: number;
3113
+ pubkey: string;
3114
+ signature: string;
3115
+ [k: string]: unknown;
3116
+ }
3117
+ ```
3118
+
3119
+ Fields:
3120
+
3121
+ - **` operator `**: Operator address claimed by the heartbeat.
3122
+ - **` epoch `**: Heartbeat epoch reported by the operator; not a slot key epoch.
3123
+ - **` pubkey `**: Encoded public key included with the heartbeat.
3124
+ - **` signature `**: Encoded heartbeat signature; callers must verify it before trusting the heartbeat.
3125
+
3126
+ ### SlotAuthType
3127
+
3128
+ Authorization family recorded at creation. The default unspecified value declares no family. This label is not included in the committee-selection commitment.
3129
+
3130
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/write.ts#L115)
3131
+
3132
+ ```ts
3133
+ export type SlotAuthType = 'unspecified' | 'oid4vp' | 'oauth';
3134
+ ```
3135
+
3136
+ ### SlotCommitteeDecryptOptions
3137
+
3138
+ Everything a committee-authorized threshold decrypt needs beyond the slot id.
3139
+
3140
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/committeeClient.ts#L80)
3141
+
3142
+ ```ts
3143
+ export interface SlotCommitteeDecryptOptions {
3144
+ ciphertext: Ciphertext;
3145
+ identity: Uint8Array;
3146
+ decryptingSet: number[];
3147
+ blsPeers: BlsPeer[];
3148
+ userSignature?: Uint8Array;
3149
+ ciphertextEpoch?: number;
3150
+ targetKeykeeper?: string;
3151
+ }
3152
+ ```
3153
+
3154
+ Fields:
3155
+
3156
+ - **` ciphertext `**: Group ciphertext to decrypt through committee authorization.
3157
+ - **` identity `**: Original associated data used when encrypting the group ciphertext.
3158
+ - **` decryptingSet `**: BLS identifiers (k..n, distinct) to run the ceremony with.
3159
+ - **` blsPeers `**: The libp2p peers for those identifiers.
3160
+ - **` userSignature `**: Optional Ed25519 slot-owner signature required by the keeper policy.
3161
+ - **` ciphertextEpoch `**: Expected slot key epoch for detecting ciphertext-key rotation.
3162
+ - **` targetKeykeeper `**: Pin the keeper this request targets (anti-Sybil); an on-chain assigned operator.
3163
+
3164
+ ### SlotCommitteeSignOptions
3165
+
3166
+ Per-call overrides for a committee-authorized FROST signature.
3167
+
3168
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/committeeClient.ts#L69)
3169
+
3170
+ ```ts
3171
+ export interface SlotCommitteeSignOptions {
3172
+ signingSet?: number[];
3173
+ userSignature?: Uint8Array;
3174
+ targetKeykeeper?: string;
3175
+ }
3176
+ ```
3177
+
3178
+ Fields:
3179
+
3180
+ - **` signingSet `**: Optional FROST participant identifiers selected for signing.
3181
+ - **` userSignature `**: Optional Ed25519 slot-owner approval signature for the signing request.
3182
+ - **` targetKeykeeper `**: Pin the keeper this request targets (anti-Sybil). Must be one of the slot's on-chain assigned operators; there is no way to point at an off-chain node.
3183
+
3184
+ ### SlotGroupKey
3185
+
3186
+ The slot's on-chain group public key + epoch (and mode), for local envelope encrypt.
3187
+
3188
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/discovery.ts#L108)
3189
+
3190
+ ```ts
3191
+ export interface SlotGroupKey {
3192
+ publicKey: `0x${string}`;
3193
+ epoch: number;
3194
+ mode: number;
3195
+ }
3196
+ ```
3197
+
3198
+ Fields:
3199
+
3200
+ - **` publicKey `**: 0x-prefixed group public key (96-byte compressed G2 for a BLS slot).
3201
+ - **` epoch `**: Slot key epoch associated with the returned group public key.
3202
+ - **` mode `**: 0 = frost, 1 = bls (KeyRegistry.Mode). Encrypt applies to BLS slots.
3203
+
3204
+ ### SlotMode
3205
+
3206
+ The slot's key type, mirroring `KeyRegistry.Mode` on-chain:
3207
+ `frost` Ed25519 threshold signatures, `bls` BLS12-381 encryption/decryption,
3208
+ `tecdsa` secp256k1 threshold ECDSA (an EVM account - what `signEoaDigest` needs),
3209
+ `bls-bn254`, and `tecdsa-p256` (ES256). A deployment need not run keepers for
3210
+ every mode; creating a slot the network cannot key leaves it without a group key.
3211
+
3212
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/write.ts#L102)
3213
+
3214
+ ```ts
3215
+ export type SlotMode = 'frost' | 'bls' | 'tecdsa' | 'bls-bn254' | 'tecdsa-p256';
3216
+ ```
3217
+
3218
+ ### SlotSeed
3219
+
3220
+ What an accountant returns from `POST /v1/slot-seed`.
3221
+
3222
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/slotSeed.ts#L22)
3223
+
3224
+ ```ts
3225
+ export interface SlotSeed {
3226
+ commitment: Hex;
3227
+ digest: Hex;
3228
+ signature: Hex;
3229
+ }
3230
+ ```
3231
+
3232
+ Fields:
3233
+
3234
+ - **` commitment `**: Creation commitment for which the seed was requested.
3235
+ - **` digest `**: `KeyRegistry.commitSeedDigest(commitment)` - what the signature is over.
3236
+ - **` signature `**: The 64-byte BN254 G1 threshold signature; pass as `seedSig` to `revealKeySlotWithSeed`.
3237
+
3238
+ ### SlotSeedOptions
3239
+
3240
+ Accountant endpoint overrides and per-request timeout for committee seed discovery.
3241
+
3242
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/slotSeed.ts#L72)
3243
+
3244
+ ```ts
3245
+ export interface SlotSeedOptions {
3246
+ urls?: string[];
3247
+ timeoutMs?: number;
3248
+ }
3249
+ ```
3250
+
3251
+ Fields:
3252
+
3253
+ - **` urls `**: Accountant base URLs. Resolved from `NodeRegistry` when omitted.
3254
+ - **` timeoutMs `**: Per-accountant HTTP timeout. The round itself is bounded server-side.
3255
+
3256
+ ### TasraChainClient
3257
+
3258
+ A read client for a deployment: a configured viem client, log helpers and typed readers.
3259
+
3260
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/client.ts#L229)
3261
+
3262
+ ```ts
3263
+ export interface TasraChainClient {
3264
+ client: PublicClient;
3265
+ addresses: AddressBook;
3266
+ deployedContracts(): ContractName[];
3267
+ logSources(contracts?: ContractName[]): Array<{
3268
+ address: Address;
3269
+ contract: ContractName;
3270
+ }>;
3271
+ readMany<T>(contract: ContractName, functionName: string, argsList: readonly unknown[][], opts?: ReadManyOpts & {
3272
+ allowFailure?: true;
3273
+ }): Promise<Array<T | null>>;
3274
+ readMany<T>(contract: ContractName, functionName: string, argsList: readonly unknown[][], opts: ReadManyOpts & {
3275
+ allowFailure: false;
3276
+ }): Promise<T[]>;
3277
+ multicallAddress(): Promise<Address | null>;
3278
+ getBlockNumber(): Promise<bigint>;
3279
+ getLogsWindowed(opts: GetLogsWindowedOpts): Promise<DecodedEvent[]>;
3280
+ getBlockTimestamps(blockNumbers: Iterable<bigint>): Promise<Map<string, number>>;
3281
+ read<C extends ContractName>(contract: C, functionName: string, args?: readonly unknown[]): Promise<unknown>;
3282
+ readers: TasraChainReaders;
3283
+ }
3284
+ ```
3285
+
3286
+ Fields:
3287
+
3288
+ - **` client `**: The configured viem public client. No wallet, no signing. not multicall-batched: batching is applied explicitly in ` readMany `, so a chain without Multicall3 keeps working. Firing many reads concurrently through this client costs one request each - go through `readMany` for a per-item fan-out.
3289
+ - **` addresses `**: The deployment's resolved contract addresses.
3290
+ - **` deployedContracts `**: Return known contract names with configured addresses; this does not probe their deployed code.
3291
+ - **` logSources `**: Return distinct configured event-source addresses and their ABIs, including vesting tranches.
3292
+ - **` readMany `**: Read one view function across many argument lists. Batched via Multicall3 when available; a failing item is `null` unless `allowFailure: false`.
3293
+ - **` multicallAddress `**: The Multicall3 address `readMany` will batch through, or `null` when it will read items individually. Resolved once per client and cached; exposed so a caller can see which mode it is in rather than inferring it from request counts.
3294
+ - **` getBlockNumber `**: Read the current chain block number from the configured RPC.
3295
+ - **` getLogsWindowed `**: Scan an inclusive block range in windows and return decoded events.
3296
+ - **` getBlockTimestamps `**: Read Unix timestamps in seconds, keyed by decimal block-number strings.
3297
+ - **` read `**: Call a named read function through the configured address and known contract ABI.
3298
+ - **` readers `**: Contract-specific read methods bound to the configured deployment.
3299
+
3300
+ ### TasraSlotClient
3301
+
3302
+ Managed slot-session factory that resolves keeper and verifier endpoints from the registry.
3303
+
3304
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/slotClient.ts#L58)
3305
+
3306
+ ```ts
3307
+ export interface TasraSlotClient {
3308
+ openSession(slotId: string, auth: SessionAuth, opts?: OpenSessionOpts): Promise<Session>;
3309
+ resolveEndpoints(slotId: string): Promise<ResolvedEndpoints>;
3310
+ verifierDirectory(): Promise<CommitteeVerifier[]>;
3311
+ sessions(): readonly Session[];
3312
+ closeAll(): Promise<void>;
3313
+ }
3314
+ ```
3315
+
3316
+ Fields:
3317
+
3318
+ - **` openSession `**: Discover the slot's nodes + choose a verifier from chain, mint the JWT via that verifier, and return a managed session (encrypt / decrypt / sign).
3319
+ - **` resolveEndpoints `**: Resolve the endpoints for a slot WITHOUT opening a session (which verifier would be chosen + the slot's keeper committee). Handy for inspection.
3320
+ - **` verifierDirectory `**: The discovered active verifier directory (cached).
3321
+ - **` sessions `**: Return currently open managed sessions.
3322
+ - **` closeAll `**: Close all managed sessions and clear their reconstructed key material.
3323
+
3324
+ ### TasraSlotClientConfig
3325
+
3326
+ Chain discovery and authorization options for a managed JWT slot session.
3327
+
3328
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/slotClient.ts#L40)
3329
+
3330
+ ```ts
3331
+ export interface TasraSlotClientConfig {
3332
+ chain: TasraChainClient;
3333
+ identity?: string;
3334
+ rewriteUrl?: (url: string) => string;
3335
+ onResolve?: (r: ResolvedEndpoints) => void;
3336
+ skewMs?: number;
3337
+ }
3338
+ ```
3339
+
3340
+ Fields:
3341
+
3342
+ - **` chain `**: Read client for the deployment (RPC + address book).
3343
+ - **` identity `**: This holder's DID (recipient_did / holder for the JWT).
3344
+ - **` rewriteUrl `**: Explicit routing from registered service URLs to reachable URLs. Omission uses registry URLs unchanged.
3345
+ - **` onResolve `**: Observe the per-session resolution (chosen verifier + discovered nodes).
3346
+ - **` skewMs `**: JWT refresh skew (ms), forwarded to the session.
3347
+
3348
+ ### TasraWriteClient
3349
+
3350
+ Account-bound operations for slot creation, lifecycle management, settlement funding and token transactions.
3351
+
3352
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/write.ts#L1273)
3353
+
3354
+ <details>
3355
+ <summary>Full declaration</summary>
3356
+
3357
+ ```ts
3358
+ export interface TasraWriteClient {
3359
+ account: Account;
3360
+ address: Address;
3361
+ wallet: WalletClient<Transport, Chain, Account>;
3362
+ pub: PublicClient;
3363
+ createSlot(args: CreateSlotArgs | CreateSlotFromPolicyArgs): Promise<{
3364
+ slotId: Hex;
3365
+ txHash: Hex;
3366
+ ruleSalt: Hex;
3367
+ rule: string;
3368
+ relay?: RelayReceipt;
3369
+ }>;
3370
+ createSlotCommitReveal(args: (CreateSlotArgs | CreateSlotFromPolicyArgs) & CommitRevealOptions): Promise<{
3371
+ slotId: Hex;
3372
+ commitTx: Hex;
3373
+ revealTx: Hex;
3374
+ targetEpoch: number;
3375
+ ruleSalt: Hex;
3376
+ rule: string;
3377
+ seeded: boolean;
3378
+ }>;
3379
+ fundSlot(slotId: Hex, amount: bigint): Promise<{
3380
+ approveTx: Hex;
3381
+ fundTx: Hex;
3382
+ relay?: RelayReceipt;
3383
+ }>;
3384
+ sendEth(to: Address, wei: bigint): Promise<Hex>;
3385
+ transferTsra(to: Address, amount: bigint): Promise<Hex>;
3386
+ rotateKey(slotId: Hex, reason?: string): Promise<Hex>;
3387
+ reshareKey(slotId: Hex, newOperators: Address[], k: number, n: number, reason?: string): Promise<Hex>;
3388
+ cancelSlot(slotId: Hex): Promise<Hex>;
3389
+ renewSlot(slotId: Hex): Promise<Hex>;
3390
+ setVerifierPolicy(slotId: Hex, committee: number, quorum: number, onTransaction?: (event: {
3391
+ phase: 'submitting' | 'submitted' | 'confirmed';
3392
+ hash?: Hex;
3393
+ }) => Promise<void>): Promise<Hex>;
3394
+ setRulePolicy(slotId: Hex, policy: RulePolicyArgs): Promise<Hex>;
3395
+ proposeRuleUpdate(a: ProposeRuleArgs): Promise<ProposeRuleResult>;
3396
+ endorseRuleUpdate(slotId: Hex): Promise<Hex>;
3397
+ vetoRuleUpdate(slotId: Hex): Promise<Hex>;
3398
+ activateRuleUpdate(slotId: Hex): Promise<Hex>;
3399
+ buyTsra(eurcAmount: bigint, minTsraOut: bigint): Promise<Hex>;
3400
+ approveEurcForCurve(amount: bigint): Promise<Hex>;
3401
+ mintMockEurc(to: Address, amount: bigint): Promise<Hex>;
3402
+ eurcBalance(a: Address): Promise<bigint>;
3403
+ redeemTsra(tsraAmount: bigint, minEurcOut?: bigint): Promise<{
3404
+ approveTx: Hex;
3405
+ redeemTx: Hex;
3406
+ }>;
3407
+ burnTsra(amount: bigint): Promise<Hex>;
3408
+ spotPrice(): Promise<bigint>;
3409
+ priceAt(sold: bigint): Promise<bigint>;
3410
+ treasuryWithdraw(to: Address, amount: bigint): Promise<Hex>;
3411
+ treasuryRefund(to: Address, amount: bigint): Promise<Hex>;
3412
+ vaultRelease(tranche: VaultTranche): Promise<Hex>;
3413
+ tsraBalance(of?: Address): Promise<bigint>;
3414
+ ethBalance(of?: Address): Promise<bigint>;
3415
+ settlementBalance(slotId: Hex): Promise<bigint>;
3416
+ relayEnabled: boolean;
3417
+ lastRelay(): RelayReceipt | undefined;
3418
+ pendingRelayAttempt(): RelayAttempt | undefined;
3419
+ reconcileRelay(): Promise<{
3420
+ receipt?: RelayReceipt;
3421
+ expired: boolean;
3422
+ } | undefined>;
3423
+ }
3424
+ ```
3425
+
3426
+ </details>
3427
+
3428
+ Fields:
3429
+
3430
+ - **` account `**: The account every write is signed with.
3431
+ - **` address `**: Convenience alias for `account.address`.
3432
+ - **` wallet `**: The underlying wallet client.
3433
+ - **` pub `**: A read client on the same RPC, used for receipts and balance reads.
3434
+ - **` createSlot `**: Create a slot directly. Persist the generated slot ID and rule salt; provisioning requires the saved salt. Use prepared creation to persist the intent before submission. A `kk_oauth` policy envelope (as `rule`, or authored as `oauthPolicy`) requires `authType: 'oauth'` and must pass the network's gate; both are checked before any chain call. `rule` in the result is the exact string committed.
3435
+ - **` createSlotCommitReveal `**: Create a slot using commit-reveal, trying an accountant seed before waiting for a beacon epoch. Persist the slot ID and rule salt; prepared creation preserves them before submission. Policy envelopes are checked as for `createSlot`; `rule` in the result is the exact string committed.
3436
+ - **` fundSlot `**: Approve TSRA and fund the slot settlement balance in token base units.
3437
+ - **` sendEth `**: Send native currency in base units and wait for a successful receipt.
3438
+ - **` transferTsra `**: Transfer TSRA in token base units and wait for confirmation.
3439
+ - **` rotateKey `**: Request a new distributed key generation epoch for the slot.
3440
+ - **` reshareKey `**: Redistribute the slot key among the supplied operators using the new threshold.
3441
+ - **` cancelSlot `**: Cancel the slot using the configured account authority.
3442
+ - **` renewSlot `**: Renew the slot lease; the configured account must be its creator.
3443
+ - **` setVerifierPolicy `**: Set the verifier committee size and quorum, optionally persisting transaction progress.
3444
+ - **` setRulePolicy `**: Pin amendment authority while the slot is fresh. Prefer passing rulePolicy at creation so key generation cannot win the race. The guardian must differ from the administrator, and omitting a guardian requires the contract minimum timelock.
3445
+ - **` proposeRuleUpdate `**: Propose a new rule for the slot, signed by its rule admin (relayed calls are still signed by this account). The slot's saved `ruleSalt` is reused. Refused before signing, as a `RuleAmendmentError`: a missing slot, an immutable slot, a signer that is not the rule admin, an amendment already pending, a policy envelope on a slot not created with `authType: 'oauth'`, an envelope keepers would not store, and the current rule. An amendable rule means whoever holds the admin key can change who may sign with this key, without changing the key: keep the admin key as safe as the slot itself. The guardian can veto during the delay; without a guardian nobody can. A slot created without a rule admin can never become amendable. Deliver the returned `rule` with `provisionRule({expect: 'pending'})`; the amendment activates only once enough keepers hold it.
3446
+ - **` endorseRuleUpdate `**: Waive the remaining delay of the pending amendment, signed by the slot's guardian. Refuses `not-guardian` and `no-pending` before signing.
3447
+ - **` vetoRuleUpdate `**: Discard the pending amendment, signed by the slot's guardian. Refuses `not-guardian` and `no-pending` before signing.
3448
+ - **` activateRuleUpdate `**: Activate the pending amendment; anyone may send it. Refuses `no-pending`, `timelock` (judged on the latest block timestamp, not the local clock) and `below-threshold` before signing.
3449
+ - **` buyTsra `**: Buy TSRA with approved EURC while enforcing the minimum output amount.
3450
+ - **` approveEurcForCurve `**: Approve the bonding curve to spend the specified EURC base units.
3451
+ - **` mintMockEurc `**: Mint test EURC only after verifying the network and mock-token faucet policy.
3452
+ - **` eurcBalance `**: Read an account EURC balance in base units.
3453
+ - **` redeemTsra `**: Approve and redeem TSRA for EURC, enforcing any minimum output.
3454
+ - **` burnTsra `**: Permanently burn TSRA from the configured account.
3455
+ - **` spotPrice `**: Read the current bonding-curve spot price.
3456
+ - **` priceAt `**: Read the bonding-curve price at the supplied sold-token amount.
3457
+ - **` treasuryWithdraw `**: Request an authorized treasury withdrawal to the recipient.
3458
+ - **` treasuryRefund `**: Request an authorized treasury refund to the recipient.
3459
+ - **` vaultRelease `**: Release currently vested tokens for the named allocation.
3460
+ - **` tsraBalance `**: Read TSRA base units for the supplied account or the configured signer.
3461
+ - **` ethBalance `**: Read native-token base units for the supplied account or configured signer.
3462
+ - **` settlementBalance `**: Read the prepaid TSRA settlement balance of a slot.
3463
+ - **` relayEnabled `**: Whether writes are submitted through a registered relay rather than directly.
3464
+ - **` lastRelay `**: Return the last verified relay receipt, if any.
3465
+ - **` pendingRelayAttempt `**: Return the signed relay attempt awaiting reconciliation, if any.
3466
+ - **` reconcileRelay `**: Inspect the pending attempt against the chain without signing a replacement.
3467
+
3468
+ ### VaultTranche
3469
+
3470
+ Named vesting allocation used to resolve its deployed vault.
3471
+
3472
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/deployments.ts#L71)
3473
+
3474
+ ```ts
3475
+ export type VaultTranche = (typeof VAULT_TRANCHES)[number];
3476
+ ```
3477
+
3478
+ ### VerifierInfo
3479
+
3480
+ Verifier-reported runtime settings and token lifetime.
3481
+
3482
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/offchain.ts#L172)
3483
+
3484
+ ```ts
3485
+ export interface VerifierInfo {
3486
+ version?: string;
3487
+ uptime_secs?: number;
3488
+ jwt_ttl_secs?: number;
3489
+ rate_limit_enabled?: boolean;
3490
+ [k: string]: unknown;
3491
+ }
3492
+ ```
3493
+
3494
+ Fields:
3495
+
3496
+ - **` version `**: Verifier software version reported by the service.
3497
+ - **` uptime_secs `**: Verifier process uptime in seconds.
3498
+ - **` jwt_ttl_secs `**: Reported bearer-token lifetime in seconds.
3499
+ - **` rate_limit_enabled `**: Whether the verifier reports rate limiting as enabled.
3500
+
3501
+ ### WriteClientConfig
3502
+
3503
+ Either a private-key signer or an account-bound wallet with network write configuration.
3504
+
3505
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/write.ts#L181)
3506
+
3507
+ ```ts
3508
+ export type WriteClientConfig = WriteClientKeyConfig | WriteClientWalletConfig;
3509
+ ```
3510
+
3511
+ Fields:
3512
+
3513
+ - **` wallet `**: Account-bound and chain-bound wallet used for writes; mutually exclusive with a raw private key. Must be omitted when supplying a raw private key.
3514
+ - **` privateKey `**: Must be omitted when supplying a wallet signer. The client's own 0x-prefixed 32-byte private key (it signs + pays gas).
3515
+ - **` rpcUrl `**: JSON-RPC endpoint for the deployment selected from the network manifest.
3516
+ - **` addresses `**: Deployed contract address book from the selected network manifest.
3517
+ - **` relay `**: When set, sender-bound calls are gas-sponsored through the platform relayer.
3518
+ - **` chainId `**: EVM chain ID from the network manifest. Defaults to the bound wallet chain, or DEFAULT_CHAIN_ID for a loopback RPC when no chain is supplied.
3519
+
3520
+ ### WriteClientKeyConfig
3521
+
3522
+ Sovereign-key variant: the SDK owns the account and signs with `privateKey`.
3523
+
3524
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/write.ts#L161)
3525
+
3526
+ ```ts
3527
+ export interface WriteClientKeyConfig extends WriteClientConfigBase {
3528
+ privateKey: Hex;
3529
+ wallet?: undefined;
3530
+ }
3531
+ ```
3532
+
3533
+ Fields:
3534
+
3535
+ - **` privateKey `**: The client's own 0x-prefixed 32-byte private key (it signs + pays gas).
3536
+ - **` wallet `**: Must be omitted when supplying a raw private key.
3537
+ - **` rpcUrl `**: JSON-RPC endpoint for the deployment selected from the network manifest.
3538
+ - **` addresses `**: Deployed contract address book from the selected network manifest.
3539
+ - **` relay `**: When set, sender-bound calls are gas-sponsored through the platform relayer.
3540
+ - **` chainId `**: EVM chain ID from the network manifest. Defaults to the bound wallet chain, or DEFAULT_CHAIN_ID for a loopback RPC when no chain is supplied.
3541
+
3542
+ ### WriteClientWalletConfig
3543
+
3544
+ Account-bound and chain-bound viem wallet used for signing without exposing its private key. Reads and receipt polling use the separately configured RPC.
3545
+
3546
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/write.ts#L171)
3547
+
3548
+ ```ts
3549
+ export interface WriteClientWalletConfig extends WriteClientConfigBase {
3550
+ wallet: WalletClient<Transport, Chain, Account>;
3551
+ privateKey?: undefined;
3552
+ }
3553
+ ```
3554
+
3555
+ Fields:
3556
+
3557
+ - **` wallet `**: Account-bound and chain-bound wallet used for writes; mutually exclusive with a raw private key.
3558
+ - **` privateKey `**: Must be omitted when supplying a wallet signer.
3559
+ - **` rpcUrl `**: JSON-RPC endpoint for the deployment selected from the network manifest.
3560
+ - **` addresses `**: Deployed contract address book from the selected network manifest.
3561
+ - **` relay `**: When set, sender-bound calls are gas-sponsored through the platform relayer.
3562
+ - **` chainId `**: EVM chain ID from the network manifest. Defaults to the bound wallet chain, or DEFAULT_CHAIN_ID for a loopback RPC when no chain is supplied.
3563
+
3564
+ ## Constants and ABI values
3565
+
3566
+ Shared values and contract definitions.
3567
+
3568
+ | Export | Description | Definition |
3569
+ |---|---|---|
3570
+ | `ACCOUNTANT_TAG` | The on-chain role tag accountant operators register under: `keccak256("accountant")`. The same tag the accountants themselves resolve their set with. | [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/discovery.ts#L140) |
3571
+ | `accountantSetRegistryAbi` | AccountantSetRegistry contract interface for accountant-set snapshots and membership evidence. | [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/abis/accountantSetRegistry.ts#L5) |
3572
+ | `accountantSlashingAbi` | AccountantSlashing contract interface for accountant penalties and related evidence. | [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/abis/accountantSlashing.ts#L5) |
3573
+ | `bondingCurveAbi` | BondingCurve contract interface for TSRA purchases, redemptions and pricing. | [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/abis/bondingCurve.ts#L5) |
3574
+ | `CONTRACT_ABIS` | Contract name to ABI. Keys match Foundry artifact names. | [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/abis/index.ts#L46) |
3575
+ | `CONTRACT_CATEGORY` | Default category per contract (the global event feed groups by this). | [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/events.ts#L23) |
3576
+ | `DEFAULT_CHAIN_ID` | Fallback chain ID retained for explicitly configured loopback connections. Set the chain ID from the downloaded tasra-releases network manifest for deployment access. | [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/deployments.ts#L64) |
3577
+ | `equivocationSlasherAbi` | EquivocationSlasher contract interface for submitting conflicting-signature evidence. | [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/abis/equivocationSlasher.ts#L5) |
3578
+ | `fixedTasraPriceOracleAbi` | FixedTasraPriceOracle contract interface for converting TSRA amounts using the configured fixed exchange rate. | [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/abis/fixedTasraPriceOracle.ts#L5) |
3579
+ | `IMPLEMENTATION_SLOT` | EIP-1967 storage slot containing a proxy implementation address. | [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/manifest.ts#L168) |
3580
+ | `keeperShareRegistryAbi` | KeeperShareRegistry contract interface for anchored keeper verifying-share commitments. | [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/abis/keeperShareRegistry.ts#L5) |
3581
+ | `keyRegistryAbi` | KeyRegistry contract interface for slot creation, key epochs and authorization policies. | [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/abis/keyRegistry.ts#L5) |
3582
+ | `livenessRegistryAbi` | LivenessRegistry contract interface for registered operator liveness observations. | [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/abis/livenessRegistry.ts#L5) |
3583
+ | `mockEurcAbi` | MockEurc contract interface for test-token balances, transfers, approvals and minting. | [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/abis/mockEurc.ts#L5) |
3584
+ | `NETWORKS` | Built-in network defaults; use a tasra-releases manifest for deployed contract addresses. | [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/networks.ts#L39) |
3585
+ | `nodeApi` | Direct keeper HTTP reads for status, keys, public keys, heartbeats and metering. | [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/offchain.ts#L143) |
3586
+ | `nodeRegistryAbi` | NodeRegistry contract interface for operator registration, role tags, stake and activity. | [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/abis/nodeRegistry.ts#L5) |
3587
+ | `platformExecutorAbi` | PlatformExecutor contract interface for platform-authorized contract execution. | [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/abis/platformExecutor.ts#L5) |
3588
+ | `prevrandaoSaltBeaconAbi` | PrevrandaoSaltBeacon contract interface for chain-randomness-derived committee seeds. | [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/abis/prevrandaoSaltBeacon.ts#L5) |
3589
+ | `PROVISION_RULE_ACTION` | Action identifier accepted by the creator-authorized rule provisioning endpoint. | [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/provisionRule.ts#L36) |
3590
+ | `SERVICE_CHALLENGE_LIFETIME_SECONDS` | Challenge lifetime in seconds, leaving room for clock differences. | [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/serviceIdentity.ts#L29) |
3591
+ | `SERVICE_CHALLENGE_SECONDS` | Maximum accepted identity challenge validity window in seconds. | [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/serviceIdentity.ts#L24) |
3592
+ | `SERVICE_IDENTITY_MAX_BYTES` | Maximum accepted identity challenge response size in bytes. | [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/serviceIdentity.ts#L20) |
3593
+ | `SERVICE_IDENTITY_PATH` | HTTPS endpoint that signs a registered-service identity challenge. | [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/serviceIdentity.ts#L12) |
3594
+ | `SERVICE_IDENTITY_PROTOCOL` | Protocol identifier required in registered-service manifests. | [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/serviceIdentity.ts#L33) |
3595
+ | `SERVICE_MANIFEST_MAX_BYTES` | Maximum accepted service manifest size in bytes. | [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/serviceIdentity.ts#L16) |
3596
+ | `SERVICE_MANIFEST_PATH` | HTTPS path where a registered service publishes its canonical manifest. | [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/serviceIdentity.ts#L8) |
3597
+ | `SERVICE_STATUSES` | Registry lifecycle ordinals for active, draining and retired services. | [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/services.ts#L10) |
3598
+ | `SERVICE_TYPES` | Permanent ServiceRegistry ABI ordinals. Registration grants no operator privileges. | [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/services.ts#L6) |
3599
+ | `serviceRegistryAbi` | ServiceRegistry contract interface for provider-owned service records and lifecycle updates. | [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/abis/serviceRegistry.ts#L5) |
3600
+ | `settlementAbi` | Settlement contract interface for prepaid slot balances and operation settlement. | [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/abis/settlement.ts#L5) |
3601
+ | `tasraSwapRouterAbi` | TasraSwapRouter contract interface for routed token exchanges. | [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/abis/tasraSwapRouter.ts#L5) |
3602
+ | `tasraTokenAbi` | TasraToken contract interface for TSRA balances, transfers, approvals and supply. | [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/abis/tasraToken.ts#L5) |
3603
+ | `tasraVestingVaultAbi` | TasraVestingVault contract interface for allocation vesting and token release. | [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/abis/tasraVestingVault.ts#L5) |
3604
+ | `thresholdRandomBeaconAbi` | ThresholdRandomBeacon contract interface for threshold-signed randomness epochs. | [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/abis/thresholdRandomBeacon.ts#L5) |
3605
+ | `treasuryAbi` | Treasury contract interface for treasury balances, authorized withdrawals and refunds. | [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/abis/treasury.ts#L5) |
3606
+ | `VAULT_TRANCHES` | The vesting tranches Deploy.s.sol creates, in the order it creates them. | [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/deployments.ts#L67) |
3607
+ | `VERIFIER_TAG` | The on-chain role tag verifier operators register under: `keccak256("verifier")`. The same tag the accountants use to build the settlement split, and the CLI to resolve a tagged operator set. | [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/discovery.ts#L28) |
3608
+ | `verifierApi` | Direct verifier HTTP reads for status and Prometheus metrics. | [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/offchain.ts#L187) |
3609
+ | `verifierSetRegistryAbi` | VerifierSetRegistry contract interface for verifier-set snapshots and membership roots. | [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/chain/abis/verifierSetRegistry.ts#L5) |