Files
Joaquim VergesGitHubgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
881c7a96f7 Version Packages (#8372)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-11-07 06:04:42 +07:00
..
2025-07-03 18:32:04 -07:00
2025-11-07 06:04:42 +07:00
2025-06-27 18:41:37 -07:00
2025-11-07 06:04:42 +07:00
2025-06-27 18:41:37 -07:00
2025-06-27 18:41:37 -07:00

Engine OpenAPI TypeScript wrapper

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

Configuration

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

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

Example Usage

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 using @hey-api/openapi-ts