Questions tagged [stellar-sdk]

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

Filter by
Sorted by
Tagged with
0
votes
1answer
15 views

Wonder why “Custom Asset” [Paymeny] flow, doesn't affect the “Balance” of the “Paying Account” (Sender)?

Hopefuly things are going fine with ya'll. I've created a [Custom Asset] asset_code="FAZ"(Alphanum_4) by set of Accounts (Source,Issuer,Distributor,Consumer) on Stellar Test-Net. Set [...
0
votes
1answer
12 views

Do I need to create and back my own USD token, or are there more distributed approaches to bring USD into my Stellar based app?

I'm transitioning my purely XLM based app to having USD as a deposit, exchange or withdrawal option. Once the USD is deposited, I'll issue a USD token to track that value. How should the exchange on ...
0
votes
0answers
2 views

Stellar Bifrost Stuck at 70% of completing transaction

The bifrost-server console log shows this. INFO[2020-06-27T19:34:50-06:00] starting request host="localhost:8002" ip="[::1]:56523" method=GET path=&...
0
votes
1answer
6 views

Stellar Bifrost JS SDK Getting error says params.recoveryPublicKey is invalid

As per the instructions I modified the example.html file from https://github.com/stellar-deprecated/bifrost-js-sdk I set the params as follows: var params = { network: 'test', horizonURL: '...
1
vote
0answers
6 views

406 : “not applicable” when trying to stream DEX offers

I am trying to stream my dex offers, but I keep getting 406 : not applicable To Reproduce // "stellar-sdk": "^5.0.2", let StellarSdk = require('stellar-sdk') let server = new StellarSdk.Server('...
3
votes
1answer
16 views

How can I decode the address from XDR envelope

I am trying to write a page to show all the transaction history of an account, I use StellarSdk.xdr.TransactionEnvelope.fromXDR(page.records[0].envelope_xdr, 'base64') to get the transaction envelope, ...
0
votes
1answer
30 views

How can I view transactions within a specific date range?

Is there any solution for filtering transactions by date? Scenario: I wanna fetch transactions for a specific account in a specific range of date like 2020/04/04 to 2020/05/04 I looked for it a lot in ...
0
votes
0answers
29 views

How do i build a fiat payment processor(Gateway) on stellar

I want to develop a payment gateway that can be integrated into online stores, merchants can seamlessly receive payments directly to their bank account. I want to build all the features on stellar. ...
1
vote
1answer
25 views

Error tx_bad_seq, is it just about the sequence number?

I have a problem broadcasting a transaction for stellar. It ends and gives me the error tx_bad_seq. The thing is I have checked and rechecked the account sequence number multiple times. I feed in the ...
2
votes
0answers
501 views

All files must be modules when the '--isolatedModules' flag is provided

Describe the problem This problem appears when I want to participate in development , I clone the project javascript stellar-sdk then run npm install What version are you on? 4.1.0 To Reproduce ...
0
votes
1answer
21 views

Unsuccesfully creating public aaccount using FriendBot funded account

I run a validator node on the public network for which I need to create an account. Hence, I started by creating a Stellar account in the test network as described here. So far so good. As per my ...
0
votes
2answers
27 views

How to get the transaction payment amount in .NET Stellar API?

I have C# source code like this: Server server = new Server("https://horizon-testnet.stellar.org"); var GetTranHistory = server.Operations.ForAccount("...
1
vote
0answers
15 views

Android Stellar SDK throwing NullPointerException on KeyStore.aliases() in Crashlytics reports

Crashlytics report for my android app shows that a considerable number of my users are getting the following null pointer exception. Most of my users who get this error are on Android 6. It happens ...
1
vote
1answer
18 views

Payment Deducted from channel account and not from source account

I am trying to implement the concept of channels in my stellar project. I have refered https://www.stellar.org/developers/guides/channels.html this link. As it is said that, the source account of the ...
0
votes
1answer
19 views

What is the difference between watcher Node and Basic Validator Node

Can anyone explain what is the difference between watcher and basic validator node .
0
votes
2answers
36 views

stellar payment tx_bad_seq error

I am using stellar sdk to send payments from one account to another. When i send payment one by one , there is no error . everything works fine. However when i try to send payments in batch i get ...
0
votes
1answer
22 views

How to submit a signed transaction that has been XDR enveloped?

Hi I was working with Stellar on Javascript for offline signing and to keep the QR code after signing short I enveloped the transaction and converted it to XDR. Using, const signedTx = await ...
3
votes
1answer
64 views

Presign Buy order without knowing the right amount in advance

How it's possible to create a valid Manage Buy Offer in Transaction 5 of the crowdfunding example from the stellar smart contracts reference. The reference quotes: Manage Buy Offer: Holding ...
1
vote
1answer
33 views

Testing stellar anchor

I am in process of testing a build of stellar anchor. I am using https://gostellar.org/app/ for this. Everything goes well till the point where the transaction is submitted to the network. I get ...
0
votes
0answers
75 views

Path Payment Strict Receieve gives op_no_trust

I need some help here regarding path_payment_strict_receive. I am using testnet for testing purposes. Whenever I send my path_payment_strict receive transaction with a source and destination account ...
0
votes
1answer
23 views

TypeError: sourceAsset.isNative is not a function when calling strictSendPaths

I am trying to call a payment strict send path: var server = new StellarSdk.Server("https://horizon.stellar.org", { allowHttp: false, appName: "Horizon", appVersion: "0.23" }); var ...
0
votes
0answers
13 views

ı can not see local horizon api account detail

ı create public key with stellar sdk with node js; StellarSdk.Networks.TESTNET; const server = new StellarSdk.Server('http://10.5.0.6:8000',{allowHttp:true}); //const server = new StellarSdk.Server('...
1
vote
1answer
20 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
1
vote
1answer
30 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
0answers
10 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
59 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?
1
vote
1answer
86 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 ...
0
votes
1answer
25 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
43 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 ...
2
votes
1answer
138 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
56 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
40 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::...
0
votes
1answer
144 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
154 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 ...
2
votes
1answer
58 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
59 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
58 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
44 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?
1
vote
1answer
168 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 ...
1
vote
1answer
61 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/...
6
votes
1answer
38 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 ...
3
votes
2answers
91 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 ...
0
votes
1answer
86 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 ...
1
vote
1answer
69 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
125 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 ...
3
votes
1answer
42 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
2answers
97 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 ...
0
votes
1answer
27 views

Multi-Sign Withdraw payment

How do you withdraw funds from a multi-sig account?
1
vote
1answer
63 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
38 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/...