Integrations
Manages environment variables for configuration including port settings, environment type, Solana RPC URL, and wallet private keys.
Serves as the foundation for this API server, providing HTTP routing and middleware capabilities for all wallet operations.
Provides version control for the project, supporting the contribution workflow outlined in the README.
Solana MCP 지갑 에이전트 API
Solana 블록체인 지갑 운영을 위한 완벽한 Express API입니다. 이 API는 Solana 지갑 관리, SOL 전송, SPL 토큰 처리 기능을 제공합니다.
특징
- 🔐 지갑 관리 : Solana 지갑을 생성하고 관리하세요
- 💰 SOL 전송 : 지갑 간 SOL 전송
- 🪙 토큰 관리 : SPL 토큰 생성, 발행 및 전송
- 📚 API 문서 : 대화형 Swagger 문서
- 🔄 오류 처리 : 강력한 오류 처리 시스템
- 🧪 개발 준비 완료 : 설정 및 사용이 간편합니다.
필수 조건
- Node.js(v16+)
- npm 또는 yarn
- [선택 사항] 추가 테스트를 위한 Solana CLI 도구
설치
- 저장소를 복제합니다.
지엑스피1
- 종속성 설치:
- 루트 디렉토리에 다음 내용으로
.env
파일을 만듭니다.
개발
개발 서버를 시작합니다.
서버는 핫 리로딩을 활성화하여 http://localhost:3000
에서 시작됩니다.
빌드 및 프로덕션
프로젝트를 빌드하세요:
프로덕션 서버를 시작합니다.
API 문서
서버가 실행되면 다음 위치에서 Swagger 설명서에 액세스하세요.
이 문서에서는 요청/응답 예를 통해 사용 가능한 모든 엔드포인트에 대한 전체적인 개요를 제공합니다.
API 엔드포인트
지갑 엔드포인트
방법 | 엔드포인트 | 설명 |
---|---|---|
우편 | /api/wallet | 새로운 지갑을 만드세요 |
얻다 | /api/wallet/:publicKey | 지갑 정보 가져오기 |
우편 | /api/wallet/transfer | SOL을 다른 지갑으로 전송하세요 |
토큰 엔드포인트
방법 | 엔드포인트 | 설명 |
---|---|---|
우편 | /api/wallet/token | 새로운 SPL 토큰을 생성하세요 |
우편 | /api/wallet/token/mint | 주소로 토큰을 민트하세요 |
우편 | /api/wallet/token/transfer | 다른 지갑으로 토큰 전송 |
보안 고려 사항
- 중요 : 이 프로젝트는 키에 환경 변수를 사용합니다. 운영 환경에서는 적절한 키 관리 서비스를 사용해야 합니다.
- 클라이언트 측 코드에 개인 키를 노출하지 마세요.
- 생산의 경우, 추가적인 인증 및 권한 부여 메커니즘을 구현하는 것을 고려하세요.
솔라나 통합
이 API는 Solana 블록체인과 상호 작용하여 다음을 수행합니다.
- 지갑 생성 및 관리
- 지갑 간 SOL 전송
- 새로운 SPL 토큰 생성
- 주소로 토큰을 민트하세요
- 지갑 간 토큰 전송
오류 처리
API에는 다음과 같은 기능을 갖춘 포괄적인 오류 처리 기능이 포함되어 있습니다.
- 개발 모드에서의 자세한 오류 메시지
- 프로덕션에서 정리된 오류 메시지
- 적절한 HTTP 상태 코드
- 운영 오류와 프로그래밍 오류 구분
기여하다
- 저장소를 포크하세요
- 기능 브랜치를 생성합니다(
git checkout -b feature/amazing-feature
) - 변경 사항을 커밋하세요(
git commit -m 'Add some amazing feature'
) - 브랜치에 푸시(
git push origin feature/amazing-feature
) - 풀 리퀘스트 열기
특허
이 프로젝트는 ISC 라이선스에 따라 라이선스가 부여되었습니다. 자세한 내용은 라이선스 파일을 참조하세요.
지원하다
지원이 필요하면 저장소에 문제를 생성하거나 저장소 관리자에게 문의하세요.
Related MCP Servers
- -securityAlicense-qualityA Model Context Protocol server that provides Claude with comprehensive access to Solana blockchain data via the Helius API, enabling operations like checking wallet balances, retrieving blockchain information, and interacting with tokens and NFTs.Last updated -1198TypeScriptMIT License
- -securityAlicense-qualityA server that enables interaction with the Solana blockchain, providing access to over 40 Solana RPC methods including getting balances, transaction details, block information, and sending transactions.Last updated -PythonMIT License
- AsecurityFlicenseAqualityA server that provides simple RPC endpoints for common Solana blockchain operations, allowing users to check balances, get account information, and transfer SOL between accounts.Last updated -5TypeScript
- -securityAlicense-qualityA Model Context Protocol server that enables Claude AI to interact with the Solana blockchain through a standardized interface, providing tools for transactions, account queries, and wallet management.Last updated -5972Apache 2.0