7 votes
Accepted

How to build and sign transactions without SDKs?

The best thing to do is to look at one of the official libraries and use them as guide. I can give you an high-level overview of the steps required to implement the base library to interact with ...
user avatar
  • 1,366
6 votes
Accepted

How to let users decide between transactions

The same sequence number is the solution for this case. I also had the similar issue setting up same sequence number for multiple transactions, here's a sample js sdk code I used to set same sequence ...
user avatar
6 votes
Accepted

Testnet vs Livenet addresses

Addresses are the same no matter what network you are on. Transaction hashes are different, however. (The transaction hash pre-image is formed by taking the network ID, and appending the transaction ...
user avatar
  • 1,947
5 votes
Accepted

Is there a speed difference between the SDKs?

I hadn't run any benchmarks myself, but you can estimate the performance based on the few parameters. Cryptography Cryptography is the most CPU-consumptional part of SDK. Stellar JS SDK depends on ...
user avatar
  • 6,826
5 votes
Accepted

Extra 0 byte at end of MemoText String

I believe that is the extra padding bytes set so that the length is a multiple of 4. From the RFC 4506 (a.k.a. the XDR Spec): The standard defines a string of n (numbered 0 through n-1) ASCII bytes ...
user avatar
  • 1,366
5 votes

Understanding the flow of stellar with federation server

Your client will use the federated address as a destination in their wallet software, the wallet will call your server and get the account info + memo when the client wants to send funds to you.
user avatar
  • 1,947
4 votes

Check wallet balance via API

As far as I know, there is no single endpoint in horizon API that allows you to check the account's balance and/ or filtered by memo at the same time. If you want to differentiate incoming ...
user avatar
  • 212
4 votes
Accepted

create a stellar application without installing stellar core in local system

To create accounts you create a transaction containing a createAccount operation. https://www.stellar.org/developers/guides/concepts/list-of-operations.html#create-account Friendbot is only there to ...
user avatar
  • 1,947
4 votes
Accepted

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

var StellarBase = require('stellar-base'); var jsxdr = require('js-xdr'); let signers = new jsxdr.VarArray(StellarBase.xdr.Signer, 20) .fromXDR('AAAAAQAAAAC+GwdMJxaEbnW0z0RP6jJvTg+s8mjVw7+...
user avatar
3 votes
Accepted

How to Build transaction XDR before sign it

I'm just going to guess here, since I don't do golang, but if you look at what Sign does, can't you just copy that implementation yourself, and skip the signing part? I.e., func (b *...
user avatar
  • 1,947
3 votes

Muliti Signature with hash(x) in goLang SDK

It looks like the SignatureHint for hash(x) in your transaction is invalid. Signature hint for hash(x) is the 4 last bytes of the hash, not the preimage. Fix required around: Hint: xdr.SignatureHint(...
user avatar
3 votes
Accepted

How to use the Stellar SDK API Reference?

The SDK reference documentation is built automatically from the sources using JS Doc format parser, so it doesn't contain the detailed information and usage examples, only methods descriptions ...
user avatar
  • 6,826
3 votes

Check wallet balance via API

Just pick a horizon server to query (e.g., https://horizon.stellar.org/). Then for account balances you want the Account endpoint, which you can query like this: curl https://horizon.stellar.org/...
user avatar
  • 1,221
3 votes
Accepted

How do I locally manage sequence no of an account?

createAccount is an operation that you can include in a transaction. It works like a payment from your account to the account specified in the operation. But it has a side-effect of creating the ...
user avatar
  • 3,357
3 votes
Accepted

How do I generate an xPub using stellar SDK?

You can't generate xPub for Stellar keys according to SEP-0005. Stellar is using SLIP-0010 (as defined in SEP-0005). From "Master key generation" section: ed25519 curve the private keys are no ...
user avatar
3 votes
Accepted

How to check Trustline Authorized Flag?

The operations-for-account endpoint will list all operations for that specific account incl. changes to the trustlines. If you scroll to the bottom on this stellar laboratory page (after clicking ...
user avatar
3 votes

How to setup time bounds for an escrow account?

Time bounds are part of the transaction itself, and are added in the Java SDK using the addTimeBounds method. https://stellar.github.io/java-stellar-sdk/org/stellar/sdk/Transaction.Builder.html#...
user avatar
  • 1,174
3 votes

TX_BAD_AUTH_EXTRA at submiting a transaction

So I finally found out what was the problem. The thresholds weren't set correctly. I leave here the correct ones: setOptions({ setFlags: 3, // Operation.AuthFlags.Required | Operation.AuthFlags....
user avatar
3 votes
Accepted

monitoring stellar

If I understood your correctly, you want to track payments for an account. It's quite simple, streaming allows you to listen for payments/transactions. Using JS SDK: const {Server} = require('...
user avatar
  • 6,826
3 votes
Accepted

Custom assets balance of sender is not updating in stellar

The asset issuer is different. The account has a balance of FOC-GDK... tokens, but the payment was a FOC-GD5... token payment. Since the trustline is for FOC-GD5... and the payment is also originated ...
user avatar
  • 2,499
3 votes
Accepted

How can I validate a stellar address in Python?

check this out: https://github.com/StellarCN/py-stellar-base/blob/6329db3658c9b646a69c567019d95b41b7363eee/stellar_base/utils.py#L251 def is_valid_address(address): try: return decode_check('...
user avatar
  • 1,581
3 votes
Accepted

what is the max number of operations per 1 transaction?

Transactions contain an arbitrary list of operations inside them. Typically there is just one operation, but it’s possible to have multiple (up to 100). This is the documentation I believe you're ...
user avatar
  • 488
2 votes
Accepted

How to obtain our token's current price

Get the orderbook for the pair you want to know the price like XLM/YOURTOKEN then get the first ask and bid from the list of results, from there you can calculate the average or use the lowest asking ...
user avatar
  • 1,288
2 votes

Monitor transactions of non-native asset

You could use the all effects endpoint in streaming mode, and programmatically filter trading and trustline effects that involve the target asset.
user avatar
  • 3,357
2 votes
Accepted

Stellar: How to pay the account using custom asset?

To make your case work: First, use accountB to trust "ASTRO"(issued by accountA), and sign with accountB. This means that now accountA recognizes ASTRO. Then, you may send this ASTRO(by ...
user avatar
  • 1,517
2 votes

Testnet vs Livenet addresses

I think both live and test use same schema to generate addresses https://stellar.github.io/js-stellar-sdk/Keypair.html
user avatar
2 votes
Accepted

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

There is an operation called createAccount, and it's used to activate accounts with a starting balance. In fact all friendbot does is exactly what you are saying (it has a base account with a large ...
user avatar
  • 1,174
2 votes

Stellar Java SDK: Retrieve Account Data

Yes you can use a CallBuilder to retrieve the account object: const server = new StellarSdk.Server('https://horizon.stellar.org') const callBuilder = server.accounts.accountId(${myPublicKey}) const ...
user avatar
2 votes
Accepted

Stellar all address has no data

Maybe due to yesterday's scheduled cleanup. After clean up all the data's that are stored in the testnetwork will be removed permanently. Anyway the custom asset details will be not shown in issuer ...
user avatar
  • 421
2 votes

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

There is a good explanation on how to query the total supply of an asset created by an entity on Stellar's DEX here. Once you have the result from the trustline query, you would iterate over all the ...
user avatar
  • 455

Only top scored, non community-wiki answers of a minimum length are eligible