def setup(self) -> None:
    '\n        Implement the setup.\n\n        :return: None\n        '
    strategy = cast(GenericStrategy, self.context.strategy)
    if strategy.is_ledger_tx:
        ledger_api_dialogues = cast(LedgerApiDialogues, self.context.ledger_api_dialogues)
        ledger_api_msg = LedgerApiMessage(performative=LedgerApiMessage.Performative.GET_BALANCE, dialogue_reference=ledger_api_dialogues.new_self_initiated_dialogue_reference(), ledger_id=strategy.ledger_id, address=cast(str, self.context.agent_addresses.get(strategy.ledger_id)))
        ledger_api_msg.counterparty = LEDGER_API_ADDRESS
        ledger_api_dialogues.update(ledger_api_msg)
        self.context.outbox.put_message(message=ledger_api_msg)
    self._register_agent()
    self._register_service()
Implement the setup.

:return: None
def setup(self) -> None:
    '\n        Implement the setup.\n\n        :return: None\n        '
    strategy = cast(GenericStrategy, self.context.strategy)
    if strategy.is_ledger_tx:
        ledger_api_dialogues = cast(LedgerApiDialogues, self.context.ledger_api_dialogues)
        ledger_api_msg = LedgerApiMessage(performative=LedgerApiMessage.Performative.GET_BALANCE, dialogue_reference=ledger_api_dialogues.new_self_initiated_dialogue_reference(), ledger_id=strategy.ledger_id, address=cast(str, self.context.agent_addresses.get(strategy.ledger_id)))
        ledger_api_msg.counterparty = LEDGER_API_ADDRESS
        ledger_api_dialogues.update(ledger_api_msg)
        self.context.outbox.put_message(message=ledger_api_msg)
    self._register_agent()
    self._register_service()