Skip to content

nooschain v0.1.0


nooschain / tx-gossip/peer-transaction-client / createNodeAuthHeaders

Function: createNodeAuthHeaders()

createNodeAuthHeaders(body, auth?): Record<string, string>

Defined in: tx-gossip/peer-transaction-client.ts:50

Creates signed node-auth headers for /transactions/gossip.

If auth is omitted, the caller intentionally sends no node-auth headers; production deployments should configure node auth for trusted-peer gossip.

Parameters

body

unknown

auth?

NodeAuthConfig

Returns

Record<string, string>

Audience-first NOOSChain documentation.