We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 381e423 commit cc3fbbaCopy full SHA for cc3fbba
packages/thirdweb/src/insight/get-tokens.ts
@@ -51,7 +51,7 @@ export async function getOwnedTokens(args: {
51
52
const defaultQueryOptions: GetV1TokensData["query"] = {
53
owner_address: ownerAddress,
54
- chain_id: chains.map((chain) => chain.id),
+ chain_id: chains.length > 0 ? chains.map((chain) => chain.id) : [1],
55
include_native: "true",
56
include_spam: "false",
57
metadata: "true",
0 commit comments