code: def p2pkh_script(network: str, address: str) -> P2pkhScript:
      '''create pay-to-key-hash (P2PKH) script'''
  
      network_params = net_query(network)
  
      addr = Address.from_string(network=network_params,
                                 string=address)
  
      return P2pkhScript(addrf p2pkh_script(network: str, address: str) -> P2pkhScript:
      '''create pay-to-key-hash (P2PKH) script'''
  
      network_params = net_query(network)
  
      addr = Address.from_string(network=network_params,
                                 string=address)
  
      return P2pkhScript(addr)
docs: create pay-to-key-hash (P2PKH) script