Questions tagged [stellar-sdk]

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

Filter by
Sorted by
Tagged with
8 votes
1 answer
163 views

How to build and sign transactions without SDKs?

Following on the keypair generation thread, I am working on SDKs for different languages and I would like to build, sign and submit transactions so my question is what are the steps to do so? Let's ...
Kuyawa's user avatar
  • 1,328
7 votes
1 answer
164 views

Is there a speed difference between the SDKs?

The JavaScript Stellar SDK facilitates integration with the Stellar Horizon API server and submission of Stellar transactions, either on Node.js or in the browser. It has two main uses: querying ...
Lilynut's user avatar
  • 491
6 votes
2 answers
159 views

Testnet vs Livenet addresses

Whats the difference between testnet and livenet addresses ? Similar to bitcoin does stellar has different address scheme for testnet ?
f4r4's user avatar
  • 199
6 votes
1 answer
45 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 ...
Tzion buchris's user avatar
5 votes
1 answer
175 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 ...
pri's user avatar
  • 115
4 votes
3 answers
322 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 ...
Momentus Mitch's user avatar
4 votes
3 answers
2k views

Check wallet balance via API

How could I check Stellar wallet balance using API? For example with BTC one can check address in block explorer and see the balance. I also need to differentiate incoming transactions by MEMO. I ...
wallebach's user avatar
4 votes
1 answer
71 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 ...
Synesso's user avatar
  • 3,367
4 votes
2 answers
467 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 ...
Sharmilan's user avatar
  • 421
4 votes
1 answer
124 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 ...
John Murphy's user avatar
4 votes
1 answer
274 views

Is it possible to make a request to an account other than "Friendbot" to receive Lumens?

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
4 votes
1 answer
147 views

Monitor transactions of non-native asset

is there a convenient way to monitor all transactions/payments/operations of a custom asset? It seems like the REST API only allows this for either one account or the whole network, but not for a ...
chris_b's user avatar
  • 193
4 votes
2 answers
104 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 ...
Maxim Gaina's user avatar
4 votes
3 answers
636 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....
John Murphy's user avatar
3 votes
2 answers
169 views

create a stellar application without installing stellar core in local system

I want to create a stellar application which will have these functionality Account creation XLM Balance checking Doing Transaction XLM Receive notification I have read stellar documenation https://...
Ajit Soman's user avatar
3 votes
1 answer
1k views

TX_BAD_AUTH_EXTRA at submiting a transaction

I'm getting an error at trying to issue an asset following this schema: (issuer) An issuer account (Nano ledger) that will create and send the asset to a secondary account. (bhMain) Secondary account ...
Jesús Fuentes's user avatar
3 votes
1 answer
83 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 ...
d0x's user avatar
  • 33
3 votes
1 answer
150 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.
Prashant Gangwar's user avatar
3 votes
1 answer
131 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/...
Klaus's user avatar
  • 193
3 votes
1 answer
362 views

Stellar: How to pay the account using custom asset?

I've created accountA with a custom asset code ASTRO and trust by issuing account(AA). Next, I created another accountB with asset ASTRO trust by issuing account(AA). Now, when I tried to create a ...
Arman Ortega's user avatar
3 votes
1 answer
615 views

How to obtain our token's current price

We issued a token on Stellar using stellar API. We need to show the price of our token on our website. How we can do that? Is this available using Stellar API?
Ys3's user avatar
  • 171
3 votes
1 answer
139 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, ...
iDler's user avatar
  • 33
3 votes
2 answers
141 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 ...
Tzion buchris's user avatar
3 votes
1 answer
103 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 ...
esc758's user avatar
  • 31
2 votes
1 answer
275 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 ...
f4r4's user avatar
  • 199
2 votes
3 answers
529 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 ...
dolcalmi's user avatar
  • 143
2 votes
1 answer
354 views

How to setup time bounds for an escrow account?

I am trying to create 2-Party Multisignature Escrow Account with Time Lock & Recovery as in this ref:https://www.stellar.org/developers/guides/walkthroughs/stellar-smart-contracts.html Now, I ...
Patcharaphol Palapol's user avatar
2 votes
1 answer
131 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. ...
Rannie Ollit's user avatar
2 votes
1 answer
54 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?
Vijin's user avatar
  • 143
2 votes
2 answers
131 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, ...
Natoshi's user avatar
  • 31
2 votes
1 answer
316 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 ...
coder123's user avatar
  • 133
2 votes
1 answer
93 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 ...
Muddassar Shaikh's user avatar
2 votes
2 answers
90 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 ...
Ether's user avatar
  • 31
2 votes
1 answer
97 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 ...
Claudiu's user avatar
  • 21
2 votes
1 answer
33 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
Muhammad Hussain Rana's user avatar
2 votes
1 answer
64 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 ...
Isha Padalia's user avatar
2 votes
1 answer
529 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 ...
user2219's user avatar
2 votes
1 answer
90 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 ...
Isha Padalia's user avatar
2 votes
1 answer
184 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 ...
Deb's user avatar
  • 233
2 votes
1 answer
439 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} ...
Thanan_Jaje's user avatar
2 votes
1 answer
194 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 =...
Joze Jerse's user avatar
2 votes
0 answers
3k 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 ...
Masood Moghini's user avatar
2 votes
1 answer
216 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 ...
Sean Reimer's user avatar
2 votes
1 answer
398 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....
rohit_sethi's user avatar
2 votes
0 answers
44 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 ...
John Murphy's user avatar
2 votes
1 answer
157 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 ...
Deb's user avatar
  • 233
1 vote
1 answer
66 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 ...
istrau2's user avatar
  • 228
1 vote
1 answer
104 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
Alongkorn's user avatar
  • 113
1 vote
2 answers
266 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 ...
Paras's user avatar
  • 135
1 vote
1 answer
196 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 ...
Aaron's user avatar
  • 13