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/snipersIdentify sniper wallets that bought a token within a specified timeframe (blocksAfterCreation). Each wallet returned includes detailed information about how much was bought, sold as well as PnL stats and more.PATH PARAMSaddressstringrequiredThe pair address token-transactions are to be retrieved for.QUERY PARAMSchainstringThe chain to queryeth0x1sepolia0xaa36a7polygon0x89bsc0x38bsc testnet0x61avalanche0xa86afantom0xfacronos0x19arbitrum0xa4b1chiliz0x15b38chiliz testnet0x15b32gnosis0x64gnosis testnet0x27d8base0x2105base sepolia0x14a34optimism0xaholesky0x4268polygon amoy0x13882linea0xe708moonbeam0x504moonriver0x505moonbase0x507linea sepolia0xe705flow0x2ebflow-testnet0x221ronin0x7e4ronin-testnet0x7e5lisk0x46flisk-sepolia0x106apulse0x171sei0x531blocksAfterCreationnumberNumber of blocks after the creationResponses200Returns 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": 21093423, "result": [ { "walletAddress": "0x2bfcba4715774420936669cd0ff2241d70e9abec", "totalTokensSniped": "", "totalSnipedUsd": "", "totalSnipedTransactions": "", "totalTokensSold": "", "totalSoldUsd": "", "totalSellTransactions": "", "currentBalance": "", "currentBalanceUsdValue": "", "realizedProfitPercentage": "", "realizedProfitUsd": "", "snipedTransactions": [ { "transactionHash": "0x2bfcba4715774420936669cd0ff2241d70e9abec", "blocksAfterCreation": "", "transactionTimestamp": "" } ], "sellTransactions": [ { "transactionHash": "0x2bfcba4715774420936669cd0ff2241d70e9abec", "blocksAfterCreation": "", "transactionTimestamp": "" } ] } ]}