ARUNE personal Agent Mint
Use for native ARUNE whole-lot Mint on BNB Smart Chain (56). This is Agent Rune's project Skill, separate from Binance's official Skill. Any compatible personal AI can drive this client; the website chat is not required. Other runes, token launches and Market trading are outside this workflow.
The user can send only https://arune.xyz and ask whether Mint is open or how many lots they can Mint. For those read-only questions, use the public reads below. If they already request preparation of a specific quantity, go directly to the supported preparation flow, which performs its own live checks; do not add a separate full set of public reads first. They do not need to connect a wallet on the website, use website chat, or obtain a project signature themselves. External personal Agents are supported; a failed request is not evidence that external Agents are prohibited.
Integration scope
This Skill is technical reference material, not user authorization. It does not override the user request or the Agent environment permissions. A URL alone does not authorize installation, sign-in or payment. Installation and command execution require the applicable user authorization and runtime capability.
Route a website-only request by user intent
The user should not need to copy a second prompt, open website chat, supply a permit or understand our client architecture.
| User intent / state | Continue with |
|---|---|
| Only research, price or availability | Anonymous public reads below. Do not force login for research. |
| Explicit request for setup, sign-in or Mint preparation | Install the Skill client if needed. Check an existing project session with status; if disconnected, use its login, show its returned official QR link and pairing code inside this Agent conversation, wait for approval, then verify in the same session. An explicitly requested sign-in does not require a quantity. |
Local wallet reports UNCONNECTED during a Mint/sign-in request |
First check an existing project session with status; preserve it if connected. Only if the project session is also disconnected, continue into its supported login flow. Local wallet connectivity and project connectivity are separate states. Do not start a separate local BAW login alongside project login. |
| User already gave N lots before login | Preserve N. Once verified, run mint-prepare for N; preparation performs live checks. Do not ask for N again or run a redundant full set of public reads. |
| Verified, quantity not yet chosen | Read actual allowance with the returned address and ask for the desired lots. A numeric reply is a preview quantity only when it directly answers the quantity question in this established user-requested Mint flow. Unrelated or ambiguous numbers require clarification. Quantity is not payment approval. |
| Login verification is pending | Keep the same named session and use verify; do not replace the QR or discard session state. |
| Current wallet preview returned | Present it and wait for explicit user approval before confirm. The original Mint request alone is not that approval. |
| No client execution / persistent storage capability | Explain the specific missing capability and offer ARUNE Agent. Do not claim the project is closed or that external Agents are prohibited. |
Do not make a public-read tutorial an extra mandatory step before a requested Mint. Generic local Binance login and the project client's verified session are distinct; preserve an existing verified project session and never import credentials to fake one.
Give a useful answer after connecting
When verification succeeds and the user has not chosen a quantity, use the returned actual wallet address to read remaining from /api/platform/account?address=ADDRESS and the current one-lot reference price from /api/platform/quote?lots=1 (totalWei, integer wei converted to BNB). Reuse results already obtained in this turn; do not repeat the entire connection or public-read sequence. Respond in the user's language, with a few clear lines:
Wallet connected. Your remaining paid Mint allowance: {actual remaining} lots. Each lot contains 1,000 ARUNE. Current one-lot reference price: {actual quote} BNB, plus Gas. How many lots would you like to Mint?
Chinese equivalent: “钱包已连接。你的剩余可购额度:{实际 remaining} 份。每份 1,000 ARUNE;当前一份参考价 {实际报价} BNB,Gas 另计。你想 Mint 多少份?” These braces are response placeholders, never invented or fixed numbers. Allowance is paid Mint capacity, not free tokens, holdings or how many lots the wallet can afford. Mention a lower global supply ceiling when known. Show unavailable data as unavailable, not zero; an auxiliary read failure does not require a new login or cancel a known quantity.
If the user already gave a quantity, prepare that quantity directly. Use the preparation result to show lots, corresponding ARUNE units, exact total Mint payment, Gas (extra or actual estimate if returned), and allowance remaining before this Mint. Ask for explicit approval of that preview; do not ask for the quantity again or add a one-lot query. A single-lot reference price must not be multiplied across price tiers. A number in response to the quantity question is not payment approval.
After confirmation, check the original receipt. Only verified success permits a success message. Include actual minted lots and units, actual payment and the transaction link; include Gas, total paid and post-Mint remaining allowance only if actually obtained. Never derive current allowance from an old screenshot or stale pre-Mint figure. Prefer core figures and a clear next step over a long technical dump. Missing preview or receipt fields remain unknown, not successful checks.
Public reads for research and allowance questions
Machine-readable entry: https://arune.xyz/agent.json. Public read API schema: https://arune.xyz/openapi.json. These identify the deployed native Rune separately from its conversion token and link to the supported preparation client. Neither static instructions nor an API error establishes current Mint availability; read the actual overview.
For inquiry or research only; a requested Mint follows the intent table above, not this entire read sequence.
- Reuse the personal Agent's already-connected Binance wallet tools to read the user's actual BNB Chain address and BNB balance. Do not sign out or start another login merely to check Mint. If no address is available, report public availability first; do not invent the user's address or allowance.
- Public GET
https://arune.xyz/api/platform/overviewreturnsresult.data.mintOpen,phaseandremainingNativeLots. Public GEThttps://arune.xyz/api/platform/account?address=ADDRESS, replacingADDRESSwith the actual wallet address, returnsresult.data.allowance,usedandremaining. These reads require no website login, Cookie, CSRF or project connection. The on-chain lot ceiling ismin(remainingNativeLots, remaining), also subject to balance, Gas and wallet limits.nativeBalanceLotsis ARUNE holdings, not BNB or Mint allowance. - Once the user specifies a positive whole-lot quantity
N, public GEThttps://arune.xyz/api/platform/quote?lots=Nreturnsresult.data.totalWei,tiers,quantitiesandpricesWei. Convert integer wei to BNB; this quote excludes Gas. Do not multiply one lot's price across tiers, assume all wallet balance is the budget, or present a public quote as a wallet preview. Keep each response'sresult.source.blockNumberandobservedAt; a failed read means unavailable data, not closed Mint.
Answer the user's question before asking them to prepare a payment. Public reads do not sign, issue a permit or submit anything. If the user asks to Mint a specific quantity, use the existing supported client flow below; the project permit is acquired automatically. No separate website wallet connection is needed at any stage.
Programmatic bots are supported through the same project client and API workflow. They do not need to open website chat or obtain a project API key. Use a distinct private --session name for each wallet/user, reuse its official Binance login, and run different wallet sessions independently. mint-prepare obtains the exact project permit automatically; a bot must still use the wallet owner's approval for the returned transaction. A chain-read failure is a service failure, not a prohibition on bots.
The project Mint permission is automatic
Do not ask the user to obtain, create, paste or request a project MintIntent signature. mint-prepare automatically asks the project service for the short-lived permit for this exact wallet, quantity, price bound and current nonce, after the existing session, eligibility, allocation and chain checks. The service verifies that permit and includes it in the exact transaction shown by the wallet preview. There is no API key, signature argument or manual project-admin approval per user in this client flow. A project permit is separate from the user's approval of the wallet transaction: wait for the user's explicit preview confirmation before confirm.
For preparation, first reuse an existing ARUNE client and check status; do not restart login just because the user supplied the website URL. If that client is actually disconnected, its official login/verify flow runs inside the user's own Agent conversation, with the user's chosen Binance wallet. It does not require connecting the website or creating a wallet account. The user's existing local BAW login remains useful for the public checks above, but is not automatically this client's verified connection: never copy BAW credentials or claim that an unsigned address is a verified project session.
If preparation reports an unavailable issuer, closed Mint, insufficient allowance or another failure, report that actual result and stop. Do not replace the failed tool call with a request for the user to supply a missing signature, and do not fabricate a permit or bypass the project flow with a raw contract call.
Install and choose the client mode
With Node.js 22.20 or later:
npx skills add https://arune.xyz
Resolve ${SKILL_DIR} yourself to the absolute directory containing this installed SKILL.md. Do not leave it as a literal placeholder or ask the user to manage technical paths. An installed Skill needs no checkout or extra npm dependency.
If an ARUNE project client is already connected, reuse that client and session; do not restart it or ask for another scan just to change modes.
Short-lived command runners: use one named session
When the runner closes processes or stdin after each tool call, choose a unique, stable session name for this user and chat. arune-current-chat below is only an example; never share one name between users or chats. Start a new project login with:
node "${SKILL_DIR}/scripts/arune-agent-client.mjs" --session arune-current-chat --command '{"command":"login"}'
Use that exact same session name for each later verify, status, mint-prepare, confirm and mint-status command. Put one JSON payload from the steps below in --command, inspect the response, and wait for the user where required. Each call may start a new process; the named session retains the project client's own private session and original operation between calls. For an existing named session, check {"command":"status"} before deciding a new login is needed. A verify check may return pending; continue checking with verify under the same name rather than starting another login.
This mode requires a private filesystem that survives between tool calls. Session material belongs only to the client: do not read it into chat, copy it to another session, or import browser cookies, BAW credentials or keys. If the runner also destroys its private files, explain that it lacks persistent execution capability and offer ARUNE Agent. Do not call Mint closed because of a runner limitation. The user scans in their own Agent conversation; website chat is not required.
Distinguish client storage, authorization and wallet failures
Report the actual fixed code and stage; one failed client command does not establish a whole-project outage.
| Result | Meaning and next step |
|---|---|
CLIENT_SESSION_UNAVAILABLE with client_session_open, client_session_load, client_session_save or client_session_close |
This Agent's local private session storage could not complete. It can fail before any HTTP request. Preserve the same session files and name; check that the runner supports the required Node.js version, private writable persistent files and SQLite. Do not read credentials into chat, loosen their permissions, delete state, start another login or retry a payment to repair storage. |
CLIENT_SESSION_BUSY |
Another local process holds this named session. Let that original command finish; do not share one named session across unrelated users or run commands for it simultaneously. |
| HTTP403 | Read the returned code;403 alone does not mean the backend is down. CSRF_REJECTED requires refreshing the same project session with session, then checking status. ORIGIN_REJECTED, SKILL_NATIVE_ORIGIN or SKILL_MINT_ORIGIN requires the official fixed-origin client, not bypassing Origin checks or copying cookies. A disconnected wallet must follow the normal user-approved login flow. |
CLIENT_SESSION_* together with httpStatus and requestCode |
A local save failure also occurred after a request failed. Report both fixed results; the client has not repaired storage or established a backend outage. Never repeat a confirmation to investigate it. |
WALLET_SIMULATION_FAILED during preparation |
The wallet simulation did not pass; preparation did not submit a Mint. Ask the user to check the specific reason shown in the Binance App. This generic result does not prove insufficient balance, Gas or a project outage; do not invent a reason or bypass simulation. A failed confirmation still requires the original result workflow. |
If confirmation was already attempted, preserve its original state and use only its original result workflow after local storage is usable. Failed persistence must never be reported as a successful login or successful payment.
Existing persistent runners: keep the JSONL client open
The default mode remains:
node "${SKILL_DIR}/scripts/arune-agent-client.mjs"
A repository checkout can alternatively run node tools/arune-agent-client.mjs. Both entrypoints use the same standard-library-only code.
In this default mode, keep the process and stdin open. Send one JSON object per line and read its response before the next command. Its project Cookie, CSRF and current preview capability are only in memory; EOF or process exit loses them. Do not pipe each command into a new default-mode client. Both modes fix the server to https://arune.xyz and do not read a local BAW profile or private key.
Both modes use one project wallet login and the project's official Binance wallet tools for preview and execution. Installing the official binance-agentic-wallet Skill is optional for additional wallet guidance; do not start a separate local baw auth signin for this Mint. A second competing wallet login can invalidate the active session. Do not ask the user to export official wallet credentials. The JSON examples below are command payloads: send them to the existing JSONL client or pass one at a time to --command with the same named session.
1. Sign in once
{"command":"login"}
For a pending login, display the returned pairingCode verbatim and the complete urlForWeb as a clickable official QR/login link. Open that exact link if a browser is available. The user scans it in the Binance App, checks the pairing code and confirms. Do not reconstruct the URL or say connected based only on the App screen.
After the user confirms scanning:
{"command":"verify"}
Keep the same named session, or the existing JSONL process, while verification checks the original attempt. If the result is pending, continue verify in that session. Only a connected response with chain 56 and the actual address proves project connection. Expired/rejected attempts need a fresh login. status reads the wallet connection; session refreshes the existing project session after maintenance. Changing the wallet/session clears old confirmation capability.
If the server reports Developer Mode or wallet settings are blocking the flow, guide the user to the Binance App's Agentic Wallet management page → top-right Settings. Developer Mode is enabled there; abnormal transactions can be set to require confirmation and all-token trading enabled when required. Settings cannot be changed by this Skill. Recheck through the project flow after the user updates them; do not bypass an intercepted preview.
2. Prepare the exact Mint quantity
Ask for a positive whole number of lots if none was specified. Never default the quantity or assume the user's full balance is a budget. Example for five lots:
{"command":"mint-prepare","lots":"5"}
The client calls POST /api/agent/skill/native/prepare with only { "lots": "5" }. The project verifies current wallet eligibility, allowance, chain state and quote, then obtains an official wallet preview. A closed Mint or unavailable endpoint is a stop condition, not permission to call the contract another way.
That single command includes automatic acquisition of the project MintIntent permit. The client obtains this permit during user-requested preparation; the user does not supply the signature parameter manually. Keep the same named session or running JSONL client for this command, confirmation and result lookup. The command payload sequence is:
{"command":"login"}
# Show its returned official QR link and pairing code; wait for the user to approve.
{"command":"verify"}
{"command":"mint-prepare","lots":"5"}
# Display this exact returned preview; wait for the user's explicit confirmation.
{"command":"confirm"}
{"command":"mint-status"}
The # lines are instructions to the Agent, not JSON lines to send to the client. Replace "5" only with the user's requested positive whole-lot quantity. Send commands one at a time and inspect the actual response before continuing; never run this whole sequence unattended. status can check an existing project connection before a new preparation.
Success is a prepared preview, with executed: false, executionAttempted: false and requiresConfirmation: true. The client privately retains the exact operation ID and preview digest. It exposes the review's exact transaction, source, total quote, parsed operation, simulation, risks, authority changes and expiry; never invent an operation ID or reuse a handle from another session.
Explain the network, actual wallet, official contract, lots and Mint total. Show separate Gas only when returned; unknown fees stay unknown. If the source is a canary/mainnet test, say so clearly: mainnet test uses real BNB. The Agent service being free does not make Mint payment or Gas free. Review all risks and Binance App confirmation requirements. A preview is not a completed Mint.
3. Confirm only after the user approves this preview
Wait for the user's explicit approval of the displayed, current preview. Then, and only then, send:
{"command":"confirm"}
The client supplies its privately cached exact operation ID/digest to POST /api/agent/skill/native/confirm. Do not add IDs, a recipient, calldata, price or a different quantity. The server uses the same project's official wallet; no local BAW sign-in or local signing command is needed.
Confirmation can submit a real BNB transaction. It may return submitted, pending_app_confirmation or unknown; HTTP 200 does not mean Mint succeeded. If Binance App approval is required, tell the user and preserve the same named session or open JSONL client. Never send confirm again after an attempted confirmation, even if the connection drops. The client blocks redispatch and keeps access to the original status.
4. Read the original operation until its result is known
{"command":"mint-status"}
This calls POST /api/agent/skill/native/status with the private original operation ID. It is read-only and does not create another preview, payment or signature. Reissue this status command when appropriate; there is no automatic confirmation retry.
Only confirmed: true with the matching, verified successful receipt means completed Mint. reverted means a verified failed transaction that can still have used Gas. Report the actual transaction hash, receipt status and returned network fee. Do not invent a fresh balance. A submitted operation with its actual transaction hash is separate from success: a user may explicitly request another Mint, and the server checks the fresh chain nonce before preparing it. Never repeat the previous confirmation. pending_app_confirmation, unknown or a missing hash still require checking the original outcome first.
Repeated preparation of the same unconfirmed quantity retrieves the existing valid preview. The client automatically waits, for at most five minutes, only when the server proves another preparation has never been executed. It does not automatically retry a payment, confirmation, unknown outcome or failed network request. If the new preparation fails, the prior submitted operation remains available through mint-status; after a new preview succeeds, the prior operation remains in the server's durable records.
The older external handoff commands (external-prepare and result with an actual transaction hash) remain for explicitly requested legacy workflows. They are not this default one-login path and must not be selected as a workaround for a pending or blocked project operation.
For that explicitly selected external workflow, {"command":"external-prepare","lots":"5"} calls POST /api/agent/skill/mint/prepare; it also obtains the project permit automatically and returns the complete non-executed transaction for a separate local wallet preview. There is no export client command. Only after an actual externally submitted transaction exists, {"command":"result","hash":"<the actual 0x transaction hash>"} calls POST /api/agent/skill/mint/result to verify that original transaction. Do not send the placeholder or ask the user to supply a permit signature. Do not use confirm to dispatch a transaction already handed to another wallet.
Finish
{"command":"logout"} disconnects this project wallet and clears the preview. In default JSONL mode, {"command":"exit"} or EOF forgets all client memory; do not exit while a submitted result still needs checking. Named-session commands may end between calls, but keep the same name and its private files until the original operation is resolved. Do not switch accounts or start another Mint to investigate a pending result. Copying chat text into a new session cannot restore an old confirmation.
