program_id

Function program_id 

Source
pub fn program_id() -> Pubkey
Expand description

Get the program ID as a Pubkey

ยงPanics

Panics if the program ID (from environment or default) is not a valid Pubkey