added helius api key to config type

This commit is contained in:
shivaji43
2025-01-07 22:02:27 +05:30
parent 79bcad3a39
commit 2de1a7365d
2 changed files with 2 additions and 2 deletions

View File

@@ -16,7 +16,7 @@ export async function getAssetsByOwner(
limit: number,
): Promise<any> {
try {
const apiKey = process.env.HELIUS_API_KEY;
const apiKey = agent.config.HELIUS_API_KEY;
if (!apiKey) {
throw new Error("HELIUS_API_KEY not found in environment variables");
}

View File

@@ -13,7 +13,7 @@ export async function parseTransaction(
transactionId: string,
): Promise<any> {
try {
const apiKey = process.env.HELIUS_API_KEY;
const apiKey = agent.config.HELIUS_API_KEY;
if (!apiKey) {
throw new Error("HELIUS_API_KEY not found in environment variables");
}