account
sign
— sign a transaction using walletsign-message
— sign a personal message using walletverify-message
— check if message was signed by addressaddress
— get wallet address and optionally private keycreate
— create a wallet by a private key or generate a new one
spend
— send coins to another account or contractname
contract
compile
— compile a contract to get bytecodeencode-calldata
— encode calldata for contract calldecode-call-result
— decode contract call resultcall
— execute a function of the contractdeploy
— deploy a contract on the chain
oracle
create
— register current account as oracleextend
— extend oracle's time to leavecreate-query
— create an oracle queryrespond-query
— respond to an oracle query
chain
inspect
— get details of a node entitytx
spend
— build spend transactionname-preclaim
— build name preclaim transactionname-claim
— build name claim transactionname-update
— build name update transactionname-transfer
— build name transfer transactionname-revoke
— build name revoke transactioncontract-deploy
— build contract deploy transactioncontract-call
— build contract call transactionoracle-register
— build oracle register transactionoracle-extend
— build oracle extend transactionoracle-post-query
— build oracle post query transactionoracle-respond
— build oracle respond transactionverify
— verify transaction using node
config
— print the current sdk configurationselect-node
— specify node to use in other commandsselect-compiler
— specify compiler to use in other commands
aecli account sign [options] <wallet_path> <tx>
Sign a transaction using wallet. Useful in offline signing scheme.
-u, --url [nodeUrl]
Node to connect to (default: mainnet, env: AECLI_NODE_URL).
-f, --force
Ignore node version compatibility check.
--networkId [networkId]
Network id.
-P, --password [password]
Wallet Password, may be recorded to shell history (env: AECLI_WALLET_PASSWORD).
--json
Print result in json format.
$ aecli account sign ./wallet.json tx_+FoMAaEBzqet5HDJ+Z2dTkAIgKhvHUm7REti8Rqeu2S7z+tz/vOhARX7Ovvi4N8rfRN/Dsvb2ei7AJ3ysIkBrG5pnY6qW3W7iQVrx14tYxAAAIYPUN430AAAKoBebL57
aecli account sign-message [options] <wallet_path> [data...]
Sign a personal message using wallet.
--filePath [path]
Specify the path to the file for signing (ignore "data" argument and use file instead).
-P, --password [password]
Wallet Password, may be recorded to shell history (env: AECLI_WALLET_PASSWORD).
--json
Print result in json format.
$ aecli account sign-message ./wallet.json 'message to sign'
aecli account verify-message [options] <address> <hexSignature> [data...]
Check if message was signed by address.
--filePath [path]
Specify the path to the file (ignore "data" argument and use file instead).
--json
Print result in json format.
$ aecli account verify-message ak_21A27UVVt3hDkBE5J7rhhqnH5YNb4Y1dqo4PnSybrH85pnWo7E f2f268f195d4747568f38f9efd36e72606dc356c0b8db9fdfae5f1f9c207dbc354c57c29397837d911516aef184b0ddbed7d16d77caf9ffb3f42fe2bcc15c30e 'message to sign'
aecli account address [options] <wallet_path>
Get wallet address and optionally private key.
--privateKey
Print private key.
--forcePrompt
Force prompting.
-P, --password [password]
Wallet Password, may be recorded to shell history (env: AECLI_WALLET_PASSWORD).
--json
Print result in json format.
$ aecli account address ./wallet.json # show only public key
$ aecli account address ./wallet.json --privateKey # show public key and private key
aecli account create [options] <wallet_path> [privkey]
Create a password-encrypted wallet by a secret key. Secret key can be provided in options, or cli will generate one. This command creates ethereum-like keyfile.
wallet_path
privkey
Secret key as 64-bytes encoded as hex.
--overwrite
Overwrite if exist.
-P, --password [password]
Wallet Password, may be recorded to shell history (env: AECLI_WALLET_PASSWORD).
--json
Print result in json format.
$ aecli account create ./wallet.json
$ aecli account create ./wallet.json 9ebd7beda0c79af72a42ece3821a56eff16359b6df376cf049aee995565f022f840c974b97164776454ba119d84edc4d6058a8dec92b6edc578ab2d30b4c4200
aecli spend [options] <wallet> <receiver> <amount>
Sends coins to another account or contract.
wallet
A path to wallet file.
receiver
Address or name of recipient account.
amount
Amount of coins to send in aettos/ae (example: 1.2ae), or percent of sender balance (example: 42%).
--payload [payload]
Transaction payload as text (default: "").
-F, --fee [fee]
Override the transaction fee.
-T, --ttl [ttl]
Validity of the transaction in number of keyblocks, or without this limit if 0 (default: 3).
-N, --nonce [nonce]
Override the nonce that the transaction is going to be sent with.
-u, --url [nodeUrl]
Node to connect to (default: mainnet, env: AECLI_NODE_URL).
-P, --password [password]
Wallet Password, may be recorded to shell history (env: AECLI_WALLET_PASSWORD).
-f, --force
Ignore node version compatibility check.
--json
Print result in json format.
$ aecli spend ./wallet.json ak_21A27UVVt3hDkBE5J7rhhqnH5YNb4Y1dqo4PnSybrH85pnWo7E 100
$ aecli spend ./wallet.json example-name.chain 1.23ae
$ aecli spend ./wallet.json ak_21A27UVVt3hDkBE5J7rhhqnH5YNb4Y1dqo4PnSybrH85pnWo7E 20% --ttl 20
aecli name full-claim [options] <wallet_path> <name>
Claim an AENS name in a single command. This command signs and sends a pre-claim transaction and waits until one block gets mined. After that, it sends a claim transaction. At the end, the update transaction is submitted, making a name point to the current account.
A name in arguments should end with ".chain". Be careful, shorter names are more expensive. If the name is shorter than 13 characters (without ".chain") then it won't be claimed immediately but would start an auction instead.
--nameFee [nameFee]
Amount of coins to pay for name.
--nameTtl [nameTtl]
Validity of name. (default: 180000).
--clientTtl [clientTtl]
A suggestion measured in seconds on how long clients should cache name pointers (default: 1 hour).
-u, --url [nodeUrl]
Node to connect to (default: mainnet, env: AECLI_NODE_URL).
-T, --ttl [ttl]
Validity of the transaction in number of keyblocks, or without this limit if 0 (default: 3).
-F, --fee [fee]
Override the transaction fee.
--nonce [nonce]
Override the nonce that the transaction is going to be sent with.
-P, --password [password]
Wallet Password, may be recorded to shell history (env: AECLI_WALLET_PASSWORD).
-f, --force
Ignore node version compatibility check.
--json
Print result in json format.
$ aecli name full-claim ./wallet.json example-name.chain
aecli name pre-claim [options] <wallet_path> <name>
Pre-claim an AENS name. The name should be claimed after one key block since the pre-claim gets mined. This command sends a pre-claim transaction, and outputs a salt that needs to be provided to aecli name claim
.
A name in arguments should end with ".chain". Be careful, shorter names are more expensive. If the name is shorter than 13 characters (without ".chain") then it won't be claimed immediately but would start an auction instead.
-u, --url [nodeUrl]
Node to connect to (default: mainnet, env: AECLI_NODE_URL).
-T, --ttl [ttl]
Validity of the transaction in number of keyblocks, or without this limit if 0 (default: 3).
-F, --fee [fee]
Override the transaction fee.
--nonce [nonce]
Override the nonce that the transaction is going to be sent with.
-P, --password [password]
Wallet Password, may be recorded to shell history (env: AECLI_WALLET_PASSWORD).
-f, --force
Ignore node version compatibility check.
--json
Print result in json format.
$ aecli name pre-claim ./wallet.json example-name.chain
aecli name claim [options] <wallet_path> <name> <salt>
Claim an AENS name, it requires a salt provided by aecli name pre-claim
.
A name in arguments should end with ".chain". Be careful, shorter names are more expensive. If the name is shorter than 13 characters (without ".chain") then it won't be claimed immediately but would start an auction instead.
--nameFee [nameFee]
Amount of coins to pay for name.
-u, --url [nodeUrl]
Node to connect to (default: mainnet, env: AECLI_NODE_URL).
-T, --ttl [ttl]
Validity of the transaction in number of keyblocks, or without this limit if 0 (default: 3).
-F, --fee [fee]
Override the transaction fee.
--nonce [nonce]
Override the nonce that the transaction is going to be sent with.
-P, --password [password]
Wallet Password, may be recorded to shell history (env: AECLI_WALLET_PASSWORD).
-f, --force
Ignore node version compatibility check.
--json
Print result in json format.
$ aecli name claim ./wallet.json example-name.chain 12327389123
aecli name bid [options] <wallet_path> <name> <nameFee>
Bid on name in auction.
wallet_path
name
nameFee
Amount of coins to pay for name.
-u, --url [nodeUrl]
Node to connect to (default: mainnet, env: AECLI_NODE_URL).
-T, --ttl [ttl]
Validity of the transaction in number of keyblocks, or without this limit if 0 (default: 3).
-F, --fee [fee]
Override the transaction fee.
--nonce [nonce]
Override the nonce that the transaction is going to be sent with.
-P, --password [password]
Wallet Password, may be recorded to shell history (env: AECLI_WALLET_PASSWORD).
-f, --force
Ignore node version compatibility check.
--json
Print result in json format.
$ aecli name bid ./wallet.json example-name.chain 4.2ae
aecli name update [options] <wallet_path> <name> [addresses...]
Update a name pointer.
--extendPointers
Extend pointers (default: false).
--nameTtl [nameTtl]
A number of blocks until name expires (default: 180000).
--clientTtl [clientTtl]
A suggestion measured in seconds on how long clients should cache name pointers (default: 1 hour).
-u, --url [nodeUrl]
Node to connect to (default: mainnet, env: AECLI_NODE_URL).
-T, --ttl [ttl]
Validity of the transaction in number of keyblocks, or without this limit if 0 (default: 3).
-F, --fee [fee]
Override the transaction fee.
--nonce [nonce]
Override the nonce that the transaction is going to be sent with.
-P, --password [password]
Wallet Password, may be recorded to shell history (env: AECLI_WALLET_PASSWORD).
-f, --force
Ignore node version compatibility check.
--json
Print result in json format.
$ aecli name update ./wallet.json example-name.chain ct_6y3N9KqQb74QsvR9NrESyhWeLNiA9aJgJ7ua8CvsTuGot6uzh
aecli name extend [options] <wallet_path> <name> [nameTtl]
Extend name TTL.
wallet_path
name
nameTtl
A number of blocks until name expires (default: 180000).
--clientTtl [clientTtl]
A suggestion measured in seconds on how long clients should cache name pointers (default: 1 hour).
-u, --url [nodeUrl]
Node to connect to (default: mainnet, env: AECLI_NODE_URL).
-T, --ttl [ttl]
Validity of the transaction in number of keyblocks, or without this limit if 0 (default: 3).
-F, --fee [fee]
Override the transaction fee.
--nonce [nonce]
Override the nonce that the transaction is going to be sent with.
-P, --password [password]
Wallet Password, may be recorded to shell history (env: AECLI_WALLET_PASSWORD).
-f, --force
Ignore node version compatibility check.
--json
Print result in json format.
$ aecli name extend ./wallet.json example-name.chain 180000
aecli name revoke [options] <wallet_path> <name>
Revoke an AENS name. After that nobody will be able to claim it again. This action is irreversible!
-u, --url [nodeUrl]
Node to connect to (default: mainnet, env: AECLI_NODE_URL).
-T, --ttl [ttl]
Validity of the transaction in number of keyblocks, or without this limit if 0 (default: 3).
-F, --fee [fee]
Override the transaction fee.
--nonce [nonce]
Override the nonce that the transaction is going to be sent with.
-P, --password [password]
Wallet Password, may be recorded to shell history (env: AECLI_WALLET_PASSWORD).
-f, --force
Ignore node version compatibility check.
--json
Print result in json format.
$ aecli name revoke ./wallet.json example-name.chain
aecli name transfer [options] <wallet_path> <name> <address>
Transfer a name to another account.
-u, --url [nodeUrl]
Node to connect to (default: mainnet, env: AECLI_NODE_URL).
-T, --ttl [ttl]
Validity of the transaction in number of keyblocks, or without this limit if 0 (default: 3).
-F, --fee [fee]
Override the transaction fee.
--nonce [nonce]
Override the nonce that the transaction is going to be sent with.
-P, --password [password]
Wallet Password, may be recorded to shell history (env: AECLI_WALLET_PASSWORD).
-f, --force
Ignore node version compatibility check.
--json
Print result in json format.
$ aecli name transfer ./wallet.json example-name.chain ak_21A27UVVt3hDkBE5J7rhhqnH5YNb4Y1dqo4PnSybrH85pnWo7E
aecli contract compile [options] <file>
Compile a contract to get bytecode.
--compilerUrl [compilerUrl]
Compiler to connect to (default: stable compiler, env: AECLI_COMPILER_URL).
-f, --force
Ignore node version compatibility check.
--json
Print result in json format.
$ aecli contract compile ./contract.aes
aecli contract encode-calldata [options] <fn> [args]
Encode calldata for contract call.
fn
args
JSON-encoded arguments array of contract call (default: []).
-d, --descrPath [descrPath]
Path to contract descriptor file.
--contractSource [contractSource]
Contract source code file name.
--contractAci [contractAci]
Contract ACI file name.
--compilerUrl [compilerUrl]
Compiler to connect to (default: stable compiler, env: AECLI_COMPILER_URL).
-f, --force
Ignore node version compatibility check.
--json
Print result in json format.
$ aecli contract encode-calldata --descrPath ./contract.aes.deploy.229e.json sum '[1, 2]'
$ aecli contract encode-calldata --contractSource ./contract.aes sum '[1, 2]'
$ aecli contract encode-calldata --contractAci ./contract.json sum '[1, 2]'
aecli contract decode-call-result [options] <fn> <encoded_result>
Decode contract call result.
-d, --descrPath [descrPath]
Path to contract descriptor file.
--contractSource [contractSource]
Contract source code file name.
--contractAci [contractAci]
Contract ACI file name.
--compilerUrl [compilerUrl]
Compiler to connect to (default: stable compiler, env: AECLI_COMPILER_URL).
-f, --force
Ignore node version compatibility check.
--json
Print result in json format.
$ aecli contract decode-call-result --descrPath ./contract.aes.deploy.229e.json test cb_DA6sWJo=
$ aecli contract decode-call-result --contractSource ./contract.aes test cb_DA6sWJo=
$ aecli contract decode-call-result --contractAci ./contract.json test cb_DA6sWJo=
aecli contract call [options] <fn> [args] [wallet_path]
Execute a function of the contract.
fn
Name of contract entrypoint to call.
args
JSON-encoded arguments array of contract call (default: []).
wallet_path
Path to secret storage file, not needed to make a static call.
--contractAddress [contractAddress]
Contract address to call.
-s, --callStatic
Estimate the return value, without making a transaction on chain.
-t, --topHash
Hash of block to make call.
-d, --descrPath [descrPath]
Path to contract descriptor file.
--contractSource [contractSource]
Contract source code file name.
--contractAci [contractAci]
Contract ACI file name.
-u, --url [nodeUrl]
Node to connect to (default: mainnet, env: AECLI_NODE_URL).
-P, --password [password]
Wallet Password, may be recorded to shell history (env: AECLI_WALLET_PASSWORD).
-G, --gas [gas]
Amount of gas to call/deploy the contract.
--gasPrice [gasPrice]
Gas price to call/deploy the contract (default: based on network demand).
-N, --nonce [nonce]
Override the nonce that the transaction is going to be sent with.
-a, --amount [amount]
Amount of coins to send (default: 0ae).
-F, --fee [fee]
Override the transaction fee.
-T, --ttl [ttl]
Validity of the transaction in number of keyblocks, or without this limit if 0 (default: 3).
--compilerUrl [compilerUrl]
Compiler to connect to (default: stable compiler, env: AECLI_COMPILER_URL).
-f, --force
Ignore node version compatibility check.
--json
Print result in json format.
$ aecli contract call ./wallet.json sum '[1, 2]' --descrPath ./contract.aes.deploy.229e.json
$ aecli contract call ./wallet.json sum '[1, 2]' --contractAddress ct_6y3N9KqQb74QsvR9NrESyhWeLNiA9aJgJ7ua8CvsTuGot6uzh --callStatic
$ aecli contract call ./wallet.json sum '[1, 2]' --descrPath ./contract.aes.deploy.229e.json --gas 2222222 --nonce 4 --ttl 1243
aecli contract deploy [options] <wallet_path> [args]
Deploy a contract on the chain and create a deployment descriptor with the contract information that can be used to invoke the contract later on. The generated descriptor will be made in the same folder of the contract source file or at the location provided in descrPath
. Multiple deploys of the same contract file will generate different deploy descriptors.
wallet_path
args
JSON-encoded arguments array of contract call (default: []).
--contractBytecode [contractBytecode]
Contract bytecode file name.
-d, --descrPath [descrPath]
Path to contract descriptor file.
--contractSource [contractSource]
Contract source code file name.
--contractAci [contractAci]
Contract ACI file name.
-u, --url [nodeUrl]
Node to connect to (default: mainnet, env: AECLI_NODE_URL).
-P, --password [password]
Wallet Password, may be recorded to shell history (env: AECLI_WALLET_PASSWORD).
-G, --gas [gas]
Amount of gas to call/deploy the contract.
--gasPrice [gasPrice]
Gas price to call/deploy the contract (default: based on network demand).
-N, --nonce [nonce]
Override the nonce that the transaction is going to be sent with.
-a, --amount [amount]
Amount of coins to send (default: 0ae).
-F, --fee [fee]
Override the transaction fee.
-T, --ttl [ttl]
Validity of the transaction in number of keyblocks, or without this limit if 0 (default: 3).
--compilerUrl [compilerUrl]
Compiler to connect to (default: stable compiler, env: AECLI_COMPILER_URL).
-f, --force
Ignore node version compatibility check.
--json
Print result in json format.
$ aecli contract deploy ./wallet.json --contractSource ./contract.aes '[1, 2]'
$ aecli contract deploy ./wallet.json --descrPath ./contract.aes.deploy.229e.json --gas 2222222
$ aecli contract deploy ./wallet.json --contractBytecode ./contract.txt --contractAci ./contract.json
aecli oracle create [options] <wallet_path> <queryFormat> <responseFormat>
Register current account as oracle.
--oracleTtl [oracleTtl]
Relative oracle time to leave (default: 500).
--queryFee [queryFee]
Oracle query fee (default: 0).
-P, --password [password]
Wallet Password, may be recorded to shell history (env: AECLI_WALLET_PASSWORD).
-T, --ttl [ttl]
Validity of the transaction in number of keyblocks, or without this limit if 0 (default: 3).
-F, --fee [fee]
Override the transaction fee.
--nonce [nonce]
Override the nonce that the transaction is going to be sent with.
-u, --url [nodeUrl]
Node to connect to (default: mainnet, env: AECLI_NODE_URL).
-f, --force
Ignore node version compatibility check.
--json
Print result in json format.
$ aecli oracle create ./wallet.json string string
aecli oracle extend [options] <wallet_path> <oracleTtl>
Extend oracle's time to leave.
-P, --password [password]
Wallet Password, may be recorded to shell history (env: AECLI_WALLET_PASSWORD).
-T, --ttl [ttl]
Validity of the transaction in number of keyblocks, or without this limit if 0 (default: 3).
-F, --fee [fee]
Override the transaction fee.
--nonce [nonce]
Override the nonce that the transaction is going to be sent with.
-u, --url [nodeUrl]
Node to connect to (default: mainnet, env: AECLI_NODE_URL).
-f, --force
Ignore node version compatibility check.
--json
Print result in json format.
$ aecli oracle extend ./wallet.json 200
aecli oracle create-query [options] <wallet_path> <oracleId> <query>
Create an oracle query.
--responseTtl [responseTtl]
Relative query response time to leave (default: 10).
--queryTtl [queryTtl]
Relative query time to leave (default: 10).
--queryFee [queryFee]
Oracle query fee (default: 0).
-P, --password [password]
Wallet Password, may be recorded to shell history (env: AECLI_WALLET_PASSWORD).
-T, --ttl [ttl]
Validity of the transaction in number of keyblocks, or without this limit if 0 (default: 3).
-F, --fee [fee]
Override the transaction fee.
--nonce [nonce]
Override the nonce that the transaction is going to be sent with.
-u, --url [nodeUrl]
Node to connect to (default: mainnet, env: AECLI_NODE_URL).
-f, --force
Ignore node version compatibility check.
--json
Print result in json format.
$ aecli oracle create-query ./wallet.json ok_2a1j2Mk9YSmC1gioUq4PWRm3bsv887MbuRVwyv4KaUGoR1eiKi WhatTheWeatherIs?
aecli oracle respond-query [options] <wallet_path> <queryId> <response>
Respond to an oracle query.
--responseTtl [responseTtl]
Query response time to leave (default: 10).
-P, --password [password]
Wallet Password, may be recorded to shell history (env: AECLI_WALLET_PASSWORD).
-T, --ttl [ttl]
Validity of the transaction in number of keyblocks, or without this limit if 0 (default: 3).
-F, --fee [fee]
Override the transaction fee.
--nonce [nonce]
Override the nonce that the transaction is going to be sent with.
-u, --url [nodeUrl]
Node to connect to (default: mainnet, env: AECLI_NODE_URL).
-f, --force
Ignore node version compatibility check.
--json
Print result in json format.
$ aecli oracle respond-query ./wallet.json oq_6y3N9KqQb74QsvR9NrESyhWeLNiA9aJgJ7ua8CvsTuGot6uzh +16Degree
aecli chain top [options]
Query the top key/micro block of the chain.
-u, --url [nodeUrl]
Node to connect to (default: mainnet, env: AECLI_NODE_URL).
-f, --force
Ignore node version compatibility check.
--json
Print result in json format.
$ aecli chain top
aecli chain status [options]
Query node version, network id, and related details of the selected node.
-u, --url [nodeUrl]
Node to connect to (default: mainnet, env: AECLI_NODE_URL).
-f, --force
Ignore node version compatibility check.
--json
Print result in json format.
$ aecli chain status
aecli chain ttl [options] <absoluteTtl>
Get relative TTL by absolute TTL.
-u, --url [nodeUrl]
Node to connect to (default: mainnet, env: AECLI_NODE_URL).
-f, --force
Ignore node version compatibility check.
--json
Print result in json format.
$ aecli chain ttl
aecli chain play [options]
Prints blocks from top until condition.
-L, --limit [playLimit]
Amount of blocks to print (default: 10).
-P, --height [playToHeight]
Print blocks till the height.
-u, --url [nodeUrl]
Node to connect to (default: mainnet, env: AECLI_NODE_URL).
-f, --force
Ignore node version compatibility check.
--json
Print result in json format.
$ aecli chain play --limit 3 # print 3 blocks from top
$ aecli chain play --height 929796 # print blocks from top until reach height
aecli chain broadcast [options] <tx>
Send signed transaction to the chain. Useful in offline signing scheme.
-W, --no-waitMined
Don't wait until transaction gets mined.
--verify
Verify Transaction before broadcasting.
-u, --url [nodeUrl]
Node to connect to (default: mainnet, env: AECLI_NODE_URL).
-f, --force
Ignore node version compatibility check.
--json
Print result in json format.
$ aecli chain broadcast tx_+FoMAaEBzqet5HDJ+Z2dTkAIgKhvHUm7REti8Rqeu2S7z+tz/vOhARX7Ovvi4N8rfRN/Dsvb2ei7AJ3ysIkBrG5pnY6qW3W7iQVrx14tYxAAAIYPUN430AAAKoBebL57
aecli inspect [options] <identifier>
Prints details of:
- account (ak_-prefixed string),
- name (string ending with '.chain'),
- contract (ct_-prefixed string),
- oracle (ok_-prefixed string),
- keyblock or microblock (prefixed with kh_, mh_),
- keyblock by height (integer),
- transaction (by th_-string or tx_).
-u, --url [nodeUrl]
Node to connect to (default: mainnet, env: AECLI_NODE_URL).
-f, --force
Ignore node version compatibility check.
--json
Print result in json format.
$ aecli inspect ak_21A27UVVt3hDkBE5J7rhhqnH5YNb4Y1dqo4PnSybrH85pnWo7E # get account details
$ aecli inspect example-name.chain # get details of AENS name
$ aecli inspect ct_6y3N9KqQb74QsvR9NrESyhWeLNiA9aJgJ7ua8CvsTuGot6uzh # get contract details
$ aecli inspect ok_2a1j2Mk9YSmC1gioUq4PWRm3bsv887MbuRVwyv4KaUGoR1eiKi # get contract details
$ aecli inspect kh_CF37tA4KiiZTFqbQ6JFCU7kDt6CBZucBrvineVUGC7svA9vK7 # get key block details by hash
$ aecli inspect mh_k1K9gLLtdikJhCdKfBbhYGveQs7osSNwceEJZb1jD6AmraNdr # get micro block details by hash
$ aecli inspect 929796 # get key block details by height
$ aecli inspect th_2nZshewM7FtKSsDEP4zXPsGCe9cdxaFTRrcNjJyE22ktjGidZR # get transaction details by hash
$ aecli inspect tx_+FoMAaEBzqet5HDJ+Z2dTkAIgKhvHUm7REti8Rqeu2S7z+tz/vOhARX7Ovvi4N8rfRN/Dsvb2ei7AJ3ysIkBrG5pnY6qW3W7iQVrx14tYxAAAIYPUN430AAAKoBebL57 # get transaction details
aecli tx spend [options] <senderId> <receiverId> <amount> <nonce>
Build spend transaction.
senderId
receiverId
amount
Amount of coins to send.
nonce
Unique number that is required to sign transaction securely.
--payload [payload]
Transaction payload (default: "").
-F, --fee [fee]
Override the transaction fee.
-T, --ttl [ttl]
Validity of the transaction in number of keyblocks, or without this limit if 0 (default: undefined).
--json
Print result in json format.
$ aecli tx spend ak_21A27UVVt3hDkBE5J7rhhqnH5YNb4Y1dqo4PnSybrH85pnWo7E ak_AgV756Vfo99juwzNVgnjP1gXX1op1QN3NXTxvkPnHJPUDE8NT 100ae 42
aecli tx name-preclaim [options] <accountId> <name> <nonce>
Build name preclaim transaction.
accountId
name
nonce
Unique number that is required to sign transaction securely.
-F, --fee [fee]
Override the transaction fee.
-T, --ttl [ttl]
Validity of the transaction in number of keyblocks, or without this limit if 0 (default: undefined).
--json
Print result in json format.
$ aecli tx name-preclaim ak_21A27UVVt3hDkBE5J7rhhqnH5YNb4Y1dqo4PnSybrH85pnWo7E example-name.chain 42
aecli tx name-claim [options] <accountId> <salt> <name> <nonce>
Build name claim transaction.
accountId
salt
name
nonce
Unique number that is required to sign transaction securely.
--nameFee [nameFee]
Name fee.
-F, --fee [fee]
Override the transaction fee.
-T, --ttl [ttl]
Validity of the transaction in number of keyblocks, or without this limit if 0 (default: undefined).
--json
Print result in json format.
$ aecli tx name-claim ak_21A27UVVt3hDkBE5J7rhhqnH5YNb4Y1dqo4PnSybrH85pnWo7E 12327389123 example-name.chain 42
aecli tx name-update [options] <accountId> <nameId> <nonce> [pointers...]
Build name update transaction.
accountId
nameId
nonce
Unique number that is required to sign transaction securely.
pointers
--nameTtl [nameTtl]
Validity of name (default: 180000).
--clientTtl [clientTtl]
A suggestion measured in seconds on how long clients should cache name pointers (default: 1 hour).
-F, --fee [fee]
Override the transaction fee.
-T, --ttl [ttl]
Validity of the transaction in number of keyblocks, or without this limit if 0 (default: undefined).
--json
Print result in json format.
$ aecli tx name-update ak_21A27UVVt3hDkBE5J7rhhqnH5YNb4Y1dqo4PnSybrH85pnWo7E example-name.chain 42 ct_6y3N9KqQb74QsvR9NrESyhWeLNiA9aJgJ7ua8CvsTuGot6uzh
aecli tx name-transfer [options] <accountId> <recipientId> <name> <nonce>
Build name transfer transaction.
accountId
recipientId
name
nonce
Unique number that is required to sign transaction securely.
-F, --fee [fee]
Override the transaction fee.
-T, --ttl [ttl]
Validity of the transaction in number of keyblocks, or without this limit if 0 (default: undefined).
--json
Print result in json format.
$ aecli tx name-transfer ak_21A27UVVt3hDkBE5J7rhhqnH5YNb4Y1dqo4PnSybrH85pnWo7E ak_AgV756Vfo99juwzNVgnjP1gXX1op1QN3NXTxvkPnHJPUDE8NT example-name.chain 42
aecli tx name-revoke [options] <accountId> <name> <nonce>
Build name revoke transaction.
accountId
name
nonce
Unique number that is required to sign transaction securely.
-F, --fee [fee]
Override the transaction fee.
-T, --ttl [ttl]
Validity of the transaction in number of keyblocks, or without this limit if 0 (default: undefined).
--json
Print result in json format.
$ aecli tx name-revoke ak_21A27UVVt3hDkBE5J7rhhqnH5YNb4Y1dqo4PnSybrH85pnWo7E example-name.chain 42
aecli tx contract-deploy [options] <ownerId> <contractBytecode> <initCallData> <nonce>
Build contract deploy transaction.
ownerId
contractBytecode
initCallData
nonce
Unique number that is required to sign transaction securely.
-G, --gas [gas]
Amount of gas to call/deploy the contract.
--gasPrice [gasPrice]
Gas price to call/deploy the contract (default: 1000000000).
-a, --amount [amount]
Amount of coins to send (default: 0ae).
-F, --fee [fee]
Override the transaction fee.
-T, --ttl [ttl]
Validity of the transaction in number of keyblocks, or without this limit if 0 (default: undefined).
--json
Print result in json format.
$ aecli tx contract-deploy ak_21A27UVVt3hDkBE5J7rhhqnH5YNb4Y1dqo4PnSybrH85pnWo7E cb_dGhpcyBtZXNzYWdlIGlzIG5vdCBpbmRleGVkdWmUpw== cb_DA6sWJo= 42
aecli tx contract-call [options] <callerId> <contractId> <callData> <nonce>
Build contract call transaction.
callerId
contractId
callData
nonce
Unique number that is required to sign transaction securely.
-G, --gas [gas]
Amount of gas to call/deploy the contract.
--gasPrice [gasPrice]
Gas price to call/deploy the contract (default: 1000000000).
-a, --amount [amount]
Amount of coins to send (default: 0ae).
-F, --fee [fee]
Override the transaction fee.
-T, --ttl [ttl]
Validity of the transaction in number of keyblocks, or without this limit if 0 (default: undefined).
--json
Print result in json format.
$ aecli tx contract-call ak_21A27UVVt3hDkBE5J7rhhqnH5YNb4Y1dqo4PnSybrH85pnWo7E ct_6y3N9KqQb74QsvR9NrESyhWeLNiA9aJgJ7ua8CvsTuGot6uzh cb_DA6sWJo= 42
aecli tx oracle-register [options] <accountId> <queryFormat> <responseFormat> <nonce>
Build oracle register transaction.
accountId
queryFormat
responseFormat
nonce
Unique number that is required to sign transaction securely.
--queryFee [queryFee]
Oracle query fee (default: 0).
--oracleTtl [oracleTtl]
Oracle TTL (default: 500).
-F, --fee [fee]
Override the transaction fee.
-T, --ttl [ttl]
Validity of the transaction in number of keyblocks, or without this limit if 0 (default: undefined).
--json
Print result in json format.
$ aecli tx oracle-register ak_21A27UVVt3hDkBE5J7rhhqnH5YNb4Y1dqo4PnSybrH85pnWo7E '{"city": "string"}' '{"tmp": "number"}' 42
aecli tx oracle-extend [options] <oracleId> <oracleTtl> <nonce>
Build oracle extend transaction.
oracleId
oracleTtl
nonce
Unique number that is required to sign transaction securely.
-F, --fee [fee]
Override the transaction fee.
-T, --ttl [ttl]
Validity of the transaction in number of keyblocks, or without this limit if 0 (default: undefined).
--json
Print result in json format.
$ aecli tx oracle-extend ok_2a1j2Mk9YSmC1gioUq4PWRm3bsv887MbuRVwyv4KaUGoR1eiKi 100 42
aecli tx oracle-post-query [options] <accountId> <oracleId> <query> <nonce>
Build oracle post query transaction.
accountId
oracleId
query
nonce
Unique number that is required to sign transaction securely.
--queryFee [queryFee]
Oracle query fee (default: 0).
--queryTtl [oracleTtl]
Oracle TTL (default: 10).
--responseTtl [oracleTtl]
Oracle TTL (default: 10).
-F, --fee [fee]
Override the transaction fee.
-T, --ttl [ttl]
Validity of the transaction in number of keyblocks, or without this limit if 0 (default: undefined).
--json
Print result in json format.
$ aecli tx oracle-post-query ak_AgV756Vfo99juwzNVgnjP1gXX1op1QN3NXTxvkPnHJPUDE8NT ok_2a1j2Mk9YSmC1gioUq4PWRm3bsv887MbuRVwyv4KaUGoR1eiKi '{"city": "Berlin"}' 42
aecli tx oracle-respond [options] <oracleId> <queryId> <response> <nonce>
Build oracle respond transaction.
oracleId
queryId
response
nonce
Unique number that is required to sign transaction securely.
--responseTtl [oracleTtl]
Oracle TTL (default: 10).
-F, --fee [fee]
Override the transaction fee.
-T, --ttl [ttl]
Validity of the transaction in number of keyblocks, or without this limit if 0 (default: undefined).
--json
Print result in json format.
$ aecli tx oracle-respond ok_2a1j2Mk9YSmC1gioUq4PWRm3bsv887MbuRVwyv4KaUGoR1eiKi oq_6y3N9KqQb74QsvR9NrESyhWeLNiA9aJgJ7ua8CvsTuGot6uzh '{"tmp": 1}' 42
aecli tx verify [options] <tx>
Verify transaction using node.
-u, --url [nodeUrl]
Node to connect to (default: mainnet, env: AECLI_NODE_URL).
-f, --force
Ignore node version compatibility check.
--json
Print result in json format.
$ aecli tx verify tx_+FoMAaEBzqet5HDJ+Z2dTkAIgKhvHUm7REti8Rqeu2S7z+tz/vOhARX7Ovvi4N8rfRN/Dsvb2ei7AJ3ysIkBrG5pnY6qW3W7iQVrx14tYxAAAIYPUN430AAAKoBebL57
aecli config [options]
Print the current sdk configuration.
-u, --url [nodeUrl]
Node to connect to (default: mainnet, env: AECLI_NODE_URL).
--compilerUrl [compilerUrl]
Compiler to connect to (default: stable compiler, env: AECLI_COMPILER_URL).
aecli select-node [options] [nodeUrl]
Specify node to use in other commands.
nodeUrl
Node URL.
aecli select-compiler [options] [compilerUrl]
Specify compiler to use in other commands.
compilerUrl
Compiler URL.