Skip to main content

Subscribe to events in the Live Graph API

Updated on
Jun 5, 2023

Subscribe to new mints

You can subscribe to Live Graph API for information about new mints as they occur. Your data can be enriched with collection and wallet information:

Example subscription
subscription OnNewMint($input: SubscriptionOnNewMintInput!) {
onNewMint(input: $input) {
blockHash
blockNumber
collection {
address
name
circulatingSupply
totalSupply
symbol
slug
}
recipient {
address
ensName
walletNFTs {
totalCount
}
walletCollections {
totalCount
}
}
}
}

# Variables
{
"input": {
"network": "ETHEREUM_MAINNET"
}
}

Subscribe to NFT transfers

You can subscribe to Live Graph API for information about NFT transfers on a specific contract address as they occur.

Example query
subscription OnNFTTransfer($input: SubscriptionOnNFTTransferInput!) {
onNFTTransfer(input: $input) {
blockHash
blockNumber
collection {
address
name
image {
url
}
}
recipient {
address
ensName
walletCollections {
totalCount
edges {
node {
collectionAddress
nftsCount
}
}
}
}
}
}
Share this doc