📌  相关文章
📜  恒星账户 - 任何代码示例

📅  最后修改于: 2022-03-11 14:58:16.626000             🧑  作者: Mango

代码示例10
var StellarSdk = require("stellar-sdk");
var server = new StellarSdk.Server("https://horizon.stellar.org");

var callback = function (resp) {
  console.log(resp);
};

var es = server
  .offers()
  .forAccount("GD3CJYUTZAY6JQF4CEI6Z7VW5O6VNGKZTBYUECTOJPEDTB7I2HZSPI2K")
  .cursor("now")
  .stream({ onmessage: callback });