MirWon DragonMirWon

API 문서

MirWon API 완전 가이드 및 참조 문서

Getting Started

MirWon API를 사용하여 블록체인 애플리케이션을 구축하세요. REST API와 WebSocket을 통해 실시간 데이터에 접근할 수 있습니다.

Base URL
https://api.mirwon.io/v1

Mainnet

https://api.mirwon.io/v1

Testnet

https://testnet-api.mirwon.io/v1
Authentication

모든 API 요청에는 API 키가 필요합니다. HTTP 헤더에 API 키를 포함하세요.

Request Header
Authorization: Bearer YOUR_API_KEY
Content-Type: application/json

보안 주의사항: API 키를 클라이언트 사이드 코드에 노출하지 마세요.

주요 API Endpoints
GET
/accounts/{address}/balance

계정의 잔액 정보를 조회합니다.

Parameters
address
string
계정 주소
Response
{
  "address": "mrw1abc123...",
  "balance": {
    "amount": "1000000",
    "denom": "umrw"
  },
  "sequence": "42"
}
POST
/transactions/send

토큰 전송 트랜잭션을 생성합니다.

Request Body
{
  "from_address": "mrw1abc123...",
  "to_address": "mrw1def456...",
  "amount": "1000000",
  "denom": "umrw",
  "memo": "Payment for services"
}
POST
/staking/delegate

밸리데이터에게 토큰을 위임합니다.

SDK Examples
JavaScript
npm install @mirwon/sdk

import { MirWonSDK } from '@mirwon/sdk';

const client = new MirWonSDK({
  apiKey: 'your-api-key'
});
Python
pip install mirwon-sdk

from mirwon_sdk import MirWonClient

client = MirWonClient(
    api_key="your-api-key"
)