INNER CODE UNIT · Python

_get_slot_body

michaelhly/solana-py · src/solana/rpc/core.py:355

    def _get_slot_body(self, commitment: Commitment | None) -> GetSlot:
        commitment_to_use = _COMMITMENT_TO_SOLDERS[commitment or self._commitment]
        return GetSlot(RpcContextConfig(commitment_to_use))

    def _get_slot_leader_body(self, commitment: Commitment | None) -> GetSlotLeader:
        commitment_to_use = _COMMITMENT_TO_SOLDERS[commitment or self._commitment]
        return GetSlotLeader(RpcContextConfig(commitment_to_use))

    def _get_slot_leaders_body(
        self,
        start: int,
        limit: int,
    ) -> GetSlotLeaders:
        return GetSlotLeaders(
            start,
            limit,
        )

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…