Socket
Socket
Sign inDemoInstall

@nftx/subgraph

Package Overview
Dependencies
51
Maintainers
2
Versions
58
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @nftx/subgraph

This package contains utilities for interacting with subgraphs


Version published
Weekly downloads
100
decreased by-29.58%
Maintainers
2
Created
Weekly downloads
 

Changelog

Source

2.4.0 (2024-05-17)

Features

  • @nftx/abi: add Pool ABI for liquidity pool contracts (d545562)

Readme

Source

@nftx/subgraph

This package contains utilities for interacting with subgraphs

import { createQuery, querySubgraph } from '@nftx/subgraph';
import type { NftxV3 } from '@nftx/types';
import { Network, NFTX_SUBGRAPH } from '@nftx/constants';

const query = createQuery<NftxV3.Query>()
  .vaults.first(1000)
  .where((w) => [w.vaultId.is('0'), w.shutdownDate.is(0)])
  .select((vault) => [
    vault.id,
    vault.vaultId,
    vault.is1155,
    vault.token((token) => [token.id, token.name, token.symbol]),
  ]);

const data = await querySubgraph({
  url: NFTX_SUBGRAPH[Network.Mainnet],
  query,
});

FAQs

Last updated on 17 May 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc