Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
Join us in building a kind, collaborative learning community via our updated Code of Conduct.

Transactions are commands that modify the ledger state. Among other things, Transactions are used to send payments, enter orders into the distributed exchange, change settings on accounts, and authorize another account to hold your currency. If you think of the ledger as a database, then ...

0
votes
0answers
14 views

How to implement Stellar Path Payments?

I have implemented my stellar path payments with the following parameters, but it continuously fails with an error of "Invalid parameter" . These are my parameters "source": "destination": ...
2
votes
1answer
20 views

Is a payment returned through horizon api call: “Payments for Account” always “confirmed”?

Is a payment returned through horizon api call: "Payments for Account" always "confirmed"? In comparison to Ripple a transaction could be returned but not validated yet. Is Horizon filtering this out ...
1
vote
1answer
15 views

How the transaction history of an account including the amounts sent/received in the transaction be viewed using horizon?

By checking transactions using something like: https://horizon-testnet.stellar.org/accounts/GBMTGMQXBXZS5XJROQQOZB7TU4ACBIXTJJEG7WTXP4ZEARPGQGDWHWIS/transactions?order=desc&limit=100 I get JSON ...
2
votes
1answer
21 views

Is there a library for stellar equivalent to web3js for Ethereum?

I am considering creating a stellar token or asset. I have done this before with ethereum but not with stellar. I would also like an app to be able to: Create a wallet for the user so that they can ...
0
votes
3answers
61 views

Muliti Signature with hash(x) in goLang SDK

I have a stellar account say "ACCOUNT1" with the following attributes: MasterWeight = 2 Threshold [ 1, 2, 3] Signers: Masterkey with weight 2 ed25519_public_key with weight 1 (say ACCOUNT2) ...
0
votes
0answers
14 views

Who can help me to translate a piece off code written from Waves Python libary to Stellar Python Library

I was looking to write my first application for Stellar. It's first thing I do with it so my knowledge about it is small. I want to translate a certain code but I can't find the matchend counter part ...
2
votes
2answers
56 views

Get the operation record of a payment

Using the javascript sdk, I'm sending a payment like so: const operation = Operation.payment({ destination: toAddress, asset: asset, amount: amount.toString() }); const account = await ...
0
votes
2answers
34 views

Expected behavior of omitting path attribute in Path Payment

When creating a pathpayment, the ideal use case would be to not have to provide a path, but rather rely on the stellar path finding algorithm to resolve the best (i.e. cheapest) path and then execute ...
1
vote
1answer
29 views

How do I locally manage sequence no of an account?

I am trying to successfully send a transaction but its failing whats the purpose of these two functions 1 - StellarSdk.Operation.createAccount 2 - StellarSdk.Operation.payment if I am using an ...
5
votes
1answer
61 views

Why is the memo hash different from the one I specify during tx building?

I'm converting IPFS multi hash to hex, and after throwing away its prefix I want to attach that hash to a stellar transaction (something like here). I build it this way: let transaction = new ...
1
vote
1answer
20 views

(Dup for different SDK) How can I build a transaction with a dynamic list of mutators or operations using the JS SDK?

This is exactly what I am after but in JS. How can I build a transaction with a dynamic list of mutators or operations using the Go SDK? Something like this would be great, and then it'd be easy to ...
0
votes
2answers
24 views

Stellar Validators, Transaction fees, Inflation fees.

I've been trying to find some answer in regards to the following questions. Hope someone can help me. Because I was able to find the only unnecessary answer in regards to my questions; Why would ...
1
vote
2answers
40 views

Is it possible to retrieve last N transactions or all transactions since a given timestamp?

The dapp I'm building can not rely on the paging mechanism described here, since after a short amount of time I will have a lot of transactions for a given account. Retrieving them all to only select ...
1
vote
1answer
26 views

Can I do a multi recipient transaction for a custom token?

I would like to know if it's possible to do a transaction with multiple recipient, in order to pay only once the fee. I saw in the documentation that you can put up to 100 operation in one ...
0
votes
3answers
51 views

Freezing unauthorized tokens

Account A issued and transferred asset ABC to distributor account B Account A was locked account B was issued trust-lines from X, Y, Z to accept ABC tokens transferred ABC to X, Y ,Z X, Y, Z are bad ...
0
votes
2answers
65 views

How can I validate a Stellar address?

I am currently only checking if the address is 56 chars long an if it is alphanumeric. Is there a checksum in an address to verify it. Are there any other rules ?
1
vote
2answers
30 views

Error in transaction creation

I am creating a transaction. When I am submitting the transaction to the blockchain it is giving an error. I will post the code below. Could anyone tell me where I am going wrong? from stellar_base....
1
vote
1answer
40 views

Unable to set optional 'Source Account' on 'Manage Data' operation

On all other operations I can use a different 'Source Account', but if I try to do it on 'Manage Data', I get: 'tx_failed' when sending with Python-sdk no changes applied to XDR if I try it in ...
3
votes
3answers
60 views

Is there a way to get a list of payments on account along with the transaction memo?

It seems the the transactions for account will give you back a memo, but no way to get the payments info such as the amount without making another API call on the individual payment for transaction. ...
1
vote
1answer
42 views

Stream stop get new data when finishing fetch all data and new payment was created

I using java-stellar-sdk version 0.2.0 from this: https://github.com/stellar/java-stellar-sdk/releases I did as tutorial example: @Override protected void onCreate(Bundle savedInstanceState) { ...
2
votes
1answer
38 views

Transaction, Operations, and Payments

I am currently trying to get the memo and amount of a transaction, but am confused over the differences between a transaction, an operation, and a payment. From my understanding, a transaction ...
1
vote
1answer
45 views

How to get Transaction amount from API?

I want to display all transactions of given users. Using the Java API, I presume I would do: server.transactions().forAccount(destination2).execute(); I would then page through the result. Each item ...
1
vote
1answer
32 views

How return a state after sumbit a transaction [JavaScript]

I've a dispatcher in node js called dis.js. in this dispatcher i want to call a function in makepayment.js and wait for the result of submit transaction. dis.js critical piece of code const mk = ...
2
votes
2answers
120 views

How to decode XDR of the result_xdr

So my code is: envelope = Te(tx=tx, opts={"network_id": "TESTNET"}) envelope.sign(receiving_account) xdr = envelope.xdr() response = horizon.submit(xdr) # TO DO: Have to check if done well print('...
2
votes
2answers
53 views

Why are overspending transactions added to the ledger?

I always assumed that this could not make its way into the ledger, but while testing with (seemingly) invalid transactions, I created the following: A custom asset I created a custom asset. As you ...
2
votes
1answer
29 views

When A sends a signed transaction to B, is the data operation visible in the transaction ?

When A sends a signed transaction to B, is the data operation visible in the transaction ? Are the details of the transaction visible to B ? We are planning to put some key value pairs in the ...
1
vote
1answer
65 views

How to sign the XDR transaction envelop and and post it through java sdk?

I received XDR envelope of a transaction. I need to sign it and submit using Java SDK. I am able to decode the XDR, but need help on how to sign and submit.
2
votes
1answer
139 views

Convert XDR to text

I want to convert the XDR fromat of the transaction to text using JS or java SDK in stellar.Or if there are any methods outside stellar also fine.
1
vote
1answer
32 views

Can somebody explain pricing like I'm 5?

For Manage Offers: Can someone please explain offer pricing with a concrete example? (no foo/bar references please). Stellar wants a numerator and denominator for a price? How does this make any ...
0
votes
1answer
35 views

Where is an accurate source for XLM to USD exchange rate?

Where is an accurate source for XLM to USD exchange rate? I'd like to programatically keep offers in line with market rates.
1
vote
1answer
96 views

TX_BAD_AUTH_EXTRA at submiting a transaction

I'm getting an error at trying to issue an asset following this schema: (issuer) An issuer account (Nano ledger) that will create and send the asset to a secondary account. (bhMain) Secondary account ...
1
vote
1answer
80 views

How to verify a Transaction?

I sent a signed transaction through the internet to a cloud function that needs to verify that the signer is the valid one. My code: const bHMainKeys = Keypair.fromSecret(privateKey) if (...
4
votes
2answers
59 views

How to serialize, send over network, deserialize a transaction envelope for multiple signatures?

I'm trying to send over the network a base64 encoded string representing a partly signed envelope. I need to parse the string back to the original javascript object in order to add a new signature to ...
0
votes
2answers
29 views

Private Testnet 404 issue

I am working on stellar private testnet setup, i have setup 3 stellar-core nodes and horizon, Account creation is working fine but data not showing for ledger, payment, transactions etc. All 3 nodes ...
1
vote
2answers
83 views

Simple Transaction Issue

I am working on a small and very basic project, essentially doing a POC involving stellar transactions. I am a newbie with stellar. I have two clients running the same code, and a 'banker' who ...
0
votes
0answers
31 views

Bifrost not updating events after ether sent to address warning error thrown

h=00000000000002c4e16bb85581427717efbd418a3e954064b2b532e02672a568 blockTime=2018-04-11 20:10:28 +0000 UTC pid=2514 service=BitcoinListener transactions=1 WARN[2018-04-11T20:10:39Z] Error extracting ...
1
vote
1answer
85 views

Good methods for Stress Test to prevent tx_bad_seq?

During a manual stress test with js-stellar-sdk, some transactions may be responded slower (e.g. 10 sec). At high TPS, asynch programming possibly causes server.loadAccount() to get the same tx_seq, ...
6
votes
0answers
39 views

Info on metrics

Is there any documentation as to what each of the metrics outputted by stellar-core -c metrics means? In particular, I'm interested in determining the number of transactions reviewed by a particular ...
1
vote
1answer
34 views

Balance of sender is not updating when send custom assets to receiver

I'm developing a remittance system around Stellar and we generated our own custom assets of type credit_alphanum4. Now the issue is, when we send payments using these custom assets to destination ...
4
votes
1answer
75 views

Should an address be restricted from sending unlimited XLM to itself?

Hello Stellar Community, While testing our wallets yesterday we noticed that an address is able to 'send' itself more XLM than the current total supply limit, ex: 105 Billion XLM. Although the net ...
-5
votes
1answer
29 views

I am dieing here. I am a computer MORON? [closed]

I own BTC and it is in a Bitcoin Wallet. I want to exchange or buy with that BTC asset, Stellar XLM. I have no idea how to do that. I have been trying for days, 24/7 sleep deprived and desperate. ...
5
votes
3answers
193 views

Storing Secret Key for Smart Contracts

I'm currently working on a project that will implement multi-signature smart contracts to process our transactions. I have a quick question and am looking for input on how best to do this. My team ...
2
votes
1answer
143 views

What is the Bottleneck for Stellar TPS (for a private network)?

There are discussions on different forums about how good in terms of TPS (transaction per second) Stellar can be. If I would like to achieve higher TPS, is hardware likely to be the only bottleneck? ...
2
votes
1answer
252 views

Pre-authorized Transaction

I would like to create a simple escrow account with two preauthorized timebound transactions, but not sure how to approach the problem. I am fairly new to Stellar, so correct me if I am wrong. I ...
0
votes
1answer
90 views

Is this scenario possible with stellar?

another noob question : Is it technically possible to use SSC for build a third party escrow service ? Let's imagine an absurd scenario : Once upon a time a man named Jed. He want to sell his ...
1
vote
1answer
229 views

Stellar smart contract

Where does the stellar smart contracts stored. Its storing in blokchain (similar like ethereum) or its runs separately and storing only the signed transactions?. As i know stellar stores only the ...
1
vote
2answers
179 views

Error in submitting the multisig transaction

The below code is the multisig transaction to submit to stellar horizon testnet. When I am submitting the transaction, I am getting the submission failed error. var alice_public_key = '...
0
votes
1answer
253 views

How to get the sequence number for an account id?

In the below code, I explicitly gave the sequence number. How can I get the sequence number by giving the public key? Is there a way to get the sequence number of an account? var StellarSdk = require(...
0
votes
1answer
144 views

How to create multisig address from multiple seeds?

I am wondering how to create the multisig accounts for stellar. I am using "py-stellar-base" SDK to send the transactions. Below is the code which sends the lumens from one address to other from ...
1
vote
1answer
50 views

Consensus about a transaction set

In the description of the transaction life cycle it is mentioned that: SCP resolves the differences between the various transaction sets proposed and decides on the one transaction set that the ...