{"uid":"cap_1TMgnEAtBxWtten0-cL6g","slug":"chainhilt-send-asset-transfer-preview-hyperliquid-62d6f7c1","name":"ChainHilt Send Asset Transfer Preview (Hyperliquid)","description":"Discover, pay for, and execute the on-chain actions your agent needs. No API keys. Compatible with x402. Your wallet stays local.","url":"https://chainhilt.ai/api/v1/perp/hyperliquid/send-asset/preview?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"nonce":{"type":"integer","minimum":0,"description":"Action nonce in milliseconds since the epoch; defaults to the current time."},"token":{"type":"string","pattern":"^[^:\\s]+:0x[0-9a-fA-F]{32}$","description":"tokenName:tokenId, e.g. \"USDC:0x6d1e7cde53ba9467b783cb7c530ce054\". Perp DEX transfers need its collateral token."},"amount":{"type":"string","pattern":"^(0|[1-9][0-9]*)(\\.[0-9]+)?$","description":"Positive decimal amount in token units, e.g. \"1.5\"."},"sourceDex":{"enum":["","spot"],"type":"string","description":"Balance to send from: \"\" for the default perp DEX or \"spot\"."},"destination":{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$","description":"Recipient address on Hyperliquid."},"destinationDex":{"type":"string","description":"Balance to credit: \"\" for the default perp DEX, \"spot\", or a named perp DEX."},"fromSubAccount":{"anyOf":[{"type":"string","const":""},{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$"}],"default":"","description":"\"\" for the main account, or the subaccount address to send from."}}},"responseSchema":{"type":"json","example":{"response":{"errors":[],"actions":[{"data":{"nonce":1710000000000,"action":{"type":"sendAsset","nonce":1710000000000,"token":"USDC:0x6d1e7cde53ba9467b783cb7c530ce054","amount":"1","sourceDex":"","destination":"0x1111111111111111111111111111111111111111","destinationDex":"spot","fromSubAccount":"","hyperliquidChain":"Mainnet","signatureChainId":"0xa4b1"},"typedData":{"types":{"EIP712Domain":[{"name":"name","type":"string"},{"name":"version","type":"string"},{"name":"chainId","type":"uint256"},{"name":"verifyingContract","type":"address"}],"HyperliquidTransaction:SendAsset":[{"name":"hyperliquidChain","type":"string"},{"name":"destination","type":"string"},{"name":"sourceDex","type":"string"},{"name":"destinationDex","type":"string"},{"name":"token","type":"string"},{"name":"amount","type":"string"},{"name":"fromSubAccount","type":"string"},{"name":"nonce","type":"uint64"}]},"domain":{"name":"HyperliquidSignTransaction","chainId":42161,"version":"1","verifyingContract":"0x0000000000000000000000000000000000000000"},"message":{"type":"sendAsset","nonce":1710000000000,"token":"USDC:0x6d1e7cde53ba9467b783cb7c530ce054","amount":"1","sourceDex":"","destination":"0x1111111111111111111111111111111111111111","destinationDex":"spot","fromSubAccount":"","hyperliquidChain":"Mainnet","signatureChainId":"0xa4b1"},"primaryType":"HyperliquidTransaction:SendAsset"}},"type":"signature","chainId":42161,"protocol":"hyperliquid","submitPath":"/perp/hyperliquid/send-asset/execute"}],"warnings":[]}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_cxnmwEUwXo6ZSv4w6EB92","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Prepares a user-signed EIP-712 sendAsset transfer payload for moving tokens between Hyperliquid accounts, subaccounts, spot, and perp DEXs — ready to sign and submit.","exampleAgentPrompt":"Prepare a Hyperliquid sendAsset transfer of 1.5 USDC (token USDC:0x6d1e7cde53ba9467b783cb7c530ce054) from my perp DEX balance to address 0x1111111111111111111111111111111111111111's spot balance, using my main account, so I can sign and submit it.","exampleUseCases":[{"title":"Move collateral from perp to spot","prompt":"I want to move 50 USDC from my Hyperliquid perp DEX balance to my spot balance — prepare the EIP-712 payload I need to sign with my main wallet."},{"title":"Transfer funds to another user's perp account","prompt":"Prepare a Hyperliquid sendAsset transfer of 100 USDC from my spot balance to 0xAbCd1234AbCd1234AbCd1234AbCd1234AbCd1234's perp DEX account so I can sign it with my main wallet and submit it."},{"title":"Subaccount withdrawal to main perp balance","prompt":"I need to send 25 USDC from my Hyperliquid subaccount 0xDeadBeef00000000000000000000000000000001 perp balance back to my main account's perp DEX — build the signed transfer preview for me."}],"resultDescription":"Returns a JSON object containing an actions array with one entry: a 'signature' type action holding the full EIP-712 typed data (domain, message, types, primaryType), the raw action object, the nonce, chainId, protocol ('hyperliquid'), and a submitPath pointing to the execute endpoint. Also includes any errors or warnings from validation. The caller must sign the typedData with their main wallet and POST the unchanged payload to the submitPath.","failureModes":["400 Bad Request: invalid input (bad token format, negative amount, malformed address, invalid sourceDex/destinationDex enum)","422 Unprocessable Entity: transfer rejected at execution time (insufficient balance, invalid subaccount, unsupported cross-DEX transfer)","502 Bad Gateway: upstream Hyperliquid provider failure","Spot-perp unified balance misuse: treating spot and perp as one balance when account abstraction mode is not 'unifiedAccount'","Missing collateral token: perp DEX transfers require the collateral token to be specified"],"whenToPreferThis":"Use this endpoint when you need to move tokens between Hyperliquid accounts, subaccounts, spot, and perp DEX balances and require an EIP-712 signed payload ready for wallet signing and on-chain submission. Prefer this over raw Hyperliquid API calls when you want a structured preview with validation, error handling, and a ready-made submitPath — especially in an x402 agent workflow with no API key management.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-16T18:39:20.394Z","isFirstParty":false,"canonicalSlug":"chainhilt-send-asset-transfer-preview-hyperliquid-62d6f7c1"}