mirror of
https://github.com/d0zingcat/solana-agent-kit.git
synced 2026-06-06 23:26:49 +00:00
added helius api key to config type
This commit is contained in:
@@ -16,7 +16,7 @@ export async function getAssetsByOwner(
|
|||||||
limit: number,
|
limit: number,
|
||||||
): Promise<any> {
|
): Promise<any> {
|
||||||
try {
|
try {
|
||||||
const apiKey = process.env.HELIUS_API_KEY;
|
const apiKey = agent.config.HELIUS_API_KEY;
|
||||||
if (!apiKey) {
|
if (!apiKey) {
|
||||||
throw new Error("HELIUS_API_KEY not found in environment variables");
|
throw new Error("HELIUS_API_KEY not found in environment variables");
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ export async function parseTransaction(
|
|||||||
transactionId: string,
|
transactionId: string,
|
||||||
): Promise<any> {
|
): Promise<any> {
|
||||||
try {
|
try {
|
||||||
const apiKey = process.env.HELIUS_API_KEY;
|
const apiKey = agent.config.HELIUS_API_KEY;
|
||||||
if (!apiKey) {
|
if (!apiKey) {
|
||||||
throw new Error("HELIUS_API_KEY not found in environment variables");
|
throw new Error("HELIUS_API_KEY not found in environment variables");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user