Skip to main content

Questions tagged [account-data]

The tag has no usage guidance.

2 votes
1 answer
76 views

Handle big vector containing ton of structs

I'm looking for a way to handle a big struct. I want to understand how to create an account storing more than 10_000 structs inside is possible. Is there a simple way to do it? Or should I have to ...
GoT's user avatar
  • 33
0 votes
0 answers
17 views

A solana account, not a pda account, accidentally called the system contract to allocate space. Is there a way to withdraw the sol of this account?

This question is confusing. If someone does this, it will permanently destroy sol.
one harold's user avatar
0 votes
1 answer
72 views

How to build on-chain Solana trading bot

Can you help me figure out how can I build an on-chain trading bot for trading tokens launched on the Solana Blockchain? Just need step by step guidance or resources to start. Thanks for your response....
Abdullah Umar's user avatar
1 vote
0 answers
11 views

IPFS Integration

I've mashed IPFS up with Stellar to mail DAG roots between accounts in transaction memos, and to post mutable links to them in account data. It also derives encryption keys from a signature and ...
Brian's user avatar
  • 11
0 votes
0 answers
8 views

During the registration in the Delegation Program, I mistakenly chose the business account type

During registration in the Delegation Program, I mistakenly chose to register a business account, but I am an individual, please help me with changing the account type to an individual
Евгений Конюхов's user avatar
3 votes
1 answer
127 views

How to decode account data using Rust?

I'm trying to get the account data using Rust and the solana_sdk. I have the following code where account.data is a Vec. let pubkey = Pubkey::from_str("...
lifeInspection's user avatar
0 votes
2 answers
31 views

Pay for PDA by a centralized wallet

I'm trying to build an app that will hold a user's wallet private key to sign for transactions and pay for the account from a centralized wallet that I own. I'm trying to avoid them having to approve ...
Christopher Nolan Buckley's user avatar
1 vote
1 answer
41 views

Not able to read the updated value in a Solana Data Account

I have a simple solana greeting-counter program, I have it deployed locally. When I am calling from my typescript code I am able to do pretty much all the transactions and verify them. Except the last ...
Md Tauhidul Islam's user avatar
1 vote
1 answer
34 views

82 bytes Mint accounts

In an 82 bytes Mint account what are the first 4 bytes and the last 4 bytes. 00-03 (4 bytes) : ?? 04-35 (32 bytes): Mint Authority 36-43 (8 bytes) : Supply 44 (1 byte) : Decimals 45 (1 byte) : ...
J. Pablo García's user avatar
0 votes
1 answer
19 views

Mutate account data of a program by another program

I have a sender program, and a receiver program. What I want to do is, sender program has a account, data_account. I want sender program to call modify_data of receiver program, which in turn mutates ...
woodland's user avatar
1 vote
1 answer
11 views

Does <AccountInfo> have the accont key?

Looking at getMultipleAccountInfo it returns a AccountInfo<T>: { data: T; executable: boolean; lamports: number; owner: PublicKey; rentEpoch?: number; } Am I correct in ...
kekti's user avatar
  • 55
1 vote
0 answers
28 views

changed config from devnet to mainnet, how to I migrate my tokens so I see hem when checking spl-token accounts?(2 question btw)

(Question 1) before I did this; (so i could change metadata) I'd see my 80 mil tokens in the account made for the new minted token, now when I use spl-token accounts I just get spl-token accounts ...
Keola's user avatar
  • 83
3 votes
1 answer
138 views

What is the data size of a wallet account?

I want to calculate the minimum balance for Rent-except and have found code like this: const { Connection, clusterApiUrl, LAMPORTS_PER_SOL } = require('@solana/web3.js'); const connection = new ...
breeze wang's user avatar
1 vote
0 answers
13 views

Solana Rent Calculation [duplicate]

Could someone please provide guidance or a code example on how to calculate rent for Solana accounts? Specifically, I'm interested in understanding how to determine the rent due for each account based ...
Naomi Yoko's user avatar
1 vote
1 answer
18 views

Checking the generated PDA against the user's PDA input

First of all, I'm new to Solana development (came from an Ethereum background), so sorry if my question is too basic. I'm following the SolDev course, I'm on course state management. I have a ...
0xbrivan's user avatar

15 30 50 per page