DEV Community

Cover image for Hola mundo! BEP20
Ahmed Castro
Ahmed Castro

Posted on

5

Hola mundo! BEP20

Binance Smart Chain es muy similar a Ethereum Mainnet con la diferencia que Binance sacrifica decentralización a cambio de escalabilidad. La buena noticia es que Binance es 100% compatible con la Ethereum Virtual Machine (EVM). Esto significa que podemos lanzar Smart Contracts en Binance igual que como lo hacemos en Ethereum. A continuación lanzaremos un Token ERC-20 que en Binance le llamamos BEP-20 pero funcionan exactamente igual.

Consigue tokens BNB

  1. Conecta Binance Mainnet a tu Metamask, sigue estos pasos
  2. Compra o tradea tokens BNB en binance.com
  3. Haz "withdraw" a tu address de Metamask

Lanza un Token BEP20

Ahora puedes lanzar tu token desde Remix.

// SPDX-License-Identifier: MIT
pragma solidity 0.8.6;

import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v4.1.0/contracts/token/ERC20/ERC20.sol";

contract MyERC20 is ERC20 {
  constructor () ERC20("My Token", "TKN") {
    _mint(msg.sender, 1000000 ether);
  }
}
Enter fullscreen mode Exit fullscreen mode

Agrega liquidez en Pancakeswap

  1. Crea un par de liquidez en Pancakeswap
  2. Monitorealo desde Poocoin

Sentry image

Hands-on debugging session: instrument, monitor, and fix

Join Lazar for a hands-on session where you’ll build it, break it, debug it, and fix it. You’ll set up Sentry, track errors, use Session Replay and Tracing, and leverage some good ol’ AI to find and fix issues fast.

RSVP here →

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay