본문 바로가기
블록체인

Postman을 이용한 RPC 테스트

by ^..^v 2019. 10. 4.
728x90
반응형

Postman 다운로드 및 설치

https://www.getpostman.com/

https://dl.pstmn.io/download/latest/win64

 

 

JSON-RPC API

https://github.com/ethereum/wiki/wiki/JSON-RPC
https://github.com/ethereum/go-ethereum/wiki/Management-APIs

 

 

Postman을 이용한 계정 생성

POST > http://localhost:8545 > Body > raw > JSON(application/json)

 

personal_newAccount
Generates a new private key and stores it in the key store directory. The key file is encrypted with the given passphrase. Returns the address of the new account.
At the geth console, newAccount will prompt for a passphrase when it is not supplied as the argument.

- Client : Method invocation

- Console : personal.newAccount()

- RPC : { "method" : "personal_newAccount", "params" : [ string ] }

 

Postman을 이용한 현재 계정 목록을 조회

 

Postman을 이용한 채굴 여부 조회

 

Postman을 이용한 채굴 실행

 

Postman을 이용한 해시 속도 조회

 

Postman을 이용한 생성 블록 길이(크기) 조회 

 

Postman을 이용한 세번째 계정(accounts[2])의 잔액 조회

 

Postman을 이용한 세번째 계정에서 네번째 계정으로 0.5이더를 송금

 

 

Postman을 이용한 세번째 계정을 300초 동안 잠금 해제

 

Postman을 이용한 세번째 계정에서 네번째 계정으로 0.5이더를 송금

 

Postman을 이용한 세번째 계정(accounts[2])의 잔액 조회

 

Postman을 이용한 네번째 계정(accounts[3])의 잔액 조회

 

 

 

 

 

728x90
반응형

'블록체인' 카테고리의 다른 글

Remix 환경에서 계약 작성  (0) 2019.10.08
콘솔에서 계약 배포, 실행  (0) 2019.10.04
JSON-RPC 활성화  (0) 2019.10.04
수수료가 발생하는 거래  (0) 2019.10.04
트랜잭션, 리시트, 블록 정보 조회  (0) 2019.10.03

댓글