Passport
  • 👩‍💻Welcome
  • How Passport Works
    • Overview
    • Background
      • Threshold Cryptography
      • Secure Multi-Party Computation
      • Distributed Architecture
      • Secure Enclaves
    • In Depth
      • Under the Hood
      • User Flows and Account Controls
      • The Halides Model
      • End-to-End Encryption
      • Security
      • Node Operation
  • guides and examples
    • Getting Started
    • Quickstarts and Examples
      • Passkey Account
      • Clerk Auth
      • Lambda Quickstart
  • Authentication
    • Overview
    • Configuring your scope
    • Passkeys
      • Registration
        • Register using SDK
        • Register using API
          • Initiate Registration
          • Complete Registration
      • Authentication
        • Authenticating with SDK
        • Authenticating with API
          • Initiate Authentication
          • Complete Authentication
    • Developer Owned Auth
      • Registration
        • Register using SDK
        • Register using API
          • Delegate Registration
  • Wallet Operations
    • Overview
    • Passkeys Signer
      • Sign Message
        • Sign Message SDK
        • Sign Message API
      • Sign Transaction
        • Sign Transaction SDK
        • Sign Transaction API
    • DOA Signer
      • Sign Message
        • Sign Message SDK
        • Sign Message API
      • Sign Transaction
        • Sign Transaction SDK
        • Sign Transaction API
    • Viem Support
  • Programmability
    • Overview
    • Passport Lambda
    • Lambda Functions
      • Create Lambda
        • Create Lambda SDK
        • Create Lambda API
      • Execute Lambda
        • Execute Lambda SDK
        • Execute Lambda API
      • List Lambda
        • List Lambda SDK
        • List Lambda API
  • Appendix
    • Moving to Mainnet
    • State Of The Network
    • Generating DOA Keys
    • API Request Setup
      • Unauthenticated Requests
      • Authenticated Requests
Powered by GitBook
On this page
  • Request Spec
  • Response Spec
  • Request Example
  • Response Example
  1. Programmability
  2. Lambda Functions
  3. Execute Lambda

Execute Lambda API

PreviousExecute Lambda SDKNextList Lambda

Last updated 1 year ago

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

  • :

    • N/A

  • 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
}
Headers