Skip to content

Commit

Permalink
Add JSDoc
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewwalsh0 committed Oct 1, 2024
1 parent 928cc00 commit 6374a95
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,7 @@ export type TransactionControllerOptions = {
getPermittedAccounts?: (origin?: string) => Promise<string[]>;
getSavedGasFees?: (chainId: Hex) => SavedGasFees | undefined;
incomingTransactions?: IncomingTransactionOptions & {
/** API keys to be used for Etherscan requests to prevent rate limiting. */
etherscanApiKeysByChainId?: Record<Hex, string>;
};
isMultichainEnabled: boolean;
Expand Down
6 changes: 3 additions & 3 deletions packages/transaction-controller/src/utils/etherscan.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export interface EtherscanTransactionRequest {
*
* @param request - Configuration required to fetch transactions.
* @param request.address - Address to retrieve transactions for.
* @param request.apiKey - Etherscan API key to prevent throttling.
* @param request.apiKey - Etherscan API key to prevent rate limiting.
* @param request.chainId - Current chain ID used to determine subdomain and domain.
* @param request.fromBlock - Block number to start fetching transactions from.
* @param request.limit - Number of transactions to retrieve.
Expand Down Expand Up @@ -106,7 +106,7 @@ export async function fetchEtherscanTransactions({
*
* @param request - Configuration required to fetch token transactions.
* @param request.address - Address to retrieve token transactions for.
* @param request.apiKey - Etherscan API key to prevent throttling.
* @param request.apiKey - Etherscan API key to prevent rate limiting.
* @param request.chainId - Current chain ID used to determine subdomain and domain.
* @param request.fromBlock - Block number to start fetching token transactions from.
* @param request.limit - Number of token transactions to retrieve.
Expand Down Expand Up @@ -136,7 +136,7 @@ export async function fetchEtherscanTokenTransactions({
* @param action - The Etherscan endpoint to use.
* @param options - Options bag.
* @param options.address - Address to retrieve transactions for.
* @param options.apiKey - Etherscan API key to prevent throttling.
* @param options.apiKey - Etherscan API key to prevent rate limiting.
* @param options.chainId - Current chain ID used to determine subdomain and domain.
* @param options.fromBlock - Block number to start fetching transactions from.
* @param options.limit - Number of transactions to retrieve.
Expand Down

0 comments on commit 6374a95

Please sign in to comment.