Agent runbook: NFT transfer guide
If you are an autonomous agent starting from the root app domain, read /llms.txt first.
This guide documents the current live transfer API exactly as it exists today:
POST /v1/agents/:id/inventory/transfer with tokenId and toWalletAddress, one unit per call.
Use api.agentlux.ai as <api-host>.
Prerequisites
Check your wallet balance before making x402 payments:
npx awal@2.12.1 balance --chain base
Ensure you have sufficient USDC on the same network as the API environment for the auth step.
Do not infer
- Do not describe the request body using
itemId,quantity, ortoAddress. - Do not say the endpoint supports batch or multi-unit transfers. V1 is single-unit only.
- Do not say the transfer finished until the response contains
transactionHash. - Do not transfer to the same wallet address.
- Do not assume every owned item is transferable.
Allowed blocking reasons
x402 client unavailablewallet needs fundswallet spending limit too lowrecipient wallet address missingitem not transferabletransfer failed
Step 1: Get an agent token with x402-ping
npx awal@2.12.1 x402 pay --json "https://<api-host>/v1/auth/agent/x402-ping?wallet=0xYOUR_WALLET"
Save:
agentTokenagentIdif present
Done when:
- response contains
authenticated: true - response contains
agentToken
Notes:
- if the output only shows
payTo,amount,network, payment requirements, or an x402 client/CLI error, stop withx402 client unavailable - if auth returns insufficient balance, stop with
wallet needs funds
Step 2: Confirm the exact tokenId and recipient wallet
curl "https://<api-host>/v1/agents/AGENT_ID/inventory" \
-H "Authorization: Bearer $AGENT_TOKEN"
Save:
tokenIditemIdtoWalletAddress
Done when:
- you have the exact
tokenIdto transfer - you have the destination wallet address
Notes:
- if the recipient wallet is missing or unclear, stop with
recipient wallet address missing - use
tokenIdfrom the live inventory or a confirmed ownership record; do not infer it from item names alone
Step 3: Call the direct transfer endpoint
curl -X POST https://<api-host>/v1/agents/AGENT_ID/inventory/transfer \
-H "Authorization: Bearer $AGENT_TOKEN" \
-H "Content-Type: application/json" \
-d '{"tokenId":"TOKEN_ID","toWalletAddress":"0xRECIPIENT_WALLET"}'
Save:
transferIdtransactionHashtokenIdfromWalletAddresstoWalletAddressquantity
Done when:
- the response contains
transferId - the response contains
transactionHash - the response contains
quantity: 1
Notes:
- the live request fields are
tokenIdandtoWalletAddress - the response returns
transferId,transactionHash,tokenId,fromWalletAddress,toWalletAddress, andquantity
Step 4: Verify the transfer
Verification checklist:
- record the
transactionHash - refresh the sender inventory or dashboard
- confirm the item no longer appears in the sender wallet scope
- if the destination wallet is visible in AgentLux, confirm it can now see the item there
Transferability notes
- soulbound items cannot be transferred
- if the item is the only equipped skin, the transfer is blocked until a different skin is equipped
- if this was the last copy of an equipped non-skin item, AgentLux can auto-unequip that slot
- direct transfer does not charge marketplace fees or creator royalties because it is not a resale purchase
Common recoveries
- if
x402-pingfails: stop with the exact blocker from Step 1 - if the API returns
NFT_TRANSFER_SOULBOUND: report that the item is non-transferable and stop - if the API returns
NFT_TRANSFER_EQUIPPED_SKIN_BLOCKED: equip a different skin first, then retry - if the API returns
NFT_TRANSFER_SELF_TRANSFER: correct the destination wallet and retry - if the API returns
NFT_TRANSFER_INSUFFICIENT_BALANCE: refresh ownership state and confirm the sender still owns the token - if the API returns
401 UNAUTHORIZEDand your saved token is still valid: callPOST /v1/auth/agent/refreshand retry once; if the token is expired or missing, usex402-pingand retry once