sandwich-scanner / SandwichDetector
• new SandwichDetector(provider
, covalentApiKey
, backupProviders?
)
Name | Type |
---|---|
provider |
JsonRpcProvider |
covalentApiKey |
string |
backupProviders? |
JsonRpcProvider [] |
• Private
classifierProvider: ClassifierProvider
• Private
detector: Detector
• Private
fetcher: Fetcher
▸ Private
getBlocksFromSwaps(swaps
): number
[]
Name | Type |
---|---|
swaps |
Swap [] |
number
[]
▸ getSandwichesForAddress(address
, dex
): Promise
<Sandwich
[]>
Name | Type |
---|---|
address |
string |
dex |
DexType |
Promise
<Sandwich
[]>
ISandwichDetector.getSandwichesForAddress
▸ getSandwichesForBlock(blockNo
, dexType
): Promise
<Sandwich
[]>
Name | Type |
---|---|
blockNo |
number |
dexType |
DexType |
Promise
<Sandwich
[]>
ISandwichDetector.getSandwichesForBlock
▸ getSwandwichesforAddressWithOffset(address
, offset
, dex
): Promise
<any
>
Name | Type |
---|---|
address |
string |
offset |
number |
dex |
DexType |
Promise
<any
>