Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [go-sdk]

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

2
votes
1answer
48 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
31 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
23 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
130 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
40 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
167 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
36 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
145 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
2
votes
2answers
86 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
100 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
328 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
68 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
132 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, ...