Questions tagged [sdk]
The sdk tag has no usage guidance.
25
questions
2
votes
1
answer
35
views
Checking presence of Memo within a transaction with Solana-SDK
I am currently attempting to figure out a way to check for the presence of a specific memo within a transaction using just the Solana-SDK or any off-chain-based Rust crates.
Below is code that is ...
1
vote
0
answers
76
views
Iteract with solana Phantom wallet using Python language [closed]
I want to implement a code on Python language for Solana Phantom wallet.
I want to find some good free APIs or SDKs for python programming language to interact with Phantom wallet.
Those operations ...
1
vote
0
answers
33
views
Help Needed to Retrieve Transaction Details Using Solana SDK in JavaScript/TypeScript
I've been trying for a few days with the Solana SDK to get information about a transaction. Actually, what I'm trying to get is this:
Swap 2,172,062.080193 NEIRO for 30.038762944 SOL
By providing the ...
0
votes
0
answers
23
views
¿Is there a way to see the LIQUIDITY and other data of a pool, using the raydium sdk?
I have the id of a pool, but I want to obtain the LIQUIDITY, the markers, the price of the coins of those holders, etc.
I know that with dex Screener, you can, but the information is not in real time.
...
0
votes
2
answers
648
views
How to get live price in dollar for any Solana tokens?
I'm working on a Node.js bot using the Raydium SDK. My goal is to fetch the price of any token on the Solana blockchain, given its address, and display the updated price in the terminal every second. ...
0
votes
0
answers
77
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)
"...
0
votes
0
answers
13
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, ...
1
vote
1
answer
116
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 ...
1
vote
1
answer
924
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 ...
-1
votes
2
answers
2k
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.
-2
votes
2
answers
95
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.
0
votes
1
answer
423
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 ...
0
votes
1
answer
95
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 ...
1
vote
1
answer
227
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 ...
1
vote
2
answers
80
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.
3
votes
1
answer
82
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 ...
2
votes
1
answer
486
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/...
0
votes
1
answer
360
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 .
1
vote
1
answer
86
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, ...
1
vote
1
answer
474
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 ...
1
vote
0
answers
34
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 ...
0
votes
1
answer
630
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: &...
1
vote
1
answer
34
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,
...
0
votes
1
answer
109
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 ...
5
votes
1
answer
258
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 ...