The Hamiltonian by definition follows from the Lagrangian, which does presuppose a curve (that minimizes the action). Isn't the existence of a curve always assumed a priori with the Hamiltonian, in this way?
The Hamiltonian is not defined as the Legendre Transform of the Lagrangian. And the Lagrangian does not presuppose a curve, it also is a field, but it isn't a field on phase space is a field on a combination of position and velocity space. You can start with a $2n+1$ or a $2n$ dimensional manifold and have a symplectic form of the $2n$ part and get a Hamiltonian field without ever having a curve or a Lagrangian. And you can get a Lagrangian by starting with a product of a configuration space and its velocity space. And the velocity space is the space in which the true velocity could lie, so the combination of the configuration and the velocity space is basically a scalar field on the tangent manifold of the configuration manifold with maybe some time too.
Actions are functionals. They are like fields, but instead of taking a point in phase space and giving a number or taking a point on something like the tangent manifold of the configuration space and giving a number the action instead takes a curve and give a number. Sure, terminology is abused and you use the same word action for the number as the function.
Just like I tried to distinguish the Hamilton experienced, $\mathcal{H}(t),$ from the $2n+1$ variable field $$(q_i,p_i,t)\mapsto\mathcal{H}(q_i,p_i,t)$$ or the many instantaneous fields $$(q_i,p_i)\mapsto\mathcal{H}(q_i,p_i,t_1),$$
$$(q_i,p_i)\mapsto\mathcal{H}(q_i,p_i,t_2),$$
$$(q_i,p_i)\mapsto\mathcal{H}(q_i,p_i,t_3).$$
But keep in mind, that just becasue your first introduction to a Hamiltonian or a Hamiltonian field, is via Lagrangian, doesn't mean that is the definition.
And what's tricky is that someone might give you the Lagrangian of a particular system and then define the Hamiltonian for that same system in terms of that specific Lagrangian. But they are just trying to point towards a specific Hamiltonian.
Hamiltonian Mechanics is a very specific subject that stands on its own. And is strongly related to symplectic forms on even dimensional symplectic manifolds (phase space).
Lagrangian mechanics is a very specific subject that also stands on its own. And it is strongly related to tangent manifolds.
Action is a functional and is strongly related to path integrals.
And all the subjects have connections. But a Hamiltonian is a field and so is a Lagrangian. They are defined on different spaces.
And you can use them to do pure field theories which don't have curves.