- Aptos Env
- Move Module by Aptos CLI
- Move Module by RPC
- Publish
- Call module
First, you need to install Aptos-core & install Aptos command line tool
Second, you need to config Aptos command line tool, reference Use Aptos CLI
You can create account, query account, build & publish & running Move function with Aptos CLI, referenceUse Aptos CLI
aptos move publish --package-dir . --named-addresses NamedAddr=0x5e7f8779c8c26ec3cbba37337142b2aaa2291b4779f4b386a0de83da177df510
package size 1660 bytes
{
"Result": {
"transaction_hash": "0xec24b2c091d0c02a55a2caa223e9883fa10bfb62a920967b0b694dcebe14e61b",
"gas_used": 189,
"gas_unit_price": 1,
"sender": "5e7f8779c8c26ec3cbba37337142b2aaa2291b4779f4b386a0de83da177df510",
"sequence_number": 0,
"success": true,
"timestamp_us": 1661650597217213,
"version": 10901294,
"vm_status": "Executed successfully"
}
}