Engine

core.engine.get_peer_id

Client

Retrieves current peer id

Syntax

local peer_id = core.engine.get_peer_id()

Parameters

No parameters are accepted by this function

Returns

TypeNameDescription
intpeer_idCurrent peer id

Examples

Prints current peer id
core.engine.print("info", "Current peer id:", core.engine.get_peer_id())

On this page