Configuration

gasPriceAt

caver.klay.gasPriceAt([defaultBlock] [, callback])

주어진 블록 높이에서 유효했던 가스 단가를 peb 단위로 환산해 반환합니다.

Parameters

Name
Type
Description

defaultBlock

Number | String

(선택 사항) 이 파라미터에 값을 전달하지 않으면 caver.klay.defaultBlock에 설정된 기본 블록을 사용합니다.

callback

Function

(optional) Optional callback, returns an error object as the first parameter and the result as the second.

Return Value

프로미스String을 반환 - 문자열로 표현된 peb 단위 가스 가격입니다.

Example

> caver.klay.gasPriceAt().then(console.log);
0x5d21dba00

> caver.klay.gasPriceAt('latest').then(console.log);
0x5d21dba00

getChainId

caver.klay.getChainId([callback])

Returns the chain ID of the chain.

Parameters

Name
Type
Description

callback

Function

(optional) Optional callback, returns an error object as the first parameter and the result as the second.

Return Value

프로미스Number를 반환 - 정수값 형태의 체인 ID입니다.

Example

getGasPrice

Klaytn 네트워크에 정의된 단위 가격을 반환합니다.

Parameters

Name
Type
Description

callback

Function

(optional) Optional callback, returns an error object as the first parameter and the result as the second.

Return Value

프로미스String을 반환 - 문자열로 표현된 현재 peb 단위 가격입니다.

Example

getNodeInfo

Returns the current client version of a Klaytn node.

Parameters

Name
Type
Description

callback

Function

(optional) Optional callback, returns an error object as the first parameter and the result as the second.

Return Value

프로미스String을 반환 - Klaytn 노드의 현재 클라이언트 버전입니다.

Example

getProtocolVersion

Returns the Klaytn protocol version of the node. The current version (as of v1.9.0) of Cypress/Baobab is istanbul/65.

Parameters

Name
Type
Description

callback

Function

(optional) Optional callback, returns an error object as the first parameter and the result as the second.

Return Value

프로미스String을 반환 - 노드의 Klaytn 프로토콜 버전입니다.

Example

isSenderTxHashIndexingEnabled

노드가 트랜잭션 해시 맵핑 정보를 SenderTxHash로 색인화하고 있으면 true를 반환합니다.

Parameters

Name
Type
Description

callback

Function

(optional) Optional callback function. 콜백(callback)은 오류 객체를 첫 번째 매개 변수로, 결과를 두 번째 매개 변수로 하여 실행됩니다.

Return Value

프로미스Boolean을 반환 - true는 트랜잭션 수수료 납부자가 서명한 트랜잭션을 찾기 위해 노드가 트랜잭션 발신자 해시를 인덱싱하고 있음을 의미합니다. For detailed information, please see Klaytn Platform API - klay_getTransactionBySenderTxHash and Klaytn Transactions - Fee Delegation and SenderTxHash.

Example

isParallelDBWrite

노드가 병렬로 블록체인 데이터를 쓰고 있으면 true를 반환합니다. 이는 기본적으로 활성화되어 있습니다.

Parameters

Name
Type
Description

callback

Function

(optional) Optional callback, returns an error object as the first parameter and the result as the second.

Return Value

프로미스Boolean을 반환 - true는 노드가 블록체인 데이터를 병렬로 기록하고 있음을 의미합니다. 노드가 순차적으로 블록체인 데이터를 쓰고 있으면 false를 반환합니다.

Example

rewardbase

현재 노드의 Rewardbase를 반환합니다. Rewardbase는 블록 보상을 받을 계정 주소입니다. Only the Klaytn Consensus Nodes (CN) have the rewardbase in their configuration. Configuration File를 참조하십시오.

Parameters

Name
Type
Description

callback

Function

(optional) Optional callback, returns an error object as the first parameter and the result as the second.

Return Value

프로미스String을 반환 - 현재 노드의 Rewardbase입니다.

Example

Last updated

Was this helpful?