PDCClient

interface PDCClient : Closeable

Interface for all Parcel Delivery Connection clients.

Functions

Link copied to clipboard
abstract override fun close()
Link copied to clipboard
abstract suspend fun collectParcels(nonceSigners: Array<Signer>, streamingMode: StreamingMode = StreamingMode.KeepAlive): Flow<ParcelCollection>

Collect parcels on behalf of the specified nodes.

Link copied to clipboard
abstract suspend fun deliverParcel(parcelSerialized: ByteArray, deliverySigner: Signer)

Deliver a parcel.

Link copied to clipboard
abstract suspend fun preRegisterNode(nodePublicKey: PublicKey): PrivateNodeRegistrationRequest

Request a Private Node Registration Authorization (PNRA).

Link copied to clipboard
abstract suspend fun registerNode(pnrrSerialized: ByteArray): PrivateNodeRegistration

Register a private node.