Skip to content

Commit

Permalink
feat: WIP nightly release
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Feb 7, 2025
1 parent 6b761ac commit 9640611
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/toolboxes/evm/src/api/covalentApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ type CovalentBalanceResponse = {
};

export const covalentApi = ({ apiKey, chainId }: { apiKey: string; chainId: ChainId }) => ({
getBalance: async (address: string) => {
getBalance: async (address: string, _chainId: ChainId) => {
const { data } = await RequestClient.get<{ data: CovalentBalanceResponse }>(
`https://api.covalenthq.com/v1/${chainId}/address/${address}/balances_v2/`,
{ searchParams: { key: apiKey } },
Expand Down
4 changes: 2 additions & 2 deletions packages/toolboxes/evm/src/api/ethplorerApi.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { Chain, RequestClient, formatBigIntToSafeValue } from "@swapkit/helpers";
import { Chain, type ChainId, RequestClient, formatBigIntToSafeValue } from "@swapkit/helpers";

import type { AddressInfo } from "../types/ethplorer-api-types";
const baseUrl = "https://api.ethplorer.io";

export const ethplorerApi = (apiKey = "freekey") => ({
getBalance: async (address: string) => {
getBalance: async (address: string, _chainId: ChainId) => {
const { tokens = [] } = await RequestClient.get<AddressInfo>(
`${baseUrl}/getAddressInfo/${address}`,
{ searchParams: { apiKey } },
Expand Down

0 comments on commit 9640611

Please sign in to comment.