Synapse
Defined in: packages/synapse-sdk/src/synapse.ts:27
Class for interacting with Filecoin storage and other on-chain services
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new Synapse(
options):Synapse
Defined in: packages/synapse-sdk/src/synapse.ts:92
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
options |
SynapseFromClientOptions |
Returns
Section titled “Returns”Synapse
Accessors
Section titled “Accessors”Get Signature
Section titled “Get Signature”get chain():
FilecoinChain
Defined in: packages/synapse-sdk/src/synapse.ts:130
Returns
Section titled “Returns”client
Section titled “client”Get Signature
Section titled “Get Signature”get client():
AccountClient<PublicRpcSchema,PublicActions<Transport,FilecoinChain>>
Defined in: packages/synapse-sdk/src/synapse.ts:119
Returns
Section titled “Returns”AccountClient<PublicRpcSchema, PublicActions<Transport, FilecoinChain>>
filbeam
Section titled “filbeam”Get Signature
Section titled “Get Signature”get filbeam():
FilBeamService
Defined in: packages/synapse-sdk/src/synapse.ts:156
Gets the FilBeam service instance
Returns
Section titled “Returns”The FilBeam service for interacting with FilBeam infrastructure
payments
Section titled “payments”Get Signature
Section titled “Get Signature”get payments():
PaymentsService
Defined in: packages/synapse-sdk/src/synapse.ts:138
Gets the payment service instance
Returns
Section titled “Returns”The payment service
providers
Section titled “providers”Get Signature
Section titled “Get Signature”get providers():
SPRegistryService
Defined in: packages/synapse-sdk/src/synapse.ts:165
Gets the service provider registry instance
Returns
Section titled “Returns”The service provider registry for interacting with service providers
readClient
Section titled “readClient”Get Signature
Section titled “Get Signature”get readClient():
ReadClient<RpcSchema,PublicActions<Transport,FilecoinChain>>
Defined in: packages/synapse-sdk/src/synapse.ts:122
Returns
Section titled “Returns”ReadClient<RpcSchema, PublicActions<Transport, FilecoinChain>>
sessionClient
Section titled “sessionClient”Get Signature
Section titled “Get Signature”get sessionClient():
SessionKeyClient|undefined
Defined in: packages/synapse-sdk/src/synapse.ts:126
Returns
Section titled “Returns”SessionKeyClient | undefined
storage
Section titled “storage”Get Signature
Section titled “Get Signature”get storage():
StorageManager
Defined in: packages/synapse-sdk/src/synapse.ts:147
Gets the storage manager instance
Returns
Section titled “Returns”The storage manager for all storage operations
Methods
Section titled “Methods”getProviderInfo()
Section titled “getProviderInfo()”getProviderInfo(
providerAddress):Promise<PDPProvider>
Defined in: packages/synapse-sdk/src/synapse.ts:174
Get detailed information about a specific service provider
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
providerAddress |
bigint | `0x${string}` |
The provider’s address or provider ID |
Returns
Section titled “Returns”Provider information including URLs and pricing
create()
Section titled “create()”
staticcreate(options):Synapse
Defined in: packages/synapse-sdk/src/synapse.ts:47
Create a new Synapse instance.
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
options |
SynapseOptions |
Configuration options for Synapse |
Returns
Section titled “Returns”Synapse
A fully initialized Synapse instance