Skip to content

Express

Express is an HTTP framework for Node.js. It organises routes and middleware for APIs, webhooks and sessions; validation, authentication, retries and durable work are explicitly designed for each integration. Blockchain backends use it to accept authenticated notifications and connect chain operations to business services, separating durable background work from the lifecycle of an HTTP request.

Written by Isaac GonzálezUpdated October 11, 2026

Key takeaways

  • Express organizes HTTP APIs through routes and middleware on Node.js.
  • It can connect a dApp to network data and internal business processes.
  • Validation, authentication and error handling require explicit design.

What is Express?

Express is a Node.js HTTP framework built around routes and middleware. It supports APIs connecting applications to external data and processes. In blockchain products it can receive notifications, query contracts, expose aggregated data and manage user sessions outside the on-chain execution layer.

Its scope is intentionally small: teams choose validation, storage and code organisation. That flexibility requires explicit responsibilities. Exposing an endpoint does not determine who may use it or establish that an incoming request is authentic, well-formed or authorised for the requested business operation.

How it works

Requests pass through middleware and reach route handlers or error handlers. Order matters: body validation, authentication, limits and errors need coordination. Signed webhooks may require preserving the original request body to verify the signature before transforming or parsing its contents.

Express 5 changes behaviour from Express 4, including routing and rejected promise handling. Migration requires reviewing compatibility guidance and testing endpoints. Updating the dependency alone does not establish that every route and middleware retains the same behaviour in the new version.

What Express offers

An event receiver can verify origin, record a notification and place work in a queue. The handler responds after accepting the task durably, while a separate process reconciles the event with the chain. Identifiers distinguish retries and prevent duplicate service delivery.

Wallet authentication requires more than checking a signature: validate domain, nonce, expiry and message purpose, then manage the session. API permissions must be enforced independently of whether the interface hides a button from an unauthorised user. Client presentation is not an access-control boundary.

Limitations and selection criteria

Heavy computation and long-running work should not block the HTTP server. Define timeouts, load limits and graceful shutdown, then measure which dependency causes latency. Choosing another framework from one benchmark cannot resolve a bottleneck in RPC or database access.

Production configuration includes input validation, authentication, limits and secret-free logs. Express does not impose a custody model; transaction signing must be designed and protected separately when needed. Backend scope should remain understandable and verifiable through integration tests covering both accepted and rejected requests.

Also known as

  • Express.js
  • ExpressJS
Development at Metlabs

How we approach a project with Express

Development capabilities and use cases to assess how Express fits your product.

What we build with Express at Metlabs

  • REST APIs for dApps

    Endpoints exposing processed on-chain data and off-chain business logic.

  • Event webhooks

    Receivers for Alchemy/Moralis notifications to react to on-chain events.

  • API between the dApp and the chain

    We expose a lightweight API that caches and indexes on-chain data so the interface loads fast without hitting the RPC on every load.

  • Use case

    NFT metadata API

    Server delivering dynamic metadata based on on-chain state and off-chain asset attributes.

  • Use case

    Indexing and notifications backend

    A service that listens to contract events, indexes them and notifies the user, offloading that logic from the frontend.

Related content

Go deeper on Express

Other Metlabs pages that expand on this entry.

Building with Express?

We analyze your case, pick the right stack and ship a production-ready solution.

Tell us about your project

As featured in

CointelegraphInvesting.comEl EspañolEmprendedoresEl ObservadorCriptoNoticias