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
33 views

is it possible to perform multiple payment operation in single transaction?

Scenario: when user pay(100%) on my website using my API in which I want to perform 2 payment operation 1. goes to production account(50% amount) 2. goes to manager account (50% amount) is this ...
0
votes
1answer
42 views

How to keep account balance up to date in wallet app

I'm building a simple wallet app and I want to keep the balance of my account up to date in the wallet. I have thought of a couple ways to do this, but neither seem that great. OPTION 1: Query the ...
0
votes
0answers
33 views

Multiple SetOptions in a Transaction

I want to create a transaction with 2 SetOptions operations. The reason I need multiple SetOptions is because one SetOptions for changing the weights of the source account and second SetOptions is to ...
2
votes
0answers
21 views

Subscribing to incoming transaction does not work

paymentsRequest.stream(new EventListener<OperationResponse>() { @Override public void onEvent(OperationResponse payment) { System.out.println("TEST TEST TEST"); This ...
0
votes
1answer
34 views

transaction is not submitting on stellar network!

load account is working fine and giving details of accounts means horizon is giving response but on transaction submitting getting error. local node setup done using docker image of stellar code ...
3
votes
1answer
32 views

Why are some operations missing when I query operations by account?

When querying the Horizon API for operations related to an account, some are unexpectedly missing. The documentation says that the endpoint I'm using represents all operations in valid transactions ...
0
votes
1answer
34 views

How do I keep track of payments to multiple address

To track the payments we can use streaming API is good solution. already answered. In my case I have a master account(M) as well sub-master(SM) account, I need to have multiple sub-master(SM) ...
0
votes
1answer
17 views

How to check if a transaction went through?

When we submit a transaction to Horizon, we either get a success response or an error response. In the case of an error response, we can save the transaction in XDR format and resend it. But, if we ...
1
vote
1answer
44 views

how to know the transaction is confirmed or pending or success in stellar network or How to check status of a tx in stellar?

As a receiver, someone sends me lumens if transaction get success or fails it is ok as sender already got a response from the horizon, what if the transaction is neither succeed nor fails, how can I ...
4
votes
1answer
29 views

Transaction created_at and ledger close time

I am wondering what the created_at timestamp in every transaction actually represents. Is the the time the transaction is signed or is it the time it was applied to the ledger? If it is not the later, ...
0
votes
0answers
10 views

How do I integrate my Crpyto-to-Fiat debit card with the stellar network for making overseas transactions

I am CEO at a startup in the critical stages in developing a global Crypto Currency Debit Card and am interested in how Stellar can enable my team to achieve our following targets The creation of a ...
0
votes
1answer
35 views

how to trace the state of a transaction after submit?

After submitting a transaction I want to verify that transaction. Is there any API or way to check or verify the transaction? const sendMultiSignatureTransaction = async (receiverPublicKey, ...
2
votes
2answers
44 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
18 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
58 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
24 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
40 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
32 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. ...
1
vote
0answers
20 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 ...
1
vote
1answer
35 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
47 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 ...
3
votes
1answer
50 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
28 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", ...
3
votes
1answer
33 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 + #...
2
votes
1answer
58 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 ...
3
votes
2answers
76 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
40 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 (...
3
votes
2answers
111 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 ...
3
votes
1answer
70 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!
1
vote
2answers
68 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
40 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
87 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
54 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 ...
0
votes
0answers
69 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
45 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
31 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
48 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
144 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
18 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
97 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
60 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
56 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 ...
7
votes
1answer
126 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
28 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
44 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
48 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
31 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
72 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
315 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
63 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....