Skip to main content
POST
/
2
/
perp
/
payloads
/
deposit
Build deposit payload
curl --request POST \
  --url https://demo-api.mobula.io/api/2/perp/payloads/deposit \
  --header 'Content-Type: application/json' \
  --data '
{
  "timestamp": 123,
  "signature": "<string>",
  "dex": "gains",
  "chainId": "<string>",
  "originChainId": "<string>",
  "amountUsdc": "<string>"
}
'
{
  "success": true,
  "data": {
    "action": "<string>",
    "dex": "<string>",
    "chainId": "<string>",
    "transport": "<string>",
    "payloadStr": "<string>"
  }
}

Body

application/json
timestamp
number
required
signature
string
required
dex
enum<string>
required
Available options:
gains,
lighter
chainId
string
required

Destination chain (the DEX's chain). E.g., lighter:301, evm:42161.

originChainId
string
required

Source chain holding the user's USDC.

amountUsdc
string
required

USDC amount as a decimal string (e.g., "250"). Must be positive.

Response

200 - application/json

Canonical payload envelope

success
boolean
required
data
object
required