Hi
I have a requirement to submit signed transactions to Solana blockchain in a server written in C programming language.
I can use sendTransaction of JSON RPC API (JSON RPC API | Solana Docs), but it requires a serialized transaction.
My question is how do I reach up to a serialized transaction byte array?
-
I don’t see a C SDK similar to the JavaScript web3js. Is there a C SDK? or is there a C SDK under development or are there already C primitives for the purpose?
-
I can find the transaction format in JSON, generated from web3js. Eg. JSON format of transfer transaction to fill data.
-
How do sign the transaction in C?
-
How do I serialize the signed transaction in C?
Once I have the serialized byte array, I can proceed to submit to blockchain.
Mind someone help me in this? Best is a tiny C example for transfer SOL or tokens.
I need to know above 3 and 4 only. I can give it try and feedback.
Many thanks in advance.
Best regards
Sagara