@switchboard-xyz/evm.js v3.12.36
@switchboard-xyz/evm.js
A Typescript client to interact with Switchboard on EVM based chains.
Install
npm i --save @switchboard-xyz/evm.js
Usage
Directory
Load Switchboard Contract and Switchboard Push Receiver Contract Functions
import ethers from "ethers";
import {
getSwitchboard,
getSwitchboardPushReceiver,
getSwitchboardPushReceiverFeeds,
} from "@switchboard-xyz/evm.js";
const signer = new ethers.Wallet(privateKey);
// get switchboard contract functions
const switchboardProgram = await getSwitchboard(
process.env.SWITCHBOARD_ADDRESS, // Switchboard contract address (from environment)
signer // Signer instance
);
// get switchboard feeds contract functions
const switchboardPushReceiver = await getSwitchboardPushReceiver(
process.env.SWITCHBOARD_PUSH_ADDRESS,
signer
);
// log all feeds
const allFeeds = await getSwitchboardPushReceiverFeeds(switchboardPushReceiver);
console.log(allFeeds); // Feed[];
7 months ago
7 months ago
8 months ago
9 months ago
7 months ago
7 months ago
7 months ago
7 months ago
6 months ago
7 months ago
6 months ago
7 months ago
7 months ago
7 months ago
10 months ago
10 months ago
9 months ago
9 months ago
10 months ago
9 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
9 months ago
9 months ago
9 months ago
9 months ago
10 months ago
9 months ago
10 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
10 months ago
10 months ago
7 months ago
7 months ago
9 months ago
10 months ago
9 months ago
9 months ago
9 months ago
7 months ago
9 months ago
9 months ago
9 months ago
11 months ago
11 months ago
12 months ago
12 months ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
12 months ago
1 year ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago