geth 新建账户
使用geth的account命令管理账户,例如创建新账户、更新账户密码、查询账户等:
geth account <command> [options...] [arguments...]
命令 - command
- list 列表显示现有账户
- new 创建一个新的账户
- update 修改账户
- import 导入私钥创建新账户
可以使用--help获取这些命令的帮助信息,例如:
- ~$ geth account list --help
- list [command options] [arguments...]
- Print a short summary of all accounts
- OPTIONS:
- --datadir "/home/bas/.ethereum" Data directory for the databases and keystore
- --keystore Directory for the keystore (default = inside the datadir)
创建新账户
使用geth account new命令新建账户:
- $ geth account new
- Your new account is locked with a password. Please give a password. Do not forget this password.
- Passphrase:
- Repeat Passphrase:
- Address: {168bc315a2ee09042d83d7c5811b533620531f67}
导入私钥创建新账户
可以使用geth account import命令,通过导入私钥来创建一个新账户,
- ~$ geth account import --datadir /someOtherEthDataDir ./key.prv
- The new account will be encrypted with a passphrase.
- Please enter a passphrase now.
- Passphrase:
- Repeat Passphrase:
- Address: {7f444580bfef4b9bc7e14eb7fb2a029336b07c9d}
更新账户密码
使用geth account update命令来更新指定账户的密码:
- ~$ geth account update a94f5374fce5edbc8e2a8697c15331677e6ebf0b
- Unlocking account a94f5374fce5edbc8e2a8697c15331677e6ebf0b | Attempt 1/3
- Passphrase:
- 0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b
- Account 'a94f5374fce5edbc8e2a8697c15331677e6ebf0b' unlocked.
- Please give a new password. Do not forget this password.
- Passphrase:
- Repeat Passphrase:
- 0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b
显示已有账户
使用geth account list命令列表显示已有账户,可选的可以使用--keystore指定keystore目录:
- ~$ geth account list --keystore /tmp/mykeystore/
- Account #0: {5afdd78bdacb56ab1dad28741ea2a0e47fe41331} keystore:///tmp/mykeystore/UTC--2017-04-28T08-46-27.437847599Z--5afdd78bdacb56ab1dad28741ea2a0e47fe41331
- Account #1: {9acb9ff906641a434803efb474c96a837756287f} keystore:///tmp/mykeystore/UTC--2017-04-28T08-46-52.180688336Z--9acb9ff906641a434803efb474c96a837756287f
geth 新建账户的更多相关文章
- 【SAP HANA】新建账户和数据库(2)
开启HANA Studio,进入到User和Role的目录,这两个地方是创建账号和权限的. 新建用户 输入用户名和密码即可. 注意,如果系统里有同名的Catalog(数据库)存在的话,会报错,因为默认 ...
- win7文件夹共享(不新建账户、不带密码直接访问)
1.右键需要共享的文件夹>共享>特定用户>选择Everyone>“添加”>“共享” 2.打开控制面板>按类别的查看方式>网络和Internet下的选择家庭组和 ...
- 修改linux新建账户时的过期时间
#!/bin/bash cat << EOF >> /etc/login.defs PASS_MAX_DAYS 90 EOF
- geth常用指令
ubuntu下载: https://github.com/ethereum/go-ethereum/wiki/Installation-Instructions-for-Ubuntu sudo apt ...
- 通过Geth搭建私有以太坊网络
前言 为了进一步了解以太坊区块链网络的工作方式和运行原理,笔者通过官方软件Geth搭建了私有以太坊网络fantasynetwork,最终实现了单机和多机节点间的相互连通:首先通过VMware Work ...
- mac电脑忘记账户名密码解决方法
1,重启电脑 ,开机按command+R 2,等苹果开机完成后会进入单用户模式.然后从单用户模式进入终端. 3,在终端里面输入resetpassword. 4,选择系统(root)账户重新输入密码,存 ...
- Outlook账户迁移帮助
Outlook账户迁移指南 1. 介绍 开贴聊聊如何迁移Outlook用户账户到另外一台电脑. 相信许多Outlook用户都遇到过这样的情况:买来一台新电脑,安装完Outlook后,想把旧电脑里面的O ...
- leanote使用本地账户+坚果云同步
1. 换机器后笔记无法显示 这是因为新建账户与原账户userid不一致. 正确的同步方式为: 下载leanote并解压,不运行,不新建账户 从坚果云同步leanote数据 创建leanote的数据目录 ...
- (2.2)学习笔记之mysql基础操作(登录及账户权限设置)
本系列学习笔记主要讲如下几个方面: 本文笔记[三:mysql登录][四:账户权限设置][五:mysql数据库安全配置] 三.mysql登录 常用登录方式如下: 四.账户权限设置 (4.1)查看用户表, ...
随机推荐
- 关于Vue中,checkBox等组件在赋值后,点击切换页面未及时更新问题
我们经常碰到这样的问题,在v-for循环中,给某些组件(此处以checkBox为例)赋值后,组件并不能正常切换, 这是因为数据层太多,render函数没有自动更新,需手动强制刷新. 解决方法:在切换c ...
- java玩转zip压缩包
首先将相关jar包引入pom.xml中 <!-- 解压zip --> <dependency> <groupId>org.apache.ant</groupI ...
- 转载一篇有关于diff的文章,方便以后复习
本文章是转载的,为了方便以后复习,特地记录一下.他人请去原地址观看!!! 文章原地址:http://www.ruanyifeng.com/blog/2012/08/how_to_read_diff.h ...
- javascript经常用到的函数
trim函数: trim() lTrim() rTrim()校验字符串是否为空: checkIsNotEmpty(str ...
- vue去哪儿网项目环境配置
一.首先安装node.js 根据自己的(windows或mac)系统进行安装node,在开发环境中一般安装LTS版本.安装成功后,在终端输入"node -v"和"npm ...
- xposed获取context 的方法
// 应用被加壳,采用这种方式加载类 try { XposedHelpers.findAndHookMethod(Application.class, "attach", Cont ...
- 利用jenkens+github实现简单的CI/CD
一 获取github accessToken 依次点击 settings----> Developer settings --->Personal access tokens 到这里如 ...
- flex布局实战
1.实现盒子的水平垂直居中 .parent{ width:200px; height:200px; display:flex; align-items: center; justify-content ...
- 对WAF的一些认知
WAF分为非嵌入型与嵌入型, 非嵌入型指的是硬WAF.云WAF.虚拟机WAF之类的:嵌入型指的是web容器模块类型WAF.代码层WAF.非嵌入型对WEB流量的解析完全是靠自身的,而嵌入型的WAF拿到的 ...
- mariadb-server安装问题(Error: MariaDB-common conflicts with 1:mariadb-libs-5.5.60-1.el7_5.x86_64)
问题:今天在安装mariadb-server包时,提示错误,无法正确安装linux自带的mariadb包,提示错误很明确,是由于MariaDB-common包与mariadb-libs包冲突. 解决办 ...