Token Deposit ============= Check out this tutorial on GitHub: `token_deposit `__ ``token_deposit`` demonstrates moving a token from a parent chain to a child chain (e.g. from Ethereum to Arbitrum) using the standard token gateway in Arbitrum’s token bridging system. For info on how it works under the hood, see our `token bridging docs `__. Standard ERC-20 deposit ----------------------- Depositing an ERC-20 token into an Arbitrum chain is done via our Arbitrum token bridge. In this tutorial, we deploy a `demo token `__ and trigger a deposit; by default, the deposit will be routed through the standard ERC-20 gateway, where on initial deposit, a standard arb ERC-20 contract will automatically be deployed to the destination chain. We use our `Arbitrum SDK `__ library to initiate and verify the deposit. See `exec.py `__ for inline explanation. Set environment variables ------------------------- Set the values shown in ``.env-sample`` as environmental variables. To copy it into a ``.env`` file: .. code:: bash cp .env-sample .env You’ll still need to edit some variables, i.e., ``PRIVATE_KEY``, ``CHAIN_RPC`` and ``PARENT_CHAIN_RPC``. Note that you can also set the environment variables in an ``.env`` file in the root of the monorepo, which will be available in all tutorials. Run --- Install dependencies and build the contracts: :: chmod +x ./build.sh && ./build.sh Run the script: :: python3 scripts/exec.py .. raw:: html

.. raw:: html