My setting is like below
This is my code
const {
Client,
PrivateKey,
Hbar,
AccountId,
AccountCreateTransaction,
} = require("@hashgraph/sdk");
async function main() {
//Create your local client
const node = {"127.0.0.1:50211": new AccountId(3)}
const client = Client.forNetwork(node).setMirrorNetwork("127.0.0.1:5600");
//Set the transaction fee paying account
client.setOperator(AccountId.fromString("0.0.2"),PrivateKey.fromString("302e020100300506032b65700..."));
//Submit a transaction to your local node
const newAccount = await new AccountCreateTransaction()
.setKey(PrivateKey.fromString("302e020100300506032b65700..."))
.setInitialBalance(new Hbar(316))
.execute(client);
//Get receipt
const receipt = await newAccount.getReceipt(client);
//Get the account ID
const newAccountId = receipt.accountId;
console.log(newAccountId);
}
void main();
After I dwongraded docker-compose, when I run the code this error is occured.
How can I fix it?
The result have to be lik this
The new Error enter image description here