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

Solana Logo

Looking for snipers by pair address on Solana?

Access Snipers by pair address data using our powerful Solana API

Explore Solana API
GEThttps://deep-index.moralis.io/api/v2.2/pairs/:address/snipers

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

PATH PARAMS
addressstringrequired
The pair address for which snipers are to be retrieved.
QUERY PARAMS
chainstring
The chain to query.
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://deep-index.moralis.io/api/v2.2/pairs/0x85218527945d48167A682e277867F1539AD00068/snipers?chain=eth&blocksAfterCreation=3', options)
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err));
Response Example
{
"transactionHash": "0x2bfcba4715774420936669cd0ff2241d70e9abecab76c9db813602015b3134ad",
"blockTimestamp": "2022-02-22T00:00:00Z",
"blockNumber": "",
"result": [
{
"walletAddress": "0x2bfcba4715774420936669cd0ff2241d70e9abec",
"totalTokensSniped": "",
"totalSnipedUsd": "",
"totalSnipedTransactions": "",
"totalTokensSold": "",
"totalSoldUsd": "",
"totalSellTransactions": "",
"currentBalance": "",
"currentBalanceUsdValue": "",
"realizedProfitPercentage": "",
"realizedProfitUsd": "",
"snipedTransactions": [
{
"transactionHash": "0x2bfcba4715774420936669cd0ff2241d70e9abec",
"blocksAfterCreation": "",
"transactionTimestamp": ""
}
],
"sellTransactions": [
{
"transactionHash": "0x2bfcba4715774420936669cd0ff2241d70e9abec",
"blocksAfterCreation": "",
"transactionTimestamp": ""
}
]
}
]
}