Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

How can I set custom Transaction Fee with TransactionBuilder #451

Unanswered
TurgutBtc asked this question in Q&A
Discussion options

I use the Solnet nuget package on my .net application and I cannot assign a custom fee value for any token transfer or sol transfer in this package. After this process, it automatically gives the fee value as 0.000005 SOL. And the token transfers I sent cannot be found on the network, and I think the reason for this is the low fee amount. I have never encountered a manual fee assignment method in the Solnet nuget package.

var transactionBuilder = new TransactionBuilder()
 .SetRecentBlockHash(recentBlockHash.Result.Value.Blockhash)
 .SetFeePayer(fromAccount)
 .AddInstruction(TokenProgram.Burn(
 fromAssociatedTokenAccount,
 receiverAssociatedTokenAccount,
 100000,
 fromAccount
 ));
You must be logged in to vote

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant

AltStyle によって変換されたページ (->オリジナル) /