CLI 도구 사용
소위 Solana
Solana Tool Suite
Solana Tool 설치 방법
Mac & Linux 설치 방법
> sh -c "$(curl -sSfL https://release.solana.com/v1.9.0/install)"
downloading v1.9.0 installer
✨ 1.9.0 initialized
1의 명령 실행 결과로 "export~"의 출력도 함께 출력되기 때문에 실행
> export PATH="/Users/xxx/.local/share/solana/install/active_release/bin:$PATH"
※ 필요에 따라 bash 또는 zsh에 PATH 추가3. 도구 설치 확인
다음 명령을 실행하여 CLI 도구가 제대로 설치되어 있는지 확인합니다.
> solana --version
solana-cli 1.9.0 (src:7782d34b; feat:378846963)
키를 생성할 때 암호문이 필요하기 때문에 키 파일을 임의로 설정하고 생성할 수 있습니다.
> solana-keygen new
Generating a new keypair
For added security, enter a BIP39 passphrase
NOTE! This passphrase improves security of the recovery seed phrase NOT the keypair file itself, which is stored as insecure plain text
BIP39 Passphrase (empty for none):
Enter same passphrase again:
Wrote new keypair to /Users/xxx/.config/solana/id.json
pubkey: xxxxxxxxxxxxxxxxxxxxxxxxx
Save this seed phrase and your BIP39 passphrase to recover your new
keypair:
topple wear visit what refuse sail skin goose law maze secret forum
devnet에 연결하기
solana config set --url https://api.devnet.solana.com
여기는 devnet에 연결되어 있을 것입니다. 확인이 포함되어 있으니 에어드롭 영패를 사용해 보세요.> solana airdrop 1
Requesting airdrop of 1 SOL
Signature: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
1 SOL
위에서 보듯이 devnet에서 안전하게 영패를 얻었습니다!(진짜 토큰이라면 기쁠 거야.)
다음 보도에서 devnet을 사용하여 응용 개발에 도전하고 싶습니다.
인용하다
Reference
이 문제에 관하여(CLI 도구 사용), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://zenn.dev/utah/articles/3a7c7f60ed4e9f텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념 (Collection and Share based on the CC Protocol.)