- Website: outlayer.fastnear.com
- Source: github.com/fastnear/near-outlayer
How it works
- You write code in Rust and compile it to WebAssembly (WASI Preview 1 or 2).
- The binary is hosted on GitHub. OutLayer clones, compiles, and caches it.
- A NEAR contract calls OutLayer using NEAR’s
yield/resumeflow — or any client can call the HTTPS API directly. - The worker runs the WASM inside a TDX enclave and returns the result with a TEE attestation (code hash, input hash, output, signed by the hardware).
Features
Example use cases
The examples gallery ships 14+ production-ready demos. A few highlights:- Price & weather oracles — fetch off-chain data with a proof of source.
- Coin-flip / lottery — VRF-based randomness for fair on-chain games.
- AI calls — invoke OpenAI/GPT from a contract with verifiable output.
- Cross-chain reads — query Ethereum state without a bridge.
- Private DAO voting — tally votes inside the enclave; only the result is published.
- NEAR Intents swaps — execute Intent flows from off-chain logic.
- Encrypted email & CAPTCHA — end-to-end use cases requiring secrets.
Deployed services built on OutLayer
OutLayer is a third-party platform. As with any external service, evaluate its operational guarantees, attestation verification flow, and key custody model before relying on it for production assets.