@certusone/wormhole-spydk
v0.0.1
Published
Wormhole Spy service SDK for use with @certusone/wormhole-sdk
Downloads
2,396
Maintainers
Readme
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