Modular SDK
Instantiation
Before doing anything with the SDK, we must instantiate it. This will create the Etherspot smart account based off of the values we pass in.
Step 1. Import the Etherspot Modular SDK.
Step 2. Instantiate the SDK with below initialisation properties using this block of code.
- privateKey
- ChainID
- bundlerProvider
- bundlerApiKey
- customBundlerUrl (can be left empty)
And that’s it! You’re now ready to call any of the Modular SDK functions.
You can also pass in different parameters when instantiating the SDK.
- chainId : The chain ID of the blockchain.
- customBundlerUrl : The bundler you wish to use.
Sending funds to another address
Next steps
For next steps you can look at functions or examples to tailor the dapp to what you’re trying to achieve.
In the next page we’ll take a look at the various functions the SDK offers.