Skip to main content

5. Frontfill Live Events

Spin up a GhostFork RPC endpoint

Spin up a custom RPC fork that tracks the upstream chain while inserting modified bytecode just for the contracts you've selected. Integrate it into your existing pipeline just as you would any other node RPC.

Step 1: Deploy Fork

Deploy your fork to generate RPC and WebSocket endpoints. This will allow you to call typical JSON-RPC methods and subscribe to a websocket endpoint. See all supported endpoints Ï

FrontfillStep1

Step 2: Get Your Deployment URLs

Go to the Deployment page and click on the key icon to get your credentials

FrontfillStep2

Step 3:

Copy and Paste the example snippet to start calling RPC methods! You can start subscribing to your custom events and take action based on the events received

FrontfillStep3

See an example of how to subscribe to your new ghost events.