arb-token-bridge

SDK for transfering assets to and from Arbitrum

Usage no npm install needed!

<script type="module">
  import arbTokenBridge from 'https://cdn.skypack.dev/arb-token-bridge';
</script>

README

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)
    )

Documentation