Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

6
How to use chaingraph to list owners of some token category
Post Body

Stockleezy asked in Tg channel, and it's really simple to get raw info by using chaingraph:

query {
  output(
    limit: 10
    offset: 0
    where: {
      token_category: {
        _eq: "\\x1a05bce0af8b57e27b11e9429fc534d0fc27230fc541928f38b3ca945c4bca11"
      }
      _not: { spent_by: {} }
      transaction: {
        block_inclusions: {
          block: { accepted_by: { node: { name: { _eq: "bchn-mainnet" } } } }
        }
      }
    }
  ) {
    transaction_hash
    output_index
    value_satoshis
    locking_bytecode
    token_category
    nonfungible_token_capability
    nonfungible_token_commitment
    fungible_token_amount
  }
}

This request should be looped and 10 added to offset until the array in the result returns less than 10 (in this case, because the limit is 10). Then, the client should merge the results, and do some aggregation, like by address (locking_bytecode can be converted to address).

Note: 0-amount FTs are prohibited, so 0 for fungible_token_amount means the UTXO doesn't have any FTs.

BTW there's an airdrop tool which could be modified to just produce a list: https://github.com/mr-zwets/airdrop-tool

Author
Account Strength
100%
Account Age
3 years
Verified Email
Yes
Verified Flair
No
Total Karma
10,768
Link Karma
3,555
Comment Karma
6,306
Profile updated: 3 days ago
Posts updated: 9 months ago
Builder

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
11 months ago