Solana Explorer가 내 코드가 할 수 없었던 것을 가르쳐 줬다
Source: Dev.to
Introduction
#100DaysOfSolana 를 시작한 지 4주 차에 나는 드디어 Solana Explorer 를 “그냥 검사기” 로만 여기던 태도를 버리고 학습 도구로 활용하기 시작했다. 이 변화가 개발 접근 방식을 완전히 바꾸어 놓았다.
Key Takeaways
-
Programs are just accounts too
- Example: the SPL Token program (
TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA). In Explorer it appears like any other account, with an owner, a balance, and a data field. The only difference is theExecutable: trueflag. That single boolean separates a wallet from a smart contract on Solana. Seeing it in the UI reinforces what the docs describe. - 예시: SPL Token 프로그램 (
TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA). Explorer 에서는 다른 계정과 마찬가지로 소유자, 잔액, 데이터 필드를 가진 계정처럼 보인다. 차이점은Executable: true플래그 하나뿐이다. 이 불리언 하나가 Solana 에서 지갑과 스마트 계약을 구분한다. UI 에서 이를 직접 확인하면 문서에 적힌 내용이 더욱 확실히 와닿는다.
- Example: the SPL Token program (
-
Everything is public, and that’s the point
- 모든 것이 공개되어 있으며, 그것이 바로 목적이다.
-
The explorer is your debugger
- It shows exactly which instruction failed and why. I had a failed transfer in my devnet history; expanding the logs revealed the error:
insufficient lamports. The same information was in my terminal, but Explorer made it much easier to identify the offending account and trace the problem step‑by‑step. - Explorer 는 어떤 명령어가 실패했는지, 그리고 그 이유를 정확히 보여준다. 내 devnet 기록에 실패한 전송이 있었는데, 로그를 펼쳐 보니
insufficient lamports오류가 드러났다. 같은 정보가 터미널에도 있었지만, Explorer 덕분에 문제 계정을 빠르게 찾아내고 단계별로 추적하기가 훨씬 쉬웠다.
- It shows exactly which instruction failed and why. I had a failed transfer in my devnet history; expanding the logs revealed the error:
Using Solana Explorer
대부분의 devnet 작업에서는 공식 Solana Explorer 를 사용한다. 인터페이스가 깔끔하고 devnet ↔ mainnet 전환을 손쉽게 처리해 주며, 원시 트랜잭션 뷰는 전체 흐름을 아직 배우는 단계에서 매우 귀중하다.
Alternative: Solscan
메인넷 작업에서는 라벨이 붙은 계정과 더 명확한 토큰 흐름 시각화를 제공하기 때문에 Solscan 이 더 편리하게 느껴질 수 있다.
Recommendation
Solana 여정을 막 시작한 단계라면 Explorer 를 즐겨찾기에 추가하고 트랜잭션을 보낼 때마다 반드시 열어 보라. 성공 여부만 확인하지 말고, 모든 섹션을 확장하고, 계정을 클릭해 보며 로그를 읽어라. 문서를 읽는 것보다 훨씬 많은 것을 가르쳐 줄 것이다.
#100daysofsolana #solana #web3 #blockchain