// API 요청/응답 로그가 여기 표시됩니다
엔드포인트: POST /xrp_api.php
Content-Type: application/json
새 계정 생성: {"api_key":"...","action":"generate"}
→ {"seed":"sEd...","address":"r...","public_key":"ED..."}
| 파라미터 | 타입 | 필수 | 설명 |
| api_key | string | ✅ | API 인증 키 |
| action | string | ❌ | generate(계정생성) 또는 transfer(기본값, 이체) |
| seed | string | ✅ | Ed25519 Seed (sEd...) · transfer 시에만 필요 |
| from | string | ✅ | 송신 XRP 주소 (r...) |
| to | string | ✅ | 수신 XRP 주소 (r...) |
| amount | float | ✅ | 이체 금액 (XRP 단위, 최소 0.000001) |
| dest_tag | int | ❌ | Destination Tag (거래소 입금 시) |
curl 예시
curl -X POST \
-H "Content-Type: application/json" \
-d '{
"api_key": "YOUR_API_KEY",
"seed": "sEd...",
"from": "r송신주소",
"to": "r수신주소",
"amount": 10.5,
"dest_tag": 12345
}' \
https://give.pr-pr.kr/bit/main2/xrp_api.php