The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [stellar-sdk]

For questions regarding a Software Development Kit (SDK) for Stellar client applications.

Filter by
Sorted by
Tagged with
1
vote
1answer
9 views

Transferring among different assets under the same account

Lets say ive an account with 2 assets USD, GBP and native asset as well. Can i transfer between USD and GBP belonging to same account ? Is it possible
4
votes
1answer
70 views

How can I do asymmetric encryption and decryption?

How can I do asymmetric encryption by using Stellar's private key of sender and Stellar's public key of receiver and vice-versa in case of case decryption? I had gone through many methods but I am ...
0
votes
2answers
92 views

How can i get the base reserve for stellar?

currently in ripple when i need to check how much is the minimum required to keep account valid there is a property called reserve base XRP is there something similar in stellar? because to write hard ...
0
votes
1answer
53 views

Friendbot request fails with 400 (Bad Request)

I am trying to create an account on the stellar Test Network. I am using ASP .Net framework. But whenever I make a request and pass in the public key, I always get this error: Response status code ...
1
vote
1answer
21 views

what is the max number of operations per 1 transaction?

what is the max number of operations per 1 transaction? I cannot find the document related to this number from the official document. thanks
0
votes
1answer
62 views

Submit transaction in Node js Error 400

I initiated a small node js project in which I installed the sdk module in order to communicate with horizon and try out some things, I am following this page from the docs. However I getting an ...
0
votes
1answer
37 views

stellar withdrawal -

I withdrew my stellar twice but it failed. Stellar charged me. How do I get the charges back and why can't stellar transfer coins to coinspot?
0
votes
1answer
82 views

Minimum account balance Changed?

The base_reserve_in_stroops says 5,000,000 (0.05 XLM) in the following URL. This is a recent ledger entry. Does this mean it only takes 0.1 XLM (2 * 0.5 XLM) to create an account now? https://horizon....
0
votes
0answers
9 views

Transaction is failing with the transaction result code of tx_bad_seq. Even if increment the seq number as some people are saying is not working

var account = new Account(source.AccountId, 290890833513676922L); var transaction = new Transaction.Builder(account) .AddTimeBounds(timeBounds) ....
0
votes
1answer
136 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 ...
2
votes
1answer
58 views

How to carry out compliance for transactions between customers using single compliance server?

I have set up an Anchor account and created a custom asset to have customers trade with. I want to set up some compliance for transactions sent from one customer to the other. All customers will be ...
2
votes
1answer
104 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 ...
0
votes
1answer
18 views

Inferring operationID from get transactions stream data

Currently, I am getting transaction detail from transaction stream using stellar sdk. So for getting the operation details the envelope XDR is decoded. But the operationID couldn't be retrieved from ...
1
vote
1answer
31 views

Can I change the Path of a Stellar history archive?

In stellar-core.cfg (stellar config file) we need to define a history configuration. The default setting is mkdir="mkdir -p /tmp/stellar-core/history/vs/{0}". Can I change this directory location, or ...
1
vote
1answer
40 views

How to use stellar path to send 1 USD worth of XLM from source account to destination account

I'm trying to create an application where I can charge a fixed amount of USD in XLM. I believe I can use path payment in order to accomplish this. But I'm not sure I understand what happens if I omit ...
2
votes
1answer
82 views

How to create trustline between issuer's account and receivers accounts dynamically?

I am trying to create a trustline between issuer's account and receiver's account to send Custom Assets(token) I am following this link var StellarSdk = require('stellar-sdk'); StellarSdk.Network....
1
vote
1answer
39 views

(SOLVED) - Error when sending money (C++ QT SDK)

I had this working before (like a week ago) but now I am having issues with sending money to an account. I keep getting this error string "Error transferring https://horizon-testnet.stellar.org/...
1
vote
1answer
27 views

How can I validate a stellar address in Python?

I am using python-sdk to perform stellar operations. Now I need to validate a stellar address. I know that the JS sdk has got a function StrKey.isValidEd25519PublicKey(address); however I cannot find ...
0
votes
0answers
38 views

Made few changes in stellar core file. Saved it but cannot see the changes in the new transactions i am performing

I have made certain changes in LedgerManagerImpl.cpp file under src-> ledger folder on line approx 68-72 const uint32_t LedgerManager::GENESIS_LEDGER_BASE_FEE = 50; const uint32_t LedgerManager::...
2
votes
1answer
46 views

How to create an account on a private network?

I have already started a stellar private network. I need to generate an account on a stellar private network. I have a secret key and private key also. But I have a question about what should I enter ...
1
vote
1answer
36 views

Custom assets balance of sender is not updating in stellar

I know this questions is already asked, but the solution provided is not proper. So asking the question again. We created a custom assets with name FOC. when we send any FOC to any account, the ...
1
vote
1answer
54 views

How to decode Core DB Account.Signers using the stellar js-sdk

In the recent core v10.3, there is a new base64 encoded column in the accounts table in the core db which replaces the signers table in earlier core versions. How can I decode this column to produce a ...
2
votes
1answer
38 views

Can an account hold multiple assets?

Can an account hold multiple assets? If yes, how do transactions get recorded for each asset? If no, should we create multiple accounts, one for each asset?
0
votes
1answer
29 views

Time-based wallet in Laboratory

I want to build a time-locked token with certain funding target to be used for crowdfunding. I have found the code for creating time bounds in javascript but I am unable to find the UI of Stellar ...
1
vote
1answer
85 views

Creating a stellar account and activating it

Sorry for the newbie question... When a user subscribes to my service, I would like to: Create a new stellar account for the subscriber Seed it with 1.5 XLM (to activate it) Create a Trustline and ...
0
votes
1answer
68 views

How to extract transaction hash out of XDR using Java Script?

iam having an XDR i want to know the transaction hash before i submit that to stellar. i did this in GO by unmarshal the XDR and used the builder to retrieve the hash. Is there nay way that i can do ...
5
votes
1answer
32 views

Understanding the flow of stellar with federation server

I have read the guides, check on other places, And I'm still confused about how federation works. Lets say I monitor for deposits from our clients. We generate a unique ID (as a memo) and tell them ...
0
votes
3answers
209 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) ...
2
votes
1answer
68 views

Force transaction to be with memo ID

Because we are exchange we use main account and we generate Id number as a memo that we send to the customer so we will know the transaction was from him. we want to force the customer to add the memo ...
1
vote
2answers
83 views

How can I actually use the js-stellar-sdk?

I'm trying to figure it all my self but I cannot find any useful information on how actually use the Documentation provided. For example I see there are classes and inside Account, ...
1
vote
1answer
47 views

Getting error “XDR Write Error: undefined is not a Hyper” when trying to create XDR for custom operation

I am trying to run a forked version of the Stellar-Laboratory, I have forked the js-stellar-base and js-stellar-sdk accordingly, basically what I am trying to do is add a new operation on the ...
0
votes
2answers
56 views

monitoring stellar

As I understand, stellar block-chain is actually the ledgers using the previous hash to connect to its prev ledgers down to genesis ledger. my question is: how can i monitor the ledgers in order to ...
3
votes
1answer
33 views

Extra 0 byte at end of MemoText String

I extracted a TransactionEnvelope XDR several months ago for testing. It parses fine in the lab and the SDKs. I've tried parsing it by hand and there's something I don't understand. After the ...
0
votes
1answer
24 views

Multi-Sign Withdraw payment

How do you withdraw funds from a multi-sig account?
1
vote
1answer
49 views

Not able to sign the transaction

I have created one multisig account with two co-signers. After that, I initiated two transactions back to back without signing using co-signers. Tx1 10XLM – pending and Tx2 10XLM – pending. Now, I ...
0
votes
1answer
154 views

Why stellar required XLM to activate account

I am using stellar for custom token. And each time a customer creating a account on stellar they required 1 XLM to activate there account. We are using custom coins only so why should be activate ...
0
votes
1answer
34 views

Multi-sign transaction is not working

I am creating a multi-sign transaction. When I am submitting the transaction to Stellar, response.isSuccess() returns false. Could anyone tell me where I am going wrong? link https://www.stellar.org/...
0
votes
1answer
56 views

Canceling the transaction

I am new to stellar transaction. I have created the transaction for 10 XLM from A to B. Now I want to do cancel or approve from client side. for approve, working. for cancel, i don't have idea. how to ...
0
votes
1answer
64 views

Sharing transaction to more than one co- signers to get sign

I am very new to stellar. I have gone through the documents available in stellar offical website. In my scenario, trying to send the transaction to more than co-signers to get signature. wrote code ...
2
votes
1answer
192 views

How to decode stellar XDR

I am working on stellar blockchain and need to decode stellar XDR which is in GO language. I know how to decode using JavaScript but couldn't find a way to do it in GO. //JS code const {Transaction} ...
3
votes
1answer
82 views

How to check total supply of a trust-line based asset on the Stellar network?

How to know the total supply or the coins in circulation right now? Like in Ethereum we can check it with a predefined ERC20 function.
1
vote
0answers
85 views

Error when trying to install stellar-sdk from npm, “LINK : fatal error LNK1181: cannot open input file 'C:\OpenSSL-Win64\lib\libe ay32.lib'”

Anyone know what this means or how to fix it? I ran the command npm install --save stellar-sdk and got this LINK : fatal error LNK1181: cannot open input file 'C:\OpenSSL-Win64\lib\libe ay32.lib' [...
1
vote
0answers
25 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
3answers
39 views

Stellar all address has no data

Hi i was using stellar test account. It was working fine but suddenly showing no data in any related account to a asset issuer. is there any limit for using test network ? I have created a issuer and ...
3
votes
1answer
77 views

Stellar Java SDK: Retrieve Account Data

I can see how to add data to an account using ManageDataOperation. But is there a way to retrieve the same data using the Java SDK? I fund a JS example: https://www.reddit.com/r/Stellar/comments/...
4
votes
2answers
235 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 ...
2
votes
3answers
278 views

How to check Trustline Authorized Flag?

I need to check if an account trustline is authorized or not (before payment) Eg: this account https://horizon-testnet.stellar.org/accounts/GDT43XDX4VP7JPJUXRZO7JJH4PHJRCXYFPJA5PJPQC4MLLTF6PEEY5JU ...
3
votes
3answers
266 views

How to let users decide between transactions

I am building an API that will send out signed transactions to users and allow them to submit the transactions themselves. I am attempting to send a user three different transactions however I would ...
2
votes
2answers
294 views

How should the changeTrust Operation be used?

If I want to create a trustline between my issuing account and new users accounts, how do I do this. I tried with this code: const StellarSdk = require('stellar-sdk'); StellarSdk.Network....
4
votes
1answer
83 views

How to use the Stellar SDK API Reference?

I am trying to understand how the API reference is meant to be used. For example I want to see how to set up a trust line for an account using the changeTrust() operation. I went to the API ...