-
Discord user IDNo response Describe your question in detail.Hi, I need help with creating a transaction (tx) for transferring FA. Here's the code:
I've tried different variants, but I can’t understand how to do it via Python. In TypeScript, everything works fine, but I need it in Python for my case. What error, if any, are you getting?No response What have you tried or looked at? Or how can we reproduce the error?No response Which operating system are you using?macOS Which SDK or tool are you using? (if any)Python SDK Describe your environment or tooling in detailNo response |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
what error are you running into? we have some python sdk example in https://github.com/aptos-labs/aptos-python-sdk/tree/main/examples |
Beta Was this translation helpful? Give feedback.
-
The next day, I solved the problem in 2 minutes—just looked at the payload for sending a transaction via the wallet and realized I was using the wrong function. I should have used 0x1::primary_fungible_store::transfer instead of 0x1::aptos_account::transfer_fungible_assets. So, the payload looks like this in case it's useful to anyone:
|
Beta Was this translation helpful? Give feedback.
The next day, I solved the problem in 2 minutes—just looked at the payload for sending a transaction via the wallet and realized I was using the wrong function.
I should have used 0x1::primary_fungible_store::transfer instead of 0x1::aptos_account::transfer_fungible_assets.
So, the payload looks like this in case it's useful to anyone: