Spy
Spy
A Spy, in the wormhole context, is a daemon that subscribes to the gossiped messages in the Guardian Network.
The messages available on over gossip are things like
Guardian Heartbeats
The source for the Spy is available on Github
Use
To start a Spy locally, run the following docker command.
docker run --platform=linux/amd64 \
-p 7073:7073 \
--entrypoint /guardiand ghcr.io/wormhole-foundation/guardiand:latest \
spy \
--nodeKey /node.key \
--spyRPC "[::]:7073" \
--env testnetOptionally, add the flags to skip any VAAs with invalid signatures
--ethRPC https://sepolia.drpc.org/
--ethContract 0x4a8bc80Ed5a4067f1CCf107057b8270E0cC11A78docker run --platform=linux/amd64 \
-p 7073:7073 \
--entrypoint /guardiand ghcr.io/wormhole-foundation/guardiand:latest \
spy \
--nodeKey /node.key \
--spyRPC "[::]:7073" \
--env mainnetOptionally add the flags to skip any VAAs with invalid signatures
--ethRPC https://eth.drpc.org
--ethContract 0x98f3c9e6E3fAce36bAAd05FE09d375Ef1464288BOnce running, a gRPC client (i.e. your program) can subscribe to a filtered stream of messages.
To generate a client for the gRPC service use this proto spec file.
See Also
The Pyth Beacon provides an alternate Spy implementation that is highly available for improved performance and reliability.
The relayer engine implements a client and persistence layer for messages received from a Spy subscription.
Last updated
Was this helpful?

