# @wormhole-foundation/sdk-definitions

> Replaces these files from old sdk: * vaa/parser * mock

Latest version **6.1.5** (published 2026-07-29) · 0 weekly downloads

## Install

```sh
npm install @wormhole-foundation/sdk-definitions
pnpm add @wormhole-foundation/sdk-definitions
yarn add @wormhole-foundation/sdk-definitions
bun add @wormhole-foundation/sdk-definitions
```

## Health

**Score 75/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; has provenance; recently updated; high maintenance score; high quality score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 6.1.5 |
| Published | 2026-07-29 |
| First published | 2023-09-07 |
| Weekly downloads | 0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 3 |
| Unpacked size | 561.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 84 |
| Maintainers | wormhole-ci, drlambowh |

## Links

- npm: https://www.npmjs.com/package/@wormhole-foundation/sdk-definitions
- Repository: https://github.com/wormhole-foundation/wormhole-sdk-ts
- Homepage: https://github.com/wormhole-foundation/wormhole-sdk-ts#readme
- Issues: https://github.com/wormhole-foundation/wormhole-sdk-ts/issues
- npm.io page: https://npm.io/package/@wormhole-foundation/sdk-definitions

## Dependencies (3)

- [@noble/curves](https://npm.io/package/@noble/curves.md) ^1.4.0
- [@noble/hashes](https://npm.io/package/@noble/hashes.md) ^1.3.1
- [@wormhole-foundation/sdk-base](https://npm.io/package/@wormhole-foundation/sdk-base.md) 6.1.5

## Recent versions

- 6.1.5 (latest) — 2026-07-29
- 6.0.0-beta.0 (beta) — 2026-06-22
- 1.1.2-alpha.0 (alpha) — 2024-11-19
- 0.2.0-beta.4 (public) — 2023-11-27
- 6.1.4 — 2026-07-22
- 6.1.3 — 2026-07-16
- 6.1.2 — 2026-07-13
- 6.1.1 — 2026-06-25
- 6.1.0 — 2026-06-24
- 6.0.0 — 2026-06-22
- 5.2.0 — 2026-06-16
- 5.1.0 — 2026-06-16
- 5.0.0 — 2026-06-16
- 5.0.0-beta.3 — 2026-06-15
- 5.0.0-beta.2 — 2026-06-15
- … 420 more at https://npm.io/package/@wormhole-foundation/sdk-definitions/versions

## README

# Definitions SDK

Replaces these files from old sdk:
  * vaa/parser
  * mock

## VAA

### Deserialization

```ts
// decode VAA
const vaaBytes = Buffer.from(testCase.vaa, "base64");
// deserializes the base VAA details (emitterChain, emitterAddress, sequence, signatures, payload, hash, etc)
const parsed = deserialize("Uint8Array", new Uint8Array(vaaBytes));
// deserialize the payload, first argument denotes the type of payload
const deserialized = deserializePayload("BAMessage", parsed.payload);
```

#### Available payload types

Token Bridge:
- "AttestMeta"
- "Transfer"
- "TransferWithPayload

Generic Relayer:
- "DeliveryInstruction"
- "RedeliveryInstruction"
- "DeliveryOverride"

Governance
- "WormholeCoreUpgradeContract"
- "WormholeCoreGuardianSetUpgrade"
- "WormholeCoreSetMessageFee"
- "WormholeCoreTransferFees"
- "WormholeCoreRecoverChainId"
- "TokenBridgeRegisterChain"
- "TokenBridgeUpgradeContract"
- "TokenBridgeRecoverChainId"
- "NftBridgeRegisterChain"
- "NftBridgeUpgradeContract"
- "NftBridgeRecoverChainId"
- "RelayerRegisterChain"
- "RelayerUpgradeContract"
- "RelayerUpdateDefaultProvider"

Circle
- "CircleTransferRelay"

BAM
- "BAMessage"

---
_Source: https://npm.io/package/@wormhole-foundation/sdk-definitions · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
