Skip to content

Synapse SDK

The Synapse SDK is an easy-to-use library allowing developers to get started with the Filecoin Onchain Cloud and its services, such as Filecoin Beam. It allows you to store & retrieve data from Filecoin, as well as pay for these services.

When making storage deals, you can set up your data to retrievable through Filecoin Beam by setting the withCDN flag to true in the Synapse SDK config.

const synapse = await Synapse.create({
privateKey: "YOUR_PRIVATE_KEY",
withCDN: true,
});

Head to the Synapse getting started guide to get started, and to see clearly in code how to include Filecoin Beam when you create an instance of Synapse.