Questions tagged [frontend]
The frontend tag has no usage guidance.
18
questions
0
votes
0
answers
69
views
'The given account is owned by a different program than expected' trying to make a transaction, shows program error
I have written a contract where user can register as user and organisation and user can deploy sol to the organisation's address
I deployed it in Solana Playground and tried out the functions there ...
0
votes
1
answer
43
views
Develop programs on the beta playground and test with localhost frontend
Hi guys I was trying to install my environment to get started working on solana programs on my windows machine. Unfortunately I have came across so many errors and it's just an endless circle at this ...
1
vote
0
answers
10
views
The frontend encountered an error when calling stake NFT
frontend code
backend code
error
0
votes
0
answers
16
views
i using solang, why frontend get value require send a transaction?
https://github.com/solana-developers/program-examples/tree/main/basics/counter/solang
hi there, i use this example, all good until i try to get value in frontend, it need send a transaction to get ...
1
vote
1
answer
115
views
How do I display MarginFi Leding/Borrowing pools in my ui?
I'm digging into this mrgn-ts library and I can't seem to figure out how to fetch all the available lending/borrowing pools and display some data about them, like asset price, APY, available funds to ...
3
votes
2
answers
192
views
Frontend Burning cNFT // Transaction size too big
My objective here is to burn cNFTs on the frontend but it keeps failing b/c tx size is too large. I've attempted to do this with the older createBurnInstruction fn as well as the burn fn with umi. I'...
0
votes
0
answers
76
views
Dioxus and Rust
I like how Solana uses React and other popular libraries/frameworks for the front end, but I would prefer the whole project to be in Rust (WASM). Is there a way I can integrate Solana-wallet for ...
2
votes
1
answer
448
views
SPL token account creation and airdrop
I created a spl-token and I want to let users claim airdrops from my website.
My current implementation in short:
Calculate associated token account
Check if the token account exist
If not, create ...
2
votes
1
answer
59
views
How to implement a front-end unit/integration test
I am looking to create a test script for an application implemented with frontend only code. How do you guys implement unit tests and integration tests for the front end? Also, if you know of any ...
3
votes
1
answer
113
views
Checking if RPC endpoint URL is hidden in a react front end
I've heard different things from different people on this front, but i've been looking into trying to keep api details (keys, rpc end point urls etc) hidden in a react front-end application.
I've made ...
1
vote
0
answers
73
views
"Cannot use in operator to search for Vec in f64" Error when trying to run front end
In my backend program, I initialized a struct with that has a Vec field and i initialize it with the Vec::with_capacity() function. However, when I try to run it on my frontend, it gives me the error ...
2
votes
1
answer
2k
views
Error: Hydration failed because the initial UI does not match what was rendered on the server | Using solana wallet adapter
when I try and use the Solana front-end wallet adapter and add it to my next project, I keep getting the following error until I change something on the UI.
Error: Hydration failed because the initial ...
5
votes
1
answer
101
views
Getting an IDLError when I try to create a vector of a defined Struct
I currently have defined a Ship struct in my backend code, as well as a Port struct which contains an attribute ships_berthed that is of type Vec.
However, on my frontend (Svelte), when I try to call ...
2
votes
1
answer
58
views
Can you combine transactions into one on the front end?
For example, if I wanted to use Metaplex's Program Library to do something on their program, and wanted to create a front end for it and include a small Solana fee for my work, is it possible to put ...
2
votes
1
answer
825
views
How can I know if a account exists or not on solana blockchain in frontend?
I am creating PDA accounts which have seeds consisting of user-wallet-publicKey and a static-text
In frontend I want to show either user-data if user already created his account or a button to deploy ...
3
votes
2
answers
950
views
Anchor: useAnchorWallet vs solana's useWallet
I was just wondering if I would be able to substitute Solana's useWallet() instead of useAnchorWallet() when interacting with a smart contract using Anchor on the front end.
1
vote
1
answer
60
views
best way to fetch NFT metadata from frontend? [closed]
what's the best way to get nft metadata like image & name etc?
like input your nft mint address & it emits the nft metadata
-- any API?
1
vote
2
answers
211
views
dynamic seed generation | seed not getting recognised when passing from frontend/cli
I am following the following tutorial:
https://dev.to/findiglay/building-a-blog-on-solana-2pg8
But in the code below it is creating seeds using the value from blog_account. I want to pass some ...