Open ghost opened 6 years ago
Please assign this issue to @ComBba :)
@kimmyeonghun 기본적인 토큰 API는 구현이 완료되었습니다. 추가로 필요한 API가 있다면 추가 구현하도록 하겠습니다. 바운티를 확정하여 주시면 아래 이슈중 익스플로러와 연계하여 추가 API를 제공하도록 하겠습니다. 바운티 보상은 @hackmod 님과 공동으로 처리해주시면 감사하겠습니다.
현재 구현된 토큰 API 들 입니다.
Getting information about token http://explorer.ethersocial.info/api_account/tokeninfo/0x0146b9dcd9fb2abc1b5b136c28d20d0037526961
{"jsonrpc":"esn","success":true,"result":{"name":"TopMining","decimals":"18","symbol":"TOPM","totalSupply":"100000000000000000000000000"}}
Get the balance of the specified token http://explorer.ethersocial.info/api_account/tokenbalance/0x3e2c6a622c29cf30c04c9ed8ed1e985da8c95662/0x0146b9dcd9fb2abc1b5b136c28d20d0037526961
{"jsonrpc":"esn","success":true,"result":{"balance":"71459313000000000000000000","name":"TopMining","decimals":"18","symbol":"TOPM"}}
Get the balance of all tokens http://explorer.ethersocial.info/api_account/tokenbalance/0x3e2c6a622c29cf30c04c9ed8ed1e985da8c95662
{"jsonrpc":"esn","success":true,"result":[{"contractaddress":"0xef3712f2a70f268e313be5bcc0fa773982de1c54","balance":"10000","name":"Yanadoo Token","decimals":null,"symbol":"MTC"},{"contractaddress":"0xcb3af8e5a712f6552c2345730a07357c09e19e2b","balance":"1000000000000000000000000","name":"Saddharma Puntarika ","decimals":"18","symbol":"SPA"},{"contractaddress":"0x0ab036ea8b91e96eb6a15aa7511d5a9a4c76f857","balance":"1000000000000000000000000","name":"ybb","decimals":"18","symbol":"YBB"},{"contractaddress":"0x133019291cac8283eeac81ff519c98293e473198","balance":"10000000000000000000000","name":"Melon Token","decimals":"18","symbol":"MTK"},{"contractaddress":"0x0146b9dcd9fb2abc1b5b136c28d20d0037526961","balance":"71459313000000000000000000","name":"TopMining","decimals":"18","symbol":"TOPM"},{"contractaddress":"0xb85b7ed4148ba8661dbfce55378267242ad670b6","balance":"1000000000000000000000000","name":"Taerasystem","decimals":"18","symbol":"TRS"},{"contractaddress":"0x18c50dcf79af07b5fc2a9762a9f58a73c7ef6c86","balance":"10000000000000000000000","name":" Sun Token","decimals":"18","symbol":"SUN"},{"contractaddress":"0x5a6f0dc8bc41e4eaa6a243cb9704fec660867331","balance":"10000","name":"MTC","decimals":null,"symbol":"MTC"},{"contractaddress":"0x83aadbfaf697367cb14fd91d9545c093332daab5","balance":"1000000000000000000000000","name":"Playboy Token","decimals":"18","symbol":"PBT"},{"contractaddress":"0x31f6397d22914761a35dd4d8e49618adbf1cce52","balance":"9999995000000000000000000","name":"ChainFlix Beta","decimals":"18","symbol":"CFXB"},{"contractaddress":"0x1fde3c47097ed997a7ef2f7e61a39468c334791f","balance":"10000000000000000000000","name":"NADANA","decimals":"18","symbol":"NDN"},{"contractaddress":"0x512b7d1fd759280f17c04679da8fd09f5752752f","balance":"19999000000000000000000000","name":"TopMining Test","decimals":"18","symbol":"TOPM-T"},{"contractaddress":"0x52361ffe2479e83113207831b684ad00bb01c414","balance":"10000000000000000000000","name":"HK TIRE","decimals":"18","symbol":"HKT"},{"contractaddress":"0x7f57cafbbc5f003b7767ad17391c0d815ae1676c","balance":"1000000000000000000000000","name":"Banna Coin","decimals":"18","symbol":"BANA"}]}
Get Token Events from Contract Address by Address http://explorer.ethersocial.info/api_account/tokenevents/0x3e2c6a622c29cf30c04c9ed8ed1e985da8c95662/0x0146b9dcd9fb2abc1b5b136c28d20d0037526961/5/1
{"jsonrpc":"esn","success":true,"result":{"balance":"71459313000000000000000000","events":[{"address":"0x0146b9dcd9fb2abc1b5b136c28d20d0037526961","blockHash":"0xc32ae5da5d6cd5b7b57105d31da4e70f1c6b1faa24883abf331a93b5d5e5d87e","blockNumber":1461034,"logIndex":0,"removed":false,"transactionHash":"0x618e16cc01812d3b0efbc0f3a2899e517a529d67b0e2f28f8e467f3db014e541","transactionIndex":2,"transactionLogIndex":"0x0","type":"mined","event":"Transfer","args":{"_from":"0x3e2c6a622c29cf30c04c9ed8ed1e985da8c95662","_to":"0x0e620cf6e2214926f869f94fb0e8b9ea891eeefd","_value":"777000000000000000000"},"_id":"1461034_2_0","timestamp":1536035217},{"address":"0x0146b9dcd9fb2abc1b5b136c28d20d0037526961","blockHash":"0xcfc35642cc1d3d78f0c317b1386e002e93c3f1636510a19816aa26cbe2a6d3ef","blockNumber":1461030,"logIndex":0,"removed":false,"transactionHash":"0x655fd4dc8ee0f906c45b229f1d650267cf8e7b3181aba41c06edd0c09774c89d","transactionIndex":2,"transactionLogIndex":"0x0","type":"mined","event":"Transfer","args":{"_from":"0x3e2c6a622c29cf30c04c9ed8ed1e985da8c95662","_to":"0xeb5fcabd12fe926317851ff314aa5e314531ef9d","_value":"1230000000000000000000000"},"_id":"1461030_2_0","timestamp":1536035180},{"address":"0x0146b9dcd9fb2abc1b5b136c28d20d0037526961","blockHash":"0x508e923944c489543763aae98526c34c207f531e6b8f8a149f2fb2968e6e7fff","blockNumber":1460642,"logIndex":0,"removed":false,"transactionHash":"0x01f7fdd0e6af9482cc48801ec2fa7fbb9539a75610f166cc8b134040e2b8bf54","transactionIndex":1,"transactionLogIndex":"0x0","type":"mined","event":"Transfer","args":{"_from":"0x3e2c6a622c29cf30c04c9ed8ed1e985da8c95662","_to":"0x6768d99a0cdcd7bb7c7d0aeee466d6bdc7208bbc","_value":"1000000000000000000000000"},"_id":"1460642_1_0","timestamp":1536030364},{"address":"0x0146b9dcd9fb2abc1b5b136c28d20d0037526961","blockHash":"0xa6ef091c4155ddbaebef57645cffd58983b20a6e7b8628b6b6644b2c72c2fa5a","blockNumber":1407060,"logIndex":0,"removed":false,"transactionHash":"0x95b2600e589232eb8b10c1ac91de386d3b574f73710150145da480103281e5c1","transactionIndex":0,"transactionLogIndex":"0x0","type":"mined","event":"Transfer","args":{"_from":"0x3e2c6a622c29cf30c04c9ed8ed1e985da8c95662","_to":"0xf94fda503c3f792491fa77b3702fd465f028810d","_value":"100000000000000000000000"},"_id":"1407060_0_0","timestamp":1535342433},{"address":"0x0146b9dcd9fb2abc1b5b136c28d20d0037526961","blockHash":"0x09e96d930d11fc7be6a3c4f2728e037037db02172d69afe873a2161c04ba23f1","blockNumber":1319521,"logIndex":0,"removed":false,"transactionHash":"0xa9fd51f74a4250bf41384ba3e310407fa994078062ce4d559e5aeaec8cdc9f13","transactionIndex":0,"transactionLogIndex":"0x0","type":"mined","event":"Transfer","args":{"_from":"0x3e2c6a622c29cf30c04c9ed8ed1e985da8c95662","_to":"0xeacac2c75920b8f6e65f37ad81deb113d526d031","_value":"10000000000000000000"},"_id":"1319521_0_0","timestamp":1534211233}],"name":"TopMining","decimals":"18","symbol":"TOPM","totalSupply":"100000000000000000000000000"}}
@ComBba https://github.com/EthersocialNetwork/etherchain-light 1년간 1만ESN 바운티 확정하겠습니다. 사용자 및 개발자의 접근성을 위한 개발문서 진행을 부탁드립니다.
ESN은 게임 및 각종 커뮤니티에 블록체인을 쉽게 사용할 수 있게하는 것이 목표입니다.
이를 쉽게 적용하기 위해 다음 프로그램 개발을 제안합니다.
One of our goals is to make various communities use blockchain readily.
https://blog.ethersocial.org/open-esn-development-bounty-program-with-erc20-smart-contract/