{ "info": { "author": "fexra", "author_email": "fexra@protonmail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: GNU Affero General Public License v3", "Programming Language :: Python :: 3" ], "description": "# TRTL Service Python API Interface\n\nThis wrapper allows you to easily interact with the [TRTL Services](https://trtl.services) 0.9.0 API to quickly develop applications that interact with the [TurtleCoin](https://turtlecoin.lol) Network.\n\n\n# Table of Contents\n\n1. [Installation](#installation)\n2. [Intialization](#intialization)\n3. [Documentation](#documentation)\n 1. [Methods](#methods)\n\n# Installation\n\n```bash\npip install ts-api-py\n```\n\n# Intialization\n\n```python\nimport os\nfrom TRTLservices import TS\n\nos.environ[\"TRTL_SERVICES_TOKEN\"] = \"eyJhbGciOiJIUzUxMiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjoieW8iLCJhcHBJZCI6MjAsInVzZXJJZCI6MiwicGVybWlzc2lvbnMiOlsiYWRkcmVzczpuZXciLCJhZGRyZXNzOnZpZXciLCJhZGRyZXNzOmFsbCIsImFkZHJlc3M6c2NhbiIsImFkZHJlc3M6ZGVsZXRlIiwidHJhbnNmZXI6bmV3IiwidHJhbnNmZXI6dmlldyJdLCJpYXQiOjE1Mzk5OTQ4OTgsImV4cCI6MTU3MTU1MjQ5OCwiYXVkIjoiZ2FuZy5jb20iLCJpc3MiOiJUUlRMIFNlcnZpY2VzIiwianRpIjoiMjIifQ.KkKyg18aqZfLGMGTnUDhYQmVSUoocrr4CCdLBm2K7V87s2T-3hTtM2MChJB2UdbDLWnf58GiMa_t8xp9ZjZjIg\"\n\nos.environ[\"TRTL_SERVICES_TIMEOUT\"] = 2000\n\n```\n\nGenerate a token with the TRTL Services [Dashboard](https://trtl.services) and store it as the variable ``TRTL_SERVICES_TOKEN`` in your os environment along with ``TRTL_SERVICES_TIMEOUT`` if you wish the change the default timeout of 2000.\n\n\n\n# Documentation\n\nAPI documentation is available at https://trtl.services/docs\n\n\n## Methods\n\n### createAddress()\nCreate a new TRTL addresses\n\n```python\nTS.createAddress()\n```\n\n\n### getAddress(address)\nGet address details by address\n```python\nTS.getAddress(\"TRTLuxH78akDMCsXycnU5HjJE6zPCgM4KRNNQSboqh1yiTnvxuhNVUL9tK92j9kurSKdXVHFmjSRkaNBxM6Nb3G8eQGL7aj113A\")\n```\n\n\n### deleteAddress(address)\nDelete a selected TRTL addresses\n\n```python\nTS.deleteAdddress(\"TRTLuxH78akDMCsXycnU5HjJE6zPCgM4KRNNQSboqh1yiTnvxuhNVUL9tK92j9kurSKdXVHFmjSRkaNBxM6Nb3G8eQGL7aj113A\")\n```\n\n\n### getAddresses()\nView all addresses belonging to the specified token.\n\n```python\nTS.getAddresses()\n```\n\n\n### scanAddress(address, blockIndex)\nScan an address for transactions between a 100 block range starting from the specified blockIndex.\n\n```python\nTS.scanAddress(\"TRTLuxH78akDMCsXycnU5HjJE6zPCgM4KRNNQSboqh1yiTnvxuhNVUL9tK92j9kurSKdXVHFmjSRkaNBxM6Nb3G8eQGL7aj113A\", 899093)\n```\n\n\n### getAddressKeys(address)\nGet the public and secret spend key of an address.\n\n```python\nTS.getAddressKeys(\"TRTLuxH78akDMCsXycnU5HjJE6zPCgM4KRNNQSboqh1yiTnvxuhNVUL9tK92j9kurSKdXVHFmjSRkaNBxM6Nb3G8eQGL7aj113A\")\n```\n\n\n### integrateAddress(address, paymentId)\nCreate an integrated address with an address and payment ID.\n\n```python\nTS.integrateAddress(\"TRTLuxH78akDMCsXycnU5HjJE6zPCgM4KRNNQSboqh1yiTnvxuhNVUL9tK92j9kurSKdXVHFmjSRkaNBxM6Nb3G8eQGL7aj113A\", \"7d89a2d16365a1198c46db5bbe1af03d2b503a06404f39496d1d94a0a46f8804\")\n```\n\n\n### getIntegratedAddresses(address)\nCreate an integrated address with an address and payment ID.\n\n```python\nTS.getIntegratedAddresses(\"TRTLuxH78akDMCsXycnU5HjJE6zPCgM4KRNNQSboqh1yiTnvxuhNVUL9tK92j9kurSKdXVHFmjSRkaNBxM6Nb3G8eQGL7aj113A\")\n```\n\n\n### getFee(amount)\nCalculate the TRTL Services fee for an amount specified in TRTL with two decimal points.\n\n```python\nTS.getFee(1092.19)\n```\n\n\n### createTransfer(sender, receiver, amount, fee, paymentId, extra)\nSend a TRTL transaction with an address with the amount specified two decimal points.\n\n```python\nTS.createTransfer(\n \"TRTLuxH78akDMCsXycnU5HjJE6zPCgM4KRNNQSboqh1yiTnvxuhNVUL9tK92j9kurSKdXVHFmjSRkaNBxM6Nb3G8eQGL7aj113A\",\n \"TRTLuzAzNs1E1RBFhteX56A5353vyHuSJ5AYYQfoN97PNbcMDvwQo4pUWHs7SYpuD9ThvA7AD3r742kwTmWh5o9WFaB9JXH8evP\",\n 1000.01,\n 1.2,\n \"7d89a2d16365a1198c46db5bbe1af03d2b503a06404f39496d1d94a0a46f8804\",\n \"3938f915a11582f62d93f82f710df9203a029f929fd2f915f2701d947f920f99\"\n)\n```\n#### You can leave the last two fields (paymentId and extra) blank.\n\n\n### getTransfer(address)\nGet a transaction details specified by transaction hash.\n\n```python\nTS.getTransfer(\"EohMUzR1DELyeQM9RVVwpmn5Y1DP0lh1b1ZpLQrfXQsgtvGHnDdJSG31nX2yESYZ\")\n```\n\n\n### getWallet()\nGet wallet container info and health check.\n\n```python\nTS.getWallet()\n```\n\n\n### getStatus()\nGet the current status of the TRTL Services infrastructure.\n\n```python\nTS.getStatus()\n```\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/trtl-services/ts-api-py", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "ts-api-py", "package_url": "https://pypi.org/project/ts-api-py/", "platform": "", "project_url": "https://pypi.org/project/ts-api-py/", "project_urls": { "Homepage": "https://github.com/trtl-services/ts-api-py" }, "release_url": "https://pypi.org/project/ts-api-py/0.9.2/", "requires_dist": null, "requires_python": "", "summary": "Python wrapper to interact with the TRTL Services API.", "version": "0.9.2" }, "last_serial": 4508527, "releases": { "0.9.2": [ { "comment_text": "", "digests": { "md5": "56651ed31bbd2d6df329e1d82c2e40a2", "sha256": "b8d665b0d51b8478c646a992e195d8f6b1887b1f11ca930da7973a2b05bd68fa" }, "downloads": -1, "filename": "ts_api_py-0.9.2-py3-none-any.whl", "has_sig": false, "md5_digest": "56651ed31bbd2d6df329e1d82c2e40a2", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 16217, "upload_time": "2018-11-20T17:01:55", "url": "https://files.pythonhosted.org/packages/06/d7/bd52856d8a8cedd84223e5a367da4dc26e2c4f95723d8ead6f2e57ee5699/ts_api_py-0.9.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "0c6f2b796947184f53a83682dfc87cd5", "sha256": "1d6c7c8571af32d8e22dd4767957c3434ac5876018fae58a673dec8719df3959" }, "downloads": -1, "filename": "ts-api-py-0.9.2.tar.gz", "has_sig": false, "md5_digest": "0c6f2b796947184f53a83682dfc87cd5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3950, "upload_time": "2018-11-20T17:01:56", "url": "https://files.pythonhosted.org/packages/c5/55/66007d9e25d41653e6a013048f5e790911a0f6d855ac5dafedfceac0f7b5/ts-api-py-0.9.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "56651ed31bbd2d6df329e1d82c2e40a2", "sha256": "b8d665b0d51b8478c646a992e195d8f6b1887b1f11ca930da7973a2b05bd68fa" }, "downloads": -1, "filename": "ts_api_py-0.9.2-py3-none-any.whl", "has_sig": false, "md5_digest": "56651ed31bbd2d6df329e1d82c2e40a2", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 16217, "upload_time": "2018-11-20T17:01:55", "url": "https://files.pythonhosted.org/packages/06/d7/bd52856d8a8cedd84223e5a367da4dc26e2c4f95723d8ead6f2e57ee5699/ts_api_py-0.9.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "0c6f2b796947184f53a83682dfc87cd5", "sha256": "1d6c7c8571af32d8e22dd4767957c3434ac5876018fae58a673dec8719df3959" }, "downloads": -1, "filename": "ts-api-py-0.9.2.tar.gz", "has_sig": false, "md5_digest": "0c6f2b796947184f53a83682dfc87cd5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3950, "upload_time": "2018-11-20T17:01:56", "url": "https://files.pythonhosted.org/packages/c5/55/66007d9e25d41653e6a013048f5e790911a0f6d855ac5dafedfceac0f7b5/ts-api-py-0.9.2.tar.gz" } ] }