Skip to content
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.

feat(etherscan): erc1155 token transfer events endpoint #1503

Merged
merged 1 commit into from
Jul 26, 2022

Conversation

hrkrshnn
Copy link
Contributor

@hrkrshnn hrkrshnn commented Jul 24, 2022

Motivation

Etherscan supports querying 1155 token transfer events: https://docs.etherscan.io/api-endpoints/accounts#get-a-list-of-erc1155-token-transfer-events-by-address. However, this was missing from the etherscan client.

Solution

Added a function get_erc1155_token_transfer_events to query this. There is already the corresponding functions for ERC20 and ERC721.

PR Checklist

  • Added Tests
  • Added Documentation
  • Updated the changelog

@hrkrshnn hrkrshnn force-pushed the etherscan-1155-events branch from 768fd13 to 3561c7c Compare July 24, 2022 23:40
Added the function `get_erc1155_transfer_events` and the corresponding struct `ERC1155TokenTransferEvent`.
@hrkrshnn hrkrshnn force-pushed the etherscan-1155-events branch from 3561c7c to ce03d34 Compare July 24, 2022 23:43
Copy link
Collaborator

@mattsse mattsse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, ty!

@gakonst gakonst merged commit 3766c2b into gakonst:master Jul 26, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants