How do I deploy wasm file as canister

I have a wasm file generated. Outside the dfx build and I want to create a canister using that wasm build is that possible ?


I think there’s probably a more direct way now, but this example did something similar for wasm generated from C

Might have bit rotted though.

1 Like

A more recent technique is described here


Thank you claudio !
I will try them, in similar way can we do java to wasm and write idl and deploy as canister ?

echo > reverse.did


dfx deploy

dfx canister call reverse go ‘(“repaid”)’