everexio / ethplorer Goto Github PK
View Code? Open in Web Editor NEWThis project forked from amilabs/ethplorer
Viewer of Ethereum tokens and transactions based on ERC20 standard.
Home Page: https://ethplorer.io
License: Apache License 2.0
This project forked from amilabs/ethplorer
Viewer of Ethereum tokens and transactions based on ERC20 standard.
Home Page: https://ethplorer.io
License: Apache License 2.0
Hi,
I'm using your API for get information of some transactions and I have an issue with the endpoint /getTxInfo
The timestamp always is null, I've tried with different transactions but no works.
An example:
Thanks in advance!
Now there's balance of ETH only. Would be good to have history for ETHER transactions with CSV export too.
Show all token holders with balances
can you please give suggestion transfer ether one account to other account using wallet API https://api.ethplorer.io/
Really disappointed to see that this is completely useless as the way to create the mongo database is not provided ...
It is advertising as public and open, but without DB it is not really the case....
{
"operations":[
{
"timestamp":1507274168,
"transactionHash":"0x0c61170947e4944e37b69c1017fda093ecfc6d61685238dded0917b46df990b2",
**"tokenInfo":false,**
"type":"transfer",
"value":"11989760000000000000000",
"from":"0x04ee715d5f89a5b91fac1c20e93d0670f72b21f4",
"to":"0xc0309237bf8b49511d8a51e74c7bcfe6c8ad2bc0"
},
{
"timestamp":1504549461,
"transactionHash":"0x22a413fe649ecb95d475c8ae2cef702dd623843df06df0fb569ed603dbbce162",
"tokenInfo":{
"address":"0x108c05cac356d93b351375434101cfd3e14f7e44",
"name":"Token of Szczepan Bentyn",
"decimals":"4",
"symbol":"BEN",
"totalSupply":"210000000000",
"owner":"0x",
"txsCount":107,
"transfersCount":498,
"lastUpdated":1506603712,
"totalIn":425831683466,
"totalOut":425831683466,
"issuancesCount":0,
"holdersCount":206,
"price":false
},
"type":"transfer",
"value":"27195072",
"from":"0xc0309237bf8b49511d8a51e74c7bcfe6c8ad2bc0",
"to":"0xcf83184b69fc79d46de78a9a2221f8b11dd70698"
},
{
"timestamp":1504549371,
"transactionHash":"0xaac0fe9d9c96455d83a99423aede50c081038285ed3a97a77168f5524b9be000",
"tokenInfo":{
"address":"0x75d34b30a9a2405b7e2bbff94badcc0ce6c934ad",
"name":"Maciej Wapi\u0144ski \u201cWapniak\u201d Token",
"decimals":"18",
"symbol":"WAP",
"totalSupply":"21000000000000000000000000",
"owner":"0x954878c70dbbd09dba501efca4c6b6e1f70067a3",
"txsCount":1,
"transfersCount":126,
"lastUpdated":1506606992,
"issuancesCount":0,
"holdersCount":68,
"price":false
},
"type":"transfer",
"value":"1100000000000000000000",
"from":"0xc0309237bf8b49511d8a51e74c7bcfe6c8ad2bc0",
"to":"0xcf83184b69fc79d46de78a9a2221f8b11dd70698"
},
{
"timestamp":1504388003,
"transactionHash":"0x02da69fe01a2bd9a4062357c3afb6e7b7e2979adf08b91b575a388f9615f30df",
"tokenInfo":{
"address":"0x108c05cac356d93b351375434101cfd3e14f7e44",
"name":"Token of Szczepan Bentyn",
"decimals":"4",
"symbol":"BEN",
"totalSupply":"210000000000",
"owner":"0x",
"txsCount":107,
"transfersCount":498,
"lastUpdated":1506603712,
"totalIn":425831683466,
"totalOut":425831683466,
"issuancesCount":0,
"holdersCount":206,
"price":false
},
"type":"transfer",
"value":"27195072",
"from":"0x04ee715d5f89a5b91fac1c20e93d0670f72b21f4",
"to":"0xc0309237bf8b49511d8a51e74c7bcfe6c8ad2bc0"
},
{
"timestamp":1504387901,
"transactionHash":"0x122a69190e3ec495c16495808697b549d11ba5c1ddfd9bc2c5868684cacf0ca9",
"tokenInfo":{
"address":"0x75d34b30a9a2405b7e2bbff94badcc0ce6c934ad",
"name":"Maciej Wapi\u0144ski \u201cWapniak\u201d Token",
"decimals":"18",
"symbol":"WAP",
"totalSupply":"21000000000000000000000000",
"owner":"0x954878c70dbbd09dba501efca4c6b6e1f70067a3",
"txsCount":1,
"transfersCount":126,
"lastUpdated":1506606992,
"issuancesCount":0,
"holdersCount":68,
"price":false
},
"type":"transfer",
"value":"900000000000000000000",
"from":"0x04ee715d5f89a5b91fac1c20e93d0670f72b21f4",
"to":"0xc0309237bf8b49511d8a51e74c7bcfe6c8ad2bc0"
},
{
"timestamp":1504264737,
"transactionHash":"0x8573f7c7adf5109dc2102fb7f5a00dc57513a8f91f2eb61be42bf95ad197fc6c",
"tokenInfo":{
"address":"0x75d34b30a9a2405b7e2bbff94badcc0ce6c934ad",
"name":"Maciej Wapi\u0144ski \u201cWapniak\u201d Token",
"decimals":"18",
"symbol":"WAP",
"totalSupply":"21000000000000000000000000",
"owner":"0x954878c70dbbd09dba501efca4c6b6e1f70067a3",
"txsCount":1,
"transfersCount":126,
"lastUpdated":1506606992,
"issuancesCount":0,
"holdersCount":68,
"price":false
},
"type":"transfer",
"value":"200000000000000000000",
"from":"0x04ee715d5f89a5b91fac1c20e93d0670f72b21f4",
"to":"0xc0309237bf8b49511d8a51e74c7bcfe6c8ad2bc0"
}
]
}
This token on Etherscan and on Ethplorer .
As you can see it cant show any information about transactions. Maybe its depend about characters lenght? This Token is special, because of . his ticker "BKCoin" its 6 characters.
I tried installing the software to see if I could get ethplorer running but I'm running into a problem. I originally tried with php7 but the MongoClient class kept erroring because of php7 and moving to MongoDB/Clients.
I'm trying to use as much of the defaults as possible but was not able to get past the dbName for the mongodb Construct. Error below.
index.php
Changed $esCfg['mongo'] = TRUE ; // Changed from FALSE
Setup:
PHP 5.5.9
MongoDB 2.4
Mongo-php 1.4.5
Mongodb 1.2.9
Unbuntu 14.04
The Error:
PHP Fatal error: Uncaught exception 'MongoException' with message 'MongoDB::__construct(): invalid name ' in /var/www/html/service/lib/ethplorer.php:94\nStack trace:\n#0 /var/www/html/service/lib/ethplorer.php(94): MongoClient->__get('')\n#1 /var/www/html/service/lib/ethplorer.php(118): Ethplorer->__construct(Array)\n#2 /var/www/html/index.php(23): Ethplorer::db(Array)\n#3 {main}\n thrown in /var/www/html/service/lib/ethplorer.php on line 94
Line from ethplorer.php
$oMongo = new MongoClient($this->aSettings['mongo']['server']);
$oDB = $oMongo->{$this->aSettings['mongo']['dbName']};
Any ideas what I might be missing?
Thank you..
Hi, I am noob and I need Your help pls. Past 4 days trying to figure out how to do it and can't.
I bought ETH - wanted to send it for a payment at ICO of different platform, clicked ETC instead of ETH.
So i need someone to walk me through step by step how to reverse thepath of ETH leaving me. Its on ETH adress now, but I dont know coding well, so I havent been able to claim it, recall it, nor use the directory when it lies... I do have the keys to it of course.
Initial transfer is here:
https://www.etherchain.org/account/008edcaa9df8bfb0f080cbcf233d5fec9a389651
This is my wallet I paid from: https://etherscan.io/address/0x008eDCaa9df8bfb0f080cBCf233D5fec9a389651
This I want to pull back:
https://etherscan.io/address/0x18c6f258c2d781359b06ecdc49ef3f9790a62ef9
Also would like to get out of it without too much damage, as You can notice there are a few stupid moves from the same wallet to same wallet costing for gas... (bad coding)...
Please help
Please take a look at this call: https://api.ethplorer.io/getAddressInfo/{address}?apiKey=freekey
Many of the token balance are not being returned correctly. For example, take a look at "name":CPChain, the balance returned is: "5.0413500456633e+22". When I decimal.Parse it, it translate to this number: 50413500456633000000000. No matter how much I hope this is true, the reality is that address is only holding 50,413 CPC token.
If this is not a bug, could you please explain to me how I can parse the returned balance to the correct value? I am using C# as my language.
Thank you.
Hello,
For each token when asking getAddressInfo url, I want the date of the transfert token like the field 'timestamp' in getAddressHistory url.
Is that possible?
Hi
The success status of this query is wrong.
It says true, but it should say false
https://etherscan.io/tx/0x28712f707b46def60efaa6f0f86575de76901ac276374891881fc063dec8db4a
Thanks
I am new to mongodb and am having trouble setting up my config file. Right now what I have is:
array( "server" => "mongodb://127.0.0.1:27017", "dbName" => "everex-db", ), "ethereum" => "http://127.0.0.1:8545" ); This isn't working. Any idea what I can do to make calls to the api from my site and have it rendered correctly?Now there is chart for 30 days only. It would be good to have chart for token history for lifetime.
$ curl -sSL "https://api.ethplorer.io/getAddressHistory/0x5c3216a6D9fBd7Cf2AFBe9157FF7e7D1DB3d7bED/?token=0xe3b3651b2987f76a45753b5160504a2ab606716b&type=transfer&apiKey=freekey"
{
"operations": [
{
"timestamp": 1519059931,
"transactionHash": "0x126f82dcb2f4a283b4ebe20887deb8fdae8b136bf6c732ab444fd8910b442e3b",
"tokenInfo": false,
"type": "transfer",
"value": "300",
"from": "0xf5a3fa2065e82a7e53c4782f9f5961259d5629b8",
"to": "0x5c3216a6d9fbd7cf2afbe9157ff7e7d1db3d7bed"
},
{
"timestamp": 1519058397,
"transactionHash": "0xcd89d478f596650f012905ea31e96dedf82e61ea67ce6e41c4a7127e5df53da8",
"tokenInfo": false,
"type": "transfer",
"value": "300",
"from": "0x5c3216a6d9fbd7cf2afbe9157ff7e7d1db3d7bed",
"to": "0xf5a3fa2065e82a7e53c4782f9f5961259d5629b8"
}
]
}
Any idea why this might be? The exact same query was returning token info yesterday evening.
Hi, thanks for your work. Is it possible to get a list of user transactions and the history of transfers of his own tokens in one request?
In python 2.6
Tried:
parameters = {'token': 'token_contract_address'}
re = requests.get('https://api.ethplorer.io/getAddressInfo/address?apiKey=freekey', params=parameters)
and
re = requests.get('https://api.ethplorer.io/getAddressInfo/address?apiKey=freekey&token=token_contract_address)
The second is basically the same. But tried in case of.
Both return:
{u'error': {u'code': 104, u'message': u'Invalid address format'}}
The "Export csv" link returns 404 in response. Here're the steps to reproduce:
Go to https://ethplorer.io/address/0xd26114cd6ee289accf82350c8d8487fedb8a0c07
Click "export csv"
Do you plan to have export feature to CVS and or other formats?
Hi,
It says that ETH is not token when calling this:
https://api.ethplorer.io/getTokenInfo/0x0000000000000000000000000000000000000000?apiKey=freekey&price=ETH
but ETH is there when I am asking for topTen tokens:
https://api.ethplorer.io/getTop?apiKey=freekey
What is the best way to get info about ETH? Thank you
I have clone code and run in to my local machine setup mongodb is fine , but how to run ethereum in local machine, i have ubuntu 16.04.
I saw Invalid action and also it has some validations issue ,
Support Ethplorer.config is null so it will break the code not show the issue
Load times are awful!
hi, i find this is very useful api, but i can't find a way to check Ropstan Address ? is there a way to do this?
I use the getAddressHistory or the getAddressTransactions, but it can't find the eth's history of one address to another, what should i do?
thanks for first
Myetherwallet had tokens stolen from it. Ethplorer shows these tokens were in fact transferred from my wallet address but it also says I still have the tokens. If i show custom tokens in myetherwallet it too shows the tokens in my wallet. But I cant send them to a different ERC20 wallet. Here is a link
https://ethplorer.io/address/0x9a91326687e51c7fb95859c2d78248e4d4562d13#pageSize=100
How can I take my Eth back. I buy Eth from bitit. Bitit use smart contracts send to my exchange wallet. How can I take back? Thanks...
https://github.com/EverexIO/Ethplorer/wiki/Ethplorer-API#get-address-transactions
Trying to see all transactions but limit is 50, any workaround to set start and end or display all tx?
Hello,
i try to figure out how to convert the strange numbers i get from the api for the token balances. i know in the docs is written token balance (as is, not reduced to a floating point value) but dont know how to get real values here now. hope somebody can help
curl -v https://api.ethplorer.io/getTokenInfo/0xaec98a708810414878c3bcdf46aad31ded4a4557?apiKey=freekey
returns
...
HTTP/1.1 200 OK
< Server: nginx
< Date: Thu, 22 Feb 2018 00:11:54 GMT
< Content-Type: text/html; charset=UTF-8
< Transfer-Encoding: chunked
< Connection: keep-alive
< X-Powered-By: PHP/7.0.26
< Access-Control-Allow-Origin: *
Since the result payload preserve the JSON structure, it would be good to have it as well in the header.
Show records of chainy https://chainy.info
It would be nice if getTxInfo
would return more information about the fees.
gasPrice
and/or txCost
would be a nice addition to this result:
How can I see token transfers for an address from 0x0000000000000000000000000000000000000000 ?
All incoming transfers show except for this one.
Ethplorer does not adapt to the smart contract updates.
For example, using the getAddressInfo
API. Fetching the data of an address that has Augur (REP) token, will have this response:
See the "contract is frozen" line. symbol
, name
are missing, etc.
What is expected is the API to automatically use the new smart contract. Can we do something about it?
Request for a feature in which one could pull account balance history (including tokens) by day. This would be super valuable for anyone looking to monitor financial performance on the blockchain
How do you page through getAddressHistory to get the next 10 records?
Tried page=N param, no luck.
I got wrong balance of EOS when we use address :0x48AB38DA9b6C78aB7C3529e12fb98FcF54586a60, here is the response
here comes url:
https://api.ethplorer.io/getAddressInfo/0x48AB38DA9b6C78aB7C3529e12fb98FcF54586a60?apiKey=hwkr9922SruFpI74
Hi,
Example: https://api.ethplorer.io/getAddressTransactions/0x52903256dd18d85c2dc4a6c999907c9793ea61e3?apiKey=freekey
I can't know how to get token info or value in USD of each transaction, just have ETH value.
Please help me!
Thank you!
If one has only one token in their eth20 address, the json has one tokenInfo
entry.
However when the address holds multiple tokens it now has an array tokens
which holds multiple objects each having only a tokenInfo
key. This is not consistent.
The normal and expected behavior should be:
{
// ... other info
tokens: [] // empty array because no tokens
}
{
// ... other info
tokens: [ { information about the token } ] // one element in the array beeing a token object
}
{
// ... other info
tokens: [
{ information about the token } ,
{ information about the token } ,
{ information about the token }
]
}
where { information about the token }
is what is currently under tokenInfo
.
This structure would benefit from more language features as well as beeing more consistent.
Would be cool, to have this in the next api version!
PS: Keep up the good work!
Show all transaction with some pagination instead of top 50.
As far as I have seen the source code, there is no importing blockchain data into MongoDB feature. How can I import the data? To use this explorer, imported mongo data is necessary, isn't it?
If the importing tool does not exists yet, I want to know how to save the data from ethereum node.
I guess the following issue is same.
Ethplorer is a only open source explorer of Ethereum I could find. I want to use it.
A customized widget that token owner could put on his token site.
Feature request:
It would be nice to have a batch request for this endpoint: /getAddressInfo/{address}
Suggested endpoint option: /getAddressInfo/{addresses[]}
deleted
Use case:
I'm trying to get all token transactions from one kind of token (say the BAT, contract 0x0D8775F648430679A709E98d2b0Cb6250d2887EF ), but have currently no option to loop through the transactions and get an overview of:
a) which accounts participated in the crowd sale/ICO (to make the chart of number of owners at the start of the coin)
b) to get an overview which accounts "dumped" their coins right after the ICO
c) to get a chart of the current owners of the coin
All those variations could make for nice plug-ins.
What I can imagine:
-getTokenHistoryGrouped: add 2 fields, "fromBlock" and "toBlock" (or fromTs and toTs)
-get those same parameters to work with getTokenHistory
-move some information from getTokenHistory to a header block. E.g. lastUpdated, holderscount, description . In that way the resulting JSON will be much smaller.
Unfortunately I have a hard time getting the code working with my local database, so hope you can put it on your todo list.
Hello,
after cloning the repo and changing php config file i get above error. I see this is configured as DirectoryIndex in htaccess also there is no file called page568524.html in source code nor other files mentioned in htaccess
RewriteRule ^last$ page627123.html
RewriteRule ^top$ page627210.html
RewriteRule ^about$ page627364.html
RewriteRule ^privacy$ page627373.html
Please direct me if its something wrong i am doing from my end
Regards,
Srivishnu.K
Add more decimal fraction to ETH balance
Hi,
Do you have any data on testnet (ropsten, rikeby or other)?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.