Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.rhinestone.dev/llms.txt

Use this file to discover all available pages before exploring further.

You can make multiple calls in a single transaction:
import { baseSepolia } from 'viem/chains'

const chain = baseSepolia
const usdcAmount = 1n
const ethAmount = 2n
const receiver = '0xd8da6bf26964af9d7eed9e03e53415d37aa96045'

const transaction = await rhinestoneAccount.prepareTransaction({
  chain,
  calls: [
    {
      to: 'USDC',
      data: encodeFunctionData({
        abi: erc20Abi,
        functionName: 'transfer',
        args: [receiver, usdcAmount],
      }),
    },
    {
      to: receiver,
      value: ethAmount,
    },
  ]
})