Skip to content

Commit

Permalink
fix(web): add console log for nfts api
Browse files Browse the repository at this point in the history
  • Loading branch information
remiroyc authored and gershon committed Jan 16, 2024
1 parent 5b0eb9a commit 7543dff
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions apps/web/src/server/api/routers/nfts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,17 +75,19 @@ export const nftsRouter = createTRPCRouter({

try {
// TODO @YohanTz: Type env object
const ownedNftsResponse = await fetch(
`${
process.env.NEXT_PUBLIC_ARK_API_DOMAIN ?? ""
}/v1/owners/${validateAndParseAddress(address)}/tokens`,
{
headers: {
"Content-Type": "application/json",
"X-API-KEY": "yW0akON1f55mOFwBPXPme4AFfLktbRiQ2GNdT1Mc",
},
}
);

const url = `${
process.env.NEXT_PUBLIC_ARK_API_DOMAIN ?? ""
}/v1/owners/${validateAndParseAddress(address)}/tokens`;

console.log("Fetching api: ", url);

const ownedNftsResponse = await fetch(url, {
headers: {
"Content-Type": "application/json",
"X-API-KEY": "yW0akON1f55mOFwBPXPme4AFfLktbRiQ2GNdT1Mc",
},
});

console.log("Response status: ", ownedNftsResponse.status);

Expand Down

0 comments on commit 7543dff

Please sign in to comment.