BlackSwanClient instance by passing your target network and RPC endpoint. The client handles all contract interactions and data formatting, so you can focus on building your application.
Constructor parameters
Pass a configuration object toBlackSwanClient with the following properties:
Initialize the client
Contract addresses
BlackSwan contract addresses are available as named exports fromblackswan-sdk. Import the constants for your target network instead of hardcoding addresses in your application.