Skip to content

[Erro create transaction with multi singature] #96

Closed Answered by GabrielePicco
Mehrdadgame asked this question in Q&A
Discussion options

You must be logged in to vote

@Mehrdadgame couple of issues, ownerAccount and initialAccount have empty private keys, that will fail when signing.

Build method won't work for the same reason, if using an external wallet you should use Web3.Wallet.SignAndSendTransaction that will trigger the wallet signature.

Should be something like:

var blockHash = await Web3.Wallet.ActiveRpcClient.GetRecentBlockHashAsync();
Debug.Log($"{blockHash.Result.Value.Blockhash}");

Account mintAccount = Web3.Wallet.Account;
Debug.Log($"MintAccount: {mintAccount}");
Account ownerAccount = new Account();
Debug.Log($"OwnerAccount: {ownerAccount}");
Account initialAccount = new Account();
Debug.Log($"InitialAccount: {initialAccount}");

var tx…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by GabrielePicco
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
bug Something isn't working
2 participants
Converted from issue

This discussion was converted from issue #95 on May 06, 2023 11:46.