Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Public Solana Wallet Not Found! #1780

Open
CryptoGatsu opened this issue Jan 3, 2025 · 5 comments
Open

Public Solana Wallet Not Found! #1780

CryptoGatsu opened this issue Jan 3, 2025 · 5 comments
Labels

Comments

@CryptoGatsu
Copy link

CryptoGatsu commented Jan 3, 2025

An error occurs at random times when the Agent tries to scan tokens for reccomendations.

Hard to reproduce as it allows wallet interaction for swapping tokens, but not for scanning

im expecting it to simply scan the token for trust and such, and respond if its a good buy or not.

image

I have put my public key in .env and in secrets character file. it still gives the error

This is the code of the error

recommendations [
{
recommender: '6e60c',
ticker: 'GATSU',
contractAddress: null,
type: 'buy',
conviction: 'high',
alreadyKnown: false
},
{
recommender: '6e60c',
ticker: 'GOAT',
contractAddress: 'CzLSujWBLFsSjncfkh59rUFqvafWcY5tzedWJSuypump',
type: 'buy',
conviction: 'medium',
alreadyKnown: false
}
]
Cache miss for fetchPortfolioValue
Cache miss for fetchPrices
Fetching DexScreener data for symbol: GATSU
Settings object: undefined
◎ LOGS
Creating Memory

{"recommender":"6e60c","ticker":"GATSU","contractAddress":"CYB7W8qWvRcVoYnZKRcvKqzziT6ndT771hBs342jpump","type":"buy","conviction":"high","alreadyKnown":false}

recommendationsManager {
recommender: '6e60c',
ticker: 'GATSU',
contractAddress: 'CYB7W8qWvRcVoYnZKRcvKqzziT6ndT771hBs342jpump',
type: 'buy',
conviction: 'high',
alreadyKnown: false
}
Returning cached DexScreener data.
Returning cached prices.
⛔ ERRORS
❌ Error handling message:
{}

⛔ ERRORS
Error sending message:
{}

file:///Users/tylerlloyd/Desktop/eliza-main/packages/plugin-solana/dist/index.js:55
throw new Error("Public key not found in settings. Ensure SOLANA_PUBLIC_KEY or WALLET_PUBLIC_KEY is defined.");
^

Error: Public key not found in settings. Ensure SOLANA_PUBLIC_KEY or WALLET_PUBLIC_KEY is defined.
at getWalletKey (file:///Users/tylerlloyd/Desktop/eliza-main/packages/plugin-solana/dist/index.js:55:19)
at SimulationSellingService.initializeWalletProvider (file:///Users/tylerlloyd/Desktop/eliza-main/packages/plugin-solana/dist/index.js:1332:37)
at new SimulationSellingService (file:///Users/tylerlloyd/Desktop/eliza-main/packages/plugin-solana/dist/index.js:1237:14)
at new TrustScoreManager (file:///Users/tylerlloyd/Desktop/eliza-main/packages/plugin-solana/dist/index.js:1583:41)
at Object.handler (file:///Users/tylerlloyd/Desktop/eliza-main/packages/plugin-solana/dist/index.js:2128:35)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async AgentRuntime.evaluate (file:///Users/tylerlloyd/Desktop/eliza-main/packages/core/dist/index.js:3860:17)
at async MessageManager.handleMessage (file:///Users/tylerlloyd/Desktop/eliza-main/packages/client-telegram/dist/index.js:735:13)
at async file:///Users/tylerlloyd/Desktop/eliza-main/packages/client-telegram/dist/index.js:867:17
at async execute (/Users/tylerlloyd/Desktop/eliza-main/node_modules/telegraf/lib/composer.js:518:17)

Node.js v23.3.0
/Users/tylerlloyd/Desktop/eliza-main/agent:
 ERR_PNPM_RECURSIVE_RUN_FIRST_FAIL  @elizaos/[email protected] start: node --loader ts-node/esm src/index.ts "--isRoot" "--character=characters/gatsu.character.json"
Exit status 1
 ELIFECYCLE  Command failed with exit code 1.

@CryptoGatsu CryptoGatsu added the bug Something isn't working label Jan 3, 2025
Copy link
Contributor

github-actions bot commented Jan 3, 2025

Hello @CryptoGatsu! Welcome to the ai16z community. Thank you for opening your first issue; we appreciate your contribution. You are now a ai16z contributor!

@AIFlowML
Copy link
Collaborator

AIFlowML commented Jan 3, 2025

SOLANA_PUBLIC_KEY or WALLET_PUBLIC_KEY

An error occurs at random times when the Agent tries to scan tokens for reccomendations.

Hard to reproduce as it allows wallet interaction for swapping tokens, but not for scanning

im expecting it to simply scan the token for trust and such, and respond if its a good buy or not.

image

I have put my public key in .env and in secrets character file. it still gives the error

This is the code of the error

recommendations [ { recommender: '6e60c', ticker: 'GATSU', contractAddress: null, type: 'buy', conviction: 'high', alreadyKnown: false }, { recommender: '6e60c', ticker: 'GOAT', contractAddress: 'CzLSujWBLFsSjncfkh59rUFqvafWcY5tzedWJSuypump', type: 'buy', conviction: 'medium', alreadyKnown: false } ] Cache miss for fetchPortfolioValue Cache miss for fetchPrices Fetching DexScreener data for symbol: GATSU Settings object: undefined ◎ LOGS Creating Memory

{"recommender":"6e60c","ticker":"GATSU","contractAddress":"CYB7W8qWvRcVoYnZKRcvKqzziT6ndT771hBs342jpump","type":"buy","conviction":"high","alreadyKnown":false}

recommendationsManager { recommender: '6e60c', ticker: 'GATSU', contractAddress: 'CYB7W8qWvRcVoYnZKRcvKqzziT6ndT771hBs342jpump', type: 'buy', conviction: 'high', alreadyKnown: false } Returning cached DexScreener data. Returning cached prices. ⛔ ERRORS ❌ Error handling message: {}

⛔ ERRORS Error sending message: {}

file:///Users/tylerlloyd/Desktop/eliza-main/packages/plugin-solana/dist/index.js:55 throw new Error("Public key not found in settings. Ensure SOLANA_PUBLIC_KEY or WALLET_PUBLIC_KEY is defined."); ^

Error: Public key not found in settings. Ensure SOLANA_PUBLIC_KEY or WALLET_PUBLIC_KEY is defined. at getWalletKey (file:///Users/tylerlloyd/Desktop/eliza-main/packages/plugin-solana/dist/index.js:55:19) at SimulationSellingService.initializeWalletProvider (file:///Users/tylerlloyd/Desktop/eliza-main/packages/plugin-solana/dist/index.js:1332:37) at new SimulationSellingService (file:///Users/tylerlloyd/Desktop/eliza-main/packages/plugin-solana/dist/index.js:1237:14) at new TrustScoreManager (file:///Users/tylerlloyd/Desktop/eliza-main/packages/plugin-solana/dist/index.js:1583:41) at Object.handler (file:///Users/tylerlloyd/Desktop/eliza-main/packages/plugin-solana/dist/index.js:2128:35) at process.processTicksAndRejections (node:internal/process/task_queues:105:5) at async AgentRuntime.evaluate (file:///Users/tylerlloyd/Desktop/eliza-main/packages/core/dist/index.js:3860:17) at async MessageManager.handleMessage (file:///Users/tylerlloyd/Desktop/eliza-main/packages/client-telegram/dist/index.js:735:13) at async file:///Users/tylerlloyd/Desktop/eliza-main/packages/client-telegram/dist/index.js:867:17 at async execute (/Users/tylerlloyd/Desktop/eliza-main/node_modules/telegraf/lib/composer.js:518:17)

Node.js v23.3.0 /Users/tylerlloyd/Desktop/eliza-main/agent:  ERR_PNPM_RECURSIVE_RUN_FIRST_FAIL  @elizaos/[email protected] start: node --loader ts-node/esm src/index.ts "--isRoot" "--character=characters/gatsu.character.json" Exit status 1  ELIFECYCLE  Command failed with exit code 1.

did you define SOLANA_PUBLIC_KEY or WALLET_PUBLIC_KEY in the env ?

@CryptoGatsu
Copy link
Author

CryptoGatsu commented Jan 4, 2025 via email

@manotoor
Copy link

manotoor commented Jan 4, 2025

can you share your .env file? Omit (leave out) any private keys

@manotoor
Copy link

manotoor commented Jan 4, 2025

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants
@manotoor @CryptoGatsu @AIFlowML and others