Join the Rootstock Discord Community to get the latest updates from the Rootstock Ecosystem!

RIF Multisig SDK - Receive RBTC

It is important to understand that in order to properly receive funds, the Multisig account address (instead of the owner address) must be used as the receiver.

  • A) Get the Multisig account address

    const safeSdk = await safeFactory.createSafe({
      owners: ['0x1234...', '0xabcd...', '0x0987...'],
      threshold: 2
    })
    
    // address to use as fund receiver
    const multisigAccountAddress = safeSdk.getAddress()

    {:.snippet__code.snippet__code--lightgreen}

  • B) Send the transaction

    • Here below is an example of a transaction executed for funding the Multisig account using ethers
    // address to use as fund receiver
    const multisigAccountAddress = safeSdk.getAddress()
    
    const valueToSend = BigNumber.from("1000000000")
    await signer.sendTransaction({
        to: multisigAccountAddress,
        value: valueToSend
    })

    {:.snippet__code.snippet__code--lightgreen}


For further details, please have a look at:

Receive updates

Get the latest updates from the Rootstock ecosystem

Loading...