The SDK is published to npm asDocumentation Index
Fetch the complete documentation index at: https://docs.outcome.xyz/llms.txt
Use this file to discover all available pages before exploring further.
@outcome.xyz/hip4. It ships with full TypeScript types, supports both ESM and CommonJS, and has no runtime dependencies beyond your own project’s dependencies.
Install
Entry points
The package exposes two entry points:| Entry point | Use when |
|---|---|
@outcome.xyz/hip4 | Importing the adapter, utility functions, and types in the same file |
@outcome.xyz/hip4/types | Importing types only, without pulling in any runtime code |
TypeScript requirements
The SDK targets ES2020 and uses features such as optional chaining, nullish coalescing, andBigInt. Strict mode is recommended:
tsconfig.json
The SDK has zero runtime dependencies. Installing it will not add any third-party packages to your
node_modules.Module format support
The package ships both ESM (.js) and CommonJS (.cjs) builds. Your bundler or runtime will pick the right format automatically based on your project’s "type" field and import syntax. No additional configuration is required.