Hosting a Testnet and Deploying a Contract
Using Foundry to start a local testnet and deploy a Solidity contract.
Last updated
Was this helpful?
Was this helpful?
Deployer: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266
Deployed to: 0x5FbDB2315678afecb367f032d93F642f64180aa3
Transaction hash: 0x9c43e48790455815acecf9e5ae2a835daac756fe3f8164eb1a294bf7a768e00e$ cast send 0x5FbDB2315678afecb367f032d93F642f64180aa3 "increment()" --private-key 0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80 --rpc-url 127.0.0.1:8545
blockHash 0x85443db3aa3b5761016586e3cb720b28fda0819f179a9ed4f7b45b12fe849695
blockNumber 2
contractAddress
cumulativeGasUsed 43517
effectiveGasPrice 876013326
from 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266
gasUsed 43517
logs []
logsBloom 0x00[...]
root
status 1 (success)
transactionHash 0x35d8a6b48a3cef67a9301b6c4d818b294e6ad1eac7e219870d9afd49e3984265
transactionIndex 0
type 2
blobGasPrice 1
blobGasUsed
authorizationList
to 0x5FbDB2315678afecb367f032d93F642f64180aa3$ cast call 0x5FbDB2315678afecb367f032d93F642f64180aa3 "getCounter()" --rpc-url 127.0.0.1:8545
0x0000000000000000000000000000000000000000000000000000000000000001$ cast call 0x5FbDB2315678afecb367f032d93F642f64180aa3 "getCounter()" --rpc-url 127.0.0.1:8545
0x0000000000000000000000000000000000000000000000000000000000000002