Prepare a user-signed sendAsset transfer between users, subaccounts, spot and pe
Prepare a user-signed sendAsset transfer between users, subaccounts, spot and perp DEXs. Use "" for the default perp DEX and "spot" for spot; perp transfers require the collateral token. Sign with the main wallet and submit unchanged to the returned submitPath (unpaid). Invalid input returns 400; execution may return 422 for rejection or 502 for provider failure. Treat spot and perp as one balance only when the account abstraction mode is "unifiedAccount".
Paid test badge: not yet. The checks above are free: we call the tool without paying and read the payment request it sends back. The Verified badge needs paid calls whose answers match the promised output, and nobody can buy a badge.
Endpoint
POST https://chainhilt.ai/api/v1/perp/hyperliquid/send-asset/preview
| Category | Code and developer |
|---|---|
| Provider host | chainhilt.ai |
| Networks | eip155:8453 |
| Payment schemes | exact |
| Self-reported calls, 30 days | 15 from 3 payers (the provider's figure, not ours) |
Our checks, last 30 days
We never call tools that send, buy, move money or file anything, not even without paying.
Example input (from the provider)
{
"body": {
"amount": "1",
"destination": "0x1111111111111111111111111111111111111111",
"destinationDex": "spot",
"fromSubAccount": "",
"nonce": 1710000000000,
"sourceDex": "",
"token": "USDC:0x6d1e7cde53ba9467b783cb7c530ce054"
},
"bodyType": "json",
"method": "POST",
"type": "http"
}
Promised output schema (from the provider)
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"body": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"amount": {
"description": "Positive decimal amount in token units, e.g. \"1.5\".",
"pattern": "^(0|[1-9][0-9]*)(\\.[0-9]+)?$",
"type": "string"
},
"destination": {
"description": "Recipient address on Hyperliquid.",
"pattern": "^0x[a-fA-F0-9]{40}$",
"type": "string"
},
"destinationDex": {
"description": "Balance to credit: \"\" for the default perp DEX, \"spot\", or a named perp DEX.",
"type": "string"
},
"fromSubAccount": {
"anyOf": [
{
"const": "",
"type": "string"
},
{
"pattern": "^0x[a-fA-F0-9]{40}$",
"type": "string"
}
],
"default": "",
"description": "\"\" for the main account, or the subaccount address to send from."
},
"nonce": {
"description": "Action nonce in milliseconds since the epoch; defaults to the current time.",
"minimum": 0,
"type": "integer"
},
"sourceDex": {
"description": "Balance to send from: \"\" for the default perp DEX or \"spot\".",
"enum": [
"",
"spot"
],
"type": "string"
},
"token": {
"description": "tokenName:tokenId, e.g. \"USDC:0x6d1e7cde53ba9467b783cb7c530ce054\". Perp DEX transfers need its collateral token.",
"pattern": "^[^:\\s]+:0x[0-9a-fA-F]{32}$",
"type": "string"
}
},
"required": [
"destination",
"sourceDex",
"destinationDex",
"token",
"amount"
],
"type": "object"
},
"bodyType": {
"enum": [
"json",
"form-data",
"text"
],
"type": "string"
},
"method": {
"enum": [
"POST"
],
"type": "string"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method",
"bodyType",
"body"
],
"type": "object"
},
"output": {
"properties": {
"example": {
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}