Questions tagged [go-sdk]

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

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

History: Bad ledger-header history entry

I am running a stellar private network which is my own network. It is working fine for firing the transaction. But I have found that if I want to send transaction for particular some of accounts ...
Alex Smith's user avatar
1 vote
0 answers
22 views

Creating Trust line in Go

I am struggling to set a Trustline. Create account Send Funds to New account Set Trust for a Token Send the Token. I am having a big problem trying to get step 3 working, many online examples are ...
Cyberience's user avatar
1 vote
1 answer
32 views

golang SDK - increase limit - more than 10 results on client.ClaimableBalances

How can I set horizonclient to return more than 10 results? client := horizonclient.DefaultPublicNetClient //live balances, err := client.ClaimableBalances(horizonclient.ClaimableBalanceRequest{ ...
iateadonut's user avatar
0 votes
1 answer
52 views

golang sdk; how can I check horizon.Error.Problem

package main import ( "log" "github.com/stellar/go/clients/horizonclient" "github.com/stellar/go/keypair" ) //unfunded seed on testnet var stellar_seed = &...
iateadonut's user avatar
1 vote
0 answers
25 views

Error occurs when decoding XDR with SafeUnmarshalBase64

Error can be seen while trying to decode the stellar XDR with Golang as switch '2' is not valid enum value for union Following Go Code has been used. var txe xdr.Transaction errXDR := xdr....
YSWSL's user avatar
  • 11
0 votes
1 answer
132 views

How to generate a keypair correctly with Stellar/go?

Take test seed here: https://github.com/stellar/stellar-protocol/blob/master/ecosystem/sep-0005.md seed: "e0eec84fe165cd427cb7bc9b6cfdef0555aa1cb6f9043ff1fe986c3c8ddd22e3" correct result: m/...
User's user avatar
  • 1
2 votes
0 answers
211 views

Sponsoring a new account's inital account requirement?

The blog post here indicates that the minimum initial account balance can be sponsored: https://www.stellar.org/blog/protocol-14-improvements?locale=en However, my attempts of modifying the GO ...
AndyPrince's user avatar
1 vote
0 answers
35 views

interact with the private stellar network

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
0 answers
116 views

Problem installing the GO SDK

In https://github.com/stellar/go/tree/master/clients/horizonclient i can see that i have to execute go get but # github.com/stellar/go/price go/src/github.com/stellar/go/price/main.go:172:12: ...
supersick's user avatar
3 votes
0 answers
65 views

Delay while streaming payments with GO sdk

I want to stream all payments from stellar so I can see when I receive a payments for public keys stored in db (could be hundreds). It works fine, but when there are a lot of operations, it starts to ...
Arvi89's user avatar
  • 31
2 votes
2 answers
182 views

What is the correct way to unmarshal an encoded transaction for signing

I am looking to unmarshal a pre-built transaction envelope for signing using the new txnbuild package in the Go SDK but I'm missing a step and can't find the correct way to unmarshal. This is what I ...
Owen's user avatar
  • 207
0 votes
1 answer
246 views

Transaction failure when using Stellar Go SDK

receiving the following errors related to horizon server: handshake-1 env.sh[19791]: 2019/04/25 12:03:24 handlers.go:180: [ERR] Horizon error: "Transaction Failed". Check horizon.Error.Problem for ...
abhinav garg's user avatar
1 vote
1 answer
99 views

How to correctly generate a transaction sequence number for a private Stellar network?

I am using a private Stellar network with Horizon but struggling to get the first accounts created using the Go SDK. When attempting to create an account using the autosequence option with the client ...
Owen's user avatar
  • 207
2 votes
1 answer
445 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
1 vote
1 answer
123 views

Geting signer of a signature

Using go, how can i get the public key of a signer from a signature? I have the a TransactionEnvelopeBuilder for a transaction, which includes all signatures (https://godoc.org/github.com/stellar/go/...
Udo Polder's user avatar
1 vote
1 answer
246 views

Problem installing bitbucket.org/ww/goautoneg for Stellar go using dep ensure -v

I'm considering contributing to https://github.com/stellar/go and have pulled the repo and am trying to install dependencies using dep ensure -v Checking I see It looks like mercurial is a dependency ...
John Whitton's user avatar
4 votes
2 answers
473 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
-2 votes
1 answer
103 views

Dynamic amount of operation

How can I add multiple operations in one transaction using the Go SDK? I am trying to add a dynamic amount of payment operations under 1 transaction and that seems to be not possible in Go as it's ...
Sharmilan's user avatar
  • 421
0 votes
3 answers
361 views

Muliti Signature with hash(x) in goLang SDK

I have a stellar account say "ACCOUNT1" with the following attributes: MasterWeight = 2 Threshold [ 1, 2, 3] Signers: Masterkey with weight 2 ed25519_public_key with weight 1 (say ACCOUNT2) ...
Malavan's user avatar
4 votes
1 answer
62 views

Notify every new ledger

How I can get notify (like newblockinfo in bitcoin or getlastblock in ethereum or bitcoin) on new ledger in blockchain with go-sdk
frankegoesdown's user avatar
1 vote
3 answers
346 views

How to sign transaction offline with go sdk?

I need to build transaction on machine with internet via go sdk and then sign it on offline machine
frankegoesdown's user avatar
3 votes
2 answers
132 views

Setting Data with the Go SDK

I recently started using the Go SDK to interact with the horizon testnet. I am able to read data from the account key/value store using the func (*Account) GetData method: stellarAcc, err := client....
mecavity's user avatar
1 vote
1 answer
140 views

How could I create an AutoSequence in a private testnet with the golang SDK?

With the DefaultTestNetClient implementing the SequenceProvider interface, when we use a private testnet, how would we need to implement this since without it (I guess) transactions cannot be ...
ZeroGraviti's user avatar
2 votes
2 answers
499 views

tx_bad_seq error when creating account with the root account of Stellar private network

I constructed the Stellar private network on my Mac following https://www.stellar.org/developers/stellar-core/software/admin.html#starting-a-new-network with postgres and horizon server. I know what ...
Eugene Chung's user avatar
1 vote
1 answer
120 views

How can I build a transaction with a dynamic list of mutators or operations using the Go SDK?

I'm trying to submit many operations in a single transaction that are built up dynamically. How can I convert these operations to a Stellar Transaction? Please provide code samples if possible.
nikhils's user avatar
  • 1,080
2 votes
1 answer
187 views

How to access the "All Operations" Horizon endpoint using the Go SDK?

I'm working on an inflation pool, using the go SDK. However the client/horizon package doesn't expose all the horizon endpoints (the Client Interface only has Root, HomeDomainForAccount, LoadAccount, ...
matheusb.comp's user avatar