Quantcast
Channel: Recent Questions - Solana Stack Exchange
↧

"ERR_INVALID_ARG_TYPE" when calling "createAssociatedTokenAccountInstruction"

I created a simple script to recreate an issue with making an associated token account (ATA) using Node.js and "@solana/spl-token". If I use this code to retrieve an ATA previously created, it works...

View Article


ConstraintSeeds Error Only When Calling From Frontend with Phantom

I'm developing a voting feature on Solana using Anchor, and I've hit a roadblock. My transaction succeeds in test cases (on devnet) but fails when I send it from the frontend using Phantom Wallet.What...

View Article


creating solana transaction from instruction json in go-lang

i have json like this{"instructions": [ {"keys": [ {"pubkey": "9iQdDoAPNDnK3DMT32oaN6UcqiN3cWK9vCUG73XcwKzv","isSigner": true,"isWritable": true }, {"pubkey":...

View Article

Can't get my projects to work on anchor 0.31.1 since upgrading; going back...

here's my cargo.toml file[package]name = "helm"version = "0.1.0"description = "Created with Anchor"edition = "2021"[lib]crate-type = ["cdylib", "lib"]name = "helm"[features]default = []cpi =...

View Article

verify collection on mint

We have built our own NFT contract with merkle tree whitelist. But we are struggeling with the verify_collection part. Is this the correct way of implementing this?Our update_authority of the NFTs is a...

View Article


Error: failed to start validator: TestValidator startup failed: Custom {...

I am using a Macbook with M1 and getting the errorstankosy@Stans-MacBook-Pro solana % solana-test-validator --no-bpf-jitLedger location: test-ledgerLog: test-ledger/validator.logError: failed to start...

View Article

Bad CPU type in executable

ProblemI have a problem on build Rust Solana contract on processor M1. I used a simple example hello world.use solana_program::{ account_info::AccountInfo, entrypoint, entrypoint::ProgramResult, msg,...

View Article

Borsh serializing a nested object for a Solana transaction instruction

I have a Solidity function: function add(uint256 a, uint256 b) public pure returns (uint256) { uint256 result = a + b; return result; }That I've migrated over to Solana using solang. I want to call the...

View Article


automate the import of private keys into phantom/solflare

I need to automate the interaction between a dapp and a solana wallet, does anyone know if its possible to import multiple wallets into solflare/phantom at once ?Just curious does anyone know how the...

View Article


Cannot create account for a token in CLI

I've tried three times and always get the same error:spl-token create-account oreoN2tQbHXVaZsr3pf66A48miqcBXCDJozganhEJgzCreating account 28AAsPi2C7PBk8nLqC61t7TEUtweqW5tT2rzGHf9fjtqError: Client(Error...

View Article

spl-token Metaplex adding metadata issues

can anyone help with this error. happens after i try run my javascript that i compiled from typescript, to add metadata to my existing solana token.bigint: Failed to load bindings, pure JS will be used...

View Article

Burn operations fail

I'm playing around with Solana Playground using this example - https://beta.solpg.io/6570e5b7fb53fa325bfd0c4e and what I'm trying to do is burn some of the locked token fees, I'm doing it at this...

View Article

I can't create liquidity pool on Raydium (JS)

I'm trying to create liquidity pool by Raydium(in JS @raydium-io/raydium-sdk)But always Creating pool Transcation is failed for example:...

View Article


Do you know why this modification of the banking-bench results in poor...

Long story short.I modified the banking-bench code to allow benchmarking the banking stage with different levels of contention via the number of accounts used and performance has significantly...

View Article

is programSubscribe filtering with multiple accounts possible?

so I am wanting to listen to multiple token account token balances. I am currently using programSubscribe with filter on the token account owner: jsonrpc: "2.0", id: 1, method: "programSubscribe",...

View Article


is clockwork framework obsolete?

CONTEXT:In existing solana playground https://beta.solpg.io/tutorials/bank-simulator anchor example the framework clockwork is used. However, the example does not work because clockwork-sdk does not...

View Article

How to create and edit LookUp Tables in the new 2.0.0 version of web3.js?

I am using the new 2.0.0 version of web3.js and I have been searching on how to create and edit LookUp Tables. Did they change the way it works? I can't seem to find "AddressLookupTableProgram" in the...

View Article


Why Raydium create pool in devnet costs 1 sol fee?

Why Raydium create pool in devnet costs 1 sol fee?in feeConfigs{ id: '9zSzfkYy6awexsHvmggeH36pfVUdDGyCcwmjT3AQPBj6', index: 0, protocolFeeRate: 120000, tradeFeeRate: 2500, fundFeeRate: 40000,...

View Article

Solana v1.17.3 Geyser Plugin (Postgres) Fails to Initialize with Full...

We are trying to set up a Solana validator v1.17.3 (installed via solana-install) on Ubuntu with the official PostgreSQL Geyser plugin (solana-accountsdb-plugin-postgres). We are encountering an issue...

View Article

Solana Mint Problem

const { signature } = await transactionBuilder().add(setComputeUnitLimit(umi, { units: 800_000 })).add( mintV2(umi, { candyMachine: candyMachine.publicKey, candyGuard: candyMachine.mintAuthority,...

View Article

How to subscribe to all transactions?

How to subscribe to all transactions?There are no nodes on the network that have the blockSubscribe function available

View Article


Image may be NSFW.
Clik here to view.

Vesting Smart Contract Unresolved accounts: `employeeAccount`

Trying developer-bootcamp-2024/project-8-token-vesting/ from GitHub, running web app with $ npm run dev, I get the Error: Reached maximum depth for account resolution. Unresolved accounts:...

View Article


How can I decode my accounts using Codama and Solana Kit?

I am using Solana Kit and Codama to get accounts from my program.Codama's programClient works successfully, I'm using it to make transactions elsewhere.I have a memcmp filter, to ensure only offer type...

View Article

cost of sample deploy using anchor

I ran the "Deploying Your First Solana Program" using Anchor on the betasolpg .io website. This program just sets a single value.The test solana was almost 2.5 solana 0.0025 to update the variable.Is...

View Article

not able to anchor deploy or anchor build

yatharth@LAPTOP-81K9JI2O:~/anchor/crud/anchor$ anchor builderror: no such command: build-sbfhelp: view all installed commands with cargo --listhelp: find a package to install build-sbf with cargo...

View Article


Image may be NSFW.
Clik here to view.

Error al cargar metadatos de token SPL usando...

Estoy intentando crear un token SPL en Solana y adjuntarle metadatos usando la librería @metaplex-foundation/mpl-token-metadata. He seguido la documentación y varios ejemplos, pero me encuentro con un...

View Article

Add/ Update signer in a versioned transaction

I'm working on a Solana app where the frontend (FE) generates a VersionedTransaction with a temporary or missing payerKey and sends it to the backend (BE) to add or update the payerKey to a fee payer's...

View Article

How to call your own Solana contract written in Rust

I don't want to use the built-in test (ts) of anchor right now, I want to call my contract instructions through rust (passing in idl), how should I proceed, are there any examples?

View Article

solana node falling behind

i have recently tried to setup my own rpc node i have tuned system performance accoridng to the documents, but after some time my node keeps falling behind.these are my server specs:AMD Epyc 7443P,...

View Article



Anyone can help me with warmhole_anchor_sdk?

Im new to crosschain dapps using wormhole, i want to implement NFT transfer from my erc721 contract to solana program using wormhole core contract, i was able to send the payload to the core contract...

View Article


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>