Wallets
Safe
Wallet module for connecting Safe to Web3 Onboard
Install
- Yarn
- Npm
Options
Usage
Customizing Safe Transaction Gas
If you are looking to set the gasLimit
of a transaction within Safe, the gas properties within the transaction WILL BE IGNORED.
Instead you will need to use the safeTxGas
prop AND the web3-onboard Safe instance that is exposed through the provider to send along the transaction.
The Safe sdk instance exposed by the web3-onboard must be used to set the safeTxGas
prop and send the transaction.
Check
Safe docs for full detail as it can be a bit confusing.
An example of accessing the Safe SDK instance and sending a transaction can be found below.
Note: With the safeTxGas
you will see additional value on the gasLimit
displayed in the Safe. Check
Safe docs for full details on that computation.
Build Environments
For build env configurations and setups please see the Build Env section here.
Local testing within the Safe app
Ensure the application is building and working properly within the browser and then add or enable your cors blocker extension or script of choice. An example is the Allow CORS
browser extension.
Vue Build Configuration
If using Vue be sure to include the necessary peerDeps in the vite.config.ts
specifically within the optimizeDeps.include
list and install the necessary peer deps npm i @safe-global/safe-apps-provider @safe-global/safe-apps-sdk
.