Questions tagged [stellar-sdk]
For questions regarding a Software Development Kit (SDK) for Stellar client applications.
106
questions
0
votes
0answers
5 views
Transfer XLM from Stellar Expert account to Nano Ledger wallet? [duplicate]
I tried using the staking opportunity and ended up transferring XLM from my Nano Ledger wallet to a Stellar Expert account. How do I transfer the XLM back to my Nano Ledger wallet?
0
votes
1answer
18 views
Could not connect to stellar testnet using stellar testnet url
I tried getting balance of my stellar account after generating key pairs using the following code:
const server = new StellarSdk.Server("https://horizon-testnet.stellar.org");
// the JS SDK ...
0
votes
0answers
6 views
Using Angular 7 and having cannot read property useTestNetwork
import * as StellarSdk from ‘stellar-sdk/dist/stellar-sdk.min.js’
In my constructor I have:
This.stellarServer =new StellarSdk.Server(‘https://horizon-test net.stellar.org’);
StellarSdk.Network....
0
votes
0answers
19 views
How to set up a anchor on stellar?
As I working on stellar Blockchain, can anyone guide me on how to create an anchor on stellar? and How it will give a withdraw amount in fiat currency & which protocol is it used to convert ...
0
votes
0answers
4 views
Continuous Status 504
I have been developing a Multi-sig based project and keeps on getting the 504 status so many times when making transaction. I have checked out the testnet staus of Horizon network as well and it seems ...
0
votes
0answers
12 views
SEP-10 Authentication Sample
I've read the documentation about the SEP-10 Authentication Protocol of the network but is kinda overwhelming for me.
Do have any available code snippets for the said process able to study thoroughly. ...
0
votes
1answer
21 views
can not delete create passive sell offer
in stellar docs
(https://developers.stellar.org/docs/start/list-of-operations/#create-passive-sell-offer)
Amount of selling being sold. Set to 0 if you want to delete an existing offer.
if I set ...
0
votes
1answer
23 views
Cannot install via npm for node on Windows
I'm trying to download the stellar SDK for my angular project but the npm install fails.
0
votes
0answers
15 views
ClaimClaimableBalance
I written one java code which for ClaimClaimableBalanceOperation but after submitting the transaction it returns nothing, only null even not error code. I have created the accounts and Claim on ...
0
votes
0answers
10 views
Document did not contain stellar_address
I'm a Stellar beginner trying to validate an account I just created as follows:
val server = FederationServer("https://horizon-testnet.stellar.org")
val keyPair = KeyPair.random
for {
...
0
votes
0answers
4 views
CreateAccount stopped working on GO Client SDK on latest version
I have the following code that used to work:
client := n.getClient()
// get the account details for master account
masterKey := keypair.Master(n.passphrase)
ar := horizonclient....
0
votes
0answers
11 views
stellar-sdk.js:9457 POST https://horizon-testnet.stellar.org/transactions 400 (Bad Request)
whenever I run this HTML page
<!Doctype html>
<html>
<head>
<script src="https://cdnjs.cloudflare.com/ajax/libs/stellar-sdk/0.11.0/stellar-sdk.js"></script>...
0
votes
0answers
3 views
const pair = StellarSdk.Keypair.random(); ^ ReferenceError: StellarSdk is not defined
when ever i try to run this code
// create a completely new and unique pair of keys
// see more about KeyPair objects: https://stellar.github.io/js-stellar-sdk/Keypair.html
const pair = StellarSdk....
0
votes
1answer
27 views
How to add memo to transaction?
I want to create a transaction with a memo, but i keep getting error
this.memo.toXDRObject is not a function at TransactionBuilder.build
code:
let fee = await get_mining_fee();
const txOpts =...
0
votes
1answer
34 views
xdrlib.Error: value=-915689825 not in enum ClaimableBalanceIDType, when I try to claim the created balance
so I'm trying to implement claimable_balances example using the python-sdk, I'm able to use append_create_claimable_balance_op and create a claimable balance from the sponsor's account.
but I don't ...
1
vote
1answer
46 views
Is digital bank with Stellar possible?
Consider a digital bank with multi-currency deposits of crypto tokens (mirroring fiat), token exchange, transactions and digital wallets. The bank should charge configurable transaction fees with the ...
0
votes
1answer
25 views
How to allow the trustor(account) to trust the asset I created
I want to make a account (public key) to trust a asset I issue myself.
When I run an allowTrust operation, snippet below, I get op_no_trustline error :
const issuingAccount = await ...
0
votes
1answer
34 views
Error when django-polaris installation
When I try to install django-polaris using the command pip install django-polaris it thrown an error
Could not find a version that satisfies the requirement django-polaris (from versions: )
No ...
0
votes
0answers
16 views
Is there a “Bond” between “Price” and “Amount” parameters in an “Sell/Buy Offer”
when creating an (Sell/Buy Offer), the Docs. says we have to specify the (Price) as a pair of {numerator, denominator} values, https://developers.stellar.org/docs/start/list-of-operations/#manage-buy-...
0
votes
1answer
19 views
How can I access the Horizon:Error Response after raising error in code
After an error raised during a Transaction submission with server.submit_transaction() how can I access the corresponding (Horizon Response JSON object) https://developers.stellar.org/api/errors/...
0
votes
2answers
50 views
How to prevent programmatic Stellar account creation
I've created an app that includes a Stellar account creation as part of he sign up process. Someone is problematically creating accounts, which keeps draining my distribution account that I use to ...
0
votes
0answers
15 views
XLM support from Stellar for my app
I've built an app call Picl:
Playstore link:
https://t.co/RUW0VnaJqD?amp=1
A stellar account is created for each user upon sign up. However, I need to fund each account, which isn't free for me.
Is ...
0
votes
1answer
22 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
29 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
3 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
9 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
13 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
30 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
51 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 ...
1
vote
0answers
40 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
52 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
2k 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
33 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
43 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
18 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
26 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
25 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
49 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
35 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
71 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
46 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
1answer
25 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 ...
1
vote
1answer
24 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
45 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
82 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
115 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
34 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
46 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
178 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
2answers
112 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 ...