Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions docs/docs.json
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,12 @@
"sdk/resources/supported-evm-chains",
"sdk/resources/network-status"
]
},
{
"group": "FAQ",
"pages": [
"faqs/index"
]
}
]
},
Expand Down
12 changes: 12 additions & 0 deletions docs/faqs/index.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
title: 'FAQ'
description: 'Common questions about using the Lit JS SDK'
---

# Frequently Asked Questions

## What's the default `responseStrategy` for `executeJs` in v8?

The behavior matches v7. When you omit `responseStrategy`, the SDK calls `processLitActionResponseStrategy` with `{ strategy: 'leastCommon' }`. If you provide an unrecognized value, the helper still falls back to `leastCommon`.

This default keeps compatibility with `Lit.Actions.runOnce`. Only the node that runs the `runOnce` block returns a value, so selecting the least-common response ensures that single result is preserved. When `runOnce` is not used, all nodes should emit the same payload, making least- vs most-common equivalent—the former stayed in place because it was the quickest path to enabling the new `runOnce` flow in v8.
10 changes: 5 additions & 5 deletions docs/index.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: "What is Lit Protocol"
description: "Decentralized key management and private compute"
title: 'What is Lit Protocol'
description: 'Decentralized key management and private compute'
---

<Tip>
Expand Down Expand Up @@ -62,9 +62,9 @@ Developers can utilize Lit's programmable and chain-agnostic signing capabilitie
Lit enables the creation of data oracles that securely fetch off-chain data for use in on-chain applications, bridging the gap between smart contracts and real-world information.

> **📝 Data Oracle Kit**
>
>
> The [Lit Oracle Kit](https://github.com/LIT-Protocol/lit-oracle-kit) demonstrates how the Lit Network can be used to sign data pulled from the web (or another blockchain) and write it to chain.
>
>
> **Note:** This kit is currently built for V7 of the Lit SDK. A V8 version is coming soon!

### AI Agents and Infrastructure
Expand All @@ -77,6 +77,6 @@ Projects in this category are focused on delivering essential infrastructure cri

## Next Steps

To learn more about how Lit Protocol works and keeps assets and data secure, continue on to the sections ahead.
To learn more about how Lit Protocol works and keeps assets and data secure, continue on to the sections ahead.

If you're a developer looking to build with the Lit SDK, check out the [Build with Lit](https://litprotocol.mintlify.app/sdk/introduction) section to get started.
Loading