Hello everyone, I am developing an application on Flutter in dart on Android Studio, using an external API with all the package of Algorand and kmd. When I use the kmd method to create a new wallet I get this error:
DioError [DioErrorType.other]: SocketException: OS Error: Connection refused, errno = 111, address = localhost, port = 57838
#0
Below I am attaching the code relating to the above error. Whenever I try to access the createWallet () function it shows up.
Future<String> createNewAddress() async {
final walletRequest = (CreateWalletRequestBuilder()
..walletName = 'wallet'
..walletPassword = 'test'
..walletDriverName = '')
.build();
final handleTokenRequest = (InitWalletHandleTokenRequestBuilder()
..walletId = 'wallet'
..walletPassword = 'test')
.build();
final keyRequest = (GenerateKeyRequestBuilder()
..displayMnemonic = true
..walletHandleToken = 'aa')
.build();
final response = await algorand.kmd.createWallet(createWalletRequest: walletRequest);
final handleToken = await algorand.kmd.initWalletHandleToken(initializeWalletHandleTokenRequest: handleTokenRequest);
final address = await algorand.kmd.generateKey(generateKeyRequest: keyRequest);
return address.toString();
}
would anyone know how to help me? Thank you !
