Token Bridge SDK
Token Bridge SDK is a react hook library for actions that "bridge" between an Arbitrum chain and an L1 chain.
Quickstart
import { useArbTokenBridge } from 'token-bridge-sdk'
const {
eth: { withdraw: withdrawEth },
token: { withdraw: withdrawToken, add: addToken },
bridgeTokens
} = useArbTokenBridge(
ethProvider,
arbProvider,
'0xc68DCee7b8cA57F41D1A417103CB65836E99e013',
ethProvider.getSigner(0),
arbSigner.getSigner(0)
)