以太坊web3
阿新 • • 發佈:2018-12-17
https://blog.csdn.net/fangdengfu123/article/details/82621537
https://www.jianshu.com/p/a5962ebf5df1
https://documenter.getpostman.com/view/788039/RWgwRbCr
基本路徑 | http://47.244.99.2:8533 | |||||
HEADER | Content-Type | application/x-www-form-urlencoded | ||||
Authorization |
3e96be9cf0916938b66e6ebeea5bec54 | |||||
介面路徑 | 請求型別 | 引數 | 引數型別 | 引數示例 | 返回結果 | 返回示例 |
/ | GET | 無 | 無 | 無 | 返回系統版本號 | { "code": 0, "data": { "version": "1.0.0-beta.36" }, "msg": "客戶端版本" } |
/newAccount | POST | password | 字串 | 123456 | 返回新地址 | { "code": 0, "data": { "address": "0xabF0dEcaDC1131Dc7A9010eF32760cEc2afE41cF" }, "msg": "新地址" } |
/getEthBalance |
POST | address | 字串 | 0xabF0dEcaDC1131Dc7A9010eF32760cEc2afE41cF | 返回以太坊餘額 | { "code": 0, "data": { "balance": "0.0011444" }, "msg": "餘額查詢" } |
https://api.etherscan.io/api?module=account&action=balancemulti&address=0xddbd2b932c763ba5b1b7ae3b362eac3e8d40121a,0x63a9975ba31b0b9626b34300f7f627147df1f526,0x198ef1ec325a96cc354c7266a038be8b5c558f67&tag=latest&apikey=YourApiKeyToken | ||||||
使用此介面 定時 判斷使用者是否有新的交易產生 | ||||||
H4FM3UF7RH964DRFR9CVA4JR7XSYHM244T | ||||||
http://api.etherscan.io/api?module=account&action=txlist&address=0xde0b295669a9fd93d5f28d9ec85e40f4cb697bae&startblock=0&endblock=99999999&sort=asc&apikey=YourApiKeyToken | ||||||
http://47.244.99.2:8533/sendEthTransfer |