docs(skills): restore Credential Model to original position in cooking and swap

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
gina888666
2026-06-30 17:30:05 +08:00
co-authored by Claude Sonnet 4.6
parent d0e9e42f17
commit 3ecd76c572
2 changed files with 12 additions and 12 deletions
+6 -6
View File
@@ -407,6 +407,12 @@ The response `data` is an array — one element per wallet:
---
### Credential Model
- `GMGN_PRIVATE_KEY` is used exclusively for **local message signing** — the private key never leaves the machine. The CLI computes an Ed25519 signature in-process and transmits only the base64-encoded result in the `X-Signature` request header.
- `GMGN_API_KEY` is transmitted in the `X-APIKEY` header over HTTPS.
- Neither credential is ever passed as a command-line argument.
## `order quote` Usage
Get an estimated output amount before submitting a swap. Uses normal auth — only `GMGN_API_KEY` required, no `GMGN_PRIVATE_KEY` needed.
@@ -734,12 +740,6 @@ gmgn-cli order strategy cancel \
---
### Credential Model
- `GMGN_PRIVATE_KEY` is used exclusively for **local message signing** — the private key never leaves the machine. The CLI computes an Ed25519 signature in-process and transmits only the base64-encoded result in the `X-Signature` request header.
- `GMGN_API_KEY` is transmitted in the `X-APIKEY` header over HTTPS.
- Neither credential is ever passed as a command-line argument.
## Notes
- Swap uses **signed auth** (API Key + signature) — CLI handles signing automatically, no manual processing needed