API ReferenceToken APIGet Token SnipersGet Snipers by Pair AddressGet Snipers by Pair Address Mainnet OnlyLooking for snipers by pair address on Solana?Access Snipers by pair address data using our powerful Solana APIExplore Solana APIGEThttps://deep-index.moralis.io/api/v2.2/pairs/:address/snipersGet all snipers (wallets that quickly buy and sell tokens) for a specific token pair address.PATH PARAMSaddressstringrequiredThe pair address for which snipers are to be retrieved.QUERY PARAMSchainstringThe chain to query.eth0x1polygon0x89bsc0x38avalanche0xa86afantom0xfaarbitrum0xa4b1gnosis0x64base0x2105optimism0xalinea0xe708ronin0x7e4pulse0x171blocksAfterCreationnumberThe number of blocks after the token pair creation to consider for sniper activity.Responses200Returns snipers by pair address.400Bad Request404Not Found429Too Many Requests500Internal Server ErrorAPI KEYTest Live APIcURLNode.jsPythonGoPHPcurl --request GET \ --url 'https://deep-index.moralis.io/api/v2.2/pairs/0xa3c2076eb97d573cc8842f1db1ecdf7b6f77ba27/snipers?chain=eth&blocksAfterCreation=1000' \ --header 'accept: application/json' \ --header 'X-API-Key: YOUR_API_KEY' // Node.js v18+ has native fetch support// No additional dependencies requiredconst options = { method: 'GET', headers: { accept: 'application/json', 'X-API-Key': 'YOUR_API_KEY' },};fetch('https://deep-index.moralis.io/api/v2.2/pairs/0xa3c2076eb97d573cc8842f1db1ecdf7b6f77ba27/snipers?chain=eth&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://deep-index.moralis.io/api/v2.2/pairs/0xa3c2076eb97d573cc8842f1db1ecdf7b6f77ba27/snipers?chain=eth&blocksAfterCreation=1000"headers = { "Accept": "application/json", "X-API-Key": "YOUR_API_KEY"}response = requests.request("GET", url, headers=headers)print(response.text)package mainimport ( "fmt" "net/http" "io")func main() { url := "https://deep-index.moralis.io/api/v2.2/pairs/0xa3c2076eb97d573cc8842f1db1ecdf7b6f77ba27/snipers?chain=eth&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, _ := io.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://deep-index.moralis.io/api/v2.2/pairs/0xa3c2076eb97d573cc8842f1db1ecdf7b6f77ba27/snipers?chain=eth&blocksAfterCreation=1000', [ 'headers' => [ 'Accept' => 'application/json', 'X-API-Key' => 'YOUR_API_KEY', ],]);echo $response->getBody();Response Example200 Returns snipers by pair address.{ "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": "" } ] } ]}