BLOCKCHAIN/BlockChain

SmartContract 테스트넷 배포 (4)

2022. 10. 1. 02:09
목차
  1. 4 Testnet 배포
  2. 5 Etherscan

* SmartContract 테스트넷 배포(3)의 4부터 다시

4 Testnet 배포

(1) infura.io 접속 후 로그인

Ethereum API | IPFS API & Gateway | ETH Nodes as a Service

Infura's development suite provides instant, scalable API access to the Ethereum and IPFS networks. Connect your app to Ethereum and IPFS now, for free!

infura.io


(2) 새로운 Key 생성 Repsten EndPoint 사용하기 위해서는 Web3 선택해야 함


(3) Repsten 주소 복사


(4) truffle-config.js 수정

*provider의 주소에 복사해온 주소 붙여넣기


(5) npm i @truffle/hdwallet-provider


(6) ECAC_Smartcontract 폴더에 .secret 파일 생성하고 내 MetaMask 비밀번호 복구 문구 붙여넣기


(7) truffle compile > truffle migrate --network ropsten > 오류


(8) truffle-config.js에 복붙한 URL을 Websockets로 변경 > 돈없어서 오류


(9) 테스트 이더 받기 > 어디서 받는지는 관계없음
https://faucet.dimensions.network/
https://faucet.egorfine.com/
https://ropsten.oregonctf.org/eth


(10) 다시 truffle migrate --network ropsten > 성공

5 Etherscan

(1) Etherscan 접속

TESTNET  Ropsten (ETH) Blockchain Explorer

Etherscan allows you to explore and search the Ropsten blockchain for transactions, addresses, tokens, prices and other activities taking place on Ropsten (ETH)

ropsten.etherscan.io


(2) SmartContract 주소 입력하여 Testnet에 배포된 것 확인
* 0x2bD3e988bdE5930f9D3f53C8d07A0EDD5dcf914B



* 참고자료
https://community.infura.io/t/cannot-find-ropsten-endpoint-on-list-of-endpoints/3870
https://community.infura.io/t/error-pollingblocktracker-encountered-an-error-while-attempting-to-update-latest-block/4215
https://jeongjun9-diary.tistory.com/26

  1. 4 Testnet 배포
  2. 5 Etherscan
'BLOCKCHAIN/BlockChain' 카테고리의 다른 글
  • ECAC Dapp 개발(1)
  • Truffle 없이 Testnet 배포하기 (1)
  • SmartContract 테스트넷 배포 (3)
  • SmartContract 테스트넷 배포 (2)
yuujoeng
yuujoeng
IT and Information Security
yuujoeng
알감자는 공부중
yuujoeng
전체
오늘
어제
  • 🎁 (201)
    • SECURITY (80)
      • 관리보안 (27)
      • System (10)
      • System | Wargame (30)
      • Android (9)
      • Reversing (3)
      • AWS (1)
    • BLOCKCHAIN (45)
      • BlockChain (22)
      • Ethereum (23)
    • PROGRAMMING (30)
      • Web (16)
      • Android (6)
      • Spring (8)
    • IT (0)
      • Article (40)
      • RaspberryPi (5)

블로그 메뉴

  • HOME
  • TIKKLE

인기 글

hELLO · Designed By 정상우.
yuujoeng
SmartContract 테스트넷 배포 (4)
상단으로

티스토리툴바

단축키

내 블로그

내 블로그 - 관리자 홈 전환
Q
Q
새 글 쓰기
W
W

블로그 게시글

글 수정 (권한 있는 경우)
E
E
댓글 영역으로 이동
C
C

모든 영역

이 페이지의 URL 복사
S
S
맨 위로 이동
T
T
티스토리 홈 이동
H
H
단축키 안내
Shift + /
⇧ + /

* 단축키는 한글/영문 대소문자로 이용 가능하며, 티스토리 기본 도메인에서만 동작합니다.