Can't find CreateAccount transaction bytecode

Anybody know how I can get the transaction bytecode of the CreateAccount.mvir I know that a Account is created when a transaction is made to a not existent account or when you mint to a not existent account.

But how I can call the createAccount.mvir directly ? If that is possible.

Thanks in advance!


1 Like

If you run

./target/debug/compiler language/stdlib/transaction_scripts/create_account.mvir -o

from the root of the libra directory, the bytecode for the create account script will be dumped into

You can then package this bytecode into a transaction. Unfortunately, the client doesn’t have a special command to do this at the moment (unlike p2p payment and minting).


You have source code of all standard transactions as well:

(from your libra root)

1 Like

Thanks for you anwser, but the real question is how I can generate the bytecode?

Thanks for you reply! I will try this, thanks!

you can compile to Move bytecode this way after having downloaded and built the libra project:

[PROJECT_DIR]/libra/target/debug/compiler --output [OUTPUT_DIR]/xxx.mvbc [INPUT_DIR]/xxx.mvir. (xxx.mvir being a Move IR file)

1 Like