Error during tutorial "My first client"

Hi!

I’m trying to run this code: https://github.com/diem/my-first-client.git, with Java.
However, I’m getting an error after step 3:

#3 Create wallet
Exception in thread “main” java.lang.RuntimeException: Mint coins failed
at com.diem.Testnet.mintCoins(Testnet.java:68)
at MyDiemClient.main(MyDiemClient.java:49)
Caused by: com.diem.jsonrpc.DiemTransactionExecutionFailedException: transaction execution failed: type: “miscellaneous_error”
at com.diem.jsonrpc.DiemJsonRpcClient.waitForTransaction(DiemJsonRpcClient.java:224)
at com.diem.jsonrpc.DiemJsonRpcClient.waitForTransaction(DiemJsonRpcClient.java:198)
at com.diem.Testnet.lambda$mintCoins$0(Testnet.java:63)
at com.diem.jsonrpc.Retry.execute(Retry.java:24)
at com.diem.Testnet.mintCoins(Testnet.java:60)
… 1 more

Any ideas what the problem could be?

Code works if i change the currency code to something valid. public static final String CURRENCY_CODE = “XUS”

1 Like