API ReferenceToken APIGet Token SnipersGet Snipers by Pair AddressVersion: 2.2Get Snipers by Pair Address Mainnet OnlyLooking for snipers by pair address on EVM?Access Snipers by pair address data using our EVM API.Explore EVM APIGEThttps://solana-gateway.moralis.io/token/mainnet/pairs/:address/snipersGet all snipers (wallets that quickly buy and sell tokens) for a specific token pair address on the Solana network.PATH PARAMSaddressstringrequiredThe pair address for which snipers are to be retrieved.QUERY PARAMSblocksAfterCreationnumberThe number of blocks after the token pair creation to consider for sniper activity.Responses200 Returns snipers by pair address on Solana.objectAPI KEYTest Live APINode.jsPythoncURLGoPHP// Dependencies to install:// $ npm install node-fetch --save// add "type": "module" to package.jsonimport 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));# Dependencies to install:# $ python -m pip install requestsimport requestsurl = "https://solana-gateway.moralis.io/token/mainnet/pairs/72Fxbe17djHuwZ5AtcihK58FERSULoLWiC5sh2Hjhma8/snipers?blocksAfterCreation=1000"headers = { "Accept": "application/json", "X-API-Key": "YOUR_API_KEY"}response = requests.request("GET", url, headers=headers)print(response.text)curl --request GET \ --url 'https://solana-gateway.moralis.io/token/mainnet/pairs/72Fxbe17djHuwZ5AtcihK58FERSULoLWiC5sh2Hjhma8/snipers?blocksAfterCreation=1000' \ --header 'accept: application/json' \ --header 'X-API-Key: YOUR_API_KEY' package mainimport ( "fmt" "net/http" "io/ioutil")func main() { url := "https://solana-gateway.moralis.io/token/mainnet/pairs/72Fxbe17djHuwZ5AtcihK58FERSULoLWiC5sh2Hjhma8/snipers?blocksAfterCreation=1000" req, _ := http.NewRequest("GET", url, payload) req.Header.Add("Accept", "application/json") req.Header.Add("X-API-Key", "YOUR_API_KEY") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body))}<?php// Dependencies to install:// $ composer require guzzlehttp/guzzlerequire_once('vendor/autoload.php');$client = new \GuzzleHttp\Client();$response = $client->request('GET', 'https://solana-gateway.moralis.io/token/mainnet/pairs/72Fxbe17djHuwZ5AtcihK58FERSULoLWiC5sh2Hjhma8/snipers?blocksAfterCreation=1000', [ 'headers' => [ 'Accept' => 'application/json', 'X-API-Key' => 'YOUR_API_KEY', ],]);echo $response->getBody();Response Example200 Returns snipers by pair address on Solana.{ "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 } ]}