MCPcopy Create free account

hub / github.com/dawsbot/drain / functions

Functions35 in github.com/dawsbot/drain

↓ 29 callersMethodfetchTokens
* Fetches ERC-20 token balances for a given address on a specific chain * @param chainId - The chain ID (1 for Ethereum, 137 for Polygon, etc.)
src/moralis-client.ts:100
↓ 6 callersFunctionshowToast
(message: string, type: any)
components/contract/SendTokens.tsx:19
↓ 5 callersMethodgetSupportedChainIds
* Gets the list of supported chain IDs
src/moralis-client.ts:258
↓ 3 callersFunctionmarkPending
(tokenAddress: `0x${string}`, txn: any)
components/contract/SendTokens.tsx:91
↓ 2 callersFunctionhandleTransferError
(symbol: string | undefined, err: any)
components/contract/SendTokens.tsx:37
↓ 2 callersFunctiontokenBalance
(tokenAddress: `0x${string}`)
components/contract/SendTokens.tsx:83
↓ 1 callersFunctionavatarStyle
(seed: string)
components/contract/GetTokens.tsx:17
↓ 1 callersFunctionfetchTokens
(chainId: number, evmAddress: string)
pages/api/chain-info/[chainId]/[evmAddress].ts:13
↓ 1 callersMethodfetchTokens
( chainId: number, evmAddress: string, blacklistAddresses: string[] = [], )
src/__tests__/moralis-client.example.ts:47
↓ 1 callersMethodgetChainName
* Maps chain ID to Moralis chain name
src/moralis-client.ts:245
↓ 1 callersFunctionhttpFetchTokens
(chainId: number, evmAddress: string)
src/fetch-tokens.ts:1
↓ 1 callersFunctionisUserRejection
(err: any)
components/contract/SendTokens.tsx:28
↓ 1 callersMethodnormalizeTokens
* Normalizes Moralis token response to match existing codebase structure
src/moralis-client.ts:179
↓ 1 callersFunctionresolveDestinationAddress
()
components/contract/SendTokens.tsx:63
↓ 1 callersFunctionsendBatchedTokens
( tokensToSend: ReadonlyArray<`0x${string}`>, toAddress: `0x${string}`, )
components/contract/SendTokens.tsx:103
↓ 1 callersFunctionsendTokensSequentially
( tokensToSend: ReadonlyArray<`0x${string}`>, toAddress: `0x${string}`, )
components/contract/SendTokens.tsx:133
↓ 1 callersFunctionsetTokenChecked
(tokenAddress: string, isChecked: boolean)
components/contract/GetTokens.tsx:83
↓ 1 callersFunctionuseIsMounted
()
hooks/useIsMounted.ts:3
FunctionApp
({ Component, pageProps }: AppProps)
pages/_app.tsx:69
FunctionExternalIcon
()
components/contract/GetTokens.tsx:64
FunctionGetTokens
()
components/contract/GetTokens.tsx:141
FunctionHome
()
pages/index.tsx:12
FunctionSendTokens
()
components/contract/SendTokens.tsx:17
FunctionTokenAvatar
({ token, })
components/contract/GetTokens.tsx:32
FunctionTokenRow
({ token, })
components/contract/GetTokens.tsx:76
FunctionWordmark
()
pages/index.tsx:5
Methodconstructor
(apiKey: string)
src/moralis-client.ts:86
Methodconstructor
()
src/__tests__/moralis-client.example.ts:42
FunctionexampleTesting
()
src/__tests__/moralis-client.example.ts:80
FunctionexampleUsage
()
src/__tests__/moralis-client.example.ts:11
Functionhandler
( req: NextApiRequest, res: NextApiResponse, )
pages/api/chain-info/[chainId]/[evmAddress].ts:33
Functionhandler
( req: NextApiRequest, res: NextApiResponse, )
pages/api/ens/[name].ts:20
FunctionpositiveIntFromString
(value: string)
pages/api/chain-info/[chainId]/[evmAddress].ts:17
FunctionsendAllCheckedTokens
()
components/contract/SendTokens.tsx:191
FunctiontoggleAll
()
components/contract/GetTokens.tsx:185