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