klren0312 / daliy_knowledge

知识积累,正确使用方式是watch
21 stars 4 forks source link

walrus相关学习 #855

Open klren0312 opened 3 weeks ago

klren0312 commented 3 weeks ago

一、walrus cli学习

1. walrus info

image

2. 换取walrus

walrus get-wal 默认0.5wal image

walrus get-wal --amount 2000000000 换取2 wal image

3. walrus上传文件

walrus store 文件 --epoch 有效期 默认有效期为1 epoch image

4. 查看blob状态

walrus blob-status --blob-id n-e_Ni4LwoBJUwu_Ovccl7Lflh_NmHmvwMpLWLRwCt0 image

5. 读取blob

walrus read n-e_Ni4LwoBJUwu_Ovccl7Lflh_NmHmvwMpLWLRwCt0

6. 删除blob

walrus delete --blob-id n-e_Ni4LwoBJUwu_Ovccl7Lflh_NmHmvwMpLWLRwCt0

7. 查看上传的文件

访问 display网站 image

klren0312 commented 3 weeks ago

二、walrus site发布

1. 发布页面

./target/release/site-builder publish /Volumes/Data/1project/sui-nft-dapp-muyu/dist --epochs 100

https://5f3ki4tvo0eob4l1f0sfkwqp1r04a73wle22yikrd8ymn44si5.walrus.site

image

2. 设置SuiNS名称

https://testnet.suins.io/account/my-names#your_name

选择自己的名称,我的是zcdc image

输入刚刚上传的walrus site 的objectId,进行绑定 image

然后直接访问链接即可 https://zcdc.walrus.site/