- 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=0x1685cdc9a83c3da34c59208f34bddb3217f63bfbe0c393f04462d1ba06465d08
package size 494 bytes
{
"Result": {
"transaction_hash": "0x46bfa491acd2deaaf0a46554e04e57e979ca6c7d4cfda74c2efa8f2409dc686a",
"gas_used": 62,
"gas_unit_price": 1,
"sender": "1685cdc9a83c3da34c59208f34bddb3217f63bfbe0c393f04462d1ba06465d08",
"sequence_number": 0,
"success": true,
"timestamp_us": 1661656715311642,
"version": 11307262,
"vm_status": "Executed successfully"
}
}