algorand / go-algorand-sdk

Algorand Golang SDK

Home Page:https://pkg.go.dev/github.com/algorand/go-algorand-sdk/v2

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Wrong txid

yuantaowork opened this issue · comments

Wrong txid

I built a transaction, and then called <crypto.TransactionIDString(txData)>, but the result txid is wrong.
I don't know what is the problem?
The transaction is below
txData := types.Transaction{ Type: types.PaymentTx, Header: types.Header{ Sender: v.Sender, Fee: v.Fee, FirstValid: v.FirstValid, LastValid: v.LastValid, Note: v.Note, GenesisID: v.GenesisID, }, PaymentTxnFields: types.PaymentTxnFields{ Receiver: receiver, Amount: types.MicroAlgos(v.Amount), }, }

Your environment

algod : 3.4.2
algorand-go-sdk : v1.13.0

Sorry, my bad.