-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathadd_image.sh
More file actions
25 lines (22 loc) · 832 Bytes
/
add_image.sh
File metadata and controls
25 lines (22 loc) · 832 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
node dist/index.js addimage \
-r "service-endpoint" \
-u "user_address" \
-x "private_key" \
--path "image.wasm" \
--description "Image description"
# Optional: add this param to import merkle data from image by specifying md5, e.g.
# --import_data_image "9E3FD7F8B867F9CAE3494FA76F70E627"
# Optional: add this param to restrict add prove task to only the creator of the image, e.g.
# --creator_only_add_prove_task true
# Example:
# node dist/index.js addimage \
# -r "http://localhost:8108" \
# -u "0x000000..." \
# -x "00000000..." \
# --path "image.wasm" \
# -d "Image description" \
# -c 22 \
# --creator_paid_proof false \
# --creator_only_add_prove_task false \
# --auto_submit_network_ids 97 42 100 \
# --import_data_image "9E3FD7F8B867F9CAE3494FA76F70E627"