10
votes
Accepted
Is there a PHP SDK to pull the on-chain information in Solana?
There is a Solana PHP SDK available that is currently not actively maintained.
You can use it today to pull on-chain transaction and account data.
4
votes
Accepted
Minimal makefile to build a Solana program in C?
I got a bit bored and trimmed down the makefile a lot! It's definitely confusing since it's pretty much doing all of cargo build-sbf for a whole workspace, but I hope this should be easy to follow. ...
3
votes
Error on building sdk with solita on anchor-lang:0.28.0
Solution posted by @zkKirol : https://discord.com/channels/848060988636921856/849844496941842432/1153277836157796383
Download the anchor-cli : 0.28.0 binary and copy paste it in .crates folder which ...
2
votes
Accepted
Error on building sdk with solita on anchor-lang:0.28.0
fix I'm using:
in cargo.toml inside programs/name_of_your_program
change anchor-lang to 0.27.0
do NOT run anchor build
then run yarn solita, it will initialy start working but fail at the end
that ...
2
votes
Accepted
Why is Reward::lamports signed?
Hacks to encode whether rent Reward entries are from the payer (-) or recipient(+)
2
votes
Get feePayer (Signer) from @project-serum/sol-wallet-adapter and use it in @solana/spl-token
When using a wallet, you have to use a different flow than the Token class, which is one of the reasons why it was removed. Rather than passing in the Keypair, you'll need to create a transaction and ...
2
votes
Accepted
How to fix "ELF error: Relative jump out of bounds at instruction" on example-helloworld deploy (target sbf-solana-solana cpu sbfv2)?
We have been able to fix the issue by activating static syscalls and using the latest solana-labs/rbpf git version (may be related to https://github.com/solana-labs/rbpf/pull/434 recently committed)
...
2
votes
Where can I find the Solana Javascript SDK?
If you do not want to write everything yourself you can for example use the solana dapp preset
npx create-solana-dapp
which will create you a dapp which also contains a transfer function.
Here is ...
2
votes
Checking presence of Memo within a transaction with Solana-SDK
use solana_sdk::{
instruction::Instruction,
message::Message,
memo::PROGRAM_ID as MEMO_PROGRAM_ID,
pubkey::Pubkey,
transaction::Transaction,
};
use solana_client::rpc_client::...
1
vote
Accepted
How do I display MarginFi Leding/Borrowing pools in my ui?
You can check this out https://github.com/mrgnlabs/pulsar-example/blob/main/index.ts
Its shows some basic examples
1
vote
Interacting with the Raydium API
There are different programming languages you can do it in such as Typescript, Python and Rust. Solana library is available in all of these languages but Raydium library is not available in Python due ...
1
vote
Where can I find the Solana Javascript SDK?
You can install the Solana web3.js sdk from npm or yarn.
Npm: npm i @solana/web3.js
Yarn: yarn add @solana/web3.js
Else you can also check out the source at https://github.com/solana-labs/solana-web3....
1
vote
Jupiter listing delay
The Jupiter markets cache isn't instant and requires that new tokens meet a certain threshold when it comes to liquidity.
QuickNode's Metis - Jupiter V6 Swap API offers the ability to add new markets ...
1
vote
Sol Unity SDK Questions-
A simple approach would be to create a program with one instruction that accepts the payment and creates a record on-chain (you could use SOAR achievement for the latter or a custom-made account/PDA), ...
1
vote
How to sign a TX offline by Solana SDK? And then send it afterwards
You'll definitely need to use nonce accounts to sign and eventually send these transactions.
If you want to send these all at once, you'll need to create 100 nonce accounts, sign each transaction with ...
1
vote
How to create multiple master editions NFT from metaplex sdk
An nft will only have a single "master edition" account, which is a PDA derived using the nft's mint address.
Use printNewEdition if you're trying to print an "edition" of an nft.
...
1
vote
Accepted
How to fix 'ELF error: Dynamic stack frames detected but not enabled' while running the Solana helloworld example C program using SBF v2 processor?
Although dynamic stack frames are supported on the VM, as you've noticed, they're not enabled in the Solana validator.
To enable it on the validator's VM, you'll need to change this line to true https:...
1
vote
Accepted
Create collection using metaplex js sdk
What you're experiencing is correct.
A collection points to parent/collection NFT that is created and referenced to.
Your entire collection should point to the collection NFT you created.
For more ...
1
vote
Get staking rewards for a specific account
Yes, this iterating is the Right Way :tm: to get rewards for multiple epochs. Inflation rewards are stored in the first block produced in each epoch. It will be much lighter to make the ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
sdk × 25metaplex × 3
solana-program × 3
web3.js × 3
api × 3
js × 3
raydium × 3
python × 2
javascript × 2
swap × 2
solana-test-validator × 2
solana-sdk × 2
rewards × 2
nfts × 1
anchor × 1
transactions × 1
signature × 1
account × 1
rust × 1
spl × 1
spl-token × 1
token × 1
balance × 1
cargo × 1
deploy × 1