InjectiveLabs / sdk-python

Injective Exchange API for Python clients
Apache License 2.0
41 stars 27 forks source link

swap token #282

Closed Arthur17vtg closed 9 months ago

Arthur17vtg commented 10 months ago

Hello, I'm a beginner programmer here. I'd like to swap INJ to token A using a python script, and I can't figure how to do.

Could you provide me some help please?

Thanks

aarmoa commented 9 months ago

Swaps are not supported by Injective chain natively. You will need to execute it through the smart contract of any of the dApps providing the feature. You can check the examples on MsgExecuteContract or MsgExecuteContractCompat to see how to interact with smart contracts