getAddress(), ledgerIndex: 'validated' ); // Send the request to the XRPL $accountInfoResponse = $client->syncRequest($accountInfoRequest); // Print formatted response print_r($accountInfoResponse);