BitShares Forum

Main => 中文 (Chinese) => Topic started by: gh123459876 on January 24, 2018, 10:05:23 am

Title: 如何用php调用bitshares的curl接口
Post by: gh123459876 on January 24, 2018, 10:05:23 am
各位,请问如何用php调用bitshares的curl接口
Title: Re: 如何用php调用bitshares的curl接口
Post by: daicong210 on March 13, 2018, 03:31:08 am
我也想知道,也不知道js的代码是不是不需要建设本地节点而直接就可以用
Title: Re: 如何用php调用bitshares的curl接口
Post by: abit on March 15, 2018, 08:26:48 am
不自己跑钱包的话 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