Author Topic: 如何用php调用bitshares的curl接口  (Read 2495 times)

0 Members and 1 Guest are viewing this topic.

Offline abit

  • Committee member
  • Hero Member
  • *
  • Posts: 4664
    • View Profile
    • Abit's Hive Blog
  • BitShares: abit
  • GitHub: abitmore
不自己跑钱包的话 curl 接口只能查询。 比如:

Code: [Select]
curl -d '{"id":1,"method":"call","params":["database","get_ticker",["CNY","BTS"]]}' https://eu.openledger.info/ws

js 代码因为包含签名功能,是可以做任何事情的。

//修正一下上面的代码,因为之前的公共api服务器地址不能用了,api服务器地址需要你自己找。
比如 用 这个脚本跑
https://github.com/litepresence/extinction-event/blob/master/bitshares-node-latency.py
得到这个清单:
https://pastebin.com/CvmxQBLb
« Last Edit: March 15, 2018, 10:31:34 am by abit »
BitShares committee member: abit
BitShares witness: in.abit

Offline daicong210

我也想知道,也不知道js的代码是不是不需要建设本地节点而直接就可以用

Offline gh123459876

  • Newbie
  • *
  • Posts: 1
    • View Profile
各位,请问如何用php调用bitshares的curl接口