Creating a Service
To create a custodial wallet service:- Choose the appropriate configuration (
FireblocksConfigorDFNSConfig). - Instantiate the configuration with the required parameters.
- Create a
CustodialWalletServiceinstance using the configuration.
Using Fireblocks
For Fireblocks integrations, the recommended approach is the Fireblocks Hedera SDK Client and Signer, which implements HIP-338: Signature and Wallet Providers. It includes complete examples, such as handling multiple nodes withmaxNumberOfPayloadsPerTransaction and multi-signer flows.You can still use this library’s FireblocksConfig with CustodialWalletService if you need a factory/strategy abstraction, but the official client/signer is the recommended route for new builds.Signing Transactions
To sign a transaction:- Create a
SignatureRequestwith the transaction bytes. - Use the signTransaction method of the
CustodialWalletService.
Managing Multiple Wallets
To manage multiple wallets:- Create separate configurations for each wallet.
- Instantiate a
CustodialWalletServicefor each configuration.