Open lrlazy opened 1 year ago
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
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);