diff --git a/packages/huma-sdk/src/services/ReceivableService.ts b/packages/huma-sdk/src/services/ReceivableService.ts index ee57a510..1635ddad 100644 --- a/packages/huma-sdk/src/services/ReceivableService.ts +++ b/packages/huma-sdk/src/services/ReceivableService.ts @@ -418,6 +418,7 @@ async function loadReceivablesOfOwnerWithMetadata( poolType: POOL_TYPE, poolVersion: PoolVersion, pagination?: Pagination, + apiKey?: string, ): Promise[]> { if (!ethers.utils.isAddress(owner)) { throw new Error('Invalid owner address') @@ -439,6 +440,7 @@ async function loadReceivablesOfOwnerWithMetadata( poolName, poolType, pagination, + apiKey, ) } diff --git a/packages/huma-sdk/src/services/SubgraphService.ts b/packages/huma-sdk/src/services/SubgraphService.ts index 46a5e941..32365369 100644 --- a/packages/huma-sdk/src/services/SubgraphService.ts +++ b/packages/huma-sdk/src/services/SubgraphService.ts @@ -246,8 +246,9 @@ function getReceivableV2Info( orderBy: 'tokenId', orderDirection: 'desc', }, + apiKey?: string, ): Promise { - const url = getSubgraphUrlForChainId(chainId) + const url = getSubgraphUrlForChainId(chainId, apiKey) if (!url) { return Promise.resolve([]) }