Im struggling in signing and broadcasting trx transactions
creating transaction with here https://github.com/Amirilidan78/tron-wallet/blob/main/transaction.go#L16 https://developers.tron.network/reference/createtransaction
and signing my transaction locally with address private key https://github.com/Amirilidan78/tron-wallet/blob/main/transaction.go#L53
and then creating a struct for broadcasting transaction here as tron api mentioned https://github.com/Amirilidan78/tron-wallet/blob/main/transaction.go#L71 https://developers.tron.network/reference/broadcasttransaction
and after broadcasting transaction getting this error
code : SIGERROR
message ERROR index 0
am I signing transaction wrong ? or broadcasting is a bad way I checked trust wallet core singing and broadcasting method and I am doing the same https://github.com/trustwallet/wallet-core/blob/master/src/Tron/Signer.cpp#L204 I know I can import C classes and sign transaction with it but I want to make my repository independent from C code.
any one has any idea ? or send me a repository that is making trx transfer transaction in golang lang
you can clone rep here and run go run ./cmd
to get error your self, rep is using shasta test network.
im trying to make a trx transfer transaction in golang and facing error in broadcasting transaction
send me a rep that is using golang for submitting transaction or help me to fix my error