Skip to main content

Questions tagged [sdk]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
9 views

How to decode buffer data received from onAccountChange WSS method

I have the below code to get data regarding a liquidity pool - solanaConnection.onAccountChange( publicKey, (updatedProgramInfo, context) => console.log(updatedProgramInfo.data) "...
Zero's user avatar
  • 123
0 votes
0 answers
8 views

Looking to replicate Step.Finance DeFi aggregation, but can't find the right commands

I'm writing a little Node.js tool to see my balances across the Solana universe, but have only found ways to see the balances in my actual wallet (getParsedAccountInfo, getParsedTokenAccountsByOwner, ...
Ben's user avatar
  • 1
1 vote
1 answer
54 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
1 vote
1 answer
578 views

Need help with raydium sdk

I am building a swap like app that uses raydium but I'm facing alot of problems. I copied someone's code and tried to change it a little bit but something is quite off. Whenever I try to sell the ...
user10900's user avatar
-1 votes
1 answer
1k views

Interacting with the Raydium API

I don't know much about programming. I want to interact with the Raydium API in order to swap tokens <30 secs after launch. How do I do it? A detailed guide would be great, thanks.
adoonnnnn's user avatar
-2 votes
2 answers
79 views

Where can I find the Solana Javascript SDK?

Nothing is defined. Do I need to write everything myself? All I need is Transaction and SystemProgram for my product wanted to sell via SPL.
Tom's user avatar
  • 1
0 votes
1 answer
299 views

Jupiter listing delay

I am working on a bot to swap on Jupiter using python. A lot of the tokens I will be swapping will be newer tokens, (within a few minutes of listing and with a few thousand mktcap). However, when I ...
Ishaq Ruhani's user avatar
0 votes
1 answer
63 views

Sol Unity SDK Questions-

I am trying to create a game and integrate the unity SDK + soar into it for accounts / leaderboards ETC, and I'd like to make it so that the "play" button is unlocked for each turn by paying ...
noot's user avatar
  • 1
1 vote
1 answer
171 views

How to sign a TX offline by Solana SDK? And then send it afterwards

I need to prepare in advance, for a month, a 100 of TXs signed in offline, for SOL and USDT, USDC. In the documentation - offline transactions - it's described how to sign them via the cli utilities ...
nicholas.fowler's user avatar
1 vote
2 answers
69 views

Error on building sdk with solita on anchor-lang:0.28.0

No matching version is found by solita for anchor-cli: 0.28.0 on https://crates.io/crates/anchor-cli/versions , which gives error.
Athar Mohd's user avatar
3 votes
1 answer
74 views

Minimal makefile to build a Solana program in C?

So the Solana helloworld example has a makefile that includes a much bigger makefile that does helpful things like generating make targets based on the names of your programs. This also makes it much ...
KevinH's user avatar
  • 422
2 votes
1 answer
393 views

How to fix "ELF error: Relative jump out of bounds at instruction" on example-helloworld deploy (target sbf-solana-solana cpu sbfv2)?

We are using the latest Solana monorepo [1] and our goal is to run the Solana example-helloworld [2] Using sbf-solana-solana target and sbfv2 CPU. First, we patched programs/bpf_loader/src/syscalls/...
dsauvage's user avatar
0 votes
1 answer
298 views

How to create multiple master editions NFT from metaplex sdk

What parameter should I need to pass in [await metaplex.nfts().create({})] in order to create number of master editions . I see the maxSupply represents the number of print editions .
subhajit das's user avatar
1 vote
1 answer
78 views

How to fix 'ELF error: Dynamic stack frames detected but not enabled' while running the Solana helloworld example C program using SBF v2 processor?

using solana sdk 1.14.11 [1], my goal is to execute the Solana helloworld example C program [2] using the SBF v2 processor [3] on the local solana-test-validator. When deploying the program locally, ...
dsauvage's user avatar
1 vote
1 answer
381 views

Get feePayer (Signer) from @project-serum/sol-wallet-adapter and use it in @solana/spl-token

I used a package called @project-serum/sol-wallet-adapter and I want to use createMint() and mintTo() functions in @solana/spl-token. The problem is that I can't get the feePayer or the Signer in ...
user2422's user avatar
1 vote
0 answers
32 views

How do I create a BpfLoaderUpgradable update instruction using the JavaScript SDK?

I need to deploy a buffer to program_id using an app that utlizes a multisig contract. A prudent method to managing deployment is to upload to a buffer with a less trusted account and then use a ...
kathodler's user avatar
0 votes
2 answers
532 views

Create collection using metaplex js sdk

I would like to create a collection and then add nft to it. The code I use: const a = ( await metaplex .nfts() .create({ name: "My off-chain name", uri: &...
pu0238's user avatar
  • 3
1 vote
1 answer
29 views

Why is Reward::lamports signed?

The Rewards type of the Solana protocol is the only instance of i64 for lamports. pub enum RewardType { Fee, Rent, Staking, Voting, } pub struct Reward { pub pubkey: String, ...
terorie's user avatar
  • 453
0 votes
1 answer
87 views

Get staking rewards for a specific account

Wondering what is the best way to get all the rewards for a specific account. Currently I’m using getInflationReward RPC endpoint but it requires me to call it per epoch so eventually I’m looping from ...
Viacheslav Serebrianniy's user avatar
5 votes
1 answer
209 views

Is there a PHP SDK to pull the on-chain information in Solana?

There's a huge community of developers who build in PHP language. Is there a plan to build PHP SDK apart from JS SDK as well? Especially to pull on-chain data? Update: Howrare created a PHP SDK to ...
gauravtechie's user avatar