Choose between Pure TypeScript, WebAssembly, and Bun Native FFI with identical APIs.
Voltaire ships three JavaScript/TypeScript execution backends behind one identical API. Switch backends by changing a single import path — no application code changes required.
Entrypoint Matrix
Entrypoint
Import
Runtime support
Best for
Pure TS
@tevm/voltaire
Every JS runtime
Default; zero boundary overhead for Address/Hex/Uint
Maximum server throughput for high-volume hashing, signing, and verification
// Identical API across all three entrypoints:import { Address, Keccak256, Secp256k1 } from '@tevm/voltaire'; // Pure TSimport { Address, Keccak256, Secp256k1 } from '@tevm/voltaire/wasm'; // WASMimport { Address, Keccak256, Secp256k1 } from '@tevm/voltaire/native'; // Native FFI (Bun)
Per-Module Backend Selection
Mix backends per module so cheap operations stay in pure JS while heavy cryptography runs in WASM or Native FFI:
import { Address, Hex } from '@tevm/voltaire'; // Pure JS (0 µs bridge cost)import { Keccak256Wasm } from '@tevm/voltaire/wasm'; // WASM-accelerated Keccak-256
Native FFI (@tevm/voltaire/native) uses bun:ffi and requires the compiled native shared library (zig build build-ts-native when building from source). On Node.js and browsers, use @tevm/voltaire or @tevm/voltaire/wasm.
WASM Build Modes
Published packages ship ReleaseSmall WASM binaries to balance bundle size and speed. If you run CPU-bound server workloads from source and want maximum raw throughput (loop unrolling + SIMD), build with ReleaseFast. See WASM Build System and Performance.
Was this page helpful?
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Voltaire","colors":{"primary":"#10B981","light":"#34D399","dark":"#059669"},"logo":{"light":"https://mintcdn.com/tevm/YrHiDehri69PtRdL/logo-light.png?fit=max\u0026auto=format\u0026n=YrHiDehri69PtRdL\u0026q=85\u0026s=e95a5d32dd74826fc038b77937ff5e69","dark":"https://mintcdn.com/tevm/YrHiDehri69PtRdL/logo-dark.png?fit=max\u0026auto=format\u0026n=YrHiDehri69PtRdL\u0026q=85\u0026s=8e5fd316a145e60acd03a9c0fa6678da","href":"https://voltaire.tevm.sh"},"favicon":"https://mintcdn.com/tevm/YrHiDehri69PtRdL/favicon.png?fit=max\u0026auto=format\u0026n=YrHiDehri69PtRdL\u0026q=85\u0026s=f6e4b50db700be35556c5260f6a97b7f","background":{"color":{"light":"#FDF2E2","dark":"#0a0a0a"}},"navbar":{"links":[{"href":"https://github.com/evmts/voltaire","label":"GitHub"}],"primary":{"type":"button","label":"Get Started","href":"https://voltaire.tevm.sh/getting-started"}},"footer":{"socials":{"github":"https://github.com/evmts/voltaire","twitter":"https://twitter.com/tevmtools"}},"search":{"prompt":"Search Voltaire docs..."},"contextual":{"options":["copy","view","claude","chatgpt","cursor","vscode","mcp"],"display":"header"},"styling":{"latex":true},"navigation":{"global":{"anchors":[{"anchor":"GitHub","icon":"github","href":"https://github.com/evmts/voltaire"},{"anchor":"Twitter","icon":"twitter","href":"https://twitter.com/tevmtools"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"tevm","hasAudioNarration":false,"actualSubdomain":"tevm","customDomains":["voltaire.tevm.sh"],"gitSource":{"type":"github","owner":"evmts","repo":"voltaire","deployBranch":"main","contentDirectory":"packages/voltaire-ts/docs","isPrivate":true,"mountPath":"","label":""},"feedback":{"thumbs":true},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6b03c9f8429c2eb6eb1be3c7","clientVersion":"0.0.4271","searchFilterCounts":[{"language":"default","tag":"API Reference","count":565},{"language":"default","tag":"Primitives","count":272},{"language":"default","tag":"Generated API (TypeDoc)","count":239},{"language":"default","tag":"EVM","count":197},{"language":"default","tag":"Instructions","count":159},{"language":"default","tag":"Guides \u0026 Skills","count":115},{"language":"default","tag":"Stack","count":67},{"language":"default","tag":"Skills","count":51},{"language":"default","tag":"Index Namespaces","count":49},{"language":"default","tag":"Identity, Standards \u0026 Protocol","count":38}]},"assistantConfig":{"enableAskAiButton":true,"enableStarterQuestions":true,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[{"_id":"6955129287826b5efbdb3995","deploymentId":"69550d3f87826b5efbdb09a0","questionText":"How do I generate an address checksum","status":"active","generatedBy":"manual","createdAt":"2025-12-31T12:09:54.706Z","updatedAt":"2025-12-31T12:09:54.706Z","__v":0},{"_id":"6955128587826b5efbdb395d","deploymentId":"69550d3f87826b5efbdb09a0","questionText":"How do I configure a signer to sign a eip-1559 transaction","status":"active","generatedBy":"manual","createdAt":"2025-12-31T12:09:41.734Z","updatedAt":"2025-12-31T12:09:41.734Z","__v":0},{"_id":"6955127487826b5efbdb3905","deploymentId":"69550d3f87826b5efbdb09a0","questionText":"How do I read balance from an ERC20 contract","status":"active","generatedBy":"manual","createdAt":"2025-12-31T12:09:24.474Z","updatedAt":"2025-12-31T12:09:24.474Z","__v":0}],"googleFontsInlined":false},"customCss":[{"filePath":"public/playground/assets/index-CcVLqkfN.css","href":"/_mintlify/custom/tevm/9e9dbcf184624029/public/playground/assets/index-CcVLqkfN.css"},{"filePath":"style.css","content":".dark #navbar-transition,.dark #navbar>div.absolute,.dark [data-is-opaque]{background-color:#0a0a0a!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}.voltaire-hero{text-align:center;padding:3rem 2rem 6rem;max-width:1280px;margin:0 auto}.voltaire-hero pre,.voltaire-hero code,.voltaire-hero [data-component-part=\"code-block-root\"]{text-align:left!important}.voltaire-title{font-size:clamp(3rem, 8vw, 6rem);font-weight:800;line-height:1.1;margin-bottom:1.5rem}.voltaire-gradient-text{display:block;background:linear-gradient(135deg, #E6A23C 0%, #A0522D 100%);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}.voltaire-tagline{font-size:clamp(1.2rem, 3vw, 1.5rem);color:#999;max-width:800px;margin:0 auto 3rem;line-height:1.6}#tab-indicator{position:absolute;bottom:-8px;height:2px;background:linear-gradient(90deg, #E6A23C 0%, #A0522D 100%);transition:all 0.2s cubic-bezier(0.4, 0, 0.2, 1);border-radius:2px}.voltaire-feature-card{display:flex;align-items:center;gap:1rem;padding:1.5rem;border:1px solid rgba(255, 255, 255, 0.1);border-radius:12px;text-decoration:none;transition:all 0.15s ease;cursor:pointer}.voltaire-feature-card:hover{transform:translateY(-2px);box-shadow:0 4px 12px rgba(212, 147, 30, 0.2);border-color:rgba(212, 147, 30, 0.3)}.voltaire-btn-primary{display:inline-flex;align-items:center;justify-content:center;padding:0.75rem 2rem;border-radius:8px;text-decoration:none;font-weight:600;background:linear-gradient(135deg, #E6A23C 0%, #A0522D 100%);color:white;transition:all 0.15s ease;border:none}.voltaire-btn-primary:hover{transform:scale(1.02);box-shadow:0 4px 12px rgba(230, 162, 60, 0.3)}.voltaire-btn-secondary{display:inline-flex;align-items:center;justify-content:center;padding:0.75rem 2rem;border-radius:8px;text-decoration:none;font-weight:600;background:transparent;color:currentColor;border:2px solid rgba(128, 128, 128, 0.3);transition:all 0.15s ease}.voltaire-btn-secondary:hover{background:rgba(128, 128, 128, 0.1);border-color:rgba(128, 128, 128, 0.5);transform:scale(1.02)}#console-output{min-height:150px;max-height:300px;overflow-y:auto;background:#1e1e1e;border:1px solid rgba(255, 255, 255, 0.1);border-top:none;border-radius:0 0 12px 12px;padding:1rem;font-family:'Menlo', Monaco, 'Courier New', monospace;font-size:0.875rem;line-height:1.6;color:#d4d4d4;word-wrap:break-word;white-space:pre-wrap}#editor-container{width:100%;height:600px;border:1px solid rgba(255, 255, 255, 0.1);border-radius:12px 12px 0 0;overflow:hidden;position:relative}"}]}
{"page":{"pagePath":"concepts/runtimes-and-wasm","slug":"/concepts/runtimes-and-wasm","pageMetadata":{"title":"Runtimes \u0026 WASM","description":"Choose between Pure TypeScript, WebAssembly, and Bun Native FFI with identical APIs.","href":"/concepts/runtimes-and-wasm"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Choose between Pure TypeScript, WebAssembly, and Bun Native FFI with identical APIs.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{CodeBlock,Heading,Mermaid,Table,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Mermaid)_missingMdxReference(`Mermaid`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`Voltaire ships three JavaScript/TypeScript execution backends behind one identical API. Switch backends by changing a single import path — no application code changes required.`}),`\n`,_jsx(Mermaid,{chart:`flowchart TB\n App[\"Your TypeScript Code\"] -->|\"import from '@tevm/voltaire'\"| JS[\"Pure TypeScript\\\\n(@noble/*, @scure/*, native BigInt)\"]\n App -->|\"import from '@tevm/voltaire/wasm'\"| WASM[\"WebAssembly\\\\n(Zig compiled to .wasm)\"]\n App -->|\"import from '@tevm/voltaire/native'\"| FFI[\"Native C FFI\\\\n(Zig shared library via Bun FFI)\"]\n JS --> Env1[\"Browser · Node · Bun · Deno · Edge\"]\n WASM --> Env2[\"Browser · Node · Bun · Deno · Edge\"]\n FFI --> Env3[\"Bun (macOS · Linux · Windows)\"]`}),`\n`,_jsx(Heading,{level:`2`,id:`entrypoint-matrix`,children:`Entrypoint Matrix`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Entrypoint`}),_jsx(_components.th,{children:`Import`}),_jsx(_components.th,{children:`Runtime support`}),_jsx(_components.th,{children:`Best for`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Pure TS`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`@tevm/voltaire`})}),_jsx(_components.td,{children:`Every JS runtime`}),_jsx(_components.td,{children:`Default; zero boundary overhead for Address/Hex/Uint`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`WASM`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`@tevm/voltaire/wasm`})}),_jsx(_components.td,{children:`Browser, Node, Bun, Deno, Edge`}),_jsx(_components.td,{children:`Faster \u0026 smaller crypto (Keccak-256, secp256k1, BLS12-381, BN254, KZG)`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Native FFI`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`@tevm/voltaire/native`})}),_jsx(_components.td,{children:_jsx(_components.strong,{children:`Bun only`})}),_jsx(_components.td,{children:`Maximum server throughput for high-volume hashing, signing, and verification`})]})]})]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`4`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Identical API across all three entrypoints:`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Address`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Keccak256`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Secp256k1`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '@tevm/voltaire'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`; `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Pure TS`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Address`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Keccak256`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Secp256k1`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '@tevm/voltaire/wasm'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`; `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// WASM`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Address`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Keccak256`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Secp256k1`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '@tevm/voltaire/native'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`; `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Native FFI (Bun)`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`per-module-backend-selection`,children:`Per-Module Backend Selection`}),`\n`,_jsx(_components.p,{children:`Mix backends per module so cheap operations stay in pure JS while heavy cryptography runs in WASM or Native FFI:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Address`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Hex`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '@tevm/voltaire'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`; `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Pure JS (0 µs bridge cost)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Keccak256Wasm`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '@tevm/voltaire/wasm'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`; `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// WASM-accelerated Keccak-256`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`runtime-caveats`,children:`Runtime Caveats`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Feature`}),_jsx(_components.th,{children:`Pure TS`}),_jsx(_components.th,{children:`WASM`}),_jsx(_components.th,{children:`Native FFI (Bun)`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[`Core primitives (`,_jsx(_components.code,{children:`Address`}),`, `,_jsx(_components.code,{children:`Hex`}),`, `,_jsx(_components.code,{children:`Abi`}),`, `,_jsx(_components.code,{children:`Rlp`}),`, `,_jsx(_components.code,{children:`Transaction`}),`)`]}),_jsx(_components.td,{children:`Supported`}),_jsx(_components.td,{children:`Supported`}),_jsx(_components.td,{children:`Supported`})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`Keccak256`}),`, `,_jsx(_components.code,{children:`SHA256`}),`, `,_jsx(_components.code,{children:`Blake2`}),`, `,_jsx(_components.code,{children:`Secp256k1`}),`, `,_jsx(_components.code,{children:`P256`}),`, `,_jsx(_components.code,{children:`Ed25519`})]}),_jsx(_components.td,{children:`Supported`}),_jsx(_components.td,{children:`Supported`}),_jsx(_components.td,{children:`Supported`})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`Bls12381`}),`, `,_jsx(_components.code,{children:`BN254`}),`, `,_jsx(_components.code,{children:`KZG`})]}),_jsx(_components.td,{children:`Supported`}),_jsx(_components.td,{children:`Supported`}),_jsx(_components.td,{children:`Supported`})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`HDWallet`}),` (`,_jsx(_components.code,{children:`@scure/bip32`}),` / `,_jsx(_components.code,{children:`libwally-core`}),`)`]}),_jsxs(_components.td,{children:[`Supported (`,_jsx(_components.code,{children:`@tevm/voltaire/HDWallet`}),`)`]}),_jsx(_components.td,{children:`Not available in WASM`}),_jsx(_components.td,{children:`Supported`})]})]})]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`Native FFI (`,_jsx(_components.code,{children:`@tevm/voltaire/native`}),`) uses `,_jsx(_components.code,{children:`bun:ffi`}),` and requires the compiled native shared library (`,_jsx(_components.code,{children:`zig build build-ts-native`}),` when building from source). On Node.js and browsers, use `,_jsx(_components.code,{children:`@tevm/voltaire`}),` or `,_jsx(_components.code,{children:`@tevm/voltaire/wasm`}),`.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`wasm-build-modes`,children:`WASM Build Modes`}),`\n`,_jsxs(_components.p,{children:[`Published packages ship `,_jsx(_components.code,{children:`ReleaseSmall`}),` WASM binaries to balance bundle size and speed. If you run CPU-bound server workloads from source and want maximum raw throughput (loop unrolling + SIMD), build with `,_jsx(_components.code,{children:`ReleaseFast`}),`. See `,_jsx(_components.a,{href:`/dev/wasm`,children:`WASM Build System`}),` and `,_jsx(_components.a,{href:`/performance`,children:`Performance`}),`.`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Runtimes \u0026 WASM","description":"Choose between Pure TypeScript, WebAssembly, and Bun Native FFI with identical APIs.","href":"/concepts/runtimes-and-wasm"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Entrypoint Matrix","slug":"entrypoint-matrix","depth":2,"children":[]},{"title":"Per-Module Backend Selection","slug":"per-module-backend-selection","depth":2,"children":[]},{"title":"Runtime Caveats","slug":"runtime-caveats","depth":2,"children":[]},{"title":"WASM Build Modes","slug":"wasm-build-modes","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/tevm/4e145ad76c214f9c/public/lib/crypto/Keccak256/Keccak256.js","/_mintlify/custom/tevm/14ce774eadd7d316/public/lib/crypto/Keccak256/constants.js","/_mintlify/custom/tevm/c78683b43791a303/public/lib/crypto/Keccak256/contractAddress.js","/_mintlify/custom/tevm/a2755cf8ee025656/public/lib/crypto/Keccak256/create2Address.js","/_mintlify/custom/tevm/7c8014b0a2e122e1/public/lib/crypto/Keccak256/from.js","/_mintlify/custom/tevm/b51f428a35bae920/public/lib/crypto/Keccak256/hash.js","/_mintlify/custom/tevm/d833ef4bf88082dd/public/lib/crypto/Keccak256/hashHex.js","/_mintlify/custom/tevm/4561e23a4131e73d/public/lib/crypto/Keccak256/hashMultiple.js","/_mintlify/custom/tevm/a11efe8f521461dd/public/lib/crypto/Keccak256/hashString.js","/_mintlify/custom/tevm/d331d98518951922/public/lib/crypto/Keccak256/selector.js","/_mintlify/custom/tevm/1b4b0a027ba4f92e/public/lib/crypto/Keccak256/topic.js","/_mintlify/custom/tevm/08f6c7c9f63bcd09/public/lib/primitives/Address/Address.js","/_mintlify/custom/tevm/b05371bf7292bfd9/public/lib/primitives/Address/Address.wasm.js","/_mintlify/custom/tevm/d39a15610943fce1/public/lib/primitives/Address/AddressType.js","/_mintlify/custom/tevm/d1233406f5ff784e/public/lib/primitives/Address/ChecksumAddress.js","/_mintlify/custom/tevm/3dedbd9749818f0d/public/lib/primitives/Address/LowercaseAddress.js","/_mintlify/custom/tevm/b8c595b749da60d0/public/lib/primitives/Address/UppercaseAddress.js","/_mintlify/custom/tevm/8e6c4a9b7284d14e/public/lib/primitives/Address/calculateCreate2Address.js","/_mintlify/custom/tevm/7c6fd5c90ce56dfd/public/lib/primitives/Address/calculateCreateAddress.js","/_mintlify/custom/tevm/e780740cf5be1dba/public/lib/primitives/Address/clone.js","/_mintlify/custom/tevm/c9670ed7248bad55/public/lib/primitives/Address/compare.js","/_mintlify/custom/tevm/a75a0c3f605e01ed/public/lib/primitives/Address/constants.js","/_mintlify/custom/tevm/44a7a31b5727df26/public/lib/primitives/Address/deduplicateAddresses.js","/_mintlify/custom/tevm/798fa9d830d330e0/public/lib/primitives/Address/equals.js","/_mintlify/custom/tevm/078c2b79fa48f5b1/public/lib/primitives/Address/errors.js","/_mintlify/custom/tevm/990d7f55ebf42495/public/lib/primitives/Address/from.js","/_mintlify/custom/tevm/f62c749d5bc267f2/public/lib/primitives/Address/fromAbiEncoded.js","/_mintlify/custom/tevm/f0ff3c00290591cc/public/lib/primitives/Address/fromBase64.js","/_mintlify/custom/tevm/43c42964e3fa38bd/public/lib/primitives/Address/fromBytes.js","/_mintlify/custom/tevm/e880921296ad270c/public/lib/primitives/Address/fromHex.js","/_mintlify/custom/tevm/088956e96a796586/public/lib/primitives/Address/fromNumber.js","/_mintlify/custom/tevm/b25090e0cf92619f/public/lib/primitives/Address/fromPrivateKey.js","/_mintlify/custom/tevm/fe31bd114f907cb8/public/lib/primitives/Address/fromPublicKey.js","/_mintlify/custom/tevm/b723ad6f5bb31941/public/lib/primitives/Address/greaterThan.js","/_mintlify/custom/tevm/efe97c971990cd18/public/lib/primitives/Address/is.js","/_mintlify/custom/tevm/29d1b9c0e2c25f38/public/lib/primitives/Address/isValid.js","/_mintlify/custom/tevm/f7de4b47090d4ee9/public/lib/primitives/Address/isValidChecksum.js","/_mintlify/custom/tevm/26ac82032c3d1b11/public/lib/primitives/Address/isZero.js","/_mintlify/custom/tevm/46c78e2d1b8d5178/public/lib/primitives/Address/lessThan.js","/_mintlify/custom/tevm/920613da132bc4bd/public/lib/primitives/Address/sortAddresses.js","/_mintlify/custom/tevm/54bb82d88b239f63/public/lib/primitives/Address/toAbiEncoded.js","/_mintlify/custom/tevm/7f32003b7095fff4/public/lib/primitives/Address/toBytes.js","/_mintlify/custom/tevm/822125473e1dd53d/public/lib/primitives/Address/toChecksummed.js","/_mintlify/custom/tevm/7f0fb42af8d550a0/public/lib/primitives/Address/toHex.js","/_mintlify/custom/tevm/8e3e616e0747bb97/public/lib/primitives/Address/toLowercase.js","/_mintlify/custom/tevm/9ca5bbad40435447/public/lib/primitives/Address/toShortHex.js","/_mintlify/custom/tevm/d89bbed65edef45d/public/lib/primitives/Address/toU256.js","/_mintlify/custom/tevm/953aa6509b880b35/public/lib/primitives/Address/toUppercase.js","/_mintlify/custom/tevm/bd29d3c1ebd0a9a7/public/lib/primitives/Address/zero.js","/_mintlify/custom/tevm/6397ec9c30faf9f2/public/lib/primitives/Hex/BrandedHex.js","/_mintlify/custom/tevm/5a503d51eebf6992/public/lib/primitives/Hex/Hex.js","/_mintlify/custom/tevm/6cd2268109f98ccf/public/lib/primitives/Hex/assertSize.js","/_mintlify/custom/tevm/6b29febbc3fb8998/public/lib/primitives/Hex/clone.js","/_mintlify/custom/tevm/2481678ff5623626/public/lib/primitives/Hex/concat.js","/_mintlify/custom/tevm/56d402d68ddda578/public/lib/primitives/Hex/equals.js","/_mintlify/custom/tevm/dfe92b8f9ee42af6/public/lib/primitives/Hex/errors.js","/_mintlify/custom/tevm/a0d6b66550835443/public/lib/primitives/Hex/from.js","/_mintlify/custom/tevm/a3647a1b21e42810/public/lib/primitives/Hex/fromBigInt.js","/_mintlify/custom/tevm/faf2994a9172c032/public/lib/primitives/Hex/fromBoolean.js","/_mintlify/custom/tevm/0db3355f4f7c2c95/public/lib/primitives/Hex/fromBytes.js","/_mintlify/custom/tevm/7111617b8953df10/public/lib/primitives/Hex/fromBytes.test.js","/_mintlify/custom/tevm/31ee588077965cc7/public/lib/primitives/Hex/fromNumber.js","/_mintlify/custom/tevm/fa9827942a3310d3/public/lib/primitives/Hex/fromString.js","/_mintlify/custom/tevm/86f1adfd149ba34b/public/lib/primitives/Hex/index.js","/_mintlify/custom/tevm/e290eb93e25d66d3/public/lib/primitives/Hex/isHex.js","/_mintlify/custom/tevm/edfd361765cd5e76/public/lib/primitives/Hex/isSized.js","/_mintlify/custom/tevm/9011f12763b05840/public/lib/primitives/Hex/pad.js","/_mintlify/custom/tevm/08602a0a45703b06/public/lib/primitives/Hex/padRight.js","/_mintlify/custom/tevm/f98f5cf842246ce5/public/lib/primitives/Hex/padRight.test.js","/_mintlify/custom/tevm/33b175868c59a64d/public/lib/primitives/Hex/random.js","/_mintlify/custom/tevm/2b1775a56ae678a4/public/lib/primitives/Hex/size.js","/_mintlify/custom/tevm/6b373db66241c991/public/lib/primitives/Hex/slice.js","/_mintlify/custom/tevm/5848f895a172ab08/public/lib/primitives/Hex/toBigInt.js","/_mintlify/custom/tevm/1d721ea9a0020a06/public/lib/primitives/Hex/toBoolean.js","/_mintlify/custom/tevm/b9ffb9225e746172/public/lib/primitives/Hex/toBytes.js","/_mintlify/custom/tevm/ef6b1dbb7a456b15/public/lib/primitives/Hex/toBytes.test.js","/_mintlify/custom/tevm/cf4e19cd8ab82e91/public/lib/primitives/Hex/toNumber.js","/_mintlify/custom/tevm/7847828161ebd5c0/public/lib/primitives/Hex/toString.js","/_mintlify/custom/tevm/8beb317e49d6e4b5/public/lib/primitives/Hex/trim.js","/_mintlify/custom/tevm/e04856d83b79fd62/public/lib/primitives/Hex/utils.js","/_mintlify/custom/tevm/868916bf7ba78fda/public/lib/primitives/Hex/validate.js","/_mintlify/custom/tevm/24c70bd5461596af/public/lib/primitives/Hex/xor.js","/_mintlify/custom/tevm/4a0260ed70052249/public/lib/primitives/Hex/zero.js","/_mintlify/custom/tevm/5c128827a2ce2e2c/public/lib/tevm.js","/_mintlify/custom/tevm/1b4c7be0717192cd/public/playground/assets/__vite-browser-external-C0fuJ8fl.js","/_mintlify/custom/tevm/859124dd29573d27/public/playground/assets/__vite-browser-external-CBWEVyox.js","/_mintlify/custom/tevm/435a17343618aa5a/public/playground/assets/ffi-VNFqKuDw.js","/_mintlify/custom/tevm/8d60c1220d8dc5a6/public/playground/assets/index-DKNrZ79z.js"],"subdomain":"tevm","siteName":"Voltaire","title":"Runtimes \u0026 WASM - Voltaire","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-23T05:04:20.275Z","originalFileLocation":"concepts/runtimes-and-wasm.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Choose between Pure TypeScript, WebAssembly, and Bun Native FFI with identical APIs.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Voltaire\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/tevm/rlLjwDSzWzfzc4wD/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/tevm/rlLjwDSzWzfzc4wD/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/tevm/rlLjwDSzWzfzc4wD/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/tevm/rlLjwDSzWzfzc4wD/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/tevm/rlLjwDSzWzfzc4wD/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/tevm/rlLjwDSzWzfzc4wD/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/tevm/rlLjwDSzWzfzc4wD/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/tevm/rlLjwDSzWzfzc4wD/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/tevm/rlLjwDSzWzfzc4wD/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Runtimes \u0026amp; WASM - Voltaire\">\u003cmeta data-mint-head property=\"og:description\" content=\"Choose between Pure TypeScript, WebAssembly, and Bun Native FFI with identical APIs.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Voltaire\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://voltaire.tevm.sh/concepts/runtimes-and-wasm\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://tevm.mintlify.site/_mintlify/api/og/v2?division=Core+Concepts\u0026amp;title=Runtimes+%26+WASM\u0026amp;description=Choose+between+Pure+TypeScript%2C+WebAssembly%2C+and+Bun+Native+FFI+with+identical+APIs.\u0026amp;theme=9f525840923a22b0bf15eb9f\u0026amp;signature=56a971739362acdb7caaba10415bccdd5720fd97fa47386bb09d5c53d0487e30\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Runtimes \u0026amp; WASM - Voltaire\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Choose between Pure TypeScript, WebAssembly, and Bun Native FFI with identical APIs.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://tevm.mintlify.site/_mintlify/api/og/v2?division=Core+Concepts\u0026amp;title=Runtimes+%26+WASM\u0026amp;description=Choose+between+Pure+TypeScript%2C+WebAssembly%2C+and+Bun+Native+FFI+with+identical+APIs.\u0026amp;theme=9f525840923a22b0bf15eb9f\u0026amp;signature=56a971739362acdb7caaba10415bccdd5720fd97fa47386bb09d5c53d0487e30\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/tevm/rlLjwDSzWzfzc4wD/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Voltaire\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#10B981\">\u003clink data-mint-head rel=\"canonical\" href=\"https://voltaire.tevm.sh/concepts/runtimes-and-wasm\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/concepts/runtimes-and-wasm.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://voltaire.tevm.sh/#organization\",\"name\":\"Voltaire\",\"url\":\"https://voltaire.tevm.sh\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/tevm/YrHiDehri69PtRdL/logo-light.png?fit=max\u0026auto=format\u0026n=YrHiDehri69PtRdL\u0026q=85\u0026s=e95a5d32dd74826fc038b77937ff5e69\"}},{\"@type\":\"WebSite\",\"@id\":\"https://voltaire.tevm.sh#website\",\"name\":\"Voltaire\",\"url\":\"https://voltaire.tevm.sh\",\"publisher\":{\"@id\":\"https://voltaire.tevm.sh/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://voltaire.tevm.sh/concepts/runtimes-and-wasm#webpage\",\"url\":\"https://voltaire.tevm.sh/concepts/runtimes-and-wasm\",\"name\":\"Runtimes \u0026 WASM\",\"description\":\"Choose between Pure TypeScript, WebAssembly, and Bun Native FFI with identical APIs.\",\"dateModified\":\"2026-11-23T05:04:20.275Z\",\"isPartOf\":{\"@id\":\"https://voltaire.tevm.sh#website\"},\"breadcrumb\":{\"@id\":\"https://voltaire.tevm.sh/concepts/runtimes-and-wasm#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://voltaire.tevm.sh/concepts/runtimes-and-wasm#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Core Concepts\",\"item\":\"https://voltaire.tevm.sh/concepts/branded-types\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Runtimes \u0026 WASM\",\"item\":\"https://voltaire.tevm.sh/concepts/runtimes-and-wasm\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://voltaire.tevm.sh/concepts/runtimes-and-wasm#article\",\"headline\":\"Runtimes \u0026 WASM\",\"name\":\"Runtimes \u0026 WASM\",\"description\":\"Choose between Pure TypeScript, WebAssembly, and Bun Native FFI with identical APIs.\",\"url\":\"https://voltaire.tevm.sh/concepts/runtimes-and-wasm\",\"mainEntityOfPage\":{\"@id\":\"https://voltaire.tevm.sh/concepts/runtimes-and-wasm#webpage\"},\"dateModified\":\"2026-11-23T05:04:20.275Z\",\"publisher\":{\"@id\":\"https://voltaire.tevm.sh/#organization\"},\"isPartOf\":{\"@id\":\"https://voltaire.tevm.sh#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Voltaire\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Voltaire\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/concepts/runtimes-and-wasm.md","siteName":"Voltaire","nav":{"global":{"anchors":[{"anchor":"GitHub","icon":"github","href":"https://github.com/evmts/voltaire"},{"anchor":"Twitter","icon":"twitter","href":"https://twitter.com/tevmtools"}]},"tabs":[{"tab":"Learn","icon":"graduation-cap","groups":[{"group":"Start Here","icon":"rocket","pages":[{"title":"What is Voltaire?","href":"/introduction"},{"title":"Getting Started","href":"/getting-started"},{"title":"Playground","href":"/playground"},{"title":"Library Comparisons","href":"/comparisons"},{"title":"Performance","href":"/performance"}]},{"group":"Tutorials","icon":"book-open","pages":[{"title":"Tutorials","href":"/tutorials/index"},{"title":"Tutorial 1: The $10M Parameter Swap","href":"/tutorials/type-safe-addresses"},{"title":"Tutorial 2: Reading Raw Calldata Like an EVM","href":"/tutorials/abi-and-calldata"},{"title":"Tutorial 3: Building a Gasless Permit Relayer","href":"/tutorials/signing-and-eip712"},{"title":"Tutorial 4: Anatomy of an EIP-1559 Transaction","href":"/tutorials/transactions-and-rlp"},{"title":"Tutorial 5: Own Your Abstraction: Build a Skill","href":"/tutorials/building-a-skill"}]},{"group":"Core Concepts","icon":"lightbulb","pages":[{"title":"Branded Types","href":"/concepts/branded-types"},{"title":"Data-First \u0026 Tree-Shakeable API","description":"Why Voltaire separates raw data from functions, and how subpath and functional imports keep bundles minimal.","href":"/concepts/data-first-api"},{"title":"Runtimes \u0026 WASM","href":"/concepts/runtimes-and-wasm"},{"title":"Error Handling","description":"Structured validation errors, error hierarchy, and integrating with typed-error patterns like Effect.ts or neverthrow.","href":"/concepts/error-handling"},{"title":"Skills","href":"/concepts/skills"},{"title":"Multiplatform Architecture","href":"/concepts/multiplatform"},{"title":"AI-Assisted Development \u0026 MCP","href":"/concepts/ai-and-mcp"},{"title":"Schema Annotations","href":"/concepts/schema-annotations"},{"title":"External Dependencies","href":"/concepts/external-dependencies"}]}]},{"tab":"Guides \u0026 Skills","icon":"wand-magic-sparkles","pages":[{"title":"Guides \u0026 Skills","href":"/guides/rate-limiting"}]},{"tab":"API Reference","icon":"cubes","pages":[{"title":"API Reference","href":"/primitives/address"}]},{"tab":"SDKs \u0026 Internals","icon":"wrench","pages":[{"title":"SDKs \u0026 Internals","href":"/swift"}]}]},"basePath":"","title":"Runtimes \u0026 WASM - Voltaire","deploymentId":"dpl_Em2U4NQQ2N2DE3HPbPUJVZLnAtvc","buildId":"dpl_Em2U4NQQ2N2DE3HPbPUJVZLnAtvc","dynamics":[],"chunks":[]}