diff --git a/etherscan/enums/actions_enum.py b/etherscan/enums/actions_enum.py index 20c81cb..0c0bf9a 100644 --- a/etherscan/enums/actions_enum.py +++ b/etherscan/enums/actions_enum.py @@ -60,4 +60,5 @@ class ActionsEnum: TOKENNFTTX: str = "tokennfttx" TOKENTX: str = "tokentx" TXLIST_INTERNAL: str = "txlistinternal" + TXLIST_ERC1155: str = "token1155tx" TXLIST: str = "txlist" diff --git a/etherscan/modules/accounts.py b/etherscan/modules/accounts.py index 831b90d..87cc46a 100644 --- a/etherscan/modules/accounts.py +++ b/etherscan/modules/accounts.py @@ -108,6 +108,27 @@ def get_internal_txs_by_address( ) return url + @staticmethod + def get_erc1155_txs_by_address( + address: str, startblock: int, endblock: int, sort: str, + ) -> str: + # NOTE: Returns the last 10k events + url = ( + f"{fields.MODULE}" + f"{modules.ACCOUNT}" + f"{fields.ACTION}" + f"{actions.TXLIST_ERC1155}" + f"{fields.ADDRESS}" + f"{address}" + f"{fields.START_BLOCK}" + f"{str(startblock)}" + f"{fields.END_BLOCK}" + f"{str(endblock)}" + f"{fields.SORT}" + f"{sort}" + ) + return url + @staticmethod def get_internal_txs_by_address_paginated( address: str, page: int, offset: int, startblock: int, endblock: int, sort: str, diff --git a/setup.py b/setup.py index 9a4410a..3b3bae3 100644 --- a/setup.py +++ b/setup.py @@ -1,8 +1,8 @@ from setuptools import setup setup( - name="etherscan-python", - version="2.1.0", + name="etherscan-python-api", + version="2.2.0", description="A minimal, yet complete, python API for etherscan.io.", url="https://github.com/pcko1/etherscan-python", author="Panagiotis-Christos Kotsias", pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy