cURL
curl --request POST \ --url https://api.glider.fi/portfolio/:portfolioId/execute \ --header 'Content-Type: <content-type>' \ --header 'X-API-KEY: <x-api-key>' \ --data '{ "chainId": "<string>", "params": { "calls": { "to": "<string>", "data": "<string>", "value": "<string>" }, "nonce": "<string>" } }'
{ "success": true, "data": { "status": "<string>", "executionId": "<string>", "transaction": { "hash": "<string>", "status": "<string>", "blockNumber": 123, "timestamp": 123 }, "result": { "success": true, "gasUsed": "<string>", "events": [ {} ] }, "error": { "code": "<string>", "message": "<string>", "details": "<string>" } }, "NOT_FOUND": {}, "UNAUTHORIZED": {}, "FORBIDDEN": {}, "BAD_REQUEST": {}, "SIMULATION_FAILED": {}, "EXECUTION_FAILED": {} }
Execute transactions for a portfolio
application/json
Show Properties
Show Call Object
Show Transaction Object
Show Simulation Object
GET /portfolio/:portfolioId/execute/status/:executionId
Show Result Object
Show Error Object
curl -X POST "https://api.glider.fi/portfolio/port_1a2b3c4d5e6f/execute" \ -H "X-API-KEY: YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "chainId": "1", "params": { "calls": [ { "to": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48", "data": "0xa9059cbb000000000000000000000000d8da6bf26964af9d7eed9e03e53415d37aa96045000000000000000000000000000000000000000000000000000000002540be400", "value": "0" } ] } }'
{ "success": true, "data": { "executionId": "exec_a1b2c3d4e5f6", "status": "pending", "transaction": { "hash": "0xabcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890", "data": "0x...", "from": "0x1234...5678", "to": "0xA0b8...eB48", "chainId": "1" } } }
curl -X GET "https://api.glider.fi/portfolio/port_1a2b3c4d5e6f/execute/status/exec_a1b2c3d4e5f6" \ -H "X-API-KEY: YOUR_API_KEY"
{ "success": true, "data": { "status": "completed", "executionId": "exec_a1b2c3d4e5f6", "transaction": { "hash": "0xabcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890", "status": "confirmed", "blockNumber": 16123456, "timestamp": 1684147200 }, "result": { "success": true, "gasUsed": "51234", "events": [ { "name": "Transfer", "address": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48", "args": { "from": "0x1234...5678", "to": "0xd8da...6045", "value": "1000000000" } } ] } } }
dryRun