tuweni / 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 - Int: the number of times this should be usable by different people (0 if an infinite number of times.)

Return
AsyncResult<Invite!>!: the invite that was generated.