moduleMyModule { import 0x0.LibraCoin;// The identity function for coins: takes a LibraCoin.T as input and hands it back public id(c: LibraCoin.T): LibraCoin.T { return move(c); }}
usage:<command><args>Usethefollowingcommands:account|aAccountoperationsquery|qQueryoperationstransfer|transferb|t|tb<sender_account_address>|<sender_account_ref_id> <receiver_account_address>|<receiver_account_ref_id> <number_of_coins> [gas_unit_price_in_micro_libras (default=0)] [max_gas_amount_in_micro_libras (default 100000)] Suffix 'b' is for blocking.
Transfercoins (in libra) from account to another.devLocalMovedevelopmenthelp|hPrintsthishelpquit|q!ExitthisclientPlease,inputcommands:libra%
接下来我们就可以通过命令行和libra进行交互了。
创建账号并送测试币
之前的文章我们也讲到了怎么创建账号,这里直接列命令:
libra%accountcreate>> Creating/retrieving next account from walletCreated/retrievedaccount#0 address 810abcc08dbed34ea15d7eb261b8001da6a62d72acdbf87714dd243a175f9b62libra%accountmintb0100>> Minting coinswaiting....transactionisstored!Finishedminting!