Skip to content

Transaction loses signer info when being sent to the server #12007

Answered by alexanderbez
areller asked this question in Q&A
Discussion options

You must be logged in to vote
	if err = tx.Sign(txf, clientCtx.GetFromName(), unsignedTx, true); err != nil {
		return nil, err
	}

	txBytes, err := clientCtx.TxConfig.TxEncoder()(unsignedTx.GetTx())
	if err != nil {
		return nil, err
	}

	return clientCtx.BroadcastTx(txBytes)

Is the correct way to do it, which is what you seem to be doing as well...so I'm not sure what's going on. Thoughts @AmauryM ?

Replies: 2 comments 8 replies

Comment options

You must be logged in to vote
7 replies
@areller
Comment options

@alexanderbez
Comment options

@areller
Comment options

@robert-zaremba
Comment options

@alexanderbez
Comment options

Answer selected by areller
Comment options

You must be logged in to vote
1 reply
@codefuturance
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants