deploy a smart contract
Moonbeam is EVM-compatible, so contracts deploy with the standard Solidity toolchain — Foundry, Hardhat, or Remix — pointed at a GetBlock endpoint. This guide covers adding the network to a wallet and deploying a first contract to Moonbeam.
Prerequisites
An EVM wallet (such as MetaMask) with GLMR on Moonbeam for gas — see Add Network to Your Wallet and Funding Your Deployer
A GetBlock access token — the endpoint is
https://shared.eu-central-1.getblock.io/<ACCESS-TOKEN>/A funded deployer address with GLMR on Moonbeam
Network Details
Network Name
Moonbeam
RPC URL
https://shared.eu-central-1.getblock.io//
Chain ID
1284 (0x504)
Currency Symbol
GLMR
Block Explorer
Add Network to Your Wallet
Ethereum Mainnet is pre-configured in MetaMask by default. Moonbeam is not, so it must be added manually — use the button below or the manual steps that follow.
To add the network manually:
Enter network details
Enter the values from the Network Details table above.
Funding Your Deployer
Moonbeam gas is paid in GLMR.
Mainnet — acquire GLMR from an exchange or bridge, then send it to your deployer's address.
Testnet (Moonbase Alpha, chain ID 1287) — request free DEV tokens from the Moonbase Alpha faucet; see docs.moonbeam.network for the current faucet and endpoints.
Deploy with Foundry
Deploy with Hardhat
After Deploying
Read contract state through the eth_call method against your GetBlock endpoint
Watch contract events with eth_getLogs
Explore Moonbeam's precompiles to call staking, XCM, and batch operations from your contracts
Was this helpful?