Skip to main content

Don't have an API key yet?

Sign-up to Moralis to get your free API key and start building today.

Get Your Free API Key
Version: 2.2

Get Snipers by Pair Address Mainnet Only

Ethereum Logo

Looking for snipers by pair address on EVM?

Access Snipers by pair address data using our EVM API.

Explore EVM API
GEThttps://solana-gateway.moralis.io/token/mainnet/pairs/:address/snipers

Get all snipers (wallets that quickly buy and sell tokens) for a specific token pair address on the Solana network.

PATH PARAMS
addressstringrequired
The pair address for which snipers are to be retrieved.
QUERY PARAMS
blocksAfterCreationnumber
The number of blocks after the token pair creation to consider for sniper activity.
Responses
API KEY
// Dependencies to install:
// $ npm install node-fetch --save
// add "type": "module" to package.json

import fetch from 'node-fetch';

const options = {
method: 'GET',
headers: {
accept: 'application/json',
'X-API-Key': 'YOUR_API_KEY'
},
};

fetch('https://solana-gateway.moralis.io/token/mainnet/pairs/72Fxbe17djHuwZ5AtcihK58FERSULoLWiC5sh2Hjhma8/snipers?blocksAfterCreation=1000', options)
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err));
Response Example
{
"blockNumber": 307001996,
"blockTimestamp": "2024-12-12T11:22:59.000Z",
"transactionHash": "5hkLKoo7dV9YNBWbszVmKfoqUxdwt64WKhvgXNY6xYkURYMEbRYRdTMg3LvczUr574LEJPCEzomrn2nnvVdj61af",
"result": [
{
"walletAddress": "56S29mZ3wqvw8hATuUUFqKhGcSGYFASRRFNT38W8q7G3",
"snipedTransactions": [
{
"transactionHash": "47cMhsbgeVbixpy27GZiwYFGvrJ6Wr9FezNZxfxyUgHaT9yxRuce6oKZvSz8ryvdSm3xjP6z95ooBzzZZjfz8iZU",
"transactionTimestamp": "2024-12-12T11:23:00.000Z",
"blocksAfterCreation": 1
}
],
"sellTransactions": [
{
"transactionHash": "3TLitbnH52Vm4CyPL85gU5jogasj9geUTiW2hwUa3X7XAeKkDwGPEX8gaxnfvwQifruMbq9xFFv1JBVHumde9B3R",
"transactionTimestamp": "2024-12-12T11:24:40.000Z",
"blocksAfterCreation": 252
}
],
"totalSellTransactions": 1,
"totalSnipedTransactions": 1,
"totalTokensSniped": 8.995286313543,
"totalSnipedUsd": 824.632037769,
"totalTokensSold": -8.995286313543,
"totalSoldUsd": 885.834928692,
"currentBalance": 17.990572627086,
"currentBalanceUsdValue": 0.001649249764442855,
"realizedProfitPercentage": 7.421842484871341,
"realizedProfitUsd": 61.20289092299993
}
]
}