본문으로 건너뛰기
Skillpedia
API 및 서버 (백엔드)7.0k · #13627

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가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/internet-court/internet-court-skill/blob/main/vendored/genlayer/genlayer-cli/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

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/

  1. Get your address: genlayer account -> copy the address field
  2. Go to the faucet URL, paste the address, and claim 100 GEN (once per 24 hours)
  3. Verify: genlayer account should 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.

repo: internet-court/internet-court-skill

인기도

GitHub 스타
7.0k
순위
#13627
라이선스
—
업데이트
2026. 10. 26.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬