Deploy a Contract
RWA CHAIN IS FULLY EVM-EQUIVALENT — YOUR EXISTING TOOLING JUST WORKS
DEPLOY COST
—
ETH · 100K GAS AT MEDIAN PRICE
CONFIRMATION
—
ONE BLOCK
CHAIN ID
77410
0X12E62
EVM
EQUIVALENT
OP STACK · PRAGUE (ISTHMUS)
GUIDES · RWA CHAIN TESTNET
1
Install Foundry
One-line install; forge, cast and anvil included.
curl -L https://foundry.paradigm.xyz | bash && foundryup
2
Configure
Pin the EVM version to prague and name both networks.
# foundry.toml
[profile.default]
evm_version = "prague"
[rpc_endpoints]
rwa = "https://rpc.rwa-chain.io" # chain id 7741
rwaTestnet = "https://sepolia-rpc.rwa-chain.io" # chain id 77410
3
Deploy and verify
Gas is paid in ETH. --broadcast sends the transaction (without it forge only simulates) and --verify publishes the source on Blockscout; no API key is needed. --constructor-args takes every word after it, so it goes last; drop it if the constructor takes no arguments.
forge create --broadcast src/MyAsset.sol:MyAsset \
--rpc-url rwaTestnet --private-key $PK \
--verify --verifier blockscout --verifier-url https://sepolia-explorer.rwa-chain.io/api/ \
--constructor-args "My Asset" 1000
4
Verify later
For a contract that is already deployed. Here the constructor arguments are ABI-encoded.
forge verify-contract $ADDRESS src/MyAsset.sol:MyAsset \
--chain 77410 --verifier blockscout --verifier-url https://sepolia-explorer.rwa-chain.io/api/ \
--constructor-args $(cast abi-encode "constructor(string,uint256)" "My Asset" 1000)