wormhole/spydk/js
Paul Noel 1358646023 spydk: add done() 2023-03-31 15:07:26 -04:00
..
src spydk: add done() 2023-03-31 15:07:26 -04:00
.gitignore
CHANGELOG.md
LICENSE
README.md rename dev.v2 to main 2022-11-29 10:43:07 -05:00
ci-config.js
jestconfig.json
package-lock.json
package.json rename dev.v2 to main 2022-11-29 10:43:07 -05:00
tsconfig-cjs.json
tsconfig.json
tslint.json

README.md

Wormhole Spy SDK

Note: This is a pre-alpha release and in active development. Function names and signatures are subject to change.

Wormhole Spy service SDK for use with @certusone/wormhole-sdk

Usage

import {
  createSpyRPCServiceClient,
  subscribeSignedVAA,
} from "@certusone/wormhole-spydk";
const client = createSpyRPCServiceClient(SPY_SERVICE_HOST);
const stream = await subscribeSignedVAA(client, {});
stream.on("data", ({ vaaBytes }) => {
  console.log(vaaBytes);
});

Also see integration tests