Skip to main content

Switchboard Logo

Switchboard x NEAR

A collection of libraries and examples for interacting with Switchboard on Aptos.

Crates.io NPM Badge

Getting Started

To get started, clone the sbv2-near repository.

git clone https://github.com/switchboard-xyz/sbv2-near

Then install the dependencies

cd sbv2-near
pnpm install
pnpm build

Addresses

Program Deployment

Below are the mainnet Near addresses associated with the Switchboard deployment.

AccountAddress
Program ID
Program Authority

Queues

QueueAddress
Permissionless Queue

The permissionless queue does not require aggregators to have PERMIT_ORACLE_QUEUE_USAGE permissions before using a queue's resources. This is the default queue when building feeds in the publisher.

Clients

LangNameDescription
Rustsbv2-nearA Rust crate to deserialize and read a Switchboard data feed within a NEAR contract.
Javascript@switchboard-xyz/near.jsA Typescript client to interact with Switchboard on NEAR.

Example Programs

LangNameDescription
Rustfeed-parserRead a Switchboard feed on NEAR"

Troubleshooting

  1. File a GitHub Issue
  2. Ask a question in Discord #dev-support