15
votes
Instantly distributing payments to multiple parties
I can't think of an easy way to do this right now.
If someone has a proposal for an extension to allow things like this please put it here: https://github.com/stellar/stellar-protocol
14
votes
Accepted
When is account sequence number incremented?
At the lowest level of the protocol transactions are always processed, meaning they collect the fee and update the sequence number.
The layer above that, still done by validators, does the same ...
10
votes
What is the Stellar transaction data structure?
Transaction is a unit of work on the Stellar ledger. It contains a set of operations that either complete entirety or have no effect if any of them fails. Each operation is an individual command that ...
10
votes
Accepted
Why is the memo hash different from the one I specify during tx building?
While I'm not sure why this happens, this is not a different hash, its just encoded in base64
>>> import base64
>>> base64.b64decode('jDOeFb2J5/jH1sdUuAFqICu6EqjNtKq+...
9
votes
Accepted
Does the ratio of number of transaction of number of operation mean something?
Each transaction can contain up to 100 operations (this number may be changed in the future). For the most basic operations (peer-to-peer funds transfer, orders on the Stellar exchange) it's almost ...
9
votes
Accepted
What is the Safest Way for Users to Sign Transactions Over the Web?
You are right, the scheme you described is far from being secure. User should sign the transaction on the client-side.
I can see three options for your case:
Build and sign the transaction in the ...
9
votes
Accepted
What are the best ways to calculate the time for XLM transaction based on the projected growth of the network?
On Google's cloud servers they managed 36,000,000 transactions per second hour. Visa handles 24,000. So as far as time goes I suspect it will take the same amount of time as it does now unless it gets ...
9
votes
How to send my Lumens from Keybase to Coinbase
I was able to send XLM from Keybase to Coinbase.
In Keybase, select "Send" -> "To a Stellar Address".
To Field: Coinbase Wallet ID (e.g. GDQP2KRQGH...)
Amount: select amount you want to send (even 1 ...
8
votes
Accepted
Are there any steps taken to prevent spamming the Stellar network?
The only spam protection currently in place is the transaction fee of .00001 XLM. This is very cheap, and doesn't totally prevent spam, as we saw in the case of the recent stellarpool spam. It is, ...
7
votes
What is the rationale behind locking up base_reserve?
Accounts, offers and data entries are eventually rows in each node's Postgres DB.
To prevent anyone from creating billions of accounts and unnecessary consuming resources of node operators - base ...
7
votes
How would I make a transaction to buy a physical product using the Stellar Network?
Stellar transactions are non-reversible. A solution to prevent fraud when buying a physical product is to use multi-signature and have both the buyer and the seller agree on an impartial mediator. The ...
7
votes
Accepted
How do nodes in the Stellar network work?
The developer guide has a link to a Medium post that details how it works using a lunch analogy that does it's best to explain this quite complicated topic. You can read it in full here https://...
7
votes
Why can't you purchase XLM using standard currency?
To take fiat currency in the first place seems to involve a a bit of financial regulatory work and keeping things in order ( Coinbase , Kraken ) while it is much easier from a compliance standpoint to ...
7
votes
Accepted
Storing Secret Key for Smart Contracts
Generally speaking, if you're owning all the accounts and everyone trusts you then I'd suggest adding your own private keys to the accounts instead of taking theirs.
If you add your own key that is ...
7
votes
is it possible to perform multiple payment operation in single transaction?
Sure, addOperation can be called multiple times.
const transaction = new StellarSdk.TransactionBuilder(account)
.addOperation(StellarSdk.Operation.payment({
destination: managerPublickey,
...
6
votes
When is account sequence number incremented?
Accepted answer has great explanation how the process work, so let me add some practical examples to make it more concrete.
Doesn't bump sequence
operations have obviously invalid parameters (...
6
votes
Accepted
Transaction fails without error code
Need to remove newline from your posted xdr
Using xdr viewer on stellar laboratory, your transaction result success
Ps: select PaymentResult as XDR type
Check here
6
votes
Is it possible to require authentication without a federation server?
Stellar provides standard way of handling compliance, but it's not part of the core protocol, because it is not required for all transactions on the network.
Works as a second layer basically, using ...
6
votes
Accepted
How can I find my test transaction from Get Started Guide code on the Stellar TestNetwork?
Transactions can contain one or many operations being payments one of them, so your payment should be in the transaction history but you have to look for it whether in code following the links ...
6
votes
Accepted
Is it possible to forward transaction fee onto someone else?
As noted on the Fees page in the docs:
Stellar deducts the entire fee from the transaction’s source account, regardless of which accounts are involved in each operation or who signed the ...
6
votes
Accepted
Convert XDR to text
XDR is a binary encoding of structured data. It is represented as a base 64 encoded String in transaction responses.
Some options:
You can decode base 64 encoded XDR using the laboratory.
The ...
6
votes
Accepted
Is there a library for stellar equivalent to web3js for Ethereum?
If you want to write a Stellar-powered solution, start with Stellar Development Guides.
All tasks from your list are very basic and all of them are described in the documentation, so without any ...
6
votes
Can we add more fields on stellar?
If you need to store some information attached to any account you can use ManageData operation to store key/value pairs, more here https://www.stellar.org/developers/guides/concepts/list-of-operations....
6
votes
If one operation is wrong then the whole transaction is wrong
This is as per design.
Operations are executed in order as one ACID transaction, meaning that either all operations are applied or none are. If any operation fails, the whole transaction fails.
...
6
votes
What is the right way to verify an off-chain transaction with golang?
play.golang.org
package main
import (
"fmt"
"github.com/stellar/go/network"
"github.com/stellar/go/keypair"
"github.com/stellar/go/xdr"
)
func main() {
var env xdr.TransactionEnvelope
...
5
votes
Accepted
Is there a speed difference between the SDKs?
I hadn't run any benchmarks myself, but you can estimate the performance based on the few parameters.
Cryptography
Cryptography is the most CPU-consumptional part of SDK. Stellar JS SDK depends on ...
5
votes
Accepted
How can I convert the built 'transaction' in XDR format?
Given transaction is a Transaction object then this will give you base64 encoded XDR:
transaction.toEnvelope().toXDR().toString("base64")
5
votes
Accepted
Pre-authorized Transaction
So after some exploration of pre-authorized transactions, I have written a medium post on my findings and an example use case here.
Yes, the basic approach is as follows:
Create the two pre-...
5
votes
How to decode XDR of the result_xdr
It is possible to decode XDR objects by using the stellar_base.stellarxdr module.
from stellar_base.stellarxdr import Xdr
import base64
result_bytes = base64.b64decode(response['result_xdr'])
...
5
votes
Accepted
How can I validate a Stellar address?
Stellar uses Ed25519 public/private keys. So you can research that if you want some more details.
If you're using a library (like the JS SDK) it's as simple as calling:
StrKey....
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
transactions × 222horizon × 30
stellar-core × 26
accounts × 26
stellar-sdk × 21
operations × 21
javascript-sdk × 19
java-sdk × 18
payments × 17
assets × 11
xlm × 11
xdr × 10
fees × 9
multi-sig × 9
memo × 8
wallets × 7
testnet × 7
exchanges × 6
go-sdk × 6
stellar-laboratory × 5
security × 5
python-sdk × 5
sequence-number × 5
scp × 4
lumens × 4