How to use BSafe SDK?

In the evolving landscape of modular blockchain technology, BSAFE stands out as Fuel's native stateless multisig. We are proud to announce our new SDK, a pivotal tool for developers on the Fuel Network. This SDK not only streamlines the integration of BSAFE multisig wallet functionality into decentralized applications (DApps) but also represents a significant advancement in secure and efficient transaction management for the entire blockchain ecosystem. In this article, we will dive into the latest enhancements of the SDK, provide an installation guide, and more. We hope you enjoy it!

What’s New in the Bsafe SDK?

  • Enhanced Vault Management with the introduction of BSafe Ecosystem Method

  • Versatile Authentication options

  • Refined transaction handling

The Introduction of BSafe Ecosystem Method

The enhanced Vault installation and integration now offer two distinct options: the Standalone method and the new BSafe Ecosystem method.

Comparison between BSafe Ecosystem and Standalone methods
Comparison between BSafe Ecosystem and Standalone methods

The recommended method for using BSafe SDK offers a comprehensive developer experience and vault management.

Starting with initial Authentication using one of the provided methods (see below), it seamlessly integrates with the BSafe App features, enabling the viewing of signatories, transactions, balances and more, including managing vaults directly through our App.

Additionally, it includes the ability to wait for all transaction signatures before dispatch, and create vaults that can be integrated into other DApps through the Wallet Connector, leveraging the full potential of the BSafe ecosystem.

Standalone Method

The Standalone method in the BSafe SDK, akin to "self-hosting," offers a hands-on approach. After establishing a vault, developers can access this instance using the initial creation parameters, a process that also extends to managing transactions. While this method grants comprehensive control, it requires a deeper understanding of the underlying systems. It's tailored more towards those with a robust grasp of the technology, as it involves direct, independent management of Multisig Wallets, Vaults and Signatures.

Authentication Methods

The BSafe SDK introduces more sophisticated and versatile Authentication methods, such as:

  1. Authentication via a Fuel Wallet: This method involves creating a new instance for authentication, requiring the wallet address and provider URL, followed by signing in using the provided Fuel Wallet.

  2. Authentication via a Private Key: Similar to the Fuel Wallet method but uses a Private Key for signing in.

  3. Signing a Transaction: A specific method for signing a transaction using the wallet and Transaction ID.

Refined Transaction Handling

A more detailed, streamlined, and secure process for handling transactions enhances the developer experience working on complex applications within the Fuel Network, providing more precise control and easier integration.

  1. Advanced Transaction Creation: The vault.BSAFEIncludeTransaction() method allows for detailed transaction creation. Developers can specify the amount, assetId and to, making transaction creation more tailored and specific to the needs of the application. This method can also run contract calls through Script Transaction.

  2. Efficient Transaction Retrieval and Authentication: The SDK now includes BSAFEGetTransaction() and BSAFEGetTransactions() methods. These enable developers to retrieve individual or all transactions, ensuring secure and authenticated access. This is crucial for managing transaction flows and maintaining the integrity of operations within applications.

  3. Streamlined Transaction Signing: The introduction of **authService.signTransaction()** significantly simplifies the signing process. Developers can now securely sign transaction hashes using the wallet instance and transaction ID, enhancing the overall security and reliability of transaction execution. This improvement is particularly valuable for applications that require robust security measures.

Installation Guide

To install BSafe SDK in your Typescript project, follow the instructions on Documentation below:

BSafe's Commitment to Developers

As we continue to innovate with the BSafe SDK, our commitment to the developer community remains steadfast. We understand the crucial role we play in the Fuel Network's ecosystem. Our goal is to provide a platform that is not only advanced in its technical capabilities but also supportive and accessible. We promise ongoing enhancements, transparent communication, and robust support systems. Together, we can build a more secure, efficient, and versatile blockchain environment, driving the future of decentralized applications. BSafe is here to empower your creativity and technical prowess, every step of the way. ⛽

Join us on this journey! Be part of our BSafe Community Discord and follow us on Twitter to stay updated with the latest features and discussions.

Subscribe to Bako Safe
Receive the latest updates directly to your inbox.
Mint this entry as an NFT to add it to your collection.
Verification
This entry has been permanently stored onchain and signed by its creator.