xxxxxxxxxx
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 });
xxxxxxxxxx
var StellarSdk = require("stellar-sdk");
var server = new StellarSdk.Server("https://horizon.stellar.org");
var callback = function (resp) {
console.log(resp);
};
var es = server
.transactions()
.forAccount("GAYOLLLUIZE4DZMBB2ZBKGBUBZLIOYU6XFLW37GBP2VZD3ABNXCW4BVA")
.cursor("now")
.stream({ onmessage: callback });
xxxxxxxxxx
var StellarSdk = require("stellar-sdk");
var server = new StellarSdk.Server("https://horizon.stellar.org");
var callback = function (resp) {
console.log(resp);
};
var es = server
.operations()
.forAccount("GAYOLLLUIZE4DZMBB2ZBKGBUBZLIOYU6XFLW37GBP2VZD3ABNXCW4BVA")
.cursor("now")
.stream({ onmessage: callback });
xxxxxxxxxx
var StellarSdk = require("stellar-sdk");
var server = new StellarSdk.Server("https://horizon.stellar.org");
var callback = function (resp) {
console.log(resp);
};
var es = server
.payments()
.forAccount("GCNL55IJTH2HX26HLNIGYD2JIQLTBAQL3SVPNZA6PXK7NAVHU423WOTE")
.cursor("now")
.stream({ onmessage: callback });
xxxxxxxxxx
var StellarSdk = require("stellar-sdk");
var server = new StellarSdk.Server("https://horizon.stellar.org");
var callback = function (resp) {
console.log(resp);
};
var es = server
.effects()
.forAccount("GCNL55IJTH2HX26HLNIGYD2JIQLTBAQL3SVPNZA6PXK7NAVHU423WOTE")
.cursor("now")
.stream({ onmessage: callback });
xxxxxxxxxx
var StellarSdk = require("stellar-sdk");
var server = new StellarSdk.Server("https://horizon.stellar.org");
var callback = function (resp) {
console.log(resp);
};
var es = server
.trades()
.forAccount("GD3CJYUTZAY6JQF4CEI6Z7VW5O6VNGKZTBYUECTOJPEDTB7I2HZSPI2K")
.cursor("now")
.stream({ onmessage: callback });
xxxxxxxxxx
var StellarSdk = require("stellar-sdk");
var server = new StellarSdk.Server("https://horizon.stellar.org");
var callback = function (resp) {
console.log(resp);
};
var es = server
.assets()
.forCode("CNY")
.cursor("now")
.stream({ onmessage: callback });
xxxxxxxxxx
{
"type": "https://stellar.org/horizon-errors/bad_request",
"title": "Bad Request",
"status": 400,
"detail": "The request you sent was invalid in some way",
"extras": {
"invalid_field": "limit",
"reason": "unparseable value"
}
}