genlayer-cli
하는 일
이 스킬은 genlayer 명령줄 도구로 지능형 컨트랙트를 배포하고 상호작용하는 방법을 설명합니다. GenLayer Studio나 GenLayer 테스트넷에서 작업하는 개발자를 위해 네트워크 전환과 트랜잭션 점검을 다룹니다.
사용하는 경우
- ✓명령줄에서 GenLayer 컨트랙트를 배포하고 싶을 때.
- ✓GenLayer 로컬, 스튜디오, 테스트넷 네트워크 사이를 전환해야 할 때.
- ✓GenLayer 컨트랙트 트랜잭션이 실패해서 원인을 살펴보고 싶을 때.
스킬 링크
https://github.com/internet-court/internet-court-skill/blob/main/vendored/genlayer/genlayer-cli/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“GenLayer 컨트랙트를 Bradbury 테스트넷에 배포하고 트랜잭션 결과를 보여 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트는 도구를 설치하고, 필요한 네트워크를 선택한 뒤, 컨트랙트를 배포하고 호출하며 점검하는 명령을 실행합니다. 스킬은 사용자 지정 주소를 입력하기보다 내장 네트워크를 고르라고 권합니다. 내장 설정이 체인 구성을 올바르게 유지하기 때문입니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
GenLayer CLI
The genlayer CLI manages contract deployment, interaction, transaction inspection, and network configuration. Works with GenLayer Studio (local), studio.genlayer.com, and Testnet Bradbury.
Setup
npm install -g genlayer
Network Configuration
genlayer network set # Interactive selector
genlayer network set testnet-bradbury # Direct
genlayer network info # Show current network config
genlayer network list # List all networks
Networks: localnet, studionet, testnet-asimov, testnet-bradbury
Note: studionet is gasless — no tokens are required to deploy or interact with contracts. A 0 GEN balance is expected and does not prevent any operations.
Note: studionet is rate-limited per IP — 60 req/min, 1000 req/hr, 10000 req/day. Limits aren't permanent — batching many deploy/write calls trips -32429 / HTTP 429 and further requests are rejected until the window resets (next minute / hour / day cycle). -32028 signals the pending-queue cap — up to 32 in-flight txs per sender; a separate cap also applies per contract. Throttle batch scripts, wait for receipts between submissions, or use localnet for heavy batches.
Always use genlayer network set instead of --rpc for built-in networks. The --rpc flag bypasses the chain configuration (consensus contract ABI, isStudio flag, etc.) and will cause transaction polling failures. Only use --rpc for custom/private networks not in the built-in list.
Account Management
genlayer account # Show active account (address, balance, network)
genlayer account list # List all accounts
genlayer account create --name dev1 # Create new account
genlayer account use dev1 # Set active account
genlayer account unlock # Cache key in OS keychain (no password prompts)
genlayer account lock # Remove from keychain
# Import from private key or keystore
genlayer account import --name imported --private-key 0x...
genlayer account import --name imported --keystore ./keystore.json
# Send tokens
genlayer account send 0x123...abc 10gen
Amount formats: "10gen", "0.5gen", or raw wei "1000000000000000000"
Non-interactive usage (CI/CD, containers, agents)
account create, account import, and account send accept --password <password> to skip interactive prompts:
genlayer account create --name dev1 --password "mypassword"
genlayer account import --name imported --private-key 0x... --password "mypassword"
account unlock requires an OS keychain (macOS Keychain, GNOME Keyring, etc.) and will fail in headless containers. When the account is locked, commands that sign transactions (deploy, write, appeal, account send) will prompt for the keystore password. To automate these, pipe the password via stdin:
echo "mypassword" | genlayer deploy --contract contracts/my_contract.py --args "arg1"
Funding Accounts
New accounts start with 0 GEN. Funding requirements depend on the network:
StudioNet is gasless — accounts with 0 GEN can deploy and interact with contracts without any funding. A zero balance on StudioNet is expected and normal. Skip funding entirely when using StudioNet.
For testnets (Bradbury, Asimov), fund the account before deploying or writing.
Faucet: https://testnet-faucet.genlayer.foundation/
- Get your address:
genlayer account-> copy theaddressfield - Go to the faucet URL, paste the address, and claim 100 GEN (once per 24 hours)
- Verify:
genlayer accountshould show the updated balance
The faucet uses Cloudflare Turnstile and cannot be automated from CLI -- the user must claim manually in a browser. Works for both Testnet Bradbury and Testnet Asimov.
Contract Deployment
# Deploy a specific contract
genlayer deploy --contract contracts/my_contract.py
genlayer deploy --contract contracts/my_contract.py --args "arg1" 42
# Run all deploy scripts in deploy/ folder
genlayer deploy
Contract Interaction
Read (no transaction)
genlayer call <address> <method>
genlayer call 0x123...abc get_data --args "key1"
Write (sends transaction)
genlayer write <address> <method>
genlayer write 0x123...abc set_data --args "hello"
Inspect contract
genlayer schema <address
자주 묻는 질문
studionet에 배포하려면 토큰이 필요한가요?
아니요. 스킬은 studionet이 가스비가 없어서 잔액이 0이어도 배포와 호출이 막히지 않는다고 말합니다.
여러 배포를 한꺼번에 하면 왜 거부될 수 있나요?
Studionet은 IP 주소마다 분, 시간, 일 단위 요청 수를 제한하므로, 많은 배치는 한도에 걸릴 수 있습니다. 스킬은 속도를 조절하거나 localnet을 쓰라고 제안합니다.
어떤 네트워크를 쓸 수 있나요?
localnet, studionet, testnet-asimov, testnet-bradbury입니다.
상세 정보
작성자의 원본 설명
Use the GenLayer CLI to deploy, interact with, and debug intelligent contracts.
인기도
- GitHub 스타
- 7.0k
- 순위
- #13627
- 라이선스
- —
- 업데이트
- 2026. 10. 26.
댓글
- …
이 저장소의 다른 스킬
internet-court
7.0k에이전트가 다른 AI 에이전트나 유료 서비스와 안전하게 결제하거나 거래하도록 돕고, 적합한 전문 가이드를 알려 줍니다.
genlayer-erc7710-connector
7.0k에이전트가 GenLayer 검토 결과를 권한 시스템에 연결하도록 돕습니다. 나쁜 검토는 에이전트의 권한을 제한하거나 취소할 수 있습니다.
genlayer-intelligent-contracts
7.0k에이전트가 다른 에이전트가 위임받은 범위를 지켰는지 확인하는 AI 심판의 규칙, 증거, 결과를 정하도록 돕습니다.
x402-erc7710
7.0k에이전트가 웹 서비스 요금을 요청 한 건마다 결제하고, 권한 예산 안에서 지속적인 지출을 설정하도록 돕습니다.
비슷한 스킬
api-connector-builder
280k에이전트가 기존 패턴을 따라 새로운 API 연결을 만들도록 합니다. 새로운 방식을 도입하지 않고 연동을 하나 더 추가할 때 씁니다.
api-design
280k에이전트가 모범 사례에 따라 REST API를 설계하도록 돕습니다. API가 통신하는 방식, 오류를 보여 주는 방식, 데이터를 정리하는 방식을 정하는 데 유용합니다.
backend-patterns
280k에이전트가 서버 쪽 아키텍처 패턴과 데이터베이스 최적화를 다루도록 돕습니다. 서버에서 실행되는 코드를 만들거나 검토할 때 유용합니다.