get peer pubkey api