尝试导入加密货币钱包详细信息

尝试导入加密货币钱包详细信息

我尝试将带有以太坊资金的私钥导入到元掩码 linea 中,但收到零余额错误。

因此,我尝试搜索如何创建要导入的 json 文件,但是在寻找 json 文件的模板时,该模板主要是一个文本文件,已重命名为可编程的 .json 文件,然后我可以上传和/或导入到钱包中但是我需要知道相关的钱包导入格式?!所以我搜索了如何导出json格式文件,但是当我尝试搜索导出功能时,我被带到了cmd输入命令,但现在有两个应用程序打开,一个是cmd,另一个是mozilla浏览器或chrome浏览器?! https://ethereum.stackexchange.com/questions/16797/export-metamask-account-to-json-file

但是,当我尝试在 linux cmd 控制台中运行 npm 代码执行时收到错误。

johnpatrickoldfield@Acer-Predator300-PH315-52:~$ npm install ethereumjs-wallet
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: '[email protected]',
npm WARN EBADENGINE   required: { node: '>=16.0.0' },
npm WARN EBADENGINE   current: { node: 'v12.22.9', npm: '8.5.1' }
npm WARN EBADENGINE }
npm ERR! code EACCES
npm ERR! syscall open
npm ERR! path /home/johnpatrickoldfield/package-lock.json
npm ERR! errno -13
npm ERR! Error: EACCES: permission denied, open '/home/johnpatrickoldfield/package-lock.json'
npm ERR!  [Error: EACCES: permission denied, open '/home/johnpatrickoldfield/package-lock.json'] {
npm ERR!   errno: -13,
npm ERR!   code: 'EACCES',
npm ERR!   syscall: 'open',
npm ERR!   path: '/home/johnpatrickoldfield/package-lock.json'
npm ERR! }
npm ERR! 
npm ERR! The operation was rejected by your operating system.
npm ERR! It is likely you do not have the permissions to access this file as the current user
npm ERR! 
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/johnpatrickoldfield/.npm/_logs/2024-04-16T23_38_24_008Z-debug-0.log
johnpatrickoldfield@Acer-Predator300-PH315-52:~$ ^C

这是第一个问题,第二个问题只是 json 文件模板格式可编辑文本格式,用于将资金上传到钱包地址,然后绕过所需的任何安全费用,以完成余额初始化更新等任务,然后也是相关发送及相关接收。有一个示例说明在哪里导入文件

https://support.metamask.io/hc/en-us/articles/360015489331-How-to-import-an-account#:~:text=使用%20a%20JSON%20文件导入%20,MetaMask%2C%20但是%20only%20on%20扩展

然后是半代码半文本讨论示例 -https://github.com/MetaMask/metamask-extension/issues/1232;https://www.w3schools.com/js/js_json_intro.asp;https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Objects/JSON

谢谢

相关内容