Skip to main content

Questions tagged [javascript-sdk]

For questions specifically regarding the JavaScript Software Development Kit (SDK) for Stellar client applications.

Filter by
Sorted by
Tagged with
1 vote
0 answers
28 views

I have read all the document https://developers.stellar.org/docs/learn/ but not found how to read storage data from client, such as JS client. Can anyone show me some docs or example on read contract ...
breeze wang's user avatar
2 votes
1 answer
100 views

if (window.freighterApi.isConnected()) { alert("User has Freighter!"); } const retrievePublicKey = async () => { let publicKey = ""; let error = ""; try { ...
nocodestellar's user avatar
0 votes
2 answers
61 views

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 ...
Mohinish Teja's user avatar
1 vote
0 answers
35 views

I have to handle a concurrent activation of 2 accounts. I am using a lock mechanism so that I can handle manually the sequence number. I am using bumpSequence operation to try and update the sequence ...
GioGio's user avatar
  • 183
1 vote
1 answer
71 views

Using Stellar's Javascript SDK Goal Output an array containing all the memos: ['324567567', 'anotherMemo', '239210923', '2349028509'] This array will be used to check against a database and ...
newdev's user avatar
  • 13
1 vote
0 answers
36 views

I have started my own private stellar network using the below command. docker run --rm -it -p "8000:8000" --name stellar stellar/quickstart --standalone How do I interact with it? How can I create ...
prajna's user avatar
  • 11
0 votes
1 answer
83 views

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 ...
J R's user avatar
  • 157
4 votes
1 answer
386 views

i am trying to implement stellar channel concept. i am following stellar channel link. I have created 6 channel accounts. Below is the programme i wrote var destinationId = '...
Suman Raj's user avatar
-1 votes
1 answer
34 views

I am trying to create an account on the stellar Test Network. But whenever I make a request and pass in the public key, I always get this error: I am using the Javascript documentation from here
Nik's user avatar
  • 3
1 vote
1 answer
151 views

I want to integrate stellar with a Salesforce application. and I am stuck at generating a public key and secret key. I am a little confused regarding SDKs, how can I use an SDK in the apex? Can I ...
Nik's user avatar
  • 11
1 vote
2 answers
71 views

Hi we are tying to use the node.js version of the stellar-hd-wallet in ionic-angular. However, calling the StellarHDWallet.generateMnemonic() gives the following error: ERROR in ./node_modules/...
yulemata's user avatar
  • 312
2 votes
1 answer
265 views

I am trying to issue an asset in stellar using the following code var StellarSdk = require('stellar-sdk'); StellarSdk.Network.useTestNetwork(); var server = new StellarSdk.Server('https://horizon-...
M Gopi's user avatar
  • 21
-4 votes
4 answers
134 views

Updated: added full code below. I'm trying to run the "Creating a payment transaction" example but the error I get is const account = await server.loadAccount(sourcePublicKey); ^^^^^...
Peter's user avatar
  • 1
0 votes
1 answer
57 views

I use Javascript SDK to connect to Horizon. It works, but I also would like the specific error if it doesn't work. See my code below. How can I access the specific code returned from horizon (e.g. ...
bluesky's user avatar
  • 61
0 votes
1 answer
36 views

I'm using the Javascript SDK. My objective is to get the last 10 transactions for a given account (which is working), but just show specific fields (such as the amount of lumens, and perhaps the memo),...
StellarFan's user avatar
1 vote
1 answer
102 views

I cloned the js-stellar-base and then ran 'gulp test' and it returned the following error: Using gulpfile /mnt/c/Users/Debchakra/Desktop/js-stellar-base/gulpfile.js [00:01:03] Starting 'test'... [00:...
Deb's user avatar
  • 233
2 votes
1 answer
584 views

I know that Stellar.xdr.TransactionEnvelope.fromXDR can decode data of a record called envelope_xdr. But what I do not understand is how I can get all data I need like memo, sourceAccount etc. Because ...
Tzion buchris's user avatar
3 votes
1 answer
108 views

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 ...
esc758's user avatar
  • 31
2 votes
0 answers
49 views

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 ...
John Murphy's user avatar
2 votes
1 answer
538 views

I wish to create an account on a private stellar network. The network was created using this docker image https://github.com/stellar/docker-stellar-core-horizon, with the --standalone flag. When I ...
Mahmoud Khraisha's user avatar
3 votes
1 answer
365 views

I have used the JS SDK to create a set of keys, and then send some money to it using friendbot cfr the docs to create an account (https://www.stellar.org/developers/guides/get-started/create-account....
ZaphodBBx's user avatar
5 votes
1 answer
191 views

How can I programmatically watch for change in balance for a account or just new incoming transactions? looking for js-stellar-sdk method
niksmac's user avatar
  • 243
0 votes
1 answer
48 views

Im building a bot that connects Stellar with Telegram but when I generate a new set of key pairs them don't match when I sign in stellarterm. Here is the code: var StellarSdk = require('stellar-sdk'...
Natoshi's user avatar
  • 31
4 votes
1 answer
285 views

From the documentation you can make a request using Javascript to the "Friendbot" to receive test Lumens for an account: // The SDK does not have tools for creating test accounts, so you'll have to //...
John Murphy's user avatar
3 votes
2 answers
217 views

I am developing a site as college project and I cannot seem to understand how to implement StrKey to get the public key from a transaction. I can decode the xdr but cannot seem to understand how to ...
KyleMcCann's user avatar