wormhole/spydk/js
Evan Gray 3a71550dea spydk: initial release
Change-Id: I002d99bee0fffa4e9f489746824f8fd123d52476
2021-12-08 23:09:29 +00:00
..
src spydk: initial release 2021-12-08 23:09:29 +00:00
.gitignore spydk: initial release 2021-12-08 23:09:29 +00:00
CHANGELOG.md spydk: initial release 2021-12-08 23:09:29 +00:00
LICENSE spydk: initial release 2021-12-08 23:09:29 +00:00
README.md spydk: initial release 2021-12-08 23:09:29 +00:00
jestconfig.json spydk: initial release 2021-12-08 23:09:29 +00:00
package-lock.json spydk: initial release 2021-12-08 23:09:29 +00:00
package.json spydk: initial release 2021-12-08 23:09:29 +00:00
tsconfig-cjs.json spydk: initial release 2021-12-08 23:09:29 +00:00
tsconfig.json spydk: initial release 2021-12-08 23:09:29 +00:00
tslint.json spydk: initial release 2021-12-08 23:09:29 +00:00

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