I want to fetch customer address into the transaction.phtml but i am not getting how to do this . I am trying below but not getting success
<?php
$helper = $this->helper("LofCustomerMembershipHelperData");
$transactions = $block->getTransactions();
$address=$block->getPrimaryBillingAddress();
// var_dump($helper);
$objectManager = MagentoFrameworkAppObjectManager::getInstance();
$customerSession = $objectManager->get('MagentoCustomerModelSession');
$customerId =$customerSession->getCustomer()->getId();
// $address = $this->myHelper->getCustomerAddressById(Id);
// $customer = $this->_customerRepository->getById($customerId);
// $addresses = $customer->getAddresses();
// $billingAddress = $customer->getDefaultBilling();
?>
Anyone have idea how to get default billing and shipping address then please let me know