New Lambda

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

Using this API, developers will be able to create a new Lambda. You can bring your own smart contract and it will managed by MetaKeep Lambda Infrastructure.

{
  "status": "QUEUED",
  "lambda": "0xf73C3734837fEF48473970CD1E89FDC2fBCf0AD9",
  "transactionId": "2d59c2f4-9766-451d-91f2-b7bcb96f51d0",
  "transactionHash": "0xb1470e0c34729974bee524b9eced35d1d553bd26e184679aa7a9e77c7571884f",
  "transactionChainScanUrl": "https://mumbai.polygonscan.com/tx/0xb1470e0c34729974bee524b9eced35d1d553bd26e184679aa7a9e77c7571884f"
}

Upon calling this API, a transaction is raised and submitted to the Queue on the blockchain. MetaKeep, behind the scenes, employs several strategies to make sure transactions succeed, and at the lowest cost.

📘

Send contract owner's address explicitly in the constructor of your contract

If you are using access control mechanisms like OpenZeppelin's Ownable or AccessControl contracts, make sure to send the owner address explicitly in the constructor of your contract. Do not use msg.sender since it will be one of MetaKeep's gas accounts when creating the lambda.

You can get the status of this blockchain transaction by querying for transaction status by copying transactionId from this API response and querying it in Transaction Status API.

❗️

Replaying this API

Once you get a status response as QUEUED, replaying this API doesn't give you the latest status; Replaying the same API with the same Idempotency-Key results in the same response, always with status-QUEUED. You must query the Transaction Status API for the latest status.

As you would learn from the Transaction Status API docs, if a transaction failed, MetaKeep would have exhausted all feasible smart AI-based strategies to recover from failure, that would have been attempted by humans, and the "FAILED" status, if shown, is final.

Gas Limit

This API currently has gas limit set to 8000000(8M). If you need a higher gas limit, please let us know.

Gas Price

The API sets the right gas price for the transaction based on AI and statistical analysis of the current network conditions for fast and reliable transaction confirmation. If you want even faster confirmation, you can tune the transaction speed in the app settings.

🚧

Api Error Status

You can find error status returned by the api here.

© Copyright 2024, Passbird Research Inc.

Body Params
string

Name of the lambda. It should match the lambdaName argument if it is provided in the constructor.

constructor
object
required

Constructor object with arguments in the format { args: [] }. This can be left empty if the constructor takes no arguments.

string
required
Defaults to 0x1234

Hex encoded smart contract bytecode. You get this after compiling your smart contract using hardhat or truffle.

json
required
Defaults to [{ "inputs": [ { "internalType": "string", "name": "_greeting", "type": "string" } ], "name": "setGreeting", "outputs": [], "stateMutability": "nonpayable", "type": "function", "signature": "0xa4136862" }]

Smart Contract ABI. You get this after compiling your smart contract using hardhat or truffle.

Headers
string
required

An idempotency key is a unique value generated by the client which the server uses to recognize subsequent retries of the same request. This allows developers to safely retry requests without accidentally performing the same operation twice. This is useful when an API call is disrupted in transit and you do not receive a response. Read more

Response

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json