0.1.1 • Published 5 months ago

@deltaswapio/deltaswap-spydk v0.1.1

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
5 months ago

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 @deltaswapio/deltaswap-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