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
1answer
24 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 ...
0
votes
1answer
53 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 ...
1
vote
1answer
46 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 ...
2
votes
1answer
168 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} ...
1
vote
1answer
59 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/...
1
vote
1answer
59 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 ...
4
votes
2answers
219 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 ...
-1
votes
1answer
54 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 ...
0
votes
3answers
208 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) ...
4
votes
1answer
44 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
1
vote
3answers
195 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
3
votes
2answers
113 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....
1
vote
1answer
119 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 ...
2
votes
2answers
407 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 ...
1
vote
1answer
78 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.
2
votes
1answer
152 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, ...