Hot answers tagged

13

It can contain up to 64 bytes. When it comes to data structures in Stellar you can always check XDR definition files in stellar-core repository. For example DataValue definition looks like this: typedef opaque DataValue<64>; You can add as many data entries to the account as you want but the account needs to hold a minimum balance required by the ...


9

I imagine that in the context of ML you're looking at analyzing historical data. Easiest for that is to ingest the time range you're looking for using Horizon and play with effects. You could also be querying Horizon's database directly and bypass the APIs but it may make your code more tightly coupled with Horizon. For Horizon to have the right data you ...


6

First of all, you rather need the core db instead of horizon for your query. There is no publicly available core DB and I doubt that ever will be, due to unpredictable loading and security implications. You have to set up your own Stellar Core node. It doesn't need to be a validator node. That way you'll have access to the relevant and 100% genuine network ...


4

I've been pushing the limits of data fields storing code and images, definitely a special viewer is required and in the case of code a virtual machine to run them. Take a look here, this is code stored on a Stellar account in the data field: http://myplaynet.herokuapp.com/stellar/apps


4

Each DataEntry increases the required minimum balance by the size of the base reserve (currently 0.5 XLM). The minimum balance for a basic account is 2 × base reserve. Each additional entry costs the base reserve. Entries include: Trustlines Offers Signers Data entries For example, an account with 1 trustline and 2 offers would have a minimum balance of (...


3

EDIT: They released the docs in v10.1.0 in metrics.md. Unfortunately, there's not much about metrics anywhere in the official docs or repositories besides the GET metrics/ endpoint in the Horizon API. I found an open issue in the repository regarding undocumented metrics values, with a proposed documentation in an open PR but it has not been merged yet. ...


2

Stellar is not suited for file storage and serving. Storing arbitrary binary data is possible, but it's slow and expensive. Use something like IPFS or cloud platform for this purpose.


2

The rules for applying transactions are deterministic, so any validator that fails a transaction that should have succeeded is ill-behaved. SCP survives ill-behaved nodes so long as there is a well-behaved quorum U in which nodes enjoy quorum intersection after removing all nodes not in U from everyone's quorum slices.


2

Yes you can use a CallBuilder to retrieve the account object: const server = new StellarSdk.Server('https://horizon.stellar.org') const callBuilder = server.accounts.accountId(${myPublicKey}) const account = callBuilder.call() console.log(account) The data entries values are in base64.


1

As Orbit Lens already said, Stellar is not suited for this purpose. However your best options for storing data are: ManageData Operation: 64 byte key + 64 byte value, but will require a 0.5 XLM reserve per entry. To eliminate the reserve requirement you could delete the entries right away but since Stellar is a state machine that (other than e.g. bitcoin) ...


1

Looks like Steller Expert offers some of this information.


Only top voted, non community-wiki answers of a minimum length are eligible