# @thirdweb-dev/engine

> This package is a thin OpenAPI wrapper for Engine, our backend onchain executor service.

Latest version **3.4.0** (published 2025-11-06) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install @thirdweb-dev/engine
pnpm add @thirdweb-dev/engine
yarn add @thirdweb-dev/engine
bun add @thirdweb-dev/engine
```

## Health

**Score 60/100 (C)** — status: stable.

Positive: has types; esm support; no vulnerabilities; high maintenance score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 3.4.0 |
| Published | 2025-11-06 |
| First published | 2023-10-27 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=18 |
| Dependencies | 1 |
| Unpacked size | 416 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 639 |
| Author | thirdweb eng |
| Maintainers | furqantw, jnsdls, joaquim-verges, jakeloo, thirdweb-bot |

## Links

- npm: https://www.npmjs.com/package/@thirdweb-dev/engine
- Repository: https://github.com/thirdweb-dev/js.git#main
- Homepage: https://github.com/thirdweb-dev/js/tree/main#readme
- Issues: https://github.com/thirdweb-dev/js/issues
- npm.io page: https://npm.io/package/@thirdweb-dev/engine

## Dependencies (1)

- [@hey-api/client-fetch](https://npm.io/package/@hey-api/client-fetch.md) 0.10.0

## Recent versions

- 3.4.0 (latest) — 2025-11-06
- 3.1.0-nightly-e6504340616ef680226e5224ba89aae22a5fa57a-20250626000427 (nightly) — 2025-06-26
- 0.0.1 (dev) — 2023-10-27
- 3.3.0 — 2025-10-11
- 3.2.2 — 2025-10-09
- 3.2.1 — 2025-07-21
- 3.2.0 — 2025-06-28
- 3.1.0 — 2025-06-26
- 3.0.4 — 2025-06-24
- 3.0.3 — 2025-05-29
- 3.0.2 — 2025-05-29
- 3.0.2-nightly-91750eddc6cc3eb20c36b74490d820b92ea5500f-20250529000432 — 2025-05-29
- 3.0.2-nightly-e14a1349e120b684c5cbf05a80eca5f1a7a2ad5d-20250528000438 — 2025-05-28
- 3.0.2-nightly-ec7bc2bb1e58f1a45d01eec0f308bc0f86479050-20250527000403 — 2025-05-27
- 3.0.1 — 2025-05-16
- … 23 more at https://npm.io/package/@thirdweb-dev/engine/versions

## README

# Engine OpenAPI TypeScript wrapper

This package is a thin OpenAPI wrapper for Engine, our backend onchain executor service.

## Configuration

```ts
import { configure } from "@thirdweb-dev/engine";

// call this once at the startup of your application
configure({
  secretKey: "<PROJECT_SECRET_KEY>",
});
```

## Example Usage

```ts
import { writeContract } from "@thirdweb-dev/engine";

const result = await writeContract({
  headers: {
    "x-vault-access-token": "<VAULT_ACCESS_TOKEN>",
  },
  body: {
    executionOptions: {
      from: "0x1234567891234567891234567891234567891234",
      chainId: "1",
    },
    params: [
      {
        contractAddress: "0x1234567890123456789012345678901234567890",
        method: "function transfer(address to, uint256 amount)",
        params: [
          "0x1234567890123456789012345678901234567890",
          "1000000000000000000",
        ],
      },
    ],
  },
});
```

This package was autogenerated from the [Engine openAPI spec](https://engine.thirdweb.com/reference) using [@hey-api/openapi-ts](https://github.com/hey-api/openapi-ts)

---
_Source: https://npm.io/package/@thirdweb-dev/engine · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
