Status-react: Explore getting token transaction history entry

Created on 16 Jan 2018  Â·  7Comments  Â·  Source: status-im/status-react

User Story

As a user I want to see my ERC20 token transactions in the transaction history along with eth transactions.

Description

Type: Feature

Summary: Right now ERC20 token transactions do not show in the transaction history screen, simply because we get that information from Etherscan API and there is no publicly available service that offers that data. However, token transactions still leave some trace in the transaction history - there are special 0 ETH entries with some extra ether for the spent gas for every token transaction.

We should explore getting the needed data (token amount, specifically) from those entries.

bounty bounty-l wallet

Most helpful comment

We already figured this out at Trust Wallet.
Open source repo: https://github.com/TrustWallet/trust-ray

/transactions?address=0xe47494379c1d48ee73454c251a6395fdd4f9eb43 will return all the ether and ERC20 transfers.

Documentation available: https://github.com/TrustWallet/trust-ray/wiki/API

GitHub
trust-ray - :cloud: API for the Trust Wallet
GitHub
trust-ray - :cloud: API for the Trust Wallet

All 7 comments

We already figured this out at Trust Wallet.
Open source repo: https://github.com/TrustWallet/trust-ray

/transactions?address=0xe47494379c1d48ee73454c251a6395fdd4f9eb43 will return all the ether and ERC20 transfers.

Documentation available: https://github.com/TrustWallet/trust-ray/wiki/API

GitHub
trust-ray - :cloud: API for the Trust Wallet
GitHub
trust-ray - :cloud: API for the Trust Wallet

Current balance: 0.000000 ETH
Contract address: 0xd9f7b78d7940867e503dd0dabd1b4da2e7f339ec
QR Code
Network: Mainnet
To claim this bounty sign up at https://openbounty.status.im and make sure to update your Ethereum address in My Payment Details so that the bounty is correctly allocated.
To fund it, send ETH or ERC20/ERC223 tokens to the contract address.

@vikmeup Care to share some details about how you implemented it? :)

It is open source, you take a look, but in the short summary.
We build trust-ray for three main reason:

  • fetch transactions per specific address
  • fetch all the tokens for specific address
  • send push notifications for received and sent transfers or tokens for specific address

Trust-ray parses every block on the blockchain and look for events that’s generated by ERC20 contracts or ether and stored them in DB(MongoDB).

You are doing the lord’s work Viktor

Cheers,

Richard

On 12 Apr 2018, 15:48 -0400, Viktor Radchenko notifications@github.com, wrote:

It is open source, you take a look, but in the short summary.
We build trust-ray for three main reason:

• fetch transactions per specific address
• fetch all the tokens for specific address
• send push notifications for received and sent transfers or tokens for specific address

Trust-ray parses every block on the blockchain and look for events that’s generated by ERC20 contracts or ether and stored them in DB(MongoDB).
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

@vikmeup Nice! Will take a look at it.

Obsolete, replaced by TBA issue

Was this page helpful?
0 / 5 - 0 ratings