Socket
Socket
Sign inDemoInstall

@nftx/subgraph

Package Overview
Dependencies
51
Maintainers
2
Versions
54
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
68
decreased by-11.69%
Maintainers
2
Install size
20.9 MB
Created
Weekly downloads
 

Changelog

Source

2.2.1 (2024-04-22)

Note: Version bump only for package nftxjs

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 22 Apr 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