Account
eth_accounts
클라이언트가 소유한 계정의 주소 목록을 반환합니다.
Parameters
None
Return Value
Type | Description |
---|---|
20바이트 크기 DATA array | 클라이언트가 소유한 계정의 주소들을 반환합니다. |
Example
eth_getBalance
입력으로 받은 주소에 해당하는 계정의 잔액을 반환합니다.
Parameters
Name | Type | Description |
---|---|---|
address | 20-byte DATA | 잔액을 확인할 계정의 주소입니다. |
block number or hash | QUANTITY | TAG | HASH | 정수 형태의 블록 번호 또는 기본 블록 매개변수나 블록 해시에서와 같이 |
Return Value
Type | Description |
---|---|
QUANTITY | peb 단위 현재 잔액을 정수 형태로 반환합니다. |
Example
eth_getCode
입력으로 받은 주소의 코드를 반환합니다.
Parameters
Type | Description |
---|---|
20-byte DATA | 주소입니다. |
QUANTITY | TAG | HASH | Integer or hexadecimal block number, or the string |
Return Value
Type | Description |
---|---|
DATA | 입력으로 받은 주소의 코드입니다. |
Example
eth_getTransactionCount
어떤 주소의 계정에서 발신된 트랜잭션의 개수를 반환합니다.
Parameters
Type | Description |
---|---|
20-byte DATA | Address |
QUANTITY | TAG | HASH | Integer or hexadecimal block number, or the string |
Return Value
Type | Description |
---|---|
QUANTITY | 입력으로 받은 주소에서 발신한 트랜잭션의 개수를 정수 형태로 반환합니다. |
Example
eth_sign
sign 메서드는 다음을 사용하여 Klaytn만의 서명을 계산합니다.
메시지에 접두사를 붙이면 계산된 서명 값이 Klaytn의 서명임을 알 수 있습니다. This prevents misuse where a malicious dApp signs arbitrary data (e.g. transaction) and uses the signature for impersonation.
참고: 서명하려는 계정은 잠금 해제되어 있어야 합니다.
Parameters
Name | Type | Description |
---|---|---|
account | 20-byte DATA | Address |
message | N 바이트 크기의 DATA | 서명하려는 메시지입니다. |
Return Value
Type | Description |
---|---|
DATA | 서명 값입니다. |
Example
Last updated