# LIT Actions

#### Lit Actions Overview

**Lit Actions** are immutable JavaScript programs executed in a decentralized environment on the Lit Network. Designed for secure, condition-based automation, they enable blockchain-agnostic execution with native cryptographic primitives such as signing, encryption, and decryption.

Key properties:

* **Language + Runtime:** JavaScript (Deno), with support for selected libraries like `ethers.js` and `@solana/web3.js`.
* **Programmable Signing:** Integrated with **Programmable Key Pairs (PKPs)** to perform threshold-based signing when predefined conditions are met.
* **Cross-Chain Capable:** Interacts with multiple chains (EVM, Solana, etc.) and can query off-chain APIs directly.
* **Decentralized & Verifiable:** Executes on a globally distributed node network, ensuring censorship resistance, determinism, and transparency.

***

#### Lit Actions in Genius Bridge Protocol (GBP)

Within GBP, Lit Actions form the **execution layer** that replaces centralized backends or solver networks. Specifically, they are used to:

* **Monitor On-Chain Events:** Detect order emissions, vault imbalances, and state transitions across supported chains.
* **Trigger Execution Logic:** Initiate swaps, vault rebalancing, or USDC movements across chains using CCTP or Wormhole.
* **Sign Transactions:** Use threshold PKPs to programmatically sign transactions once trigger conditions are met—no single signer, no trusted relayer.
* **Coordinate Cross-Chain State:** Enforce deterministic logic across heterogeneous chains without compromising decentralization or liveness.

Lit Actions are foundational to how Genius achieves *deterministic, decentralized cross-chain automation*—without centralized intermediaries.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.bridgesmarter.com/components/lit-actions.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
