Ethersocial APIs

Lee Woonhee edited this page Nov 8, 2018 · 8 revisions

이 위키는 이더소셜 API 규약에 대한 문서입니다.

Account APIs

Get Balance

API

https://api.ethersocial.net/account/balance/address/0xddbd2b932c763ba5b1b7ae3b362eac3e8d40121a?tag=latest&apikey=YourApiKeyToken

Result

{"status":"1","message":"OK","result":"100000000000000000"}

Transactions

Get Transactions

API

https://api.ethersocial.net/transactions?limit=50&address=0x669c63322fbf820f6e89891ee237a49874b200f1

Result

{  
   "docs":[  
      {  
         "operations":[  
            {  
               "_id":"5bd6c309354a554be0119151",
               "transactionId":"0x6ea213e44ee666e39b902002c9bbbde5b83d688ef669385a0a03fc40cba32a35-0",
               "contract":{  
                  "verified":true,
                  "enabled":true,
                  "_id":"5aa5901a1125720640038946",
                  "address":"0x4470bb87d77b963a013db939be332f927f2b992e",
                  "symbol":"ADX",
                  "decimals":4,
                  "totalSupply":"0",
                  "name":"AdEx"
               },
               "value":"50000"
               "to":"0x984842ae94ed2671884ec1ff31c99d40ae53ff27",
               "from":"0x669c63322fbf820f6e89891ee237a49874b200f1",
               "type":"token_transfer"
            }
         ],
         "contract":null,
         "_id":"0x6ea213e44ee666e39b902002c9bbbde5b83d688ef669385a0a03fc40cba32a35",
         "blockNumber":6604251,
         "timeStamp":"1540801368",
         "nonce":1,
         "from":"0x669c63322fbf820f6e89891ee237a49874b200f1",
         "to":"0x4470bb87d77b963a013db939be332f927f2b992e",
         "value":"0",
         "gas":"144000",
         "gasPrice":"21000000000",
         "gasUsed":"53462",
         "input":"0xa9059cbb000000000000000000000000984842ae94ed2671884ec1ff31c99d40ae53ff27000000000000000000000000000000000000000000000000000000000000c350",
         "error":"",
         "id":"0x6ea213e44ee666e39b902002c9bbbde5b83d688ef669385a0a03fc40cba32a35"
      },
      {  
         "operations":[
         ],
         "contract":null, 
         "_id":"0xa79f9c5ff628279782af96616275db55e84fa5e5279704fa167f07c10ffd3a12",
         "blockNumber":6604021,
         "timeStamp":"1540798045",
         "nonce":8,
         "from":"0x23e16ca138fc7aee8e0d8281bcbab680acf1cb47",
         "to":"0x669c63322fbf820f6e89891ee237a49874b200f1",
         "value":"100000000000000000",
         "gas":"60000",
         "gasPrice":"5000000000",
         "gasUsed":"21000",
         "input":"0x",
         "error":"",
         "id":"0xa79f9c5ff628279782af96616275db55e84fa5e5279704fa167f07c10ffd3a12"
      }
   ],
   "total":2,
   "limit":50,
   "page":1,
   "pages":1
}

Token

Get Token Balance

API

https://api.ethersocial.net/account/balance/address/0xddbd2b932c763ba5b1b7ae3b362eac3e8d40121a?contractaddress=0xb8c77482e45f1f44de1745f52c74426c631bdd52&apikey=YourApiKeyToken

Result

{"status":"1","message":"OK","result":"100000000000000000"}
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.