第一个本地 Warp 合约
Blog iconWang Defa
Dec 28
1. 安装运行 arlocalnpm i -g arlocal npx arlocal start Arlocal 模拟了一个本地 arweave gateway server,默认运行在1984端口。 Arocal 重启后状态就没了。2. 创建 wallet可以用 arconnect 生成一个地址,然后导出私钥,保存到本地目录, 或者用 arweave 节点程序生成密钥对, 或者用 arweave js 库生成密钥对。const Arweave = require("arweave"); // 创建 Arweave 实例 const arweave = Arweave.init(); // 生成一个新的 JWK(JSON Web Key)钥匙对 const key = await arweave.wallets.generate(); // 从 JWK 获取 Arweave 地址 const address = await arweave.wallets.jwkToAddress(key); console.log("Private Key:", key); console.l...

Wang Defa

Written by
zhengxingao
Subscribe

2025 Paragraph Technologies Inc

PopularTrendingPrivacyTermsHome
Search...Ctrl+K

Wang Defa

Subscribe