POST
/
v1
/
portfolio
/
:portfolioId
/
deposit
curl --request POST \
  --url 'https://api.glider.fi/v1/portfolio/port_abc123/deposit' \
  --header 'Content-Type: application/json' \
  --header 'X-API-KEY: your_api_key_here' \
  --data '{
    "tokenContractAddress": "native",
    "tokenChainId": 8453,
    "tokenAmount": "100000000000000000",
    "userWalletAddress": "0xCustomSenderAddress",
    "simulate": true
  }'
{
  "success": true,
  "data": {
    "portfolioId": "port_abc123",
    "depositRequest": {
      "vaultAddress": "0xPortfolioVaultAddress",
      "token": "native",
      "amount": "100000000000000000"
    },
    "tx": {
      "to": "0xPortfolioVaultAddress",
      "data": "0x",
      "value": "100000000000000000",
      "gas": "21000",
      "gasPrice": "1000000000"
    },
    "simulation": {
      "success": true,
      "gasUsed": "21000"
    },
    "chainId": "8453",
    "message": "Deposit transaction data generated and simulated successfully"
  },
  "correlationId": "corr_abc123",
  "requestId": "req_xyz789",
  "timestamp": "2023-05-21T13:45:12.345Z"
}

Generate a deposit transaction with full gas estimation and simulation.

portfolioId
string
required

The unique identifier of the portfolio

tokenContractAddress
string
required

The contract address of the token to deposit, or “native” for ETH

tokenChainId
number
required

The chain ID where the token exists (e.g., 8453 for Base)

tokenAmount
string
required

The amount to deposit in base units (e.g., wei for ETH, without decimals)

userWalletAddress
string

Optional custom sender address (defaults to the portfolio owner address)

simulate
boolean
default:"true"

Set to true to perform full transaction simulation and gas estimation

X-API-KEY
string
required

Your API key for authentication

Content-Type
string
default:"application/json"

The format of the request body

curl --request POST \
  --url 'https://api.glider.fi/v1/portfolio/port_abc123/deposit' \
  --header 'Content-Type: application/json' \
  --header 'X-API-KEY: your_api_key_here' \
  --data '{
    "tokenContractAddress": "native",
    "tokenChainId": 8453,
    "tokenAmount": "100000000000000000",
    "userWalletAddress": "0xCustomSenderAddress",
    "simulate": true
  }'
{
  "success": true,
  "data": {
    "portfolioId": "port_abc123",
    "depositRequest": {
      "vaultAddress": "0xPortfolioVaultAddress",
      "token": "native",
      "amount": "100000000000000000"
    },
    "tx": {
      "to": "0xPortfolioVaultAddress",
      "data": "0x",
      "value": "100000000000000000",
      "gas": "21000",
      "gasPrice": "1000000000"
    },
    "simulation": {
      "success": true,
      "gasUsed": "21000"
    },
    "chainId": "8453",
    "message": "Deposit transaction data generated and simulated successfully"
  },
  "correlationId": "corr_abc123",
  "requestId": "req_xyz789",
  "timestamp": "2023-05-21T13:45:12.345Z"
}