Skip to main content
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.
Jacob Creech's user avatar
  • 4,019
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. ...
Jon C's user avatar
  • 19.6k
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 ...
Athar Mohd's user avatar
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 ...
zkKirol's user avatar
  • 54
2 votes
Accepted

Why is Reward::lamports signed?

Hacks to encode whether rent Reward entries are from the payer (-) or recipient(+)
trent.sol's user avatar
  • 4,585
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 ...
Jon C's user avatar
  • 19.6k
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) ...
dsauvage's user avatar
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 ...
Jonas H.'s user avatar
  • 7,219
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::...
billy's user avatar
  • 21
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
Timothy Adigwe's user avatar
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 ...
kokiez's user avatar
  • 133
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....
McBain's user avatar
  • 5,384
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 ...
JCSNV's user avatar
  • 46
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), ...
Gabriele Picco's user avatar
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 ...
Jon C's user avatar
  • 19.6k
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. ...
john's user avatar
  • 7,794
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:...
Jon C's user avatar
  • 19.6k
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 ...
Tony Boyle's user avatar
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 ...
trent.sol's user avatar
  • 4,585

Only top scored, non community-wiki answers of a minimum length are eligible