Deploy GlobalPay (GPYC) with Remix
No private key ever leaves your wallet
Before you start
- A wallet you control (MetaMask extension, or Trust Wallet's dApp browser).
- A little BNB in it for gas (a few cents).
- Start on BSC Testnet — free tBNB, no real money.
Step 1 — Open Remix
Go to https://remix.ethereum.org. It runs in the browser; nothing is installed.
Step 2 — Create the contract file
- Left sidebar → File explorer → Create new file.
- Name it
GlobalPay.sol. - Paste this exactly:
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.24;
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
contract GlobalPay is ERC20 {
constructor(uint256 initialSupply) ERC20("GlobalPay", "GPYC") {
_mint(msg.sender, initialSupply * 10 ** decimals());
}
}
Remix downloads the OpenZeppelin import automatically — you do not need to install anything.
Step 3 — Compile
- Left sidebar → Solidity compiler.
- Compiler version: 0.8.24 (or any 0.8.24+).
- Tick Enable optimization (runs: 200).
- Press Compile GlobalPay.sol — you should see a green check.
Step 4 — Connect your wallet
- Left sidebar → Deploy & run transactions.
- Environment → Injected Provider - MetaMask (this also works for Trust Wallet when Remix is opened inside Trust's dApp browser).
- Approve the connection in the wallet.
Step 5 — Choose the network
| Network | Chain ID | RPC | Explorer |
|---|---|---|---|
| BSC Testnet | 97 | https://data-seed-prebsc-1-s1.binance.org:8545 | https://testnet.bscscan.com |
| BSC Mainnet | 56 | https://bsc-dataseed.bnbchain.org | https://bscscan.com |
Switch the network in your wallet (or add it with the values above). Remix shows the current chain under Environment — check it before deploying.
Step 6 — Deploy
- Contract: GlobalPay.
- Next to Deploy, enter the whole token supply, e.g.
1000000(18 decimals are added by the contract). - Press Deploy → confirm in your wallet.
- When it confirms, the contract appears under Deployed Contracts. Copy its address.
Step 7 — Add the token to your wallet
Trust Wallet / MetaMask → Add custom token → network BSC → paste the contract address
→ symbol GPYC, decimals 18. You should see your full supply.
Step 8 — Verify on BscScan (recommended)
Open the contract on BscScan → Contract → Verify & Publish → compiler 0.8.24, optimization on (200), paste the same source. Verified source is what makes a token look legitimate to buyers and tools.
Step 9 — Liquidity
Then follow the liquidity guide: add GPYC + USDT/BNB on PancakeSwap V2, then lock the LP tokens and publish the lock link.
Troubleshooting
- “Insufficient funds” — the wallet has no BNB for gas, or you are on the wrong network.
- Deploy button greyed out — not compiled, or no wallet connected.
- Wrong chain — switch to 97 (test) or 56 (main) in the wallet, then reload Remix.
- Compiler error on the import — use 0.8.24 exactly; the import resolves from npm.