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.eth0x1sepolia0xaa36a7holesky0x4268polygon0x89polygon amoy0x13882bsc0x38bsc testnet0x61avalanche0xa86afantom0xfapalm0x2a15c308dcronos0x19arbitrum0xa4b1gnosis0x64gnosis testnet0x27d8chiliz0x15b38chiliz testnet0x15b32base0x2105base sepolia0x14a34optimism0xalinea0xe708linea sepolia0xe705moonbeam0x504moonriver0x505moonbase0x507flow0x2ebflow-testnet0x221ronin0x7e4ronin-testnet0x7e5lisk0x46flisk-sepolia0x106apulse0x171blocksAfterCreationnumberThe 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/0x85218527945d48167A682e277867F1539AD00068/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/0x85218527945d48167A682e277867F1539AD00068/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/0x85218527945d48167A682e277867F1539AD00068/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/0x85218527945d48167A682e277867F1539AD00068/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/0x85218527945d48167A682e277867F1539AD00068/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": "" } ] } ]}