cosmjs icon indicating copy to clipboard operation
cosmjs copied to clipboard

ERROR Broadcasting transaction failed with code 7 (codespace: sdk). Log: at SigningStargateClient.broadcastTx

Open lrlazy opened this issue 2 years ago • 1 comments

use this code

import { calculateFee } from '@cosmjs/stargate';

...

const fee = calculateFee(100000, "0.1usei"); const amount = { amount: SEND_AMOUNT, denom: TOKEN_DENOM };

const sendResponse = await signingClient.sendTokens(SENDER_ADDRESS, DESTINATION_ADDRESS, [amount], fee);

lrlazy avatar Sep 06 '23 03:09 lrlazy

Can you share the full error message? Error sdk/7 is probably this one:

	// ErrInvalidAddress to doc
	ErrInvalidAddress = errorsmod.Register(RootCodespace, 7, "invalid address")

Not sure what it means in your case though

webmaster128 avatar Nov 08 '23 17:11 webmaster128