xxxxxxxxxx
{
"type": "https://stellar.org/horizon-errors/transaction_malformed",
"title": "Transaction Malformed",
"status": 400,
"detail": "Horizon could not decode the transaction envelope in this request. A transaction should be an XDR TransactionEnvelope struct encoded using base64. The envelope read from this request is echoed in the `extras.envelope_xdr` field of this response for your convenience.",
"extras": {
"envelope_xdr": "BBBBBPORy3CoX6ox2ilbeiVjBA5WlpCSZRcjZ7VE9Wf4QVk7AAAAZAAAQz0AAAACAAAAAAAAAAAAAAABAAAAAAAAAAEAAAAA85HLcKhfqjHaKVt6JWMEDlaWkJJlFyNntUT1Z/hBWTsAAAAAAAAAAAL68IAAAAAAAAAAARN17BEAAABAA9Ad7OKc7y60NT/JuobaHOfmuq8KbZqcV6G/es94u9yT84fi0aI7tJsFMOyy8cZ4meY3Nn908OU+KfRWV40UCw=="
}
}
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
.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
.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"
}
}