A tool to build batched transactions with foundry script and create on Safe Multisig Wallets.
Implemented Github workflow to create batched tx on Safe when merged to main branch. Just add PRIVATE_KEY in your repo secrets and also ETH_RPC_URL.
Uses forge-safe under the hood.
- First, clone the project and run forge install inside the project directory.
$ git clone https://github.com/AlienFinance/multisig-tx-builder.git
$ cd multisig-tx-builder
$ forge install-
In your
.envrcfile, SetPRIVATE_KEYto your private key as safe owner or delegate wallet andETH_RPC_URL. -
Copy
script/Example.s.soltoscript/YourScript.s.soland modify it to your multisig script. -
To run the script you just created:
forge script script/YourScript.s.sol --skip-simulation -vvvvv --ffi --rpc-url $ETH_RPC_URLfunction executeBatch(bool send_, uint256 nonce_)- Set
send_tofalseif you are testing the script locally but not create the batched tx on safe. - Set
nonce_to override pending tx on the queue. Usefunction executeBatch(bool send_)if you don't want to customize nonce.