For the complete documentation index, see llms.txt. This page is also available as Markdown.

Send ETH

This guide will help you understand how you can send ETH from all superchain interop enabled chains

If you have assets scattered across chains like optimism, unichain etc, you can send them in a single go using the below interface

import { superSDK } from 'superbeam'
import { Address } from 'viem'

const superbeam = new superSDK()  
const sweepETH = await superbeam.sendETH(
    to: Address,
    amount: bigint,
    chainId: number
):

Superbeam currently supports client side environments. It uses window.ethereum internally for a unified user experience especially designed for external projects to use with avaialble wallet providers

Example

Alice has 1.5 ETH each across Supersim 0 & Supersim 1, totaling to 3 ETH and she wants to send Bob 2 ETH without worrying about bridging/ sending from multiple chains etc. By default these assets will land on Supersim 0 for Bob, unless mentioned otherwise It internally populates 2 different transactions on both the chains handling bridging and raw sendTransaction

Last updated