API ReferenceToken APIGet Token SnipersGet Snipers by Pair AddressVersion: 2.2Get 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.Responses200 Returns snipers by pair address.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://deep-index.moralis.io/api/v2.2/pairs/0xa3c2076eb97d573cc8842f1db1ecdf7b6f77ba27/snipers?chain=eth&blocksAfterCreation=3', 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=3"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://deep-index.moralis.io/api/v2.2/pairs/0xa3c2076eb97d573cc8842f1db1ecdf7b6f77ba27/snipers?chain=eth&blocksAfterCreation=3' \ --header 'accept: application/json' \ --header 'X-API-Key: YOUR_API_KEY' package mainimport ( "fmt" "net/http" "io/ioutil")func main() { url := "https://deep-index.moralis.io/api/v2.2/pairs/0xa3c2076eb97d573cc8842f1db1ecdf7b6f77ba27/snipers?chain=eth&blocksAfterCreation=3" 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://deep-index.moralis.io/api/v2.2/pairs/0xa3c2076eb97d573cc8842f1db1ecdf7b6f77ba27/snipers?chain=eth&blocksAfterCreation=3', [ '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": "" } ] } ]}