scuttlebutt-client-lib / org.apache.tuweni.scuttlebutt.lib / NetworkService / generateInviteCode

generateInviteCode

open fun generateInviteCode(validForUses: Int): AsyncResult<Invite> (source)

Generates an invite code which can be used by another node to connect to our node, and have each node will befriend each other.

Parameters

validForUses - the number of times this should be usable by different people (0 if an infinite number of times.)

Return
the invite that was generated.