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

Questions tagged [transactions]

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 ...

1
vote
1answer
17 views

How does a typical Stellar end-user distinguish between assets with same 4 or 12 digit code?

My understanding is that Assets created on the Stellar Network are identified with the combination of their 4 or 12 digit code plus the issuing address. I'm imagining a situation where an Asset on ...
2
votes
0answers
12 views

What are the message size limitations of stellar consensus protocol?

The question is a two part question: What is the message size limitation of stellar consensus protocol? Also how does the message size affect the TPS of stellar?
2
votes
1answer
42 views

Why doesn't Stellar match the other order?

I have a question about Stellar exchange matching engine. Scenario: I want to trade AA coin for BB coin (2 Buy orders & 1 Sell order) Buy Orders (Buy BB | Price 1 BB = 90 AA) Order#1 Volume 10 ...
1
vote
1answer
16 views

Error while submitting change trust transaction

I created an anchor account which issues USD asset. It worked properly. But now when I modify the program where the anchor issues one more asset called INR and I am creating a trustline for both the ...
1
vote
2answers
27 views

Using Stellar for Proof of Existence

I know Stellar is designed for transfering funds and holding tokens, but I thought about using it for proof of existence. Stellars transaction fees are much cheaper than Ethereum and transactions are ...
2
votes
1answer
28 views

What happens when transaction fails to be applied?

What happens when a network comes to a consensus about a transaction, but that transaction fails to get applied on some nodes but not all nodes? A more concrete example is createAccount operation. ...
2
votes
0answers
16 views

How to filter only the most recent n number of operations of an account for only a specific Asset?

I had a function that returned the most recent 3 payment operations for an account. But I wante to change it so that it would only return the most recent 3 payment operations for only the asset being ...
2
votes
1answer
31 views

How to properly set `baseReserve` & `baseFee` to 0

I ran a basic private network with the line COMMANDS=["upgrades?mode=set&upgradetime=1970-01-01T00:00:00Z&basefee=0&basereserve=0"] inside of my stellar-core.cfg file on all of my nodes (5 ...
2
votes
1answer
34 views

Is there any way of knowing total transactions count (pagination)?

In the transactions endpoint e.g.: https://horizon-testnet.stellar.org/accounts/GAZHWW2NBPDVJ6PEEOZ2X43QV5JUDYS3XN4OWOTBR6WUACTUML2CCJLI/transactions?cursor=&limit=20&order=desc Is there any ...
4
votes
1answer
47 views

Does stellar takes fee for resolving a federated address?

I did a transaction from my one of my stellar accounts to my federated stellar address which is under another account. But while sending I made the mistake of not giving the complete federated address ...
4
votes
1answer
27 views

Stellar address prefix bitwise operator rationale

Stellar prefixes public keys with G. Why do they use a bitwise operation VersionByteAccountID VersionByte = 6 << 3 to get the base 10 value 48? Javascript "returns the default numerical values", ...
4
votes
1answer
28 views

How to derive a number of open Offers for a transaction set that hasn't been fully submitted to the network yet

Please help to find out a possible solutions to the following problem: For a dedicated "Minimal Balance" service one would need to know a number of account entries among which there are Offers ((2 + #...
0
votes
0answers
52 views

Error code 400 while executing a transaction in a private Network

I executed the steps mentioned in the link https://www.stellar.org/developers/js-stellar-sdk/reference/examples.html, then I get the below response: AAAAAHN2/eiOTNYcwPspSheGs/HQYfXy8cpXRl+...
3
votes
1answer
52 views

Error while transaction submission in the private network

So I am trying to do a transaction in the private network, I have named it standalone, I am using SSL. I started the network using docker, then created a keypair, then in another terminal ran node to ...
4
votes
2answers
54 views

Verifying a transaction

For doing a payment from a distribution account i'd like to use the destination account as a channel. Therefore i'd like to implement the functionality as follows: there are 3 accounts involved: ...
4
votes
2answers
35 views

How to implement OTC trading of Stellar assets?

Stellar has its distributed exchange for trading currencies and other assets. It has a public orderbook with passive orders. So far so good. But in many use cases, financial institutions prefer OTC (...
4
votes
2answers
74 views

How to Build transaction XDR before sign it

I want to build a transaction and convert that as XDR before sign that transaction. As i found we need to build adn sign the transaction before convert that as XDR specially in java and GO SDK. Is ...
4
votes
1answer
62 views

What is an easy way to create a transaction on multiple wallets at once?

Say I have 10 wallets and want to send their content to a master wallet and then remove trustlines on these wallets, what would be the easiest way to do it? Thanks!
2
votes
2answers
55 views

What is the syntax of the 'tx' (transaction) command, to execute a transaction?

So using docker I started a private Stellar Network by typing in the below command: docker run --rm -it -p "8000:8000" --name stellar stellar/quickstart --standalone Then I opened another terminal ...
-1
votes
1answer
34 views

Dynamic amount of operation

How can I add multiple operations in one transaction using the Go SDK? I am trying to add a dynamic amount of payment operations under 1 transaction and that seems to be not possible in Go as it's ...
3
votes
2answers
83 views

Can we add more fields on stellar?

I was wondering how to add more fields on transactions like the memo field.Is it possible to do so.. How can I do that?
1
vote
0answers
45 views

Horizon Error 6

I'm using the iOS SDK to attempt to submit a testnet transaction, but it fails with error 6, which I believe is BAD_AUTH, too few valid signatures/ wrong network. Here is my code: static func ...
1
vote
0answers
52 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": ...
3
votes
1answer
38 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 ...
2
votes
1answer
27 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 ...
3
votes
2answers
42 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
109 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
17 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
75 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 ...
1
vote
2answers
54 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 ...
2
votes
1answer
45 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 ...
6
votes
1answer
81 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 ...
3
votes
1answer
25 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
38 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 ...
2
votes
2answers
46 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 ...
2
votes
1answer
29 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 ...
1
vote
3answers
69 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 ...
1
vote
2answers
187 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 ?
2
votes
2answers
53 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....
2
votes
1answer
46 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 ...
4
votes
3answers
80 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. ...
2
votes
1answer
62 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) { ...
3
votes
1answer
48 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 ...
2
votes
1answer
67 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 ...
2
votes
1answer
38 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 = ...
3
votes
2answers
246 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('...
4
votes
2answers
66 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 ...
3
votes
1answer
35 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
2answers
108 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.
4
votes
1answer
220 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.