Send base URL for my custom block
You can try template_preprocess_block(&amp;$variables). There is a global $base_url variable. Create variable for block template:

function your_module_preprocess_block(&amp;$variables){
  global $base_url;
  $variables['base_url'] = $base_url;

}


Now you can use {{base_url}} in twig template of your block.