1

I created a multiSig address from the UI and I'm trying to call an external contract using that safe address.

I want to use that safeAddress and create a sort of safe Instance so that I can call createTransaction() for the protocolKit. Here's the link for the code where its done for the second owner

I tried following the docs here

I imported the SafeFactory in the following manner:

const { SafeFactory } = require('@safe-global/protocol-kit');

And I tried initializing it

const safeFactory = await SafeFactory.init({
provider: rpcUrl,
signer: signerPrivateKey,
});

But I get safeFactory emtpy. Can you please guide? The parameters rpcUrl and signerPrivateKey are correct but I can't seem to find the solution.

4
  • Hey there, what exactly are you trying to do? To deploy a Safe, you'll also need to call the deploySafe method: docs.safe.global/sdk/protocol-kit#deploy-a-safe
    – Tanay Pant
    Commented Jul 10 at 12:55
  • I created a multiSig address from the UI and I'm trying to call an external contract using safe address. I want to use that safeAddress and create a sort of safe Instance so that I can createTransaction. Here's the link for the code - docs.safe.global/sdk/… I have also edited the answer to include all this. Commented Jul 10 at 12:58
  • 2
    Hey Tanay it worked. I need to use Safe.init() . I was accidentally using SafeFactory.init() Commented Jul 10 at 13:03
  • 1
    Ah cool, glad to hear that it worked :)
    – Tanay Pant
    Commented Jul 10 at 13:40

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.