Example
daanrod opened this issue · comments
Hey guys, someone can give an example about interact with a contract on solana and how to build a transaction?
Here is a tx to simulate:
https://solscan.io/tx/3NrL4Srx5xS8zQvofTACaW7fybcZn4eZ5ZdjGQBAUhuVpPL77GYb754kagPXuArjWqWJxdxykmRyuVVo2oURjNKF
Here is the contract to interact:
https://solscan.io/account/SAGEqqFewepDHH6hMDcmWy7yjHPpyKLDnRXKb3Ki8e6
You can refer to this source code of the Jupiter API
https://github.com/0xTaoDev/jupiter-python-sdk/blob/main/src/jupiter_python_sdk/jupiter.py#L638