Skip to content

guimroque/bako-wallet-snippet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🛡️ Using Bako Safe (Multisig) to Interact with Contracts

This example demonstrates how to interact with a contract using Bako Safe, ensuring that the transaction will only be executed after all required signatures from your multisig Vault.

✅ Prerequisites

  1. Access the Bako Safe interface: https://safe.bako.global

  2. Inside the platform:

    • Go to Vault
    • Open Settings → API Tokens
    • Generate a new API token for your Vault
    • Copy the generated token
  3. Add your API token to the .env file:

    BAKO_TOKEN_API=your_token_here
  4. Also ensure your Vault address is configured in .env:

    BAKO_WALLET_ADDRESS=your_vault_address_here

🚀 Running the Snippet

To interact with the contract using Bako Safe:

pnpm call:bako-wallet

Once executed:

  • The transaction will be created and sent to the Bako Safe interface.
  • It will remain pending, waiting for all required Vault participants to sign.

While waiting:

  • The terminal will display messages like:
⏳ Waiting for required signatures on Bako Safe...

✍️ Finalizing the Transaction

After all required participants sign:

  • Bako Safe servers will automatically send the transaction to the blockchain.
  • The terminal will confirm that the transaction was completed:
✅ Deposit completed successfully.

💡 Notes

  • The transaction cannot be executed until all required signatures are provided.
  • You can track, manage, and sign pending transactions directly at: https://safe.bako.global

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors