---
updatedAt: 2025-08-07T13:39:53.000Z
agentTools:
  projectIndex: https://docs.metakeep.xyz/llms.txt
---

# Import Lambda

Using this API, you can import already deployed contracts that will be managed by the MetaKeep Lambda Infrastructure. This can be used to import contracts that you have already deployed or to import popular contracts like Uniswap, Aave, USDC, etc.

You can find an end-to-end working demo for lambda import [here](https://docs.metakeep.xyz/docs/lambda-business-wallet-import-and-invoke).

> 📘 Note that imported contracts are only supported with the `BUSINESS_WALLET`

> 🚧 Api Error Status
>
> You can find error status returned by the api [here](https://docs.metakeep.xyz/reference/api-error-status#v2applambdaimport).

© Copyright 2024, Passbird Research Inc.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "production",
    "version": "3.4"
  },
  "servers": [
    {
      "url": "https://api.metakeep.xyz/"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "in": "header",
        "name": "x-api-key"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/v2/app/lambda/import": {
      "post": {
        "summary": "Import Lambda",
        "description": "",
        "operationId": "v2applambdaimport",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "lambda",
                  "name",
                  "abi"
                ],
                "properties": {
                  "lambda": {
                    "type": "string",
                    "description": "Hex encoded lambda contract address."
                  },
                  "name": {
                    "type": "string",
                    "description": "Name of the lambda."
                  },
                  "abi": {
                    "type": "string",
                    "description": "Smart Contract ABI. You get this after compiling your smart contract using hardhat or truffle.",
                    "default": "[{             \"inputs\": [                 {                     \"internalType\": \"string\",                     \"name\": \"_greeting\",                     \"type\": \"string\"                 }             ],             \"name\": \"setGreeting\",             \"outputs\": [],             \"stateMutability\": \"nonpayable\",             \"type\": \"function\",             \"signature\": \"0xa4136862\"         }]",
                    "format": "json"
                  }
                }
              },
              "examples": {
                "Import ERC20": {
                  "value": {
                    "lambda": "0xA6d5B7FE96c2E63E1763fEBEc9c738146f8740e7",
                    "abi": [
                      {
                        "inputs": [
                          {
                            "internalType": "address",
                            "name": "to",
                            "type": "address"
                          },
                          {
                            "internalType": "uint256",
                            "name": "amount",
                            "type": "uint256"
                          }
                        ],
                        "name": "transfer",
                        "outputs": [
                          {
                            "internalType": "bool",
                            "name": "",
                            "type": "bool"
                          }
                        ],
                        "stateMutability": "nonpayable",
                        "type": "function"
                      }
                    ],
                    "name": "ERC20_Sample"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"status\": \"SUCCESS\",\n}"
                  }
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```