RIF Multisig SDK - Send RBTC

Required packages:

Raw Transactions

Raw transactions can be created by using directly the safe-core-sdk package or the safe-transactions-sdk.

const tx = await safe.createTransaction({
      to,
      data,
      value
    })

safe-transactions-sdk

The RawTransactionBuilder provides the possibility to create raw transactions.

Initialize the RawTransactionBuilder.

import { RawTransactionBuilder } from '@rsksmart/safe-transactions-sdk'

const rawTransactionBuilder = new RawTransactionBuilder(safe)

Create the transaction.

const tx = await rawTransactionBuilder.rawTransaction(to, value, data)