Skip to content

nooschain v0.1.0


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

Function: sendTransactionToPeer()

sendTransactionToPeer(args): Promise<PeerTransactionResponse>

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

Sends one signed transaction to a trusted peer's gossip endpoint.

The request body is redacted before transmission and the remote response is shape-checked so malformed peers are surfaced as transport failures.

Parameters

args

nodeAuth?

NodeAuthConfig

peer

SyncPeer

protocolVersion?

number

timeoutMs?

number

transaction

SignedTransaction

Returns

Promise<PeerTransactionResponse>

Audience-first NOOSChain documentation.