INNER CODE UNIT · Python
_get_block_height_body
michaelhly/solana-py · src/solana/rpc/core.py:221
def _get_block_height_body(self, commitment: Commitment | None) -> GetBlockHeight:
commitment_to_use = _COMMITMENT_TO_SOLDERS[commitment or self._commitment]
return GetBlockHeight(RpcContextConfig(commitment=commitment_to_use))
@staticmethod
def _get_recent_performance_samples_body(
limit: int | None,
) -> GetRecentPerformanceSamples:
return GetRecentPerformanceSamples(limit)
@staticmethod
def _get_blocks_body(start_slot: int, end_slot: int | None) -> GetBlocks:
return GetBlocks(start_slot, end_slot)
def _get_signatures_for_address_body(
self,
address: Pubkey,
before: Signature | None,