How can I create a string for sending request with the method sendTransaction?


I want to sent curl reques to make transaction tokens from one wallet to other, by using php or python.
Both wallets accaunts are on Phantom

Hi @elist and welcome to the forum! :wave:

First off:

:warning: Warning: Beware of scams on the forum and don’t reply to direct messages. Unfortunately the forum is rife with scammers and there aren’t any active moderators.


Anyway, it’s unfortunately not simple to create that transaction data string. You have to understand the binary data expected by the token program, and how to compose all that data into a binary transaction format, sign that transaction, and then encode that transaction before sending.

Your best bet is probably looking into Solana SDKs for Python and PHP. Here are a couple on GitHub, but I can’t make any claims about how secure or legitimate they are: