You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The `@filoz/synapse-core/chains` subpath exports chain definitions with all contract addresses pre-configured for Filecoin Mainnet (`mainnet`) and Filecoin testnet (`calibration`) networks.
70
+
The `@filoz/synapse-core/chains` subpath exports chain definitions with all contract addresses pre-configured for Filecoin Mainnet (`mainnet`) and Filecoin testnet (`calibration`) networks. Import the FOC chain type as `FilecoinChain` when you need it in TypeScript.
71
+
72
+
The `@filoz/synapse-core/client` subpath exports `getTransport` (ranked Filecoin RPC fallbacks), `asClient`, and `toReadClient`. Prefer `getTransport(chain)` over a bare `http()` endpoint when talking to mainnet or Calibration.
-**`WarmStorageService`**: Storage coordination and pricing module
57
57
58
+
`Synapse` exposes `client` (account client for signing and writes) and `readClient` (for queries). When constructing from an existing viem client, you can pass an optional public `readClient`:
59
+
60
+
```ts
61
+
const synapse =newSynapse({
62
+
client: walletClient,
63
+
readClient: publicClient, // optional; derived from client when omitted
64
+
})
65
+
```
66
+
58
67
## Payment Operations
59
68
60
69
Fund your account and manage payments for Filecoin storage services.
0 commit comments