Coder Social home page Coder Social logo

tonsdk's People

Contributors

1ixi1 avatar delpydoc avatar psylopunk avatar sasha1618 avatar shuva10v avatar yungwine avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

tonsdk's Issues

Please add methods for Jettons

I could not find methods getData for JettonWallet, so it's impossible to get Balance of specific jettons.

And please add methods for getting JettonWallet from wallet address. (I have my wallet address -> how to get my jetton address if I know jetton minter address)

Jettons Wallet address examples

Hello. Could you write an examples for getting Jetton wallet address from wallet object for specific Jetton. Do we need to create minterAddress first or how to do it?

Get jetton balance

Is there a method to get the jetton balance of a particular wallet address?

Problem with tonsdk installation. Error rc.exe

I have Visual Studio 2022 installed and when I tried to install tonsdk for the first time, I got an error asking me to install the MSVC 14.00 component through the Visual Studio Installer. After installation this error appeared, I haven't been able to fix it with solutions like this.

C:\Users\ZederBreys>pip install tonsdk
Collecting tonsdk
  Using cached tonsdk-1.0.13-py3-none-any.whl.metadata (7.9 kB)
Collecting pynacl>=1.4.0 (from tonsdk)
  Using cached PyNaCl-1.5.0-cp36-abi3-win_amd64.whl (212 kB)
Collecting bitarray==2.6.0 (from tonsdk)
  Using cached bitarray-2.6.0.tar.gz (102 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting cffi>=1.4.1 (from pynacl>=1.4.0->tonsdk)
  Using cached cffi-1.16.0-cp311-cp311-win_amd64.whl.metadata (1.5 kB)
Collecting pycparser (from cffi>=1.4.1->pynacl>=1.4.0->tonsdk)
  Using cached pycparser-2.21-py2.py3-none-any.whl (118 kB)
Using cached tonsdk-1.0.13-py3-none-any.whl (71 kB)
Using cached cffi-1.16.0-cp311-cp311-win_amd64.whl (181 kB)
Building wheels for collected packages: bitarray
  Building wheel for bitarray (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Building wheel for bitarray (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [30 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build\lib.win-amd64-cpython-311
      creating build\lib.win-amd64-cpython-311\bitarray
      copying bitarray\test_bitarray.py -> build\lib.win-amd64-cpython-311\bitarray
      copying bitarray\test_util.py -> build\lib.win-amd64-cpython-311\bitarray
      copying bitarray\util.py -> build\lib.win-amd64-cpython-311\bitarray
      copying bitarray\__init__.py -> build\lib.win-amd64-cpython-311\bitarray
      copying bitarray\util.pyi -> build\lib.win-amd64-cpython-311\bitarray
      copying bitarray\__init__.pyi -> build\lib.win-amd64-cpython-311\bitarray
      copying bitarray\py.typed -> build\lib.win-amd64-cpython-311\bitarray
      copying bitarray\bitarray.h -> build\lib.win-amd64-cpython-311\bitarray
      copying bitarray\pythoncapi_compat.h -> build\lib.win-amd64-cpython-311\bitarray
      copying bitarray\test_data.pickle -> build\lib.win-amd64-cpython-311\bitarray
      running build_ext
      building 'bitarray._bitarray' extension
      creating build\temp.win-amd64-cpython-311
      creating build\temp.win-amd64-cpython-311\Release
      creating build\temp.win-amd64-cpython-311\Release\bitarray
      "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -IC:\Users\ZederBreys\AppData\Local\Programs\Python\Python311\include -IC:\Users\ZederBreys\AppData\Local\Programs\Python\Python311\Include "-IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE" "-IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\ATLMFC\INCLUDE" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\winrt" /Tcbitarray/_bitarray.c /Fobuild\temp.win-amd64-cpython-311\Release\bitarray/_bitarray.obj
      _bitarray.c
      "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\link.exe" /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:C:\Users\ZederBreys\AppData\Local\Programs\Python\Python311\libs /LIBPATH:C:\Users\ZederBreys\AppData\Local\Programs\Python\Python311 /LIBPATH:C:\Users\ZederBreys\AppData\Local\Programs\Python\Python311\PCbuild\amd64 "/LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\LIB\amd64" "/LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\ATLMFC\LIB\amd64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.22621.0\ucrt\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.22621.0\um\x64" /EXPORT:PyInit__bitarray build\temp.win-amd64-cpython-311\Release\bitarray/_bitarray.obj /OUT:build\lib.win-amd64-cpython-311\bitarray\_bitarray.cp311-win_amd64.pyd /IMPLIB:build\temp.win-amd64-cpython-311\Release\bitarray\_bitarray.cp311-win_amd64.lib
      _bitarray.obj : warning LNK4197: несколько раз указан экспорт "PyInit__bitarray"; использована первая спецификация
         Создается библиотека build\temp.win-amd64-cpython-311\Release\bitarray\_bitarray.cp311-win_amd64.lib и объект build\temp.win-amd64-cpython-311\Release\bitarray\_bitarray.cp311-win_amd64.exp
      Создание кода
      Создание кода завершено
      LINK : fatal error LNK1327: сбой при выполнении rc.exe
      error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\x86_amd64\\link.exe' failed with exit code 1327
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for bitarray
Failed to build bitarray
ERROR: Could not build wheels for bitarray, which is required to install pyproject.toml-based projects

Error when initializing wallet

Hi I am getting this error when trying to send init external message for new wallet:
"error": "LITE_SERVER_UNKNOWN: cannot apply external message to current state : Failed to unpack account state",

async def initialize(self):
        result = self.wallet.create_init_external_message()
        boc = result["message"].to_boc(False)
        return await self.client.send_boc(boc)

using toncenter api

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.