Questions tagged [frontend]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
12 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 ...
throuz's user avatar
  • 1
1 vote
1 answer
43 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 ...
Dmitry Sky's user avatar
3 votes
2 answers
111 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'...
painedpineapple's user avatar
0 votes
0 answers
44 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 ...
mukesh kumar's user avatar
2 votes
1 answer
299 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 ...
Amos Wu's user avatar
  • 23
2 votes
1 answer
39 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 ...
ysaito's user avatar
  • 21
3 votes
1 answer
98 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 ...
daoplays's user avatar
  • 567
1 vote
0 answers
24 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 ...
Aengus's user avatar
  • 147
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 ...
incog's user avatar
  • 567
5 votes
1 answer
68 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 ...
Aengus's user avatar
  • 147
2 votes
1 answer
49 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 ...
incog's user avatar
  • 567
2 votes
1 answer
611 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 ...
Mahesh Ghamaand's user avatar
3 votes
2 answers
601 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.
incog's user avatar
  • 567
1 vote
1 answer
56 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?
Gajesh Naik's user avatar
1 vote
2 answers
165 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 ...
Fahad Bilal's user avatar