GMX · Schema

CrossChainDepositPrepareRequest

DeFiPerpetual ExchangeDEXTradingLeverageLiquidity PoolsGLPGM TokensGLVArbitrumAvalancheWeb3

Properties

Name Type Description
innerData string Optional extra payload appended to the LayerZero compose message (hex).
nativeDropAmount string Optional native drop (gas) for the destination chain, in destination native decimals.
nativeFee string Optional; when omitted, server quotes Stargate `nativeFee` on the source chain.
composeGas string Optional client-supplied destination compose-gas hint; bypasses server quote.
tokenKind string "trade" → `IStargate.sendToken` (default); "platform" → `IStargate.send`.
isNativeOnSource boolean Whether the source-chain token is the chain's native gas asset (ETH/BNB/etc.) — Stargate auto-wraps it to WETH/WBNB on the source side. Optional override; otherwise resolved from the registry.
destinationStargatePoolAddress string Optional override; otherwise resolved from the registry by symbol/token.
sourceStargatePoolAddress string Optional override; otherwise resolved from the registry by symbol/token.
tokenAddress string Token address on the settlement chain (alternative to `tokenSymbol`).
tokenSymbol string Token identifier. Provide one of: - `tokenSymbol` (e.g. "USDC" | "USDT" | "ETH"), or - `tokenAddress` on the settlement chain. Stargate pool addresses and source-side `isNativeOnSource` are resolved s
amount string Amount in token-native decimals as a base-10 string.
account string GMX account that will receive the deposit on the settlement chain.
srcChainId number Source chain id (where the user holds funds and signs the bridge tx).
View JSON Schema on GitHub

JSON Schema

CrossChainDepositPrepareRequest.json Raw ↑
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://api-evangelist.github.io/gmx/json-schema/CrossChainDepositPrepareRequest.json",
  "title": "CrossChainDepositPrepareRequest",
  "properties": {
    "innerData": {
      "type": "string",
      "description": "Optional extra payload appended to the LayerZero compose message (hex)."
    },
    "nativeDropAmount": {
      "type": "string",
      "description": "Optional native drop (gas) for the destination chain, in destination native decimals."
    },
    "nativeFee": {
      "type": "string",
      "description": "Optional; when omitted, server quotes Stargate `nativeFee` on the source chain."
    },
    "composeGas": {
      "type": "string",
      "description": "Optional client-supplied destination compose-gas hint; bypasses server quote."
    },
    "tokenKind": {
      "type": "string",
      "enum": [
        "trade",
        "platform"
      ],
      "description": "\"trade\" \u2192 `IStargate.sendToken` (default); \"platform\" \u2192 `IStargate.send`."
    },
    "isNativeOnSource": {
      "type": "boolean",
      "description": "Whether the source-chain token is the chain's native gas asset (ETH/BNB/etc.) \u2014\nStargate auto-wraps it to WETH/WBNB on the source side. Optional override;\notherwise resolved from the registry."
    },
    "destinationStargatePoolAddress": {
      "type": "string",
      "description": "Optional override; otherwise resolved from the registry by symbol/token."
    },
    "sourceStargatePoolAddress": {
      "type": "string",
      "description": "Optional override; otherwise resolved from the registry by symbol/token."
    },
    "tokenAddress": {
      "type": "string",
      "description": "Token address on the settlement chain (alternative to `tokenSymbol`)."
    },
    "tokenSymbol": {
      "type": "string",
      "description": "Token identifier. Provide one of:\n - `tokenSymbol` (e.g. \"USDC\" | \"USDT\" | \"ETH\"), or\n - `tokenAddress` on the settlement chain.\nStargate pool addresses and source-side `isNativeOnSource` are resolved server-side."
    },
    "amount": {
      "type": "string",
      "description": "Amount in token-native decimals as a base-10 string."
    },
    "account": {
      "type": "string",
      "description": "GMX account that will receive the deposit on the settlement chain."
    },
    "srcChainId": {
      "type": "number",
      "format": "double",
      "description": "Source chain id (where the user holds funds and signs the bridge tx)."
    }
  },
  "required": [
    "amount",
    "account",
    "srcChainId"
  ],
  "type": "object"
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/CrossChainDepositPrepareRequest"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no email required.

A second provider on the same verified email joins the account you already have.