trustwallet / trust-wallet-ios

:iphone: Trust - Ethereum Wallet and Web3 DApp Browser for iOS
https://trustwallet.com
GNU General Public License v3.0
1.54k stars 719 forks source link

Add token information #800

Open vikmeup opened 6 years ago

vikmeup commented 6 years ago

Use Eureka to build a view

Sent with GitHawk

kolya182 commented 6 years ago

Method: GET Endpoint: https://public.trustwalletapp.com/:networkid/:address? Supported networkid: ethereum, ropsten, rinkeby, kovan Example: https://public.trustwalletapp.com/tokeninfo/ethereum/0xe386b139ed3715ca4b18fd52671bdcea1cdfe4b1

Response status 200:

{
    "status": true,
    "response": {
        "symbol": "ZST",
        "address": "0xe386b139ed3715ca4b18fd52671bdcea1cdfe4b1",
        "decimals": 8,
        "name": "Zeus Exchange",
        "ens_address": "",
        "website": "http://zeus.exchange",
        "logo": {
            "src": "",
            "width": "",
            "height": "",
            "ipfs_hash": ""
        },
        "support": {
            "email": "info@zeus.exchange",
            "url": ""
        },
        "social": {
            "blog": "",
            "chat": "",
            "facebook": "https://facebook.com/Zeus-Exchange-158864051329242",
            "forum": "",
            "github": "",
            "gitter": "",
            "instagram": "",
            "linkedin": "",
            "reddit": "",
            "slack": "",
            "telegram": "https://t.me/joinchat/B8kRS0IMUdyEVi9CxH7Djw",
            "twitter": "https://twitter.com/ExchangeZeus",
            "youtube": ""
        }
    }
}
vikmeup commented 6 years ago

@OlegGordiichuk created TokenViewController for that reason, disabled for released builds.

vikmeup commented 6 years ago

@kolya182 it think this will be /:coin/:contract?. We can make this changes little later.

/60 - should return ethereum information /60/0x12312 - should return 0x12312 contract details

OlegGordiichuk commented 6 years ago

@vikmeup should we consider https://github.com/TrustWallet/trust-wallet-ios/issues/860 as part of this issue ? So we would show not only token information but market aswell ?