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!
Enhanced Vault Management with the introduction of BSafe Ecosystem Method
Versatile Authentication options
Refined transaction handling
The enhanced Vault installation and integration now offer two distinct options: the Standalone method and the new BSafe Ecosystem method.
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.
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.
The BSafe SDK introduces more sophisticated and versatile Authentication methods, such as:
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.
Authentication via a Private Key: Similar to the Fuel Wallet method but uses a Private Key for signing in.
Signing a Transaction: A specific method for signing a transaction using the wallet and Transaction ID.
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.
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.
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.
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.
To install BSafe SDK in your Typescript project, follow the instructions on Documentation below:
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.