4
votes
Accepted
How to get a transaction records within a day
This working, untested Java code will print all transaction hashes from the preceding 24 hours:
long ONE_DAY_IN_SECONDS = 60 * 60 * 24;
DateTimeFormatter dateParser = DateTimeFormatter
....
4
votes
Accepted
tx_too_early / Timebounds use
Not as part of the Stellar protocol -- time bounds just specify when the transaction is considered valid. It doesn't have anything to do with how you actually submit them. A timebounds with time of ...
4
votes
Accepted
How is the weekly inflation calculated?
Inflation occurs when somebody (anybody) transacts the Inflation Operation and it has been at least 1 week since the last successful Inflation Operation. The calculations are performed at that time.
...
4
votes
Could not get test funds on stellar laboratory
Friendbot has some outages from time to time. Looks like it ran out of money this time. It usually does not take long for someone at SDF to fix it. You could follow keybase chat to stay up to date ...
3
votes
Accepted
what is the max number of operations per 1 transaction?
Transactions contain an arbitrary list of operations inside them. Typically there is just one operation, but it’s possible to have multiple (up to 100).
This is the documentation I believe you're ...
3
votes
For 'txBadSeq', when is tx_fee charged?
When you use a Horizon server to submit a transaction, it preforms some basic checks of the transaction integrity before sending it over to Stellar core. For example, it checks if all mandatory fields ...
3
votes
Accepted
Inflation pool ledger protocol
If the start of the hash displayed by the ledger is the same of the one displayed on laboratory, then is just a visualization bug
You can check here
Just to be safe, after you sign a transaction, ...
3
votes
Accepted
Does Stellar Laboratory query the DB, when it tries to get the Sequence Number?
Stellar Laboratory interacts with Horizon. It sends a request to /accounts/{account} endpoint to retrieve account details (sequence number in this case).
Horizon exposes an API layer for interaction ...
3
votes
Maximum Total Supply
Maximum asset amount an account can hold is determined by the particular trustline settings and may be up to 922,337,203,685. Total asset supply is unlimited.
2
votes
2
votes
Accepted
How can I direct stellar laboratory to my own instance of horizon?
Figured out the solution, just write the password in the next line :)
In /src/constants/network.js
const NETWORK = {
available: {
test: {
url: 'your url',
networkObj: new Network('...
2
votes
How to get a transaction records within a day
If you want just today's tx, just curl the Horizon "transaction" endpoint is ok. Example with testnet: https://horizon-testnet.stellar.org/transactions?order=desc
Crawl the "next" page recursively ...
2
votes
Accepted
Can't change Low Threshold to 0 in set options
It's possible, but you'll need one more Stellar account for this. Account QCHU (original account) will be unable to pay tx fees until you change the low threshold back to 0.
Create one more Stellar ...
2
votes
tx_too_early / Timebounds use
I'm working on timed payments with Stellar. You can have a look at the testnet-version already: https://test.artspirit.com
2
votes
Is Stellar Laboratory broken? only shows my XLM balance, not my USD balance (logging in with ledger nano)
This isn't stellar lab. It is "account viewer" which ONLY works with XLM assets.
you can use Stellar Laboratory to construct a payment or StellarX.
2
votes
Accepted
Mutiple opearations in single transaction
You can put multiple operations for different accounts (identified by the 'source' parameter in each operation) into the same transaction. If one operation fails then all operations will fail. Instead ...
2
votes
Extracting the memo from the transaction record
The memo value returned by Horizon is base64 encoded. You can decode the value with base64_decode.
1
vote
Can I change the Path of a Stellar history archive?
You can put it wherever you want. In fact /tmp is the worst place to use since that is a temporary folder and everything in it may and will be wiped on every reboot on most systems. I'd put it to /etc/...
1
vote
Accepted
How to send Lumens to an uninitialised stellar address pragmatically
The very first payment to an uninitialized account has to be performed with the createAccount operation.
1
vote
Getting error "XDR Write Error: undefined is not a Hyper" when trying to create XDR for custom operation
You should debug the XDR serialisation stage. Something that should be a 64-bit integer is null. The one hint you get is that the field type is Hyper. This refers to 64-bit signed or unsigned integers ...
1
vote
Multi-sign transaction is not working
You are getting an error because of a bad sequence number. I know this because I decoded response.getResultXdr(). Here are some things you should know:
When you call sourceAccount = server.accounts()....
1
vote
Time-based wallet in Laboratory
There's no built-in support for crowd funding targets. You'll have to build it yourself from the various building blocks available -- combinations of onchain transactions, and offchain logic that ...
1
vote
How Do I Get Token Rate For Accepting Payment?
You're looking at the problem from the wrong end.
The way Stellar solves this is by using cross-asset payments.
You can send funds to someone as one asset, and pay it using another, automatically.
...
1
vote
How to expose a Horizon URL
Interaction with Stellar (-based) blockchain should be done via Horizon.
You need to deploy horizon server and set up it to your stellar-core node.
Build it from repo https://github.com/stellar/...
1
vote
Accepted
Streaming API not working?
Stream is closed with 200 OK status after sending a specific number of events (as far as I remember: 10 events). Curl does not implement Server-Sent Events specification correctly. According to SSE ...
1
vote
Stellar port verification still not sure why it’s not verified?
First and foremost check out this. Good explanation of how assets are verified.
Also, I have just setup my own coin to play around with this verification process.
The steps I took:
Add Stellar.TOML ...
1
vote
How do I retrieve the source account, memo, and amount using python?
I'll admit, I am not the most familiar with the Python Stellar Base, however I have heard great things about it!
Gave it a quick look and saw that it does have methods for parsing XDR. Take the Asset ...
1
vote
Trades stream setup
The following code works with JS StellarSDK 0.8.0:
this.server.trades().cursor('now').stream({
onmessage: function (message) {
console.log(message)
}
})
It does not throw errors (as ...
1
vote
How might an estimate of the Stellar network's energy consumption be measured and monitored?
i think your best bet is to figure out how other networks are measuring their emissions and mimicking their model / implementation.
1
vote
.toml not reading
The purpose of setting the home domain on the account is to know where to fetch the stellar.toml.
The /assets endpoint should be updated within a few minutes on a Horizon instance that is already ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
stellar-laboratory × 53stellar-core × 21
stellar-sdk × 15
transactions × 5
multi-sig × 5
horizon × 4
token × 4
assets × 3
javascript-sdk × 3
trustline × 3
sequence-number × 3
xlm × 2
java-sdk × 2
nodes × 2
security × 2
stellar.toml × 2
python-sdk × 2
ledger-nano × 2
stellar-website × 2
verification × 2
set-options × 2
accounts × 1
payments × 1
operations × 1
wallets × 1