Skip to content

Instantly share code, notes, and snippets.

@intudev
intudev / getlistofallvaultsbyaddress.js
Created November 19, 2024 00:13
Return all INTU accounts/vaults that the node signer is a signer on.
import express from "express";
import { ethers } from "ethers";
import {
getFilteredUserInitializedLogs
} from "@intuweb3/exp-node";
const router: express.Router = express.Router();
router.get("/listvaults", async (req:any, res:any) => {
ethersProvider = new ethers.providers.StaticJsonRpcProvider({
@intudev
intudev / README.md
Last active November 19, 2024 00:19
Info on how to use these gists in your INTU co-signer

These gists are designed to be used with your INTU node signer: https://github.com/intu-labs/intu_node_signer

Instructions on using them can be found here: https://github.com/intu-labs/

An examples can be found here:
You include the gist in your 'routes' folder, import it into your main index.js file, and use it!

https://github.com/intu-labs/intu_node_signer/blob/d27b59f4346d615b44ae9afd6ede2b8d289b7a1f/src/index.ts#L29

https://github.com/intu-labs/intu_node_signer/blob/main/src/routes/healthRoute.ts

@intudev
intudev / gettokenbalanceforchain.js
Last active November 19, 2024 00:03
An INTU cosigner module to check token balance on a specific network
import express from "express";
import { CovalentClient } from "@covalenthq/client-sdk";
const router: express.Router = express.Router();
router.get("/gettokenbalanceforchain", async (req: any, res: any) => {
const walletAddress = req.query.address;
const chainName = req.query.chainName;
try {
const client = new CovalentClient("YOUR_API_KEY"); // get your API key here: https://goldrush.dev/