Creating a Feed

Configuring EVM feeds

Feed Configuration

If you're using the builder, you'll be confronted with a few inputs configured to some defaults, and an empty name field.

The required fields are:

  • Name: The identifier for the feed in the Switchboard UI.

  • Authority: The address with authority to modify this feed. Feeds are always initialized with the creator as authority, but they can later be set to something other than the creator. This feature can be useful for DAO controlled feeds.

  • Max Variance: The maximum allowed variance of the job results (as a percentage) for an update to be accepted on-chain.

  • Min Responses: The minimum number of successful job responses required for an update to be accepted on-chain.

  • Sample Size: The number of samples that will be considered when reading a feed.

  • Max Staleness: The maximum staleness a sample is allowed when reading a feed on-chain.

Configuring Feeds in the Builder

Setting these configs in the builder is as simple as filling in the inputs and clicking "Create Account" to make the feed:

Switchboard Feed Page

Once you create the feed, you'll be taken to a page where you can see the current value for the feed (waiting to be populated on-chain).

Since this is an on-demand feed, updates will be read in only when they're needed (alternatively with a pusher service).

Another important component is Switchboard's instance of Crossbar, a convenience server for using on-demand updates.

Last updated