Send Actions

Send Actions

Transfer Tokens

Usage: ioctl action transfer (ALIAS|RECIPIENT_ADDRESS) AMOUNT_IOTX [DATA] -s SIGNER [-l GAS_LIMIT] [-p GAS_PRICE]
1
➜ ioctl action transfer IOsenser 7 pad#3212 -s whale
2
Enter password #whale:
3
4
senderAddress: io14gnqxf9dpkn05g337rl7eyt2nxasphf5m6n0rd (whale)
5
transfer: <
6
recipient: io1r2r0um9dw35922tptkuphseq43hq2knk3fjrlt (IOsenser)
7
amount: 7000000000000000000
8
payload: pad#3212
9
>
10
senderPubKey: 04f591bf3d3e233f6705c8a78823e9ea4a9a73365ca4dd1e60e5567558135778fde8b79dc883b04a98ab68a0fe9e3b7ce984fceca0466c03f93f40d32915bf1d88
11
signature: 64f9dc75b3406a009692cde669d3186bc29844ba70520e16fdafc14487d8d6be184c4a43f5f7e1f688d759c985a268d1a4b73b34b9e98d1db61adcb549a37d0101
12
13
Please confirm your action.
14
Type 'YES' to continue, quit for anything else.
15
yes
16
17
Action has been sent to blockchain.
18
Wait for several seconds and query this action by hash:
19
iotexscan.io/action/aa56b8958d5030676876363ec054df4ac7044ea2fc09f51a1c238d22c9411c33
Copied!

Query Action

Usage: ioctl action hash ACTION_HASH
1
→ ioctl action hash 690fb07fbb5ba3b762a7a16edea35ff1c3b02b43a6331aef88c4daa1bc933ad4
2
3
version: 1 nonce: 7 gasLimit: 122222 gasPrice: 2000000000000 Rau
4
senderAddress: io1znka733xefxjjw2wqddegplwtefun0mfdmz7dw (whale)
5
transfer: <
6
recipient: io18jaldgzc8wlyfnzamgas62yu3kg5nw527czg37 (nani)
7
amount: 123000000000000000000 Rau
8
payload:
9
>
10
senderPubKey: 04d0fade363080b9061844ed6b1009f35595515b31295e37e870106d3201a638856db2c3f870dbbcafc559af54574f3487dbea0d318588608d7aca8e77e4ce5ade
11
signature: 2e10f265fdc5944fab11afaebd258292afe8f9076157fbaca6bfdd3ece9047483fb3aa10ce187fe55d2d9c591e5eda430833b744f825a6ae34c9b34461d3940f01
12
13
#This action has been written on blockchain
14
returnValue:
15
status: 1 (Success)
16
actHash: 690fb07fbb5ba3b762a7a16edea35ff1c3b02b43a6331aef88c4daa1bc933ad4
17
gasConsumed: 10000
18
contractAddress:
19
logs:0
Copied!

Deploy Contract

Usage: ioctl action deploy -s SIGNER -b BYTE_CODE -l GAS_LIMIT [-p GAS_PRICE]
1
➜ ioctl action deploy -b 608060405234801561001057600080fd5b5060df8061001f6000396000f3006080604052600436106049576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806360fe47b114604e5780636d4ce63c146078575b600080fd5b348015605957600080fd5b5060766004803603810190808035906020019092919050505060a0565b005b348015608357600080fd5b50608a60aa565b6040518082815260200191505060405180910390f35b8060008190555050565b600080549050905600a165627a7a7230582009e6d7025fff5ff3ba4cf7ba6b842526416df976e012a516f37e397607c1f2360029 -l 50000 -p 1 -s whale
2
Enter password #whale:
3
4
senderAddress: io14gnqxf9dpkn05g337rl7eyt2nxasphf5m6n0rd (whale)
5
version: 1
6
nonce: 3
7
gasLimit: 50000
8
gasPrice: 1000000000000
9
execution: <
10
contract:
11
amount: 0
12
data: 608060405234801561001057600080fd5b5060df8061001f6000396000f3006080604052600436106049576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806360fe47b114604e5780636d4ce63c146078575b600080fd5b348015605957600080fd5b5060766004803603810190808035906020019092919050505060a0565b005b348015608357600080fd5b50608a60aa565b6040518082815260200191505060405180910390f35b8060008190555050565b600080549050905600a165627a7a7230582009e6d7025fff5ff3ba4cf7ba6b842526416df976e012a516f37e397607c1f2360029
13
>
14
senderPubKey: 04f591bf3d3e233f6705c8a78823e9ea4a9a73365ca4dd1e60e5567558135778fde8b79dc883b04a98ab68a0fe9e3b7ce984fceca0466c03f93f40d32915bf1d88
15
signature: a0cbb205184c3153217bdd7e1d251a70bf8d9222b7ab9b8015254e5961f21602694477ea5bed2005fe21f47724130af173b7abe2b5f9304b09f188749c88c2f001
16
17
Please confirm your action.
18
Type 'YES' to continue, quit for anything else.
19
yes
20
21
Action has been sent to blockchain.
22
Wait for several seconds and query this action by hash:
23
b49e5860c5b4154fdb6bcb808a60fbf8de2ac7807d99551ec5357d83ad2612e5
Copied!

Invoke Contract

Usage: ioctl action invoke (ALIAS|CONTRACT_ADDRESS) [AMOUNT_IOTX] -s SIGNER -b BYTE_CODE -l GAS_LIMIT [-p GAS_PRICE]
1
➜ ioctl action invoke io1vqzcl56vlfspyaadyxhqy07jrmalx73vdaklzn 122 -s boss -b 60fe47b10000000000000000000000000000000000000000000000000000000000000001 -l 90000 -p 3
2
Enter password #boss:
3
4
senderAddress: io1ed52svvdun2qv8sf2m0xnynuxfaulv6jlww7ur
5
version: 1
6
nonce: 2
7
gasLimit: 90000
8
gasPrice: 3000000000000
9
execution: <
10
contract: io1vqzcl56vlfspyaadyxhqy07jrmalx73vdaklzn
11
amount: 122000000000000000000
12
data: 60fe47b10000000000000000000000000000000000000000000000000000000000000001
13
>
14
senderPubKey: 04b3fe4456876ca4c904c52dc3203e06651924d6cbd5e9f545ce990ea1289f3b8ddaff3b7e104803187f87b1e375076285e7137052260b14f2f33229a671a39a0c
15
signature: bde6509fadfe80b707ef80e24041b4cfe7bf583c7d89a0649027090c191918b217ffae5faf1dd5f2d9e6d05f8721c8ff7a6b3b5cffb64610d3bad71c9c55e47001
16
17
Please confirm your action.
18
Type 'YES' to continue, quit for anything else.
19
yes
20
21
Action has been sent to blockchain.
22
Wait for several seconds and query this action by hash:
23
58fc6465bd3b7e33b1508064b0342dc786247b4e18859be72fea57c993dc4950
Copied!

Read Smart Contract

ioctl action read (ALIAS|CONTRACT_ADDRESS) -b BYTE_CODE [-s SIGNER]
1
➜ ioctl action read io1vqzcl56vlfspyaadyxhqy07jrmalx73vdaklzn -b 60fe47b10000000000000000000000000000000000000000000000000000000000000001
2
Copied!

Claim Reward

Usage: ioctl action claim AMOUNT_IOTX [DATA] -s SIGNER [-l GAS_LIMIT] [-p GASPRICE]
1
➜ ioctl action claim 321 happy -s whale
2
Enter password #whale:
3
4
senderAddress: io14gnqxf9dpkn05g337rl7eyt2nxasphf5m6n0rd (whale)
5
version: 1
6
nonce: 6
7
gasLimit: 15000
8
gasPrice: "1000000000000"
9
claimFromRewardingFund: <
10
amount: "321000000000000000000"
11
data: "happy"
12
>
13
senderPubKey: 04f591bf3d3e233f6705c8a78823e9ea4a9a73365ca4dd1e60e5567558135778fde8b79dc883b04a98ab68a0fe9e3b7ce984fceca0466c03f93f40d32915bf1d88
14
signature: 6b4022afc93901b7de420f84829e9f3e2f531a83c4c0f3a935df3694dbe09e7f068733a294207e9ee39e0d83b4fc206e9f7059592e648b8d92a0bb1eed489f4000
15
16
Please confirm your action.
17
Type 'YES' to continue, quit for anything else.
18
yes
19
20
Action has been sent to blockchain.
21
Wait for several seconds and query this action by hash:
22
59a73e24a41385005519d1d1e7f164b36b98717f2c5649785b43c2588245502d
Copied!

Deposit To Rewarding Pool

ioctl action deposit AMOUNT_IOTX [DATA] [-s SIGNER] [-n NONCE] [-l GAS_LIMIT] [-p GAS_PRICE] [-P PASSWORD] [-y]
1
➜ ioctl action deposit 10 -s tmp2
2
Enter password #io120au9ra0nffdle04jx2g5gccn6gq8qd4fy03l4:
3
4
5
version: 1 nonce: 419 gasLimit: 10000 gasPrice: 0.000001 IOTX
6
senderAddress: io120au9ra0nffdle04jx2g5gccn6gq8qd4fy03l4 (tmp2)
7
version: 1
8
nonce: 419
9
gasLimit: 10000
10
gasPrice: "1000000000000"
11
depositToRewardingFund: <
12
amount: "10000000000000000000"
13
>
14
senderPubKey: 0422346c407294b5e37487395f193faa48dabfc2225ab33fe47b335299f46505b1689f0d96fd53bd19971fe47f310669cf6260dcdc23318454814a4fe904f4d384
15
signature: a3c46bae8324e5bcc498de67510b8e8dffe3d8474b7bd1f1cef7a1e01aff6722210df22a5b5c796e1820c5d091c8e49b7a7ee36d2951f90a6f8538bbcfd8f17100
16
17
Please confirm your action.
18
19
20
Options: yes
21
Quit for anything else.
22
yes
23
Action has been sent to blockchain.
24
Wait for several seconds and query this action by hash:23aee3e08f084d5090329d47e27afa8c08358967ca8d6f2b2dc26803b7491d4e
Copied!

Last modified 6mo ago