Execute Lambda API

The executeLambda is a JSON-RPC endpoint that handles is used to execute a given lambda. It takes lambda_uuid and params as inputs and returns an error or signature.

Request Spec

HTTP Method: POST

  • Body:

    • id: String -> Unique Lambda UUID obtained during creaction

    • params: Array -> List of arbitrary inputs you want to pass during execution.

Response Spec

  • result: String -> Error message or Wallet Signature

Request Example

POST / HTTP/1.1
Host: tiramisu.0xpass.io
Content-Type: application/json

{
    "jsonrpc": "2.0",
    "method": "executeLambda",
    "params": {
        "data": {
            "id": "15363182-f572-40ee-ba2a-efee4c8a3691",
            "params": []
        }
    },
    "id": 3
}

Response Example

Success:

{
    "jsonrpc": "2.0",
    "result": "0x9d73f5605320e17ab1eaa0e7d1c82df288fddbef1085bbc4d30707128b8dac135ef3207c349c522f407cc6e72740e2ee503c4086ce8d0096f665180e9d8f71ab1b",
    "id": 3
}

Error:

{
    "jsonrpc": "2.0",
    "result": "Condition not met",
    "id": 3
}

Last updated