This section documents the core Ethereum JSON-RPC API methods that provide essential functionality for interacting with the Ethereum blockchain. These methods form the foundation of most Ethereum applications and development workflows.
These methods provide core functionality for interacting with the Ethereum blockchain, including account balances, transaction data, block information, and smart contract interactions.
메소드 호출 | HTTP! | WS! |
---|---|---|
eth_blockNumber 현재 블록 번호를 반환합니다 | ||
eth_call 트랜잭션을 생성하지 않고 즉시 새 메시지 호출을 실행합니다 | ||
eth_chainId 현재 네트워크의 체인 ID를 반환합니다 | ||
eth_estimateGas 트랜잭션 실행에 필요한 가스 양의 추정치를 생성하여 반환합니다 | ||
eth_feeHistory 요청된 블록 범위의 트랜잭션 수수료 내역 데이터를 반환합니다 | ||
eth_gasPrice 현재 가스 가격을 wei 단위로 반환합니다 | ||
eth_getBalance 주어진 주소의 계정 잔액을 반환합니다 | ||
eth_getBlockByHash 해시로 지정된 블록에 대한 정보를 반환합니다 | ||
eth_getBlockByNumber 번호로 지정된 블록에 대한 정보를 반환합니다 | ||
eth_getBlockReceipts 주어진 블록의 모든 트랜잭션 영수증을 반환합니다 | ||
eth_getBlockTransactionCountByHash 해시로 지정된 블록의 트랜잭션 수를 반환합니다 | ||
eth_getBlockTransactionCountByNumber 번호로 지정된 블록의 트랜잭션 수를 반환합니다 | ||
eth_getCode 주어진 주소의 컴파일된 스마트 컨트랙트 코드를 반환합니다 | ||
eth_getFilterChanges 필터의 폴링 메소드로, 마지막 폴링 이후 발생한 로그 배열을 반환합니다 | ||
eth_getFilterLogs 주어진 ID의 필터와 일치하는 모든 로그 배열을 반환합니다 | ||
eth_getLogs 주어진 필터 기준과 일치하는 로그 배열을 반환합니다 | ||
eth_getProof 계정 상태의 머클 증명을 반환합니다 | ||
eth_getStorageAt 주어진 주소의 저장소 위치 값을 반환합니다 | ||
eth_getTransactionByBlockHashAndIndex 블록 해시와 트랜잭션 인덱스로 트랜잭션 정보를 반환합니다 | ||
eth_getTransactionByBlockNumberAndIndex 블록 번호와 트랜잭션 인덱스로 트랜잭션 정보를 반환합니다 | ||
eth_getTransactionByHash 트랜잭션 해시로 트랜잭션 세부 정보를 반환합니다 | ||
eth_getTransactionCount 주소에서 보낸 트랜잭션 수(nonce)를 반환합니다 | ||
eth_getTransactionReceipt 해시로 지정된 트랜잭션의 영수증을 반환합니다 | ||
eth_getUncleByBlockHashAndIndex 블록 해시와 엉클 인덱스로 엉클 블록에 대한 정보를 반환합니다 | ||
eth_getUncleByBlockNumberAndIndex 블록 번호와 엉클 인덱스로 엉클 블록에 대한 정보를 반환합니다 | ||
eth_getUncleCountByBlockHash 해시로 지정된 블록의 엉클 수를 반환합니다 | ||
eth_getUncleCountByBlockNumber 번호로 지정된 블록의 엉클 수를 반환합니다 | ||
eth_maxPriorityFeePerGas 현재 최대 우선순위 가스 단가를 wei 단위로 반환합니다 | ||
eth_newBlockFilter 새 블록이 도착할 때 알림을 받기 위해 노드에 필터를 생성합니다 | ||
eth_newFilter 필터 옵션에 기반한 필터 객체를 생성하여 상태 변경 시 알립니다 | ||
eth_newPendingTransactionFilter 새 보류 중인 트랜잭션이 도착할 때 알림을 받기 위해 노드에 필터를 생성합니다 | ||
eth_sendRawTransaction 네트워크에 원시 트랜잭션을 제출합니다 | ||
eth_subscribe WebSocket을 통해 특정 블록체인 이벤트를 구독합니다 | ||
eth_syncing 노드의 동기화 상태에 대한 정보를 반환합니다 | ||
eth_uninstallFilter 주어진 ID의 필터를 제거합니다 | ||
eth_unsubscribe WebSocket을 통해 기존 구독을 취소합니다 | ||
These methods provide information about the network status and connections, helping developers monitor node connectivity and network configuration.
메소드 호출 | HTTP! | WS! |
---|---|---|
net_listening 클라이언트가 네트워크 연결을 능동적으로 수신하고 있는지 여부를 반환합니다 | ||
net_peerCount 클라이언트에 현재 연결된 피어 수를 반환합니다 | ||
net_version 현재 네트워크 프로토콜 버전을 반환합니다 | ||
These methods allow inspection of the transaction pool status, providing visibility into pending transactions and mempool state.
메소드 호출 | HTTP! | WS! |
---|---|---|
txpool_inspect 트랜잭션 풀에서 현재 대기 중인 트랜잭션의 세부 목록을 반환합니다 | ||
txpool_status 현재 대기 중인 트랜잭션 수를 반환합니다 | ||
Basic web3 utility methods for general blockchain interaction, including hashing and client information.
메소드 호출 | HTTP! | WS! |
---|---|---|
web3_clientVersion 현재 클라이언트 버전을 반환합니다 | ||
web3_sha3 주어진 데이터의 Keccak-256 해시를 반환합니다 | ||