I faced that I need to encode my initArg.did file into ArrayBufferLike to pass it to setupCanister Interface: SetupCanisterOptions | PicJS and I have no idea how to do it (my old topic with the same question Node.js to/from candid)
For example, init arg for icp ledger:
(
variant {
Init = record {
minting_account = "e82226d3101bd8525111e2c6501a79365f2484d82d3f2be96269b78fe200eeaa";
initial_values = vec {
record {
"8b61ff722d7e6321eb99bb607ab0cf323b3c64b43d6a13c245c8a4e197f7b38b";
record { e8s = 1_000_000_000_000_000 }
};
};
send_whitelist = vec {};
}
}
)