Skip to content

Commit

Permalink
Merge pull request #363 from Once-Upon/feature/api-xyz
Browse files Browse the repository at this point in the history
API can use xyz
  • Loading branch information
pcowgill authored May 7, 2024
2 parents 494c837 + 0249383 commit 1f1b458
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/commands/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const grabTx = async (txHash: string, prefix: string) => {
`${fileName}.json`,
);

const defaultApiUrl = 'https://api.onceupon.gg';
const defaultApiUrl = 'https://api.onceupon.xyz';
const API_URL = process.env.API_URL || defaultApiUrl;
const transaction = await fetch(
`${API_URL}/v2/transactions/${txHash}?withContext=false`,
Expand All @@ -27,7 +27,7 @@ export const grabTx = async (txHash: string, prefix: string) => {
};

export const getTransaction = async (txHash: string) => {
const defaultApiUrl = 'https://api.onceupon.gg';
const defaultApiUrl = 'https://api.onceupon.xyz';
const API_URL = process.env.API_URL || defaultApiUrl;
const transaction = await fetch(
`${API_URL}/v2/transactions/${txHash}?withContext=false`,
Expand All @@ -39,7 +39,7 @@ export const getTransaction = async (txHash: string) => {
export const fetchTransactions = async (
limit: number,
): Promise<Transaction[]> => {
const defaultApiUrl = 'https://api.onceupon.gg';
const defaultApiUrl = 'https://api.onceupon.xyz';
const API_URL = process.env.API_URL ?? defaultApiUrl;
const requestBody = {
contextAddress: {},
Expand Down

0 comments on commit 1f1b458

Please sign in to comment.